Skip to content

Commit

Permalink
benchmark: increase iteration number of crypto hkdf case
Browse files Browse the repository at this point in the history
Increase the iteration number from 1000 to 10000 to get a reasonble
score. The updated score has up to ~60% improvement.

Fixes: nodejs#50571
  • Loading branch information
Lei Shi committed Nov 23, 2023
1 parent ea88a3e commit c44d14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/crypto/hkdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const bench = common.createBenchmark(main, {
salt: ['', 'salt'],
info: ['', 'info'],
hash: ['sha256', 'sha512'],
n: [1e3],
n: [1e4],
});

function measureSync(n, size, salt, info, hash, key) {
Expand Down

0 comments on commit c44d14c

Please sign in to comment.