diff options
author | Will Newton <will.newton@linaro.org> | 2013-09-11 15:47:12 +0100 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2014-11-05 14:13:00 +0000 |
commit | b01ee67cb5860d70e5a88af3c25b44d1ecaf0579 (patch) | |
tree | d321a77c0c5f62eb965785a608622d6149edf9fb /nptl/tst-cancel24.cc | |
parent | be9d4ccc7fe62751db1a5fdcb31958561dbbda9a (diff) | |
download | glibc-b01ee67cb5860d70e5a88af3c25b44d1ecaf0579.tar.gz glibc-b01ee67cb5860d70e5a88af3c25b44d1ecaf0579.tar.xz glibc-b01ee67cb5860d70e5a88af3c25b44d1ecaf0579.zip |
benchtests: Add malloc microbenchmark
Add a microbenchmark for measuring malloc and free performance with varying numbers of threads. The benchmark allocates and frees buffers of random sizes in a random order and measures the overall execution time and RSS. Variants of the benchmark are run with 1, 8, 16 and 32 threads. The random block sizes used follow an inverse square distribution which is intended to mimic the behaviour of real applications which tend to allocate many more small blocks than large ones. ChangeLog: 2014-11-05 Will Newton <will.newton@linaro.org> * benchtests/Makefile: (bench-malloc): Add malloc thread scalability benchmark. * benchtests/bench-malloc-threads.c: New file.
Diffstat (limited to 'nptl/tst-cancel24.cc')
0 files changed, 0 insertions, 0 deletions