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

Function main

benchmark/crypto/webcrypto-digest.js:47–53  ·  view source on GitHub ↗
({ n, sync, data, method })

Source from the content-addressed store, hash-verified

45}
46
47function main({ n, sync, data, method }) {
48 data = globalThis.crypto.getRandomValues(Buffer.alloc(data));
49 switch (sync) {
50 case 'createHash': return measureLegacy(n, data, method);
51 case 'subtle': return measureSubtle(n, data, method);
52 }
53}

Callers

nothing calls this directly

Calls 3

measureLegacyFunction · 0.85
measureSubtleFunction · 0.85
allocMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…