aboutsummaryrefslogtreecommitdiff
path: root/bench/json-stringify
diff options
context:
space:
mode:
Diffstat (limited to 'bench/json-stringify')
-rw-r--r--bench/json-stringify/bun.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/bench/json-stringify/bun.js b/bench/json-stringify/bun.js
index 8c9893794..22f29deb4 100644
--- a/bench/json-stringify/bun.js
+++ b/bench/json-stringify/bun.js
@@ -1,12 +1,8 @@
import { bench, run } from "mitata";
-bench("JSON.stringify({hello: 'world'})", () =>
- JSON.stringify({ hello: "world" }),
-);
+bench("JSON.stringify({hello: 'world'})", () => JSON.stringify({ hello: "world" }));
const otherUint8Array = new Uint8Array(1024);
-bench("Uint8Array.from(otherUint8Array)", () =>
- Uint8Array.from(otherUint8Array),
-);
+bench("Uint8Array.from(otherUint8Array)", () => Uint8Array.from(otherUint8Array));
run();