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

Function main

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…