Skip to content

Replace synthetic fixture SHAs with deterministic SHA-1 hashing - #45

Merged
morgaesis merged 1 commit into
mainfrom
feat/realistic-fixture-shas
Jul 11, 2026
Merged

morgaesis merged 1 commit into
mainfrom
feat/realistic-fixture-shas

Conversation

@morgaesis

Copy link
Copy Markdown
Contributor

Fixture SHAs are now generated using deterministic SHA-1 hashing instead of predictable repeating patterns. This improves benchmark fidelity and avoids confusion if fixture SHAs are logged or compared against real data. All 64 benchmark fixtures pass (cargo test: 88 passed, bun run bench: 64/64 passed).

The makeHeadSha function previously generated SHAs from predictable repeating patterns (0101010..., 0202020...). Update to use Node crypto.createHash with SHA-1 to produce realistic-looking but deterministic SHAs based on fixture seed values.

All 64 benchmark fixture tests pass; both cargo test (88 passed) and bun run bench (64/64 passed) succeed.
@morgaesis
morgaesis merged commit e448377 into main Jul 11, 2026
6 checks passed
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.

1 participant