Skip to content

Instantly share code, notes, and snippets.

@popstas
Last active May 13, 2024 08:39
Show Gist options
  • Save popstas/116443a944fac01bb5e1d7e7292d9be7 to your computer and use it in GitHub Desktop.
Save popstas/116443a944fac01bb5e1d7e7292d9be7 to your computer and use it in GitHub Desktop.
sysbench cpu test
apt install sysbench -y
sysbench-cpu() { echo -e "\n\nthreads: $threads"; sysbench cpu --validate=on --threads=$threads --verbosity=3 run | tail -n17 | head -n1 }
for threads in 1 2 4 8 16 32 64 128; do sysbench-cpu; done
# threads=32; sysbench-cpu $threads
# maxthreads=$(( $(nproc) * 2 )); for threads in {1..$maxthreads}; do sysbench-cpu; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment