Skip to content

fix(bench): avoid testing allocations#905

Merged
Berrysoft merged 4 commits into
compio-rs:masterfrom
Berrysoft:fix/bench-avoid-alloc
May 4, 2026
Merged

fix(bench): avoid testing allocations#905
Berrysoft merged 4 commits into
compio-rs:masterfrom
Berrysoft:fix/bench-avoid-alloc

Conversation

@Berrysoft
Copy link
Copy Markdown
Member

I removed all possible allocations out of the benchmark region, and enlarged the buffer.

@Berrysoft Berrysoft requested review from George-Miao and Xuanwo May 3, 2026 14:49
@Berrysoft Berrysoft self-assigned this May 3, 2026
@github-actions github-actions Bot added the bug Something isn't working label May 3, 2026
@Berrysoft Berrysoft requested a review from fantix May 4, 2026 12:58
Copy link
Copy Markdown
Collaborator

@fantix fantix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean fix in general 👍 only a question inline.

Also, now that the buffer size is larger, we may want to avoid repeated 512KB allocations during setup for hygiene purposes, but this is trivial and irrelevant to the benchmark itself.

Comment thread compio/benches/fs.rs
@Berrysoft Berrysoft merged commit a09ab04 into compio-rs:master May 4, 2026
71 checks passed
@Berrysoft Berrysoft deleted the fix/bench-avoid-alloc branch May 4, 2026 14:38
@github-actions github-actions Bot mentioned this pull request May 3, 2026
@github-actions github-actions Bot mentioned this pull request May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants