(n, algorithm, message, nonce, options)
| 24 | }); |
| 25 | |
| 26 | function 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 | |
| 33 | function measureAsync(n, algorithm, message, nonce, options) { |
| 34 | let remaining = n; |
no test coverage detected
searching dependent graphs…