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

Update the ThreadTransfer benchmark #210

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Update the ThreadTransfer benchmark #210

merged 1 commit into from
Dec 2, 2024

Conversation

chrisvest
Copy link
Owner

This moves the consumer/releaser thread to a dedicated infra thread, instead of being part of an asymmetric benchmark. The releaser thread remains a singleton while the claim benchmark threads can be scaled to measure contention on the Pool.claim() call.

Some blackholde CPU consumption has also been added, to place some realistic distance between the individual claim() calls. This is another vector for scaling contention up or down.

This moves the consumer/releaser thread to a dedicated infra thread, instead of being part of an asymmetric benchmark.
The releaser thread remains a singleton while the claim benchmark threads can be scaled to measure contention on the `Pool.claim()` call.

Some blackholde CPU consumption has also been added, to place some realistic distance between the individual `claim()` calls.
This is another vector for scaling contention up or down.
@chrisvest chrisvest merged commit 804cb56 into main Dec 2, 2024
12 of 13 checks passed
@chrisvest chrisvest deleted the update-bench branch December 2, 2024 02:30
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