LELEKA_SPECULATION_LOG=1 now also prints, per request and with or without --speculate, where the decode time went:
passes by number of tokens (count and mean), sampling, output lines, drafting, cache cuts and the rest.
Measured with it (ab_speculation, 2 pairs, quiet machine, outputs identical in all 16 runs; paired speed-ups 1.55,
1.12, 1.01, 0.97): everything outside the model passes is under 0.5% of decode time (sampling 40-64 ms per request,
the rest a few ms), and single steps cost the same in both arms (81-93 ms). Verifying passes in the worker cost
1.57, 2.04, 2.50, 2.99, 3.66, 4.04, 4.32, 4.80 single steps for 2-9 tokens, 3% above batch_cost's random-id passes at
2-3 tokens and 8-22% above from 4 tokens on, which accounts for the rewrite's 1.55 against the replay's 1.59.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>