mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
11 lines
231 B
JavaScript
11 lines
231 B
JavaScript
import { run, bench } from "../node_modules/mitata/src/cli.mjs";
|
|
|
|
const encoder = new TextEncoder();
|
|
|
|
const buffer = new Uint8Array(1024);
|
|
bench("encodeInto", () => {
|
|
encoder.encodeInto("Hello World!", buffer);
|
|
});
|
|
|
|
await run();
|