| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b8178db commit 7241c1b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,10 +17,12 @@ if (!hasOpenSSL(3, 2)) { | |||
| 17 | 17 | const bench = common.createBenchmark(main, { | |
| 18 | 18 | mode: ['sync', 'async'], | |
| 19 | 19 | 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], | ||
| 24 | 26 | }); | |
| 25 | 27 | ||
| 26 | 28 | function measureSync(n, algorithm, message, nonce, options) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments