Is there a way to benchmark a bash script's performance? the script downloads a remote file, and then makes calls to multiple commandline programs to manipulate. I would like to know (or as much as possible):
- Total time
- Time spent downloading
- Time spent on each command called
- -=[ I think these could be wrapped in "time" calls right? ]=-
- Average download speed
- uses wget
- Total Memory used
- Total CPU usage
- CPU usage per command called
I'm able to make edits to the bash script to insert any benchmark commands needed at specific points (ie, between app calls). Not sure if some "top" ninja-ry could solve this or not. Not able to find anything useful (at least to limited understanding) in man file.
Will be running the benchmarks on OSX Terminal as well as Ubuntu (if either matter).
hyperfine