aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/bench
diff options
context:
space:
mode:
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>2009-11-10 10:04:02 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-10 13:56:46 -0500
commitc5659b74f052150791750234f92dcfb29d27efa5 (patch)
tree3bd07383a7dcb9f06d9200a91f095e981e17f327 /tools/perf/bench
parentff676b193a401b23c84a79a7ec06559f3eaae917 (diff)
perf bench: Improve sched-message.c with more comfortable output
This patch improves sched-message.c with more comfortable output. Change points are comment style description and formatting numerical values and its units. Example: | % perf bench sched messaging | # Running sched/messaging benchmark... | # 20 sender and receiver processes per group | # 10 groups == 400 processes run | | Total time: 1.490 [sec] Signed-off-by: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1257865442-20252-4-git-send-email-mitake@dcl.info.waseda.ac.jp> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'tools/perf/bench')
-rw-r--r--tools/perf/bench/sched-messaging.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/bench/sched-messaging.c b/tools/perf/bench/sched-messaging.c
index 2cc5edcca3d6..605a2a959aa8 100644
--- a/tools/perf/bench/sched-messaging.c
+++ b/tools/perf/bench/sched-messaging.c
@@ -314,12 +314,12 @@ int bench_sched_messaging(int argc, const char **argv,
314 314
315 switch (bench_format) { 315 switch (bench_format) {
316 case BENCH_FORMAT_DEFAULT: 316 case BENCH_FORMAT_DEFAULT:
317 printf("(%d sender and receiver %s per group)\n", 317 printf("# %d sender and receiver %s per group\n",
318 num_fds, thread_mode ? "threads" : "processes"); 318 num_fds, thread_mode ? "threads" : "processes");
319 printf("(%d groups == %d %s run)\n\n", 319 printf("# %d groups == %d %s run\n\n",
320 num_groups, num_groups * 2 * num_fds, 320 num_groups, num_groups * 2 * num_fds,
321 thread_mode ? "threads" : "processes"); 321 thread_mode ? "threads" : "processes");
322 printf("\tTotal time:%lu.%03lu sec\n", 322 printf(" %14s: %lu.%03lu [sec]\n", "Total time",
323 diff.tv_sec, diff.tv_usec/1000); 323 diff.tv_sec, diff.tv_usec/1000);
324 break; 324 break;
325 case BENCH_FORMAT_SIMPLE: 325 case BENCH_FORMAT_SIMPLE: