annotate bin/stress.sh @ 912:5d9c08d2a090 default tip

nvm
author Jeff Hammel <k0scist@gmail.com>
date Wed, 01 May 2024 14:39:53 -0700
parents 1b8ea3a0cc9e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
768
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/bin/bash
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 # stress test a program
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 export I=0
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 while "$@"
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 do
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 echo ${I}
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 I=$((I+1))
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 sleep 5
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11 done