benchmark.js
const { runBenchmark } = require('./run-benchmark');
function test() {
console.log('hello world');
}
runBenchmark('with 1.000.000 operations', 1000000, function() {
test();
});
package.json
{
"scripts": {
"benchmark": "node ./benchmark.js"
}
}