Skip to content

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

Notifications You must be signed in to change notification settings

ismailfer/concurr-cas-atomic-perf-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages