]> git.llucax.com Git - software/dgc/dgcbench.git/blob - time-plot.sh
Create time/pause sub-directories in ./build
[software/dgc/dgcbench.git] / time-plot.sh
1 #!/bin/sh
2
3 test -n "$1" && fmt=$1 && shift
4 test -n "$1" && output=$1 && shift
5
6 files="$@"
7 test -z "$files" && files=build/time-*-${CPUS}cpu.csv
8 for f in $files
9 do
10         p=`echo $f | sed "s,.*build/time-\\(.*\\)-${CPUS}cpu\\.csv,\\1,"`
11         progs="$progs$p='$f',"
12 done
13
14 ./templite.py "fmt='$fmt', output='$output', title='Run Time ($N runs)', cpus=$CPUS,
15                         progs=dict($progs)" \
16                 < histogram-plot.tpl.gpi | gnuplot
17