ismailfer / concurr-cas-atomic-perf-tests

Runs a performance test on concurrency of compare and swap operation; synchronized, locks, and atomic operation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compare and Swap Operation (CAS) - Performance Tests

When doing low-latency development; we have to approach it as a science; that means:

  • Have a theory
  • Run experiments
  • Reach a conclusion
  • Write a law

Sometimes that seems to work better; does not really work better in real life.

What are we testing?

Runs a performance test on concurrency testing various implementations; like:

  • Synchronized
  • EmulatedCAS using Synchronized
  • Reentrant Lock
  • AtomicInteger

Test Results

My Test Results (best first):

  • AtomicInteger
  • ReentrantLock
  • Synchronized
  • AtomicInteger (compareAndSet)

About

Runs a performance test on concurrency of compare and swap operation; synchronized, locks, and atomic operation


Languages

Language:Java 100.0%