From 59d7c47e3feb18e649066cc7973ba9ec1e8aca2e Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 3 Jun 2023 00:14:27 -0700 Subject: Fix crash with path parse in win32 (#3187) * Update CommonJSModuleRecord.cpp * smaller * [node:path] Fix crash, mark TODO --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- bench/snippets/crypto-hasher.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench/snippets') 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(); // }); -- cgit v1.2.3