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

Function measureAsync

benchmark/crypto/hkdf.js:27–37  ·  view source on GitHub ↗
(n, size, salt, info, hash, key)

Source from the content-addressed store, hash-verified

25}
26
27function measureAsync(n, size, salt, info, hash, key) {
28 let remaining = n;
29 function done(err) {
30 assert.ifError(err);
31 if (--remaining === 0)
32 bench.end(n);
33 }
34 bench.start();
35 for (let i = 0; i < n; ++i)
36 hkdf(hash, key, salt, info, size, done);
37}
38
39function main({ n, sync, size, salt, info, hash, key }) {
40 if (sync)

Callers 1

mainFunction · 0.70

Calls 2

hkdfFunction · 0.85
startMethod · 0.45

Tested by

no test coverage detected