diff options
author | Will Newton <will.newton@linaro.org> | 2013-07-18 13:23:07 +0100 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2013-07-18 13:23:07 +0100 |
commit | d23072343f33318636b068b2542ef1b881b7f785 (patch) | |
tree | 76025e2c2e5396b03316e9aef509ae64a1a5cb28 /benchmarks | |
parent | 61259c5009cdf3a65911a74c3ebd217410359569 (diff) |
benchmarks/mallocbench.c: Output number of threads used.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/mallocbench.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmarks/mallocbench.c b/benchmarks/mallocbench.c index dae3ccb..0868c46 100644 --- a/benchmarks/mallocbench.c +++ b/benchmarks/mallocbench.c @@ -384,8 +384,9 @@ int main(int argc, char **argv) assert(err == 0); /* Dump both machine and human readable versions */ - printf("%s:%s:%u:%u:%u:%u:%s:%u:%.6f: took %.6f s for %u malloc/free benchmark loops of %u:%u bytes. ~%.3f us per loop\n", - variant + 4, test_name, blk_min, blk_max, loops, (int)clear, run_id, + printf("%s:%s:%u:%u:%u:%u:%u:%s:%u:%.6f: took %.6f s for %u malloc/free benchmark loops of %u:%u bytes. ~%.3f us per loop\n", + variant + 4, test_name, blk_min, blk_max, loops, threads, + (int)clear, run_id, usage.ru_maxrss, elapsed, elapsed, loops, blk_min, blk_max, (double)(elapsed / loops) * 1e6); |