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

Function measureSync

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

Source from the content-addressed store, hash-verified

54});
55
56function measureSync(n, digest, signature, publicKey, keys) {
57 bench.start();
58 for (let i = 0; i < n; ++i) {
59 crypto.verify(
60 digest,
61 data,
62 publicKey || keys[i],
63 signature);
64 }
65 bench.end(n);
66}
67
68function measureAsync(n, digest, signature, publicKey, keys) {
69 let remaining = 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…