[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay bomb.sh/docs/tty
Something went wrong. Try again.
TypeScript
123456789101112131415import { Bench } from "tinybench";import { spawnFixture, withCodSpeed } from "./fixtures/utils.ts";
let bench = withCodSpeed(new Bench({ name: "startup" }));
bench .add("createTerm", () => spawnFixture("create-term")) .add("createInput", () => spawnFixture("create-input")) .add("createTerm + createInput", () => spawnFixture("create-both")) .add("time to first render", () => spawnFixture("render-minimal")) .add("render + scan (both modules)", () => spawnFixture("render-and-input"));
await bench.run();console.table(bench.table());