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

Function measureAsync

benchmark/crypto/oneshot-verify.js:68–87  ·  view source on GitHub ↗
(n, digest, signature, publicKey, keys)

Source from the content-addressed store, hash-verified

66}
67
68function measureAsync(n, digest, signature, publicKey, keys) {
69 let remaining = n;
70 function done() {
71 if (--remaining === 0)
72 bench.end(n);
73 else
74 one();
75 }
76
77 function one() {
78 crypto.verify(
79 digest,
80 data,
81 publicKey || keys[n - remaining],
82 signature,
83 done);
84 }
85 bench.start();
86 one();
87}
88
89function measureAsyncParallel(n, digest, signature, publicKey, keys) {
90 let remaining = n;

Callers 1

mainFunction · 0.70

Calls 2

oneFunction · 0.70
startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…