mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
59ebf6d397
commit
bae7e3831d
@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, {
|
||||
sync: ['createHash', 'subtle'],
|
||||
data: [10, 20, 50, 100],
|
||||
method: ['SHA-1', 'SHA-256', 'SHA-384', 'SHA-512'],
|
||||
n: [1e3],
|
||||
n: [1e5],
|
||||
});
|
||||
|
||||
const kMethods = {
|
||||
|
Loading…
Reference in New Issue
Block a user