diff options
author | 2023-06-03 00:14:27 -0700 | |
---|---|---|
committer | 2023-06-03 00:14:27 -0700 | |
commit | 59d7c47e3feb18e649066cc7973ba9ec1e8aca2e (patch) | |
tree | 81c7064725187a67f84cda880382d59e681f6506 /bench/snippets | |
parent | 21bc3a9c391ddebf2afad3e420e782a306f62a11 (diff) | |
download | bun-59d7c47e3feb18e649066cc7973ba9ec1e8aca2e.tar.gz bun-59d7c47e3feb18e649066cc7973ba9ec1e8aca2e.tar.zst bun-59d7c47e3feb18e649066cc7973ba9ec1e8aca2e.zip |
Fix crash with path parse in win32 (#3187)bun-v0.6.7
* Update CommonJSModuleRecord.cpp
* smaller
* [node:path] Fix crash, mark TODO
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'bench/snippets')
-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(); // }); |