
8 Feb
2008
8 Feb
'08
10:22 p.m.
On Feb 8, 2008, at 5:14 PM, Peter Dimov wrote:
Howard Hinnant:
Here are results (dating around 3 years ago):
In order: 63 seconds. try/back off/without yield: 47 seconds. try/back off/with yield: 34 seconds.
With Alexander Terekhov's "swap-based mutex", I'm not seeing a significant difference between the versions with and without yield. The penalty likely comes from spin-waits in lock() (which is why they're evil).
Thanks Peter. That's good data. -Howard