Skip to content

mbo/hash/measurements: README-table sizes from the data (single source of truth) - #249

Merged
helly25 merged 2 commits into
mainfrom
fix-readme-sizes-mirror
Jul 11, 2026
Merged

mbo/hash/measurements: README-table sizes from the data (single source of truth)#249
helly25 merged 2 commits into
mainfrom
fix-readme-sizes-mirror

Conversation

@helly25

@helly25 helly25 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Fixes the size-drift class of bug: #245 added 5/38/127/128 to the C++ kReadmeSizes but not the duplicate Python _README_SIZES, so the tables would have silently dropped four sizes.

Rather than re-sync two lists, this removes the duplication: _throughput_table reads its sizes from the data's own buckets (as _latency_table already did), and the Python _README_SIZES list is deleted. The C++ kReadmeSizes is now the sole source of truth - run_measurements renders the README tables from a FAST sweep (whose buckets are kReadmeSizes) and the chart from the FULL sweep, bundling both. Nothing to drift.

Verified: a fast run's data buckets == kReadmeSizes exactly (22 sizes), and the rendered table has all 22 rows read from the data.

helly25 added 2 commits July 11, 2026 14:36
…/127/128)

#245 completed the C++ kReadmeSizes (5, 38, 127/128) but not the Python
_README_SIZES mirror that filters the README tables, so the published tables
would silently omit those four sizes. Bring the mirror back in sync.
…source of truth)

Delete the Python _README_SIZES list. _throughput_table now reads its sizes from
the data's own buckets (like _latency_table already did), so there is no second
size list to drift from the C++ kReadmeSizes - which is the sole source of truth.
run_measurements runs a FAST sweep (buckets == kReadmeSizes) for the README
tables and the FULL sweep for the ns-vs-length chart, bundling both. This closes
the drift that let #245's C++ size additions (5/38/127/128) silently miss the
tables.
@helly25
helly25 requested a review from Fab-Cat July 11, 2026 13:52
@helly25
helly25 enabled auto-merge (squash) July 11, 2026 14:13
@helly25
helly25 merged commit 14ad38a into main Jul 11, 2026
39 checks passed
@helly25
helly25 deleted the fix-readme-sizes-mirror branch July 11, 2026 14:37
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.

2 participants