[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
5

Configure Feed

Select the types of activity you want to include in your feed.

deno fmt

Nate Moore (May 31, 2026, 11:28 PM -0500) 976fb9f7 baa61932

+12 -9
+3 -3
bench/fixtures/render-minimal/mod.ts
··· 3 3 4 4 let term = await createTerm({ width: 80, height: 24 }); 5 5 term.render([ 6 - open("root", { layout: { width: grow(), height: grow(), direction: "ttb" } }), 7 - text("Hello, World!"), 8 - close(), 6 + open("root", { layout: { width: grow(), height: grow(), direction: "ttb" } }), 7 + text("Hello, World!"), 8 + close(), 9 9 ]);
+6 -3
bench/fixtures/utils.ts
··· 2 2 import { spawnSync } from "node:child_process"; 3 3 4 4 export const fixture = (name: string) => { 5 - return new URL(`./${name}/mod.ts`, import.meta.url); 6 - } 5 + return new URL(`./${name}/mod.ts`, import.meta.url); 6 + }; 7 7 8 8 export const spawnFixture = (name: string) => 9 - spawnSync(process.execPath, [...process.execArgv, fileURLToPath(fixture(name))], { stdio: "ignore" }); 9 + spawnSync(process.execPath, [ 10 + ...process.execArgv, 11 + fileURLToPath(fixture(name)), 12 + ], { stdio: "ignore" });
+3 -3
bench/startup.bench.ts
··· 1 1 import { Bench } from "tinybench"; 2 2 import { withCodSpeed } from "@codspeed/tinybench-plugin"; 3 - import { spawnFixture } from './fixtures/utils.ts'; 3 + import { spawnFixture } from "./fixtures/utils.ts"; 4 4 5 5 let bench = withCodSpeed(new Bench({ name: "startup" })); 6 6 7 7 bench 8 - .add("createTerm", () => spawnFixture('create-term')) 9 - .add("time to first render", () => spawnFixture('render-minimal')); 8 + .add("createTerm", () => spawnFixture("create-term")) 9 + .add("time to first render", () => spawnFixture("render-minimal")); 10 10 11 11 await bench.run(); 12 12 console.table(bench.table());