Benchtests: Add bench for pthread_spin_{try}lock and mutex_trylock
authorNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 1 Oct 2022 04:13:26 +0000 (21:13 -0700)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 3 Oct 2022 21:13:49 +0000 (14:13 -0700)
commit10c779f44ab3e9525f2d2a3c9a0aa9dedea5f1ec
treeef656c38b80f9094fec60ea133b53657bd7753f4
parent114e299ca66353fa7be1ee45bb4e1307d3de1fa2
Benchtests: Add bench for pthread_spin_{try}lock and mutex_trylock

Reuses infrastructure from previous pthread_mutex_lock benchmarks to
test other performance sensitive functions.
benchtests/Makefile
benchtests/bench-pthread-lock-base.c [moved from benchtests/bench-pthread-mutex-locks.c with 93% similarity]
benchtests/bench-pthread-mutex-lock.c [new file with mode: 0644]
benchtests/bench-pthread-mutex-trylock.c [new file with mode: 0644]
benchtests/bench-pthread-spin-lock.c [new file with mode: 0644]
benchtests/bench-pthread-spin-trylock.c [new file with mode: 0644]