Benchmarking script

This commit is contained in:
Artur Meski
2018-10-20 22:41:45 +01:00
parent 75007f04dd
commit 2088994fa7

View File

@@ -2,31 +2,44 @@
TMPINPUT="tmp_$RANDOM$RANDOM.rs" TMPINPUT="tmp_$RANDOM$RANDOM.rs"
CMD="./reactics -zxbB" CMD="./reactics -bB"
for i in `seq 2 9`;do for opt in "" "z" "x" "zx";do
echo "[i] n=$i; generating input file" for i in `seq 2 10`;do
in/scripts/gen_tgc_sc.py $i > $TMPINPUT
for f in `seq 1 2`; do echo "[i] n=$i; generating input file"
in/scripts/gen_tgc_sc.py $i > $TMPINPUT
echo "[i] Testing formula f$f" for f in `seq 1 2`; do
TMPCMD="$CMD -c f$f $TMPINPUT" echo "[i] Testing formula f$f"
echo "[i] running reactics: $TMPCMD"
res=$($TMPCMD | grep STAT) if [[ "$opt" = "" ]];then
mem=$(echo $res | cut -d';' -f 5) opt_str="NoOpt"
time=$(echo $res | cut -d';' -f 6) CMDOPT=""
else
opt_str="$opt"
CMDOPT="-$opt"
fi
echo "[.] Finished. time:$time, mem:$mem" TMPCMD="$CMD $CMDOPT -c f$f $TMPINPUT"
echo "[i] running reactics: $TMPCMD"
echo "$i $time $mem" >> bench_drs_mutex_f$f.dat res=$($TMPCMD | grep STAT)
mem=$(echo $res | cut -d';' -f 5)
time=$(echo $res | cut -d';' -f 6)
done echo "[.] Finished. time:$time, mem:$mem"
echo
echo "$i $time $mem" >> bench_drs_tgc_${opt_str}_f$f.dat
done
echo
done
done done