build1 publisher
Adding a second thread collapses the hand-rolled CAS counter by 9x
A JMH sweep at 1, 2, 4, 6 and 8 threads on four cores puts a synchronized counter ahead of a hand-rolled compare-and-swap loop once every thread shares one instance, and the confidence intervals never overlap.
Publishers:dev.to
Reality
- Evidence42
- Adoption
- Insufficient
- Hype gap+15
- Incentives22
- Confidence48