Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init bench #46

Merged
merged 7 commits into from
Nov 9, 2022
Merged

Init bench #46

merged 7 commits into from
Nov 9, 2022

Conversation

yoshuawuyts
Copy link
Owner

This initializes the benchmarks, starting with stream::Merge. Closes #39. cc/ @eholk

Initially impl Merge for Vec turned out to be so slow, the benchmark wouldn't even complete. We had to eliminate the fairness to make it work. This is what it's like now without fairness, but with allocations for the indexes:

merge-10-Criterion-rs

the method applied here was so slow that merging > 3 streams would grind the system to a halt
@yoshuawuyts
Copy link
Owner Author

Removed the intermediate index allocations, still no fairness, but seeing a 75% performance improvement:

merge-10-Criterion-rs (1)

@yoshuawuyts yoshuawuyts marked this pull request as ready for review November 9, 2022 17:43
@yoshuawuyts yoshuawuyts merged commit 3a45763 into main Nov 9, 2022
@delete-merged-branch delete-merged-branch bot deleted the init-bench branch November 9, 2022 17:44
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.

Author baseline benchmark
1 participant