about summary refs log tree commit diff
path: root/login
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 /login
parent05c3495296bc38c3c46117c45ee6e663581e3370 (diff)
downloadglibc-0997c3d0c87433ac8c78043aaa9b6b7e91df2882.tar.gz
glibc-0997c3d0c87433ac8c78043aaa9b6b7e91df2882.tar.xz
glibc-0997c3d0c87433ac8c78043aaa9b6b7e91df2882.zip
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 'login')
0 files changed, 0 insertions, 0 deletions