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

Function main

benchmark/crypto/create-hash.js:11–22  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

9});
10
11function main({ n }) {
12 const array = [];
13 for (let i = 0; i < n; ++i) {
14 array.push(null);
15 }
16 bench.start();
17 for (let i = 0; i < n; ++i) {
18 array[i] = createHash('sha1');
19 }
20 bench.end(n);
21 assert.strictEqual(typeof array[n - 1], 'object');
22}

Callers

nothing calls this directly

Calls 4

createHashFunction · 0.85
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…