Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
44
function
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
fn
Function · 0.50
start
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…