({ n, mode, algorithm, ...options })
| 43 | } |
| 44 | |
| 45 | function 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…