Re:Mutexes are faster than Spinlocks
by sanxiyn on Saturday January 04, 2020 @01:20PM
(#21956414)
Note that fair locking is still expensive. parking_lot achieves both speed and fairness by starting with unfair locking and falling back to fair locking.
The high waiting variance is because the benchmark randomly decides which locks to take, meaning that the amount of contention is variable.