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

Function fillQueue

benchmark/perf_hooks/performance-observer.js:24–30  ·  view source on GitHub ↗
(timerfied, pending)

Source from the content-addressed store, hash-verified

22let _result;
23
24function fillQueue(timerfied, pending) {
25 for (let i = 0; i < pending; i++) {
26 _result = timerfied();
27 }
28 // Avoid V8 deadcode (elimination)
29 assert.ok(_result);
30}
31
32function main({ n, pending }) {
33 const timerfied = performance.timerify(randomFn);

Callers 1

mainFunction · 0.85

Calls 1

okMethod · 0.45

Tested by

no test coverage detected