Add a few more WTF locking benchmarks
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 May 2016 23:01:25 +0000 (23:01 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 May 2016 23:01:25 +0000 (23:01 +0000)
commit593ed31bf85a23bd202cc74cd4ac26a85b106b20
tree92b4b6a510574794427edb27fa90589d29f6522c
parent71e9c302441b850e3724107356567c4eaea611d2
Add a few more WTF locking benchmarks
https://bugs.webkit.org/show_bug.cgi?id=157365

Rubber stamped by Benjamin Poulain.

Factors out our toy locks into ToyLocks.h and adds a new test (LockFairnessTest) that measures
the fairness of locks.

The result: WTF::Lock is pretty fair enough.

* benchmarks/LockFairnessTest.cpp: Added.
(main):
* benchmarks/LockSpeedTest.cpp:
(main):
* benchmarks/ToyLocks.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/benchmarks/LockFairnessTest.cpp [new file with mode: 0644]
Source/WTF/benchmarks/LockSpeedTest.cpp
Source/WTF/benchmarks/ToyLocks.h [new file with mode: 0644]