Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Building loop test..."
- echo "int main(){for(;;);}" | gcc -x c -o stress -
- for i in `seq 1 $(nproc)`;
- do
- echo "Running stress test... core #$i"
- sudo nice --20 ./stress &
- done
- echo "Try to use your computer and"
- read -r -p "Press [ENTER] to kill all the stress process, =)" response
- sudo killall stress
- rm stress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement