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

Function main

benchmark/perf_hooks/bench-eventlooputil.js:17–31  ·  view source on GitHub ↗
({ method, n })

Source from the content-addressed store, hash-verified

15});
16
17function main({ method, n }) {
18 switch (method) {
19 case 'idleTime':
20 benchIdleTime(n);
21 break;
22 case 'ELU_simple':
23 benchELUSimple(n);
24 break;
25 case 'ELU_passed':
26 benchELUPassed(n);
27 break;
28 default:
29 throw new Error(`Unsupported method ${method}`);
30 }
31}
32
33function benchIdleTime(n) {
34 bench.start();

Callers

nothing calls this directly

Calls 3

benchIdleTimeFunction · 0.85
benchELUSimpleFunction · 0.70
benchELUPassedFunction · 0.70

Tested by

no test coverage detected