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

Function main

benchmark/es/restparams-bench.js:51–69  ·  view source on GitHub ↗
({ n, method })

Source from the content-addressed store, hash-verified

49}
50
51function main({ n, method }) {
52 let fn;
53 switch (method) {
54 case 'copy':
55 fn = runCopyArguments;
56 break;
57 case 'rest':
58 fn = runRestArguments;
59 break;
60 case 'arguments':
61 fn = runUseArguments;
62 break;
63 default:
64 throw new Error(`Unexpected method "${method}"`);
65 }
66 bench.start();
67 fn(n);
68 bench.end(n);
69}

Callers

nothing calls this directly

Calls 3

fnFunction · 0.50
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…