To test various compiler optimizations, I'm running a shell script which runs several processes in the background simultaneously:
Code:
./readfile output1.clock.bin filter1.bin &
./readfile output2.clock.bin filter2.bin &
./readfile output3.clock.bin filter3.bin &
./readfile output4.clock.bin filter4.bin &
When I try to use the bash 'time' builtin or the GNU 'time' command, it seems as though the command will only time the execution of the script itself, which is not helpful (that takes about 0.00s!).
I've tried various combinations of parentheses, &'s, &&'s, etc. but I can't seem to find the right syntax...
I would like to be able to run N processes, in the background, simultaneously, in order to test the processing capabilities of my CPU.
Thanks in advance!
-Jordan