for an assignment we need to benchmark our implementations with different optimizations and parameters. Is there a feasible way of benchmarking little programs on the linux command line (I know of time) with different parameters which gives me the time data as CSV or something similiar? Output could be something like:
Implementation Time
A 23s
B with -O3 2Threads 15s
B with -O3 4Threads 10s
I'm pretty sure that I've seen something like that on some professors slides but I cant remember who or when it was...
Why not using
time
command inside abash
script, something like :where
proglist
is a text file containing the programs to executeand
arglist
is a text file containing the arguments, something like :The output of the script will look-like :