MCPcopy Create free account
hub / github.com/nodejs/node / main

Function main

benchmark/perf_hooks/histogram-create.js:14–22  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

12let _histogram;
13
14function main({ n }) {
15 bench.start();
16 for (let i = 0; i < n; i++)
17 _histogram = createHistogram();
18 bench.end(n);
19
20 // Avoid V8 deadcode (elimination)
21 assert.ok(_histogram);
22}

Callers

nothing calls this directly

Calls 4

createHistogramFunction · 0.85
startMethod · 0.45
endMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected