diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-09-30 21:13:26 -0700 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-10-03 14:13:49 -0700 |
commit | 10c779f44ab3e9525f2d2a3c9a0aa9dedea5f1ec (patch) | |
tree | ef656c38b80f9094fec60ea133b53657bd7753f4 /benchtests/Makefile | |
parent | 114e299ca66353fa7be1ee45bb4e1307d3de1fa2 (diff) | |
download | glibc-10c779f44ab3e9525f2d2a3c9a0aa9dedea5f1ec.zip glibc-10c779f44ab3e9525f2d2a3c9a0aa9dedea5f1ec.tar.gz glibc-10c779f44ab3e9525f2d2a3c9a0aa9dedea5f1ec.tar.bz2 |
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/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile index d99771b..fc1cda7 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 \ |