Ten="1 2 3 4 5 6 7 8 9 10" m21() { for i in $Ten; do for j in $Ten; do ./tool21 -r $RANDOM > /dev/null done done } m22() { for i in $Ten; do for j in $Ten; do ./tool22 -r $RANDOM > /dev/null done done } m24() { for i in $Ten; do for j in $Ten; do ./tool24 -r $RANDOM > /dev/null done done } m28() { for i in $Ten; do for j in $Ten; do ./tool28 -r $RANDOM > /dev/null done done } m216() { for i in $Ten; do for j in $Ten; do ./tool216 -r $RANDOM > /dev/null done done } m41() { for i in $Ten; do for j in $Ten; do ./tool41 -r $RANDOM > /dev/null done done } m42() { for i in $Ten; do for j in $Ten; do ./tool42 -r $RANDOM > /dev/null done done } m44() { for i in $Ten; do for j in $Ten; do ./tool44 -r $RANDOM > /dev/null done done } m48() { for i in $Ten; do for j in $Ten; do ./tool48 -r $RANDOM > /dev/null done done } m416() { for i in $Ten; do for j in $Ten; do ./tool416 -r $RANDOM > /dev/null done done } m51() { for i in $Ten; do for j in $Ten; do ./tool51 -r $RANDOM > /dev/null done done } m52() { for i in $Ten; do for j in $Ten; do ./tool52 -r $RANDOM > /dev/null done done } m54() { for i in $Ten; do for j in $Ten; do ./tool54 -r $RANDOM > /dev/null done done } m58() { for i in $Ten; do for j in $Ten; do ./tool58 -r $RANDOM > /dev/null done done } echo "Time to run 21 100 times:" time m21 echo "Time to run 22 100 times:" time m22 echo "Time to run 24 100 times:" time m24 echo "Time to run 28 100 times:" time m28 echo "Time to run 216 100 times:" time m216 echo "Time to run 41 100 times:" time m41 echo "Time to run 42 100 times:" time m42 echo "Time to run 44 100 times:" time m44 echo "Time to run 48 100 times:" time m48 echo "Time to run 416 100 times:" time m416 echo "Time to run 51 100 times:" time m51 echo "Time to run 52 100 times:" time m52 echo "Time to run 54 100 times:" time m54 echo "Time to run 58 100 times:" time m58