2025-03-14 21:59:59 -06:00
|
|
|
# sysbench
|
|
|
|
|
|
|
|
|
|
> Benchmark a System's CPU, IO and memory.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://github.com/akopytov/sysbench#usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Run a CPU benchmark with 1 thread for 10 seconds:
|
|
|
|
|
|
|
|
|
|
`sysbench cpu run`
|
|
|
|
|
|
|
|
|
|
- Run a CPU benchmark with multiple threads for a specified time:
|
|
|
|
|
|
|
|
|
|
`sysbench --threads={{number_of_threads}} --time={{seconds}}`
|
|
|
|
|
|
|
|
|
|
- Run a memory benchmark with 1 thread for 10 seconds:
|
|
|
|
|
|
|
|
|
|
`sysbench memory run`
|
|
|
|
|
|
|
|
|
|
- Prepare a filesystem-level read benchmark:
|
|
|
|
|
|
|
|
|
|
`sysbench fileio prepare`
|
|
|
|
|
|
|
|
|
|
- Run a filesystem-level benchmark:
|
|
|
|
|
|
|
|
|
|
`sysbench --file-test-mode={{rndrd|rndrw|rndwr|seqrd|seqrewr|seqwr}} fileio run`
|