Page 1 of 1

linux cpu banchmark test

Posted: 27 Nov 2022, 01:25
by dev
Sysbench (Benchmark Only)

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
To start a benchmark using Sysbench, run the following command:

Code: Select all

sysbench cpu --threads=2 run
Where:

“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