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

Function measureSerial

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

Source from the content-addressed store, hash-verified

53});
54
55async function measureSerial(n, verifyParams, sharedKey) {
56 bench.start();
57 for (let i = 0; i < n; ++i) {
58 await subtle.verify(verifyParams, sharedKey || publicKeys[i], signature, data);
59 }
60 bench.end(n);
61}
62
63async function measureParallel(n, verifyParams, sharedKey) {
64 const promises = new Array(n);

Callers 1

mainFunction · 0.70

Calls 3

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…