From 8a3fa164ddffefd10e39c1d264a8532f9c21f940 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Thu, 23 Jul 2020 12:44:03 +0200 Subject: [PATCH] fix gnuplot scripts --- nginx-static/.gitignore | 2 - ...{response-time.gnuplot => latency.gnuplot} | 4 +- nginx-static/nginx-static.jmx | 90 ------------------- nginx-static/run.sh | 4 +- nginx-static/throughput.gnuplot | 11 +++ 5 files changed, 15 insertions(+), 96 deletions(-) delete mode 100644 nginx-static/.gitignore rename nginx-static/{response-time.gnuplot => latency.gnuplot} (63%) create mode 100644 nginx-static/throughput.gnuplot diff --git a/nginx-static/.gitignore b/nginx-static/.gitignore deleted file mode 100644 index bf0a1c1..0000000 --- a/nginx-static/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -response-time.csv -tps.csv \ No newline at end of file diff --git a/nginx-static/response-time.gnuplot b/nginx-static/latency.gnuplot similarity index 63% rename from nginx-static/response-time.gnuplot rename to nginx-static/latency.gnuplot index f2cbbb9..7eeeccd 100644 --- a/nginx-static/response-time.gnuplot +++ b/nginx-static/latency.gnuplot @@ -5,5 +5,5 @@ set format x "%H:%M:%S" set xlabel "Time"; set ylabel "Latency (ms)"; set terminal png size 1280,1024 -set output 'response-time.png' -plot 'response-time.csv' using ($1/1000):15 with points pt 1 ps 0.5 +set output outfile +plot dataset using ($1/1000):15 with points pt 1 ps 0.5 diff --git a/nginx-static/nginx-static.jmx b/nginx-static/nginx-static.jmx index ba8ca99..5a57a38 100644 --- a/nginx-static/nginx-static.jmx +++ b/nginx-static/nginx-static.jmx @@ -56,96 +56,6 @@ - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - response-time.csv - 500 - false - - - - - false - false - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - tps.csv - 1000 - false - - - - - false - false - - diff --git a/nginx-static/run.sh b/nginx-static/run.sh index 9d33b42..4194660 100755 --- a/nginx-static/run.sh +++ b/nginx-static/run.sh @@ -6,6 +6,6 @@ set -e # Do not update graphs if jmeter fails : ${GNUPLOT:=gnuplot} HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m" date="$(date +%F-%H-%M-%S)" -rm -f response-time.csv tps.csv $JMETER -n -t nginx-static.jmx -l "results-$date.csv" -e -o "report-$date" -#$GNUPLOT -p response-time.gnuplot +$GNUPLOT -e "dataset='results-$date.csv'" -e "outfile='latency-$date.png'" -p latency.gnuplot +$GNUPLOT -e "dataset='results-$date.csv'" -e "outfile='throughput-$date.png'" -p throughput.gnuplot diff --git a/nginx-static/throughput.gnuplot b/nginx-static/throughput.gnuplot new file mode 100644 index 0000000..cb5dd04 --- /dev/null +++ b/nginx-static/throughput.gnuplot @@ -0,0 +1,11 @@ +set datafile separator ',' +set xlabel "Time"; +set ylabel "Transactions per second"; +set terminal png size 1280,1024 +set output outfile + +# Aggregate transactions over a second +binwidth=1000 +bin(x,width)=width*floor(x/width) + +plot dataset using (bin($1,binwidth)):(1.0) smooth freq with boxes