跳转至

CPU Benchmark


Sysbench

Sysbench -- Scriptable database and system performance benchmark, a cross-platform and multi-threaded benchmark tool

Bash
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run

htop

  • htop - an interactive process viewer for Unix

  • htop explained - Explanation of everything you can see in htop/top on Linux

压力测试

https://www.tecmint.com/linux-cpu-load-stress-test-with-stress-ng-tool/

Bash
cat /sys/class/thermal/thermal_zone0/temp

# stress
stress --cpu 4 --io 4 --vm 1 --vm-bytes 1G