New benchtest: pthread locks
commit4be44c3208b0498b108ce75e5d69e7c04d1cdf57
authorDJ Delorie <dj@redhat.com>
Wed, 7 Oct 2020 21:04:12 +0000 (7 17:04 -0400)
committerDJ Delorie <dj@redhat.com>
Wed, 21 Oct 2020 15:03:52 +0000 (21 11:03 -0400)
tree30315ef950a06a76f5f4fb09baca0f160bf1d0ff
parent9cb2c923844ba1b77a7b9ade777e838242a4e201
New benchtest: pthread locks

Performance benchmarks for various posix locks: mutex, rwlock,
spinlock, condvar, and semaphore.  Each test is performed with
an empty loop body or with a computationally "interesting" (i.e.
difficult to optimize away, and used just to allow lock code to
be "hidden" in the filler's CPU cycles).
benchtests/Makefile
benchtests/bench-pthread-locks.c [new file with mode: 0644]