Skip to content

Report the median of several benchmark runs - #27

Merged
venkat1701 merged 2 commits into
mainfrom
feat/bench-median-of-runs
Oct 4, 2026
Merged

venkat1701 merged 2 commits into
mainfrom
feat/bench-median-of-runs

Conversation

@venkat1701

Copy link
Copy Markdown
Collaborator

Closes #13

benchmarks/run.sh now runs each store RUNS times (default 3). Each pass alternates HStore and HyperGraphDB, so a slow stretch on the machine hits both rather than one. Every run is saved as <store>-<n>.json.

The report groups the files by store and shows each cell as the median with the slowest and fastest run in brackets, e.g. 14,233 ops/s (12,717 to 15,748). The ratio column is now the ratio of medians. "Results agree" only says yes when every run of both stores returned the same checksum.

While in there I replaced the em dash between the workload id and its description with a colon.

I checked the report against two existing runs per store. I didn't do a full three-run comparison, since the machine is loaded right now and the numbers would be misleading; that's better done on a quiet box before updating docs/benchmarks.md.

run.sh now runs each store RUNS times (default 3), alternating them, and
the report shows the median per workload with the range next to it.
Results only count as agreeing when every run of both stores matches.
@venkat1701
venkat1701 force-pushed the feat/bench-median-of-runs branch from b9a457a to f02c2b6 Compare October 4, 2026 08:27
@venkat1701
venkat1701 merged commit bda2c71 into main Oct 4, 2026
@venkat1701
venkat1701 deleted the feat/bench-median-of-runs branch October 6, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report the median of several benchmark runs

1 participant