6 perf-bench - General framework for benchmark suites
11 'perf bench' [<common options>] <subsystem> <suite> [<options>]
15 This 'perf bench' command is a general framework for benchmark suites.
21 Specify amount of times to repeat the run (default 10).
26 Current available format styles are:
29 Default style. This is mainly for human reading.
31 % perf bench sched pipe # with no style specified
32 (executing 1000000 pipe operations between two tasks)
39 This simple style is friendly for automated
40 processing by scripts.
42 % perf bench --format=simple sched pipe # specified simple
50 Scheduler and IPC mechanisms.
53 Memory access performance.
56 NUMA scheduling and MM benchmarks.
59 Futex stressing benchmarks.
62 Eventpoll (epoll) stressing benchmarks.
65 Benchmark internal perf functionality.
68 All benchmark subsystems.
73 Suite for evaluating performance of scheduler and IPC mechanisms.
74 Based on hackbench by Rusty Russell.
76 Options of *messaging*
77 ^^^^^^^^^^^^^^^^^^^^^^
80 Use pipe() instead of socketpair()
84 Be multi thread instead of multi process
88 Specify number of groups
92 Specify number of loops
94 Example of *messaging*
95 ^^^^^^^^^^^^^^^^^^^^^^
98 % perf bench sched messaging # run with default
99 options (20 sender and receiver processes per group)
100 (10 groups == 400 processes run)
104 % perf bench sched messaging -t -g 20 # be multi-thread, with 20 groups
105 (20 sender and receiver threads per group)
106 (20 groups == 800 threads run)
109 ---------------------
112 Suite for pipe() system call.
113 Based on pipe-test-1m.c by Ingo Molnar.
119 Specify number of loops.
124 ---------------------
125 % perf bench sched pipe
126 (executing 1000000 pipe operations between two tasks)
132 % perf bench sched pipe -l 1000 # loop 1000
133 (executing 1000 pipe operations between two tasks)
138 ---------------------
143 Suite for evaluating performance of simple memory copy in various ways.
149 Specify size of memory to copy (default: 1MB).
150 Available units are B, KB, MB, GB and TB (case insensitive).
154 Specify function to copy (default: default).
155 Available functions are depend on the architecture.
156 On x86-64, x86-64-unrolled, x86-64-movsq and x86-64-movsb are supported.
160 Repeat memcpy invocation this number of times.
164 Use perf's cpu-cycles event instead of gettimeofday syscall.
167 Suite for evaluating performance of simple memory set in various ways.
173 Specify size of memory to set (default: 1MB).
174 Available units are B, KB, MB, GB and TB (case insensitive).
178 Specify function to set (default: default).
179 Available functions are depend on the architecture.
180 On x86-64, x86-64-unrolled, x86-64-stosq and x86-64-stosb are supported.
184 Repeat memset invocation this number of times.
188 Use perf's cpu-cycles event instead of gettimeofday syscall.
193 Suite for evaluating NUMA workloads.
198 Suite for evaluating hash tables.
201 Suite for evaluating wake calls.
204 Suite for evaluating parallel wake calls.
207 Suite for evaluating requeue calls.
210 Suite for evaluating futex lock_pi calls.
215 Suite for evaluating concurrent epoll_wait calls.
218 Suite for evaluating multiple epoll_ctl calls.
220 SUITES FOR 'internals'
221 ~~~~~~~~~~~~~~~~~~~~~~
223 Suite for evaluating perf's event synthesis performance.