perf bench: Allow passing an iteration count to "bench mem mem{cpy,set}"
authorJan Beulich <JBeulich@suse.com>
Wed, 18 Jan 2012 13:29:59 +0000 (13:29 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 24 Jan 2012 22:26:10 +0000 (20:26 -0200)
commite3e877e79b7c6a322f9f628e87052c13581238cc
tree0f68ae300a31a0124552ce6eb6a511aea19d10b5
parentbe3de80dc2e671d9ee15e69fe9cd84d2b71e2225
perf bench: Allow passing an iteration count to "bench mem mem{cpy,set}"

"perf stat ... perf bench mem mem..." is pretty meaningless when using
small block sizes (as the overhead of the invocation of each test run
basically hides the actual test result in the noise). Repeating the
actually interesting function's invocation a number of times allows the
results to become meaningful.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/4F16D767020000780006D738@nat28.tlf.novell.com
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bench/mem-memcpy.c
tools/perf/bench/mem-memset.c