sysbench
sysbench copied to clipboard
Inadequate usage messages
I thought I'd try this tool to benchmark my cpu:
$ sysbench --version
sysbench 1.0.20
$ man sysbench
No manual entry for sysbench
$ sysbench
sysbench 1.0.20 (using system LuaJIT 2.1.1720049189)
Reading the script from the standard input:
^C
So I guess I need to specify --help to see how to run it:
$ sysbench --help
Usage:
sysbench [options]... [testname] [command]
...
Compiled-in tests:
fileio - File I/O test
cpu - CPU performance test
memory - Memory functions speed test
threads - Threads subsystem performance test
mutex - Mutex performance test
See 'sysbench <testname> help' for a list of options for each test.
OK, there's a cpu command:
$ sysbench cpu
sysbench 1.0.20 (using system LuaJIT 2.1.1720049189)
The 'cpu' test requires a command argument. See 'sysbench cpu help'
OK, need to add help to see how to run it:
$ sysbench cpu help
sysbench 1.0.20 (using system LuaJIT 2.1.1720049189)
cpu options:
--cpu-max-prime=N upper limit for primes generator [10000]
But still nothing stated on how to run it? I.e what are the sub-commands? Also, the other commands seem to be the same.
I agree with this. I feel like the help pages for the individual tests should show which commands are available. The help page states this in the second line but you can overlook this quite easily.
$ sysbench --help
Usage:
sysbench [options]... [testname] [command]
Commands implemented by most tests: prepare run cleanup help
...