annotate bin/stress.sh @ 913:107bf2430602

update with future work + links
author Jeff Hammel <k0scist@gmail.com>
date Mon, 27 May 2024 13:59:46 -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