diff options
Diffstat (limited to 'bench/json-stringify/bun.js')
-rw-r--r-- | bench/json-stringify/bun.js | 12 |
1 files changed, 12 insertions, 0 deletions
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(); |