Skip to content

Commit c44d14c

Browse files
author
Lei Shi
committed
benchmark: increase iteration number of crypto hkdf case
Increase the iteration number from 1000 to 10000 to get a reasonble score. The updated score has up to ~60% improvement. Fixes: nodejs#50571
1 parent ea88a3e commit c44d14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/crypto/hkdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const bench = common.createBenchmark(main, {
1414
salt: ['', 'salt'],
1515
info: ['', 'info'],
1616
hash: ['sha256', 'sha512'],
17-
n: [1e3],
17+
n: [1e4],
1818
});
1919

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

0 commit comments

Comments
 (0)