perf bench: Improve sched-pipe.c with more comfortable output
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Tue, 10 Nov 2009 15:04:01 +0000 (00:04 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Nov 2009 18:56:45 +0000 (19:56 +0100)
commitff676b193a401b23c84a79a7ec06559f3eaae917
tree7b66a2bbc2659c7aab6b90ca16e9b9ecbb461253
parent79e295d4bd0f524257299e7c4e42f643f21abcc2
perf bench: Improve sched-pipe.c with more comfortable output

This patch improves sched-pipe.c with more comfortable output.

Change points are comment style description and
formatting numerical values and its units.

Example:

 | % ./perf bench sched pipe
 | # Running sched/pipe benchmark...
 | # Extecuted 1000000 pipe operations between two tasks
 |
 |      Total time:5.822 [sec]
 |
 |        5.822553 usecs/op
 |          171745 ops/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-3-git-send-email-mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/bench/sched-pipe.c