Execute a command N times
Sends command to child process. This starts subshells in parallel.
$ ntimes 100 -- curl 'https://google.com' -s -o /dev/null -w "%{starttransfer}\n"
To send a sync process and wait for each subsequent command to finish, pass -sync
$ ntimes 100 -sync -- curl 'https://google.com' -s -o /dev/null -w "%{starttransfer}\n"
The MIT License