From 2ee733523c4da74aa2273b0edccb691eac9aaa7b Mon Sep 17 00:00:00 2001 From: rand00 Date: Tue, 17 Jan 2023 13:12:55 +0100 Subject: [PATCH] packaging/perftest/unipi/plot.sh: Added response-time and transactions/sec plots --- packaging/perftest/unipi/plot.sh | 48 +++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/packaging/perftest/unipi/plot.sh b/packaging/perftest/unipi/plot.sh index a9b5d04..9e9d694 100755 --- a/packaging/perftest/unipi/plot.sh +++ b/packaging/perftest/unipi/plot.sh @@ -32,7 +32,7 @@ JOB="$4" LATEST_UUID="$5" DIMS=1920,1080 -COLS=5,7,8 #resp-time, throughput, concurrent +COLS=5,6,7,8 #resp-time, transaction-rate, throughput, concurrent #< Note: gnuplot can select the final columns DAT="${PERFJOB_DIR}/tmp.dat" @@ -105,10 +105,56 @@ set title '$PLOT_TITLE' set style data histograms set style histogram clustered gap 2 set style fill solid 1.0 border lt -1 +set xlabel "build UUID" set ylabel "Avg. bytes/sec" +plot '$DAT' using 4:xtic(1) +EOF + +PLOT_VERSION=1 +PLOT_NAME="transaction_rate" +PLOT_TITLE="Transaction rate for 30 concurrent threads" +OUT_DIR="${CACHE_DIR}/perftest/${JOB}/${PLOT_NAME}_${PLOT_VERSION}" +if [ ! -e "$OUT_DIR" ]; then + mkdir -p "$OUT_DIR" +fi +OUT_IMG="${OUT_DIR}/${LATEST_UUID}.png" + +info generating plot: "$OUT_IMG" +gnuplot >"$OUT_IMG" <"$OUT_IMG" <