Sysbench, as the name suggests, is a command line app to run benchmarks on your system. Written in Lua, Sysbench is mainly intended for doing database benchmarking. However it includes options to test CPU, memory and file throughput as well.
To install Sysbench in Ubuntu, run the command below:
Code: Select all
sudo apt install sysbench
Code: Select all
sysbench cpu --threads=2 run
“cpu” is the test type
“threads” is the number of threads created by sysbench to perform multi-threaded benchmarking
Code: Select all
sysbench cpu --cpu-max-prime=200000 --threads=12 --time=0 --events=10000 run