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

two-threads benchmark update #42

Merged
merged 3 commits into from
Apr 22, 2021
Merged

Conversation

mgeier
Copy link
Owner

@mgeier mgeier commented Apr 20, 2021

Instead of using a very large fixed (but kinda arbitrary) buffer size for the benchmarks, I split them in two different scenarios:

  • a large buffer that's always large enough to hold all used items, leading to basically no contention between the two threads
  • a very small buffer that leads to huge contention between the threads

I also used iter_custom() and Barrier to make the results more reproducible.

@mgeier mgeier force-pushed the benchmark-update branch from 4795dd4 to 4766e27 Compare April 20, 2021 19:17
@mgeier mgeier merged commit 4766e27 into mgeier:main Apr 22, 2021
@mgeier mgeier deleted the benchmark-update branch April 22, 2021 07: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.

1 participant