From: Alberto Bertogli Date: Wed, 5 Oct 2005 16:17:48 +0000 (+0000) Subject: Agregar nuevo script para graficar potencias. X-Git-Tag: Entrega_1~5 X-Git-Url: https://git.llucax.com/z.facultad/75.29/dale.git/commitdiff_plain/fbcddc9f8bc888bb94c0278de4358faac13a3d04 Agregar nuevo script para graficar potencias. --- diff --git a/tests/pot2.sh b/tests/pot2.sh new file mode 100644 index 0000000..08ba3b9 --- /dev/null +++ b/tests/pot2.sh @@ -0,0 +1,32 @@ +#!/bin/bash + + +for op in "^" "q"; do + mkdir "files-$op-2" + + SEQ=`seq 1 2 128` + + # genero los archivos + for i in $SEQ; do + echo "1234567890 $op $i" > "files-$op-2/$i" + done + + # los corro + for i in $SEQ; do + echo "$i"; + F="files-$op-2/$i" + { time ../src/tdatp1 "$F" "$F.out";} 2> "$F.time"; + done + + # armo las tablas + for i in $SEQ; do + echo "$i"; + F="files-$op-2/$i.time" + RT=`cat $F | grep real | cut -d ' ' -f 2` + RT=`echo $RT | cut -d 'm' -f 2 | cut -d 's' -f 1` + echo "$i $RT" >> "files-$op-2/times" + done; + +done; + +