From 440eba7c9bec96849adcf7018ea0371973550bfa Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 3 Aug 2022 19:13:08 -0700 Subject: [misc] Fix `make headers` --- bench/json-stringify/bun.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bench/json-stringify/bun.js (limited to 'bench/json-stringify/bun.js') diff --git a/bench/json-stringify/bun.js b/bench/json-stringify/bun.js new file mode 100644 index 000000000..dd0f755aa --- /dev/null +++ b/bench/json-stringify/bun.js @@ -0,0 +1,12 @@ +import { bench, run } from "mitata"; + +bench("JSON.stringify({hello: 'world'})", () => + JSON.stringify({ hello: "world" }) +); + +const otherUint8Array = new Uint8Array(1024); +bench("Uint8Array.from(otherUint8Array)", () => + Uint8Array.from(otherUint8Array) +); + +run(); -- cgit v1.2.3