Last active
February 2, 2019 01:24
-
-
Save n1kk/859c5db33a33c8a4fafca967ded00032 to your computer and use it in GitHub Desktop.
stress test cpu on osx
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
function stress_cpu() { | |
for I in `seq 1 $(getconf _NPROCESSORS_ONLN)` | |
do | |
yes > /dev/null & | |
done | |
echo "Press enter to stop" | |
read | |
killall yes | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment