Respuestas:
Puedes escribir un forbucle simple
time -p bash -c "for (( i=0; i<10; i++ )); do command1; command2; done;"
Tenga en cuenta que usé en bashlugar de shpara el bucle.
Con zsh:
time (repeat 10 {cmd1; cmd2})
zsh's repeatse hereda de csh.
Con tcsh:
time repeat 10 eval 'cmd1; cmd2'
Te daría el tiempo para cada iteración y el tiempo total al final.
time (for i in {1..10}; do sleep 1 ; done)