mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
benchmark: trim down the argon2 sets
Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
a6d3e9369f
commit
87a6aa674a
1 file changed
+6
-4
@@ -17,10 +17,12 @@ if (!hasOpenSSL(3, 2)) {
|
||||
const bench = common.createBenchmark(main, {
|
||||
mode: ['sync', 'async'],
|
||||
algorithm: ['argon2d', 'argon2i', 'argon2id'],
|
||||
passes: [1, 3],
|
||||
parallelism: [2, 4, 8],
|
||||
memory: [2 ** 11, 2 ** 16, 2 ** 21],
|
||||
n: [50],
|
||||
passes: [3],
|
||||
parallelism: [1],
|
||||
// Argon2 memory cost dominates runtime. Keep the default suite small enough
|
||||
// to finish while still covering a low-cost and a memory-heavy derivation.
|
||||
memory: [2 ** 11, 2 ** 16],
|
||||
n: [5],
|
||||
});
|
||||
|
||||
function measureSync(n, algorithm, message, nonce, options) {
|
||||
|
||||
Reference in new issue
Block a user