function runBenchmark(benchmark, environments) {
  let benchmarkName;
  const benches = environments.map(environment => {
    const module = require(path.join(environment.distPath, benchmark))
    benchmarkName = module.name;
    return new Benchmark(environment.revision, module.measure);
  });

  console.log('⏱️   ' + benchmarkName);
  for (let i = 0; i < benches.length; ++i) {
    benches[i].run({ async: false });
    process.stdout.write('  ' + cyan(i + 1) + ' tests completed.\u000D');
  }
  console.log('\n');

  beautifyBenchmark(benches);
  console.log('');
}
function runBenchmark(benchmark, environments) {
  let benchmarkName;
  const benches = environments.map(environment => {
    const module = require(path.join(environment.distPath, benchmark))
    benchmarkName = module.name;
    return new Benchmark(environment.revision, module.measure);
  });

  console.log('⏱️   ' + benchmarkName);
  for (let i = 0; i < benches.length; ++i) {
    benches[i].run({ async: false });
    process.stdout.write('  ' + cyan(i + 1) + ' tests completed.\u000D');
  }
  console.log('\n');

  beautifyBenchmark(benches);
  console.log('');
}
function runBenchmark ( benchmark , environments ) { let benchmarkName ; const benches = environments . map ( environment => { const module = require ( path . join ( environment . distPath , benchmark ) ) benchmarkName = module . name ; return new Benchmark ( environment . revision , module . measure ) ; } ) ; console . log ( '⏱️   ' + b n hmarkName); for ( let i = 0 ; i < benches . length ; ++ i ) { benches [ i ] . run ( { async : false } ) ; process . stdout . write ( '  ' + cyan ( i + 1 ) + ' tests completed.\u000D' ) ; } console . log ( '\n' ) ; beautifyBenchmark ( benches ) ; console . log ( '' ) ; }
Run a given benchmark test with the provided revisions.
Run a given benchmark test with the provided revisions .
Runs a benchmark in a list of environments