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

Function main

benchmark/misc/arguments.js:34–57  ·  view source on GitHub ↗
({ n, method, args })

Source from the content-addressed store, hash-verified

32}
33
34function main({ n, method, args }) {
35 let fn;
36 switch (method) {
37 case 'restAndSpread':
38 fn = usingRestAndSpread;
39 break;
40 case 'restAndApply':
41 fn = usingRestAndApply;
42 break;
43 case 'argumentsAndApply':
44 fn = usingArgumentsAndApply;
45 break;
46 case 'predefined':
47 fn = usingPredefined;
48 break;
49 default:
50 throw new Error(`Unexpected method "${method}"`);
51 }
52
53 bench.start();
54 for (let i = 0; i < n; i++)
55 fn('part 1', 'part', 2, 'part 3', 'part', 4);
56 bench.end(n);
57}

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…