summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2016-09-17 20:37:21 +0200
committerSilvan Jegen <s.jegen@gmail.com>2016-09-17 20:37:40 +0200
commit031338ed7d701baaf21b12fa284e7d9035cd14bc (patch)
treee1800dce90f5b42685d32b1355175fff33b71650
parentb0e8849e1ee35e61e7ba51c5db285e01378959bb (diff)
Convert the times and get the statistics with R
-rwxr-xr-xconverttimes.sh4
-rwxr-xr-xrunbenchmarks.sh4
2 files changed, 8 insertions, 0 deletions
diff --git a/converttimes.sh b/converttimes.sh
new file mode 100755
index 0000000..5f65c31
--- /dev/null
+++ b/converttimes.sh
@@ -0,0 +1,4 @@
+#! /bin/bash
+
+cat $1 | awk -Fm '{ print ($1 * 60) + $2 }' > $1.converted
+
diff --git a/runbenchmarks.sh b/runbenchmarks.sh
index d4c5c13..19bcca7 100755
--- a/runbenchmarks.sh
+++ b/runbenchmarks.sh
@@ -6,4 +6,8 @@ for prog in ezxml goencxml mxml pyeletree.py sxmlc yxml; do
for i in `seq 10`; do
./measuretime.sh 2>&1 ./$prog $xmldocs > /dev/null | grep real | sed 's/real//g;s/s//g' >> $prog.log
done
+
+ ./converttimes.sh $prog.log
+ R -q -e "x <- read.csv(\"$prog.log.converted\", header = F); summary(x); sd(x[ , 1])" > $prog.statistics
+
done