Skip to content

Instantly share code, notes, and snippets.

@n1kk
Last active February 2, 2019 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n1kk/859c5db33a33c8a4fafca967ded00032 to your computer and use it in GitHub Desktop.
Save n1kk/859c5db33a33c8a4fafca967ded00032 to your computer and use it in GitHub Desktop.
stress test cpu on osx
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