MCPcopy Index your code
hub / github.com/nodejs/node / run

Function run

benchmark/run.js:102–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102async function run() {
103 for (let i = 0; i < benchmarks.length; ++i) {
104 let runs = cli.optional.runs ?? 1;
105 const filename = benchmarks[i];
106 if (format !== 'csv') {
107 console.log();
108 console.log(filename);
109 }
110
111 while (runs-- > 0) {
112 const start = performance.now();
113 await runBenchmark(filename);
114 if (format !== 'csv' && cli.optional.track) {
115 const ms = styleText(['bold', 'yellow'], `${Math.round(performance.now() - start)}ms`);
116 console.log(`[${ms}] ${filename}`);
117 }
118 }
119 }
120}
121
122run();

Callers 1

run.jsFile · 0.70

Calls 4

styleTextFunction · 0.85
nowMethod · 0.80
runBenchmarkFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected