diff options
Diffstat (limited to 'bench/snippets/crypto-hasher.mjs')
-rw-r--r-- | bench/snippets/crypto-hasher.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/snippets/crypto-hasher.mjs b/bench/snippets/crypto-hasher.mjs index 2f96dae7b..36f67739a 100644 --- a/bench/snippets/crypto-hasher.mjs +++ b/bench/snippets/crypto-hasher.mjs @@ -3,13 +3,13 @@ import { bench, run } from "./runner.mjs"; import crypto from "node:crypto"; -var foo = Buffer.allocUnsafe(16384); +var foo = Buffer.allocUnsafe(512); foo.fill(123); // if ("Bun" in globalThis) { // const { CryptoHasher } = Bun; -// bench("CryptoHasher Blake2b256", () => { -// var hasher = new CryptoHasher("blake2b256"); +// bench("Bun.CryptoHasher(sha512)", () => { +// var hasher = new CryptoHasher("sha512"); // hasher.update(foo); // hasher.digest(); // }); |