aboutsummaryrefslogtreecommitdiff
path: root/benchtests/Makefile
diff options
context:
space:
mode:
authorWilco Dijkstra <wilco.dijkstra@arm.com>2023-11-28 13:33:56 +0000
committerWilco Dijkstra <wilco.dijkstra@arm.com>2024-04-18 14:30:21 +0100
commit0997c3d0c87433ac8c78043aaa9b6b7e91df2882 (patch)
tree323435b4d17f9f3b899a4d17e325d9f4bbc5c81e /benchtests/Makefile
parent05c3495296bc38c3c46117c45ee6e663581e3370 (diff)
downloadglibc-0997c3d0c87433ac8c78043aaa9b6b7e91df2882.zip
glibc-0997c3d0c87433ac8c78043aaa9b6b7e91df2882.tar.gz
glibc-0997c3d0c87433ac8c78043aaa9b6b7e91df2882.tar.bz2
benchtests: Add random() benchmark
Add a simple benchmark to measure the overhead of internal libc locks in the random() implementation on both single- and multi-threaded cases. This relies on the implementation of random using internal locks to access shared global data, and that the runtime uses multi-threaded locking once a thread has been created (even after it finishes). Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r--benchtests/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 05b8751..7e73b85 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -257,6 +257,7 @@ hash-benchset := \
stdlib-benchset := \
arc4random \
+ random-lock \
strtod \
# stdlib-benchset