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

Function measureParallel

benchmark/crypto/webcrypto-hmac.js:52–60  ·  view source on GitHub ↗
(n, sharedKey, data)

Source from the content-addressed store, hash-verified

50}
51
52async function measureParallel(n, sharedKey, data) {
53 const promises = new Array(n);
54 bench.start();
55 for (let i = 0; i < n; ++i) {
56 promises[i] = subtle.sign(signParams, sharedKey || keys[i], data);
57 }
58 await Promise.all(promises);
59 bench.end(n);
60}
61
62async function main({ n, mode, keyReuse, hash, keylen, len }) {
63 if (!keys || keys.length !== n ||

Callers 1

mainFunction · 0.70

Calls 3

allMethod · 0.80
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…