diff options
| author | Ingo Molnar <[email protected]> | 2013-09-23 10:17:35 +0200 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-10-11 12:17:25 -0300 |
| commit | a9faa0cab619fad380c2669825aa84212943d528 (patch) | |
| tree | 2e38db399c27a0d972b1e61ce5393cb61462cd0a /tools/perf/scripts/python | |
| parent | b52bc23414124b0d37fd9933b5a894d9b4a9720d (diff) | |
perf bench sched: Add --threaded option
Allow the measurement of thread versus process context switch
performance.
The default stays at 'process' based measurement, like lmbench's lat_ctx
benchmark.
Sample output:
comet:~/tip/tools/perf> taskset 1 ./perf bench sched pipe
# Running sched/pipe benchmark...
# Executed 1000000 pipe operations between two processes
Total time: 4.138 [sec]
4.138729 usecs/op
241620 ops/sec
comet:~/tip/tools/perf> taskset 1 ./perf bench sched pipe --threaded
# Running sched/pipe benchmark...
# Executed 1000000 pipe operations between two threads
Total time: 3.667 [sec]
3.667667 usecs/op
272652 ops/sec
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions