Mitchell Hashimoto
72747a28af
OSC parser microbenchmarking (#9867)
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%)
```
2025-12-16 07:27:16 -08:00
..
2025-12-15 11:54:36 -08:00
2025-12-10 22:31:27 -06:00
2025-12-15 11:54:36 -08:00
2025-12-15 11:54:36 -08:00
2025-12-15 11:00:53 -08:00
2025-10-03 07:10:43 -07:00
2025-11-27 13:37:53 -08:00
2025-11-27 13:37:53 -08:00
2025-11-27 13:37:53 -08:00
2025-12-13 13:45:45 -08:00
2025-11-27 13:37:53 -08:00
2025-11-27 13:37:53 -08:00
2025-12-16 07:27:16 -08:00
2025-12-15 12:11:04 -08:00
2025-12-16 06:38:56 -08:00
2025-11-27 13:37:53 -08:00
2025-10-03 18:52:26 +02:00
2025-12-10 22:31:27 -06:00
2025-12-14 14:36:42 -08:00
2025-10-03 07:10:43 -07:00
2025-12-14 14:36:42 -08:00
2025-11-23 22:39:21 -05:00
2025-11-27 13:37:53 -08:00
2025-11-27 13:37:53 -08:00
2025-11-27 13:37:53 -08:00
2025-07-09 15:06:24 -07:00
2025-10-03 07:10:43 -07:00
2025-10-12 13:48:06 -07:00
2025-11-17 12:13:56 -07:00
2025-06-25 16:27:23 -04:00
2025-12-15 11:54:36 -08:00
2025-10-03 07:10:43 -07:00
2025-10-04 20:19:39 -07:00
2025-11-24 19:55:27 -08:00
2025-11-27 13:37:53 -08:00
2025-10-03 13:32:15 -07:00
2025-11-17 12:13:56 -07:00
2025-11-27 13:37:53 -08:00
2025-12-15 11:54:36 -08:00
2024-08-16 14:35:10 -07:00
2025-07-09 15:06:24 -07:00
2022-08-18 11:42:32 -07:00
2025-10-03 07:10:43 -07:00
2025-12-08 13:19:16 +08:00
2025-11-27 13:37:53 -08:00
2025-11-27 13:37:53 -08:00
2025-12-15 11:54:36 -08:00
2025-11-26 08:50:04 -08:00