|
|
|
|
|
by gok
2363 days ago
|
|
Note that all of the locks tested here are unfair, which is why they all show very high waiting variance. Until recently many mutex implementations aimed for fairness, which made them much slower than spinlocks in microbenchmarks like this. |
|
The high waiting variance is because the benchmark randomly decides which locks to take, meaning that the amount of contention is variable.