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

Function main

benchmark/napi/function_call/index.js:44–51  ·  view source on GitHub ↗
({ n, type })

Source from the content-addressed store, hash-verified

42});
43
44function main({ n, type }) {
45 const fn = type === 'cxx' ? cxx : type === 'napi' ? napi : js;
46 bench.start();
47 for (let i = 0; i < n; i++) {
48 fn();
49 }
50 bench.end(n);
51}

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…