(s: string, w: number, align: "left" | "right" = "left")
| 222 | // ── Terminal Table ────────────────────────────────────────────────── |
| 223 | |
| 224 | function pad(s: string, w: number, align: "left" | "right" = "left"): string { |
| 225 | if (s.length >= w) return s.slice(0, w); |
| 226 | const gap = w - s.length; |
| 227 | return align === "right" ? " ".repeat(gap) + s : s + " ".repeat(gap); |
| 228 | } |
| 229 | |
| 230 | export function printTerminalTable(results: readonly BenchResult[]): void { |
| 231 | const groups = aggregateResultsByScenario(results); |
no outgoing calls
no test coverage detected