test(channel): add ecosystem performance baselines - #219
Merged
Conversation
tisonkun
commented
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #208.
Design Notes
This PR was stacked on #217; GitHub retargeted it to
mainafter #217 merged.The benchmark crate root contains only
Cargo.toml. Asyncband self-benchmarks live underbenchmarks/asyncband/<primitive>/<operation>.rs, while cross-project comparisons live underbenchmarks/ecosystem/<primitive>/<operation>.rs. Shared setup stays in the nearestsupport.rs, and the existing self-benchmark scenarios remain unchanged.Tokio is the closest MPSC peer. async-channel and flume expose MPMC receivers, so the suite measures them with one receiver and records that topology difference. The compared versions are Tokio 1.53.1, async-channel 2.5.0, and flume 0.12.0;
Cargo.lockrecords the exact resolution.Bounded channels use capacity 64. Concurrent cases move 16,384
usizemessages from 1, 2, 4, or 8 producer threads to one consumer. Channel construction and worker lifecycle stay outside the timed section, and async paths are driven without installing a peer-specific runtime. Run the full workflow withcargo x bench, or focus this target withcargo bench -p benchmarks --bench ecosystem.These comparisons are regression signals rather than a fastest-wins contest. A sustained result above 3x the closest semantic peer warrants investigation; an order-of-magnitude gap should block the implementation unless a documented semantic or resource tradeoff explains it.