is there any nice GNU way how to measure average (worst case, best case) execution time of some command line program? I have image filter, unspecified amount of pictures, filtering them using for-loop in bash. So far I am using time, but I can’t find a way how to get some statistics.
Share
There’s an interesting Perl program called dumbbench that’s essentially a wrapper around the
timecommand. It runs your program a number of times, throws away outliers, then calculates some statistics.The author has a couple of articles (here and here) outlining a) why benchmarking sucks, and b) what kind of pretty graphs you can make to make your benchmarking numbers suck a little less.