From fbcddc9f8bc888bb94c0278de4358faac13a3d04 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Wed, 5 Oct 2005 16:17:48 +0000 Subject: [PATCH] Agregar nuevo script para graficar potencias. --- tests/pot2.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/pot2.sh 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; + + -- 2.43.0