mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
11 lines
210 B
JavaScript
11 lines
210 B
JavaScript
import { bench, run } from "../runner.mjs";
|
|
|
|
const encoder = new TextEncoder();
|
|
|
|
const buffer = new Uint8Array(1024);
|
|
bench("encodeInto", () => {
|
|
encoder.encodeInto("Hello World!", buffer);
|
|
});
|
|
|
|
await run();
|