From 74f83b5c11db6da8f3e6111dd7fd1502a5ddcb27 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 14 Oct 2020 16:31:14 +0200 Subject: [PATCH] WIP: manual plot --- garlic/postprocess/filter/fetch | 2 ++ garlic/postprocess/filter/filter | 18 ++++++++++++++++++ garlic/postprocess/filter/plot.gnuplot | 17 +++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100755 garlic/postprocess/filter/fetch create mode 100755 garlic/postprocess/filter/filter create mode 100644 garlic/postprocess/filter/plot.gnuplot diff --git a/garlic/postprocess/filter/fetch b/garlic/postprocess/filter/fetch new file mode 100755 index 0000000..8890c29 --- /dev/null +++ b/garlic/postprocess/filter/fetch @@ -0,0 +1,2 @@ +#!/bin/sh +rsync -a mn1:go/$1 . diff --git a/garlic/postprocess/filter/filter b/garlic/postprocess/filter/filter new file mode 100755 index 0000000..78527bc --- /dev/null +++ b/garlic/postprocess/filter/filter @@ -0,0 +1,18 @@ +#!/bin/sh + +for unit in $1/*; do + #echo unit=$unit + bs=$(jq ".blocksize" "$unit/garlic_config.json") + #echo bs=$bs + + awk '/^time /{print $2}' > time.$bs $unit/stdout.log + + N=$(wc -l "time.$bs" | awk '{print $1}') + #echo N=$N + + if [ $N -lt 30 ]; then + echo "too few points ($N) in unit $unit" + #exit 1 + fi + +done diff --git a/garlic/postprocess/filter/plot.gnuplot b/garlic/postprocess/filter/plot.gnuplot new file mode 100644 index 0000000..a9abefc --- /dev/null +++ b/garlic/postprocess/filter/plot.gnuplot @@ -0,0 +1,17 @@ +set terminal png size 800,800 +set output 'out.png' + +set xrange [16:1024] +set nokey +set logscale x 2 +set logscale y 2 +set grid + +set xlabel "blocksize" +set ylabel "time (s)" + +plot 'time.32' using (32):1 with circles title "32", \ + 'time.64' using (64):1 with circles title "64", \ + 'time.128' using (128):1 with circles title "128", \ + 'time.256' using (256):1 with circles title "256", \ + 'time.512' using (512):1 with circles title "512"