mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue