Last active
May 13, 2024 08:39
-
-
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 | |
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