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

Function measureSerial

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

Source from the content-addressed store, hash-verified

42}
43
44async function measureSerial(n, sharedKey, data) {
45 bench.start();
46 for (let i = 0; i < n; ++i) {
47 await subtle.sign(signParams, sharedKey || keys[i], data);
48 }
49 bench.end(n);
50}
51
52async function measureParallel(n, sharedKey, data) {
53 const promises = new Array(n);

Callers 1

mainFunction · 0.70

Calls 2

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…