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

Function main

benchmark/crypto/argon2.js:45–53  ·  view source on GitHub ↗
({ n, mode, algorithm, ...options })

Source from the content-addressed store, hash-verified

43}
44
45function main({ n, mode, algorithm, ...options }) {
46 // Message, nonce, secret, associated data & tag length do not affect performance
47 const message = randomBytes(32);
48 const nonce = randomBytes(16);
49 if (mode === 'sync')
50 measureSync(n, algorithm, message, nonce, options);
51 else
52 measureAsync(n, algorithm, message, nonce, options);
53}

Callers

nothing calls this directly

Calls 3

randomBytesFunction · 0.85
measureSyncFunction · 0.70
measureAsyncFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…