Last active
June 11, 2024 09:12
-
-
Save popstas/116443a944fac01bb5e1d7e7292d9be7 to your computer and use it in GitHub Desktop.
sysbench cpu test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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