TECHNOLOGY LAB · SYSTEMS ENGINEERING

Baz / Performance

Measurements with context

A basic same-host loopback comparison with Zap, measured on 6 September 2026. These results describe the initial Baz prototype c152e59, before package extraction.

Baz prototype and Zap, 32 connections Median requests per second: Mac Baz 254,261 and Zap 245,054; Linux Baz 363,594 and Zap 205,310. The table includes the one-connection results as well. 0 100k 200k 300k 400k macOS M3 Max 254,261 245,054 Linux Core Ultra 7 363,594 205,310
Median requests per second at 32 connections / 2 client threads. Bar lengths share a zero baseline. Compare implementations within each host.
HostConn. / threadsBaz req/sZap req/sBaz / Zap
macOS · M3 Max32 / 2254,261245,0541.038×
Linux · Core Ultra 732 / 2363,594205,3101.771×
macOS · M3 Max1 / 133,19952,8090.629×
Linux · Core Ultra 71 / 174,38672,5751.025×

macOS: Apple M3 Max. Linux: Intel Core Ultra 7 258V. Three paired trials per profile; one-second warmup and three-second measurements. ReleaseSafe with Zig assertions enabled, one server thread, 128 connection slots, a 13-byte response, keep-alive, no pipelining, and no CPU affinity.

The Mac’s one-connection result is lower than Zap’s. These short trials establish neither production capacity nor latency guarantees, and do not isolate Baz’s API overhead. The hosts used different wrk revisions; Zap retained its inherited C optimization and sanitizer settings.

All 24 measured trials completed with zero wrk-reported socket or non-2xx/3xx errors. Exact responses were checked before and after timing, rather than for every timed response. The report preserves ranges, versions, commands, raw results, and cleanup evidence.

Read the experiment and raw evidence