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

Function main

benchmark/perf_hooks/now.js:10–23  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

8});
9
10function main({ n }) {
11 const arr = [];
12 for (let i = 0; i < n; ++i) {
13 arr.push(performance.now());
14 }
15
16 bench.start();
17 for (let i = 0; i < n; i++) {
18 arr[i] = performance.now();
19 }
20 bench.end(n);
21
22 assert.strictEqual(arr.length, n);
23}

Callers

nothing calls this directly

Calls 4

nowMethod · 0.80
pushMethod · 0.45
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…