MCPcopy Index your code
hub / github.com/nodejs/node / index.js

File index.js

benchmark/napi/function_call/index.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Show the difference between calling a short js function
2// relative to a comparable C++ function.
3// Reports n of calls per second.
4// Note that JS speed goes up, while cxx speed stays about the same.

Callers

nothing calls this directly

Calls 5

jsFunction · 0.70
requireFunction · 0.50
assertFunction · 0.50
errorMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected