@@ -71,8 +71,8 @@ function findFiles(cwd, pattern) {
71
71
}
72
72
73
73
// Run a given benchmark test with the provided revisions.
74
- function runBenchmark ( benchmark , enviroments ) {
75
- const modules = enviroments . map ( ( { distPath} ) =>
74
+ function runBenchmark ( benchmark , environments ) {
75
+ const modules = environments . map ( ( { distPath} ) =>
76
76
require ( path . join ( distPath , benchmark ) ) ,
77
77
) ;
78
78
const suite = new Suite ( modules [ 0 ] . name , {
@@ -90,8 +90,8 @@ function runBenchmark(benchmark, enviroments) {
90
90
beautifyBenchmark . log ( ) ;
91
91
} ,
92
92
} ) ;
93
- for ( let i = 0 ; i < enviroments . length ; i ++ ) {
94
- suite . add ( enviroments [ i ] . revision , modules [ i ] . measure ) ;
93
+ for ( let i = 0 ; i < environments . length ; i ++ ) {
94
+ suite . add ( environments [ i ] . revision , modules [ i ] . measure ) ;
95
95
}
96
96
suite . run ( { async : false } ) ;
97
97
}
@@ -116,10 +116,10 @@ function prepareAndRunBenchmarks(benchmarkPatterns, revisions) {
116
116
return ;
117
117
}
118
118
119
- const enviroments = revisions . map (
119
+ const environments = revisions . map (
120
120
revision => ( { revision, distPath : prepareRevision ( revision ) } )
121
121
) ;
122
- benchmarks . forEach ( benchmark => runBenchmark ( benchmark , enviroments ) ) ;
122
+ benchmarks . forEach ( benchmark => runBenchmark ( benchmark , environments ) ) ;
123
123
}
124
124
125
125
function getArguments ( argv ) {
0 commit comments