diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2023-11-28 13:33:56 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2024-04-18 14:30:21 +0100 |
commit | 0997c3d0c87433ac8c78043aaa9b6b7e91df2882 (patch) | |
tree | 323435b4d17f9f3b899a4d17e325d9f4bbc5c81e /sysdeps/unix | |
parent | 05c3495296bc38c3c46117c45ee6e663581e3370 (diff) | |
download | glibc-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 'sysdeps/unix')
0 files changed, 0 insertions, 0 deletions