Skip to content

Instantly share code, notes, and snippets.

@evu
Created June 23, 2022 16:59
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 evu/669ad1f1b21b482649a823cfa9581774 to your computer and use it in GitHub Desktop.
Save evu/669ad1f1b21b482649a823cfa9581774 to your computer and use it in GitHub Desktop.
Max out CPU utilization for 1 minute
#!/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