The Cost of Contention

Martin Thompson first reported on the cost of contention using a simple benchmark that measures the time to increment a 64-bit counter 500 million times using various strategies. Results were reported hereĀ (section 3.1) and here (Managing Contention vs. Doing Real Work). I re-implemented this benchmark here. The results I observed (running on Java 9… Continue reading The Cost of Contention