mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-28 09:04:40 +00:00
Add options to the Ghostty benchmark tool to test the OSC parser in isolation. ``` ghostty on benchmark-osc [?] via v0.15.2 via impure (ghostty-env) took 5s at 22:32:50 → ./zig-out/bin/ghostty-gen +osc --style=parser --p-valid=0.9 | head -c100000000 > osc.txt ghostty on benchmark-osc [?] via v0.15.2 via impure (ghostty-env) at 22:32:52 → poop './zig-out/bin/ghostty-bench +osc-parser --data=osc.txt' Benchmark 1 (12 runs): ./zig-out/bin/ghostty-bench +osc-parser --data=osc.txt measurement mean ± σ min … max outliers wall_time 421ms ± 4.15ms 415ms … 430ms 0 ( 0%) peak_rss 5.89MB ± 74.1KB 5.73MB … 6.03MB 4 (33%) cpu_cycles 1.54G ± 5.82M 1.54G … 1.56G 2 (17%) instructions 4.12G ± 15.6 4.12G … 4.12G 1 ( 8%) cache_references 13.6M ± 219K 13.3M … 14.0M 0 ( 0%) cache_misses 72.7K ± 16.5K 59.2K … 121K 1 ( 8%) branch_misses 3.29M ± 42.1K 3.23M … 3.36M 0 ( 0%) ```