Skip to content
This repository was archived by the owner on Apr 4, 2021. It is now read-only.

Performance

Valentin Kovalenko edited this page Dec 28, 2018 · 31 revisions

You can run the performance tests yourself, see Contributor Guide for details.

Test environment

JDK OS Number of processors
OpenJDK 11+28 (build by Oracle from https://jdk.java.net/11/) macOS 10.13.6 x86_64 4
Test, MM ops/s \ Threads 1 4 32
synchronizedIncrement -XX:-UseBiasedLocking 55 18 18
synchronizedIncrement 242 20 20
reentrantRWLockIncrement 57 35 35
stampedLockIncrement 60 42 45
atomicIncrement 144 51 52
Test (1), MM ops/s \ Threads 1 4 32
smallLo 110 43 44
bigLo 110 43 44
smallLoSleep 0.86 0.85 0.85
bigLoSleep 49 31 31

(1) smallLo = 10_000, bigLo = 1000_000; sleep while generating a new hi value is about 9-10ms and emulates a time interval required for generating it.

Clone this wiki locally