scripts/apachebench/plot_ttime.sh
2023-11-02 09:46:25 +01:00

21 lines
475 B
Bash
Executable file

#!/usr/bin/env bash
for file in $(ls -1 swiss*\.gnuplot); do
gnuplot <<- EOF
set terminal png size 1280,500
set size 1, 1
set output "$file\_ttime.png"
set title "$file"
set key left top
set grid y
set xdata time
set timefmt "%s"
set format x "%H:%M:%S"
set xlabel 'time'
set ylabel "response time (ms)"
set yrange [0:10000]
set datafile separator '\t'
plot "$file" every ::2 using 2:5 title 'response time (total)' with points
exit
EOF
done