mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
13 lines
267 B
JavaScript
13 lines
267 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();
|