Skip to content

Commit 2ee6e0b

Browse files
author
Lei Shi
committed
benchmark: increase iteration of randomBytes case to appropriate one
Increase iteration value from 1000 to 10000 to reflect real performance of randomBytes generation. The randomInt has no need to apply this. Fixes:nodejs#50571
1 parent ea88a3e commit 2ee6e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/crypto/randomBytes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { randomBytes } = require('crypto');
55

66
const bench = common.createBenchmark(main, {
77
size: [64, 1024, 8192, 512 * 1024],
8-
n: [1e3],
8+
n: [1e4],
99
});
1010

1111
function main({ n, size }) {

0 commit comments

Comments
 (0)