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

Function measureParallel

benchmark/crypto/webcrypto-verify.js:63–71  ·  view source on GitHub ↗
(n, verifyParams, sharedKey)

Source from the content-addressed store, hash-verified

61}
62
63async function measureParallel(n, verifyParams, sharedKey) {
64 const promises = new Array(n);
65 bench.start();
66 for (let i = 0; i < n; ++i) {
67 promises[i] = subtle.verify(verifyParams, sharedKey || publicKeys[i], signature, data);
68 }
69 await Promise.all(promises);
70 bench.end(n);
71}
72
73async function main({ n, mode, keyReuse, keyType }) {
74 const algorithm = kAlgorithms[keyType];

Callers 1

mainFunction · 0.70

Calls 4

allMethod · 0.80
startMethod · 0.45
verifyMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…