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

Function measureSync

benchmark/crypto/argon2.js:26–31  ·  view source on GitHub ↗
(n, algorithm, message, nonce, options)

Source from the content-addressed store, hash-verified

24});
25
26function measureSync(n, algorithm, message, nonce, options) {
27 bench.start();
28 for (let i = 0; i < n; ++i)
29 argon2Sync(algorithm, { ...options, message, nonce, tagLength: 64 });
30 bench.end(n);
31}
32
33function measureAsync(n, algorithm, message, nonce, options) {
34 let remaining = n;

Callers 1

mainFunction · 0.70

Calls 3

argon2SyncFunction · 0.85
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…