Files
java-interview-lab/hashmap-vs-concurrenthashmap/output/08-atomic-updates-exact.txt
T

8 lines
367 B
Plaintext

8 threads x 20000 increments of one key: the atomic forms are exact on every run
================================================================================
expected: 160000
ConcurrentHashMap.merge 160000
ConcurrentHashMap.compute 160000
HashMap + synchronized(map) around merge 160000