summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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