diff options
author | DJ Delorie <dj@redhat.com> | 2020-10-07 17:04:12 -0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2020-10-21 11:03:52 -0400 |
commit | 4be44c3208b0498b108ce75e5d69e7c04d1cdf57 (patch) | |
tree | 30315ef950a06a76f5f4fb09baca0f160bf1d0ff /benchtests/Makefile | |
parent | 9cb2c923844ba1b77a7b9ade777e838242a4e201 (diff) | |
download | glibc-4be44c3208b0498b108ce75e5d69e7c04d1cdf57.tar.gz glibc-4be44c3208b0498b108ce75e5d69e7c04d1cdf57.tar.xz glibc-4be44c3208b0498b108ce75e5d69e7c04d1cdf57.zip |
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).
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r-- | benchtests/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile index 922e2a94b1..5cd211ee9a 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -31,7 +31,7 @@ ifneq (,$(filter yes,$(float128-fcts) $(float128-alias-fcts))) bench-math += expf128 powf128 sinf128 endif -bench-pthread := pthread_once thread_create +bench-pthread := pthread_once thread_create pthread-locks bench-string := ffs ffsll @@ -109,6 +109,7 @@ $(addprefix $(objpfx)bench-,$(bench-math)): $(libm) $(addprefix $(objpfx)bench-,$(math-benchset)): $(libm) $(addprefix $(objpfx)bench-,$(bench-pthread)): $(shared-thread-library) $(addprefix $(objpfx)bench-,$(bench-malloc)): $(shared-thread-library) +$(addprefix $(objpfx)bench-,pthread-locks): $(libm) |