Skip to content

Instantly share code, notes, and snippets.

@popstas
Last active June 11, 2024 09:12
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
yum install sysbench -y
# bash, zsh
for threads in 1 2 4 8 16 32 64 128; do echo -e "\n\nthreads: $threads"; sysbench cpu --validate=on --threads=$threads --verbosity=3 run | tail -n17 | head -n1; done
# zsh only
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
# results - https://docs.google.com/spreadsheets/d/1f2CrhqV5c-BIAAyZkPGkDJLUwYzpGn6_b8c99E6fCEE/edit?usp=sharing
# 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