6 perf-bench - General framework for benchmark suites
11 'perf bench' [<common options>] <subsystem> <suite> [<options>]
15 This 'perf bench' command is general framework for benchmark suites.
22 Current available format styles are,
25 Default style. This is mainly for human reading.
27 % perf bench sched pipe # with no style specify
28 (executing 1000000 pipe operations between two tasks)
35 This simple style is friendly for automated
36 processing by scripts.
38 % perf bench --format=simple sched pipe # specified simple
46 Scheduler and IPC mechanisms.
51 Suite for evaluating performance of scheduler and IPC mechanisms.
52 Based on hackbench by Rusty Russell.
58 Use pipe() instead of socketpair()
62 Be multi thread instead of multi process
66 Specify number of groups
70 Specify number of loops
72 Example of *messaging*
73 ^^^^^^^^^^^^^^^^^^^^^^
76 % perf bench sched messaging # run with default
77 options (20 sender and receiver processes per group)
78 (10 groups == 400 processes run)
82 % perf bench sched messaging -t -g 20 # be multi-thread,with 20 groups
83 (20 sender and receiver threads per group)
84 (20 groups == 800 threads run)
90 Suite for pipe() system call.
91 Based on pipe-test-1m.c by Ingo Molnar.
97 Specify number of loops.
102 ---------------------
103 % perf bench sched pipe
104 (executing 1000000 pipe operations between two tasks)
110 % perf bench sched pipe -l 1000 # loop 1000
111 (executing 1000 pipe operations between two tasks)
116 ---------------------