From accff603a1a80b79c2beca7c062df0522ff7fcb0 Mon Sep 17 00:00:00 2001 From: Johannes Middeke Date: Tue, 10 May 2016 13:57:22 -0400 Subject: [PATCH] Added script to run the factor experiments. --- factors.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 factors.sh diff --git a/factors.sh b/factors.sh new file mode 100644 index 0000000..3847de1 --- /dev/null +++ b/factors.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# N counts the number of samples generated so far. We do 20 samples in +# each iteration and we already have 20 from the test run. Maximale +# sample number is 300. + +for N in `seq 10 10 300` +do + # Run experiment + echo > DATA.degrees.$N + for I in `seq 5 5 80` + do + ./test.native --factors --size $I --times 10 \ + >> DATA.degrees.$N + done + + # Clean up results + echo 'let data = [' \ + > dataDEGREES.ml + + cat DATA.* \ + | sed 's/[a-z =]//g' \ + | cut -d, -f1,3,5 \ + | sed 's/\.$/;/' \ + >> dataDEGREES.ml + + echo ']' \ + >> dataDEGREES.ml + + # Generate an deploy HTML + ocaml makeHTMLdegrees.ml --samples $N \ + > BareissTMP.html + + scp Bareiss*.html jmiddeke@www:/home/www/people/jmiddeke/ +done + -- 2.1.4