Files
bun.sh/bench/json-stringify/bun.js
Jarred Sumner 3c1ad4b568 prettier
2022-12-15 16:28:47 -08:00

13 lines
269 B
JavaScript

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();