about summary refs log tree commit diff
path: root/benchtests/Makefile
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-09-30 21:13:26 -0700
committerNoah Goldstein <goldstein.w.n@gmail.com>2022-10-03 14:13:49 -0700
commit10c779f44ab3e9525f2d2a3c9a0aa9dedea5f1ec (patch)
treeef656c38b80f9094fec60ea133b53657bd7753f4 /benchtests/Makefile
parent114e299ca66353fa7be1ee45bb4e1307d3de1fa2 (diff)
downloadglibc-10c779f44ab3e9525f2d2a3c9a0aa9dedea5f1ec.tar.gz
glibc-10c779f44ab3e9525f2d2a3c9a0aa9dedea5f1ec.tar.xz
glibc-10c779f44ab3e9525f2d2a3c9a0aa9dedea5f1ec.zip
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.
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r--benchtests/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index d99771be74..fc1cda7fc3 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -103,11 +103,19 @@ endif
 
 bench-pthread := \
   pthread-locks \
-  pthread-mutex-locks \
+  pthread-mutex-lock \
+  pthread-mutex-trylock \
+  pthread-spin-lock \
+  pthread-spin-trylock \
   pthread_once \
   thread_create \
 # bench-pthread
 
+LDLIBS-bench-pthread-mutex-lock += -lm
+LDLIBS-bench-pthread-mutex-trylock += -lm
+LDLIBS-bench-pthread-spin-lock += -lm
+LDLIBS-bench-pthread-spin-trylock += -lm
+
 bench-string := \
   ffs \
   ffsll \