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

starvation freedom - and use criterion for rbtree benchmarks #23

Merged
merged 23 commits into from
Jun 24, 2019

Conversation

mtak-
Copy link
Owner

@mtak- mtak- commented Jun 23, 2019

mem::forget in the rbtree insertion benchmarks would occasionally cause large spikes in the benchmarks due to the testing harness deciding to run the benchmark 900 times instead of 300. This created a lot pressure on the allocator, resulting in slowness unrelated to swym. criterion allows exclusion of the destructors from the benchmark timings, as well as the batch running destructors.

swym now prevents transactions from starving. This means that all transactions will eventually commit (unless of course there's an infinite loop, deadlock or other user bug).

One less footgun when using swym!

@mtak- mtak- merged commit ee7ec41 into master Jun 24, 2019
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