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

Function benchmark

benchmark/util/inspect.js:31–37  ·  view source on GitHub ↗
(n, obj, options)

Source from the content-addressed store, hash-verified

29});
30
31function benchmark(n, obj, options) {
32 bench.start();
33 for (let i = 0; i < n; i += 1) {
34 util.inspect(obj, options);
35 }
36 bench.end(n);
37}
38
39function main({ method, n, option }) {
40 let obj;

Callers 1

mainFunction · 0.70

Calls 3

inspectMethod · 0.80
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…