CPU Benchmarking With sysbench

Run a prime-number workload and report events per second.

LinuxhardwaremonitoringperformanceLow risk
Run sysbench cpu --cpu-max-prime=20000 run for a repeatable CPU score.

01Command

Command
$ sysbench cpu --cpu-max-prime=20000 run

02What it does

sysbench's CPU test computes primes and reports throughput, giving a number that is easy to compare before and after tuning, across VMs or after a cloud instance change. Its options make the workload explicit and scriptable.

03Risk

RiskLow risk
Requirementssudo apt install sysbench
!Warning: Benchmarks heat the CPU and are affected by noisy neighbours; run several times and compare medians.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-10-13 · Category: System & Settings

06Related solutions