HDR-histogram tail-latency bench suite + BENCH.md#77
Merged
joaquinbejar merged 1 commit intomainfrom Apr 25, 2026
Merged
Conversation
Six new harness=false bench binaries under benches/order_book/*_hdr.rs: add_only, cancel_only, aggressive_walk, mixed_70_20_10, thin_book_sweep, mass_cancel_burst. Each records per-sample latency into hdrhistogram::Histogram and emits p50 / p99 / p99.9 / p99.99 + min / max + sample count to stdout. Coexists with the existing Criterion benches. Adds hdrhistogram ^7 as a dev-dependency, a make bench-hdr target that runs all six in series, and BENCH.md at repo root with methodology (warmup, closed-loop disclosure, run conditions, sample counts) plus actual headline numbers from a single Apple M4 Max run. Closes #56.
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Six new
*_hdrbench binaries underbenches/order_book/recordingper-sample latency into
hdrhistogram::Histogramand emittingp50/p99/p99.9/p99.99+ min / max. Coexists with the existingCriterion benches.
make bench-hdrruns all six.BENCH.mdat therepo root carries methodology, run conditions, and an honest headline
table from a single M4 Max run with closed-loop service-time
disclosure.
Closes
Closes #56.