Lock Free Is Not Fast
You replaced a std::mutex-guarded queue with a CAS-loop queue. At 4 threads it is 1.3x faster than the mutex version. At 32 threads throughput is 40 percent below the mutex version, and perf shows about 6 CAS attempts per successful push. A colleague concludes the new queue must be broken. Which reading is correct?
Sign in to answer questions and track your progress
Sign In