Skip to content

Commit

Permalink
benchmark: increase iteration of randomBytes case to appropriate one
Browse files Browse the repository at this point in the history
Increase iteration value from 1000 to 10000 to reflect real performance
of randomBytes generation. The randomInt has no need to apply this.

Fixes:#50571
  • Loading branch information
Lei Shi committed Nov 23, 2023
1 parent ea88a3e commit 2ee6e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/crypto/randomBytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { randomBytes } = require('crypto');

const bench = common.createBenchmark(main, {
size: [64, 1024, 8192, 512 * 1024],
n: [1e3],
n: [1e4],
});

function main({ n, size }) {
Expand Down

0 comments on commit 2ee6e0b

Please sign in to comment.