Using Boost.Lockfree queue is slower than using mutexes
Until now I was using std::queue in my project. I measured the average time which a specific operation on this queue requires. The times were measured on 2 machines: My local Ubuntu VM and a remote server. Using std::queue , the average was almost the same on both machines: ~750 microseconds. Then I "upgraded" the std::queue to boost::lockfree::spsc_queue , so I could get rid of the mutexes protecting the queue. On my local VM I could see a huge performance gain, the average is now on 200 microseconds. On the remote machine however, the average went up to 800 microseconds, which is slower than