Created
June 23, 2022 16:59
-
-
Save evu/669ad1f1b21b482649a823cfa9581774 to your computer and use it in GitHub Desktop.
Max out CPU utilization for 1 minute
This file contains hidden or 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
#!/bin/bash | |
for i in $(seq $(getconf _NPROCESSORS_ONLN)); do yes > /dev/null & done | |
echo "To stop, run:" | |
echo "killall yes" | |
echo | |
sleep 60 | |
killall yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment