aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-11 23:29:55 -0400
committerFranklin Wei <me@fwei.tk>2018-07-11 23:30:36 -0400
commitbe0d0fac2fad4ade1a1f81f34644e84042f2578d (patch)
tree37f73f75c729565d1eb0e0eacdda75b3ca5ee007
parent2be626ad923518bee51673ea639e7354d72e77cb (diff)
downloadcsaa-be0d0fac2fad4ade1a1f81f34644e84042f2578d.zip
csaa-be0d0fac2fad4ade1a1f81f34644e84042f2578d.tar.gz
csaa-be0d0fac2fad4ade1a1f81f34644e84042f2578d.tar.bz2
csaa-be0d0fac2fad4ade1a1f81f34644e84042f2578d.tar.xz
Increase robustness of measurement processing scripts
Makes graph.gnu executable to save some keystrokes, and allows producing graphs even with partially finished runs (good for quick feedback).
-rwxr-xr-x[-rw-r--r--]graph.gnu1
-rwxr-xr-xtabulate.sh21
2 files changed, 16 insertions, 6 deletions
diff --git a/graph.gnu b/graph.gnu
index 7d3ccc6..f039bdb 100644..100755
--- a/graph.gnu
+++ b/graph.gnu
@@ -1,3 +1,4 @@
+#!/usr/bin/gnuplot
set xlabel "logleaves"
set ylabel "avg time per operation (sec)"
set yrange [0:]
diff --git a/tabulate.sh b/tabulate.sh
index 8177416..976fbbe 100755
--- a/tabulate.sh
+++ b/tabulate.sh
@@ -1,9 +1,10 @@
#!/bin/bash
-for i in `seq 8 15`
+
+rm -f all_*.txt dummy_all_*.txt
+
+for i in `seq 4 17`
do
- rm -f all_"$i".txt
- rm -f dummy_all_"$i".txt
- for j in `seq 1 1`
+ for j in `seq 1 5`
do
echo -n "$i $j " >> all_"$i".txt
echo -n "$i $j " >> dummy_all_"$i".txt
@@ -16,16 +17,24 @@ done
rm -f data_create.txt data_modify.txt data_retrieve.txt data_modifyenc.txt data_retrieveenc.txt
rm -f data_dummy_create.txt data_dummy_modify.txt data_dummy_retrieve.txt
-cat all_*.txt | awk '{print $1, $5 >> "data_create.txt";
+cat all_*.txt | awk '{
+if(NF >= 21)
+{
+ print $1, $5 >> "data_create.txt";
print $1, $9 >> "data_modify.txt"
print $1, $13 >> "data_retrieve.txt"
print $1, $17 >> "data_modifyenc.txt"
print $1, $21 >> "data_retrieveenc.txt"
+}
}'
-cat dummy_all_*.txt | awk '{print $1, $5 >> "data_dummy_create.txt";
+cat dummy_all_*.txt | awk '{
+if(NF >= 13)
+{
+ print $1, $5 >> "data_dummy_create.txt";
print $1, $9 >> "data_dummy_modify.txt";
print $1, $13 >> "data_dummy_retrieve.txt";
+}
}'
for f in data*.txt