Skip to content

Commit bae7e38

Browse files
author
Lei Shi
authored
benchmark: increase the iteration number to an appropriate value
Current iteration number is too small that fwrite occupies large portion of execution time which made crypo execution time measured inaccurate. The iteration above 1e5 makes 50% higher and stable score. PR-URL: #50766 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
1 parent 59ebf6d commit bae7e38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎benchmark/crypto/webcrypto-digest.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, {
88
sync: ['createHash', 'subtle'],
99
data: [10, 20, 50, 100],
1010
method: ['SHA-1', 'SHA-256', 'SHA-384', 'SHA-512'],
11-
n: [1e3],
11+
n: [1e5],
1212
});
1313

1414
const kMethods = {

0 commit comments

Comments
 (0)