From 2ee6e0b27d63618c2ad6191c0017cf902599af06 Mon Sep 17 00:00:00 2001 From: Lei Shi Date: Thu, 23 Nov 2023 14:11:49 +0800 Subject: [PATCH] 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:https://github.com/nodejs/node/issues/50571 --- benchmark/crypto/randomBytes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/crypto/randomBytes.js b/benchmark/crypto/randomBytes.js index 50ad3f08387566..eac65fba446b5e 100644 --- a/benchmark/crypto/randomBytes.js +++ b/benchmark/crypto/randomBytes.js @@ -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 }) {