Skip to content

bench: read streams from disk - #94

Merged
mdsteele merged 1 commit into
mdsteele:masterfrom
francisdb:bench/read-disk
Sep 14, 2026
Merged

mdsteele merged 1 commit into
mdsteele:masterfrom
francisdb:bench/read-disk

Conversation

@francisdb

@francisdb francisdb commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The read benches only covered memory, which hides the per-call cost of an unbuffered File, the type cfb::open hands out. Reading the file with 10000 empty streams takes 46 ms from disk against 7 ms from memory on master, and that gap is invisible today.

This adds a read_streams_disk group over the same cases as the write one, with a 1 second warm-up and a 2 second measurement window so it adds about 25 seconds to a full run.

The read benches only covered memory, which hides the per-call cost of
an unbuffered File. Add a disk read group with a short measurement
window.
@francisdb francisdb changed the title bench: read streams from disk, and note the fresh buffer cost bench: read streams from disk Sep 10, 2026
@mdsteele
mdsteele merged commit a43f745 into mdsteele:master Sep 14, 2026
4 checks passed
@francisdb
francisdb deleted the bench/read-disk branch September 15, 2026 09:43
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