Mitchell Hashimoto a74e352726 bench: add --mode=gen-osc to generate synthetic OSC sequences
This commit adds a few new mode flags to the `bench-stream` program
to generator synthetic OSC sequences. The new modes are `gen-osc`,
`gen-osc-valid`, and `gen-osc-invalid`. The `gen-osc` mode generates
equal parts valid and invalid OSC sequences, while the suffixed variants
are for generating only valid or invalid sequences, respectively.

This commit also fixes our build system to actually be able to build the
benchmarks. It turns out we were just rebuilding the main Ghostty binary
for `-Demit-bench`. And, our benchmarks didn't run under Zig 0.14, which
is now fixed.

An important new design I'm working towards in this commit is to split
out synthetic data generation to a dedicated package in
`src/bench/synth` although I'm tempted to move it to `src/synth` since
it may be useful outside of benchmarks.

The synth package is a work-in-progress, but it contains a hint of
what's to come. I ultimately want to able to generate all kinds of
synthetic data with a lot of knobs to control dimensionality (e.g. in
the case of OSC sequences: valid/invalid, length, operation types,
etc.).
2025-05-14 12:26:31 -07:00
..
2025-05-09 10:01:06 -07:00
2025-03-12 10:04:17 -07:00
2025-01-18 22:47:18 +09:00
2025-03-12 10:04:17 -07:00
2025-03-12 09:55:52 -07:00
2025-02-11 16:43:50 -08:00
2024-09-26 22:00:11 -07:00
2025-03-11 14:39:04 -07:00
2024-10-18 08:11:11 -07:00
2025-03-12 09:55:52 -07:00
2025-03-11 14:53:30 -07:00
2025-03-07 13:42:00 -08:00
2024-08-16 14:35:10 -07:00
2022-08-18 11:42:32 -07:00
2025-03-12 16:29:17 -07:00
2025-03-12 11:29:13 -07:00
2025-05-09 10:01:05 -07:00
2024-08-16 10:36:10 -07:00