Skip to content

Commit 87648c0

Browse files
panvarichardlau
authored andcommitted
benchmark: trim down the argon2 sets
Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #64218 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 322230d commit 87648c0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

benchmark/crypto/argon2.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ if (!hasOpenSSL(3, 2)) {
1717
const bench = common.createBenchmark(main, {
1818
mode: ['sync', 'async'],
1919
algorithm: ['argon2d', 'argon2i', 'argon2id'],
20-
passes: [1, 3],
21-
parallelism: [2, 4, 8],
22-
memory: [2 ** 11, 2 ** 16, 2 ** 21],
23-
n: [50],
20+
passes: [3],
21+
parallelism: [1],
22+
// Argon2 memory cost dominates runtime. Keep the default suite small enough
23+
// to finish while still covering a low-cost and a memory-heavy derivation.
24+
memory: [2 ** 11, 2 ** 16],
25+
n: [5],
2426
});
2527

2628
function measureSync(n, algorithm, message, nonce, options) {

0 commit comments

Comments
 (0)