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

Function measureSync

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

Source from the content-addressed store, hash-verified

18});
19
20function measureSync(n, size, salt, info, hash, key) {
21 bench.start();
22 for (let i = 0; i < n; ++i)
23 hkdfSync(hash, key, salt, info, size);
24 bench.end(n);
25}
26
27function measureAsync(n, size, salt, info, hash, key) {
28 let remaining = n;

Callers 1

mainFunction · 0.70

Calls 3

hkdfSyncFunction · 0.85
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected