13 for op in '+' '-' '*' 'k'; do
15 # generar los archivos
16 for i in `seq 1 $SAMPLES`; do
17 for j in `seq 1 $STEP $MAXD`; do
19 ./generador.py $j "$op" $j > "files/op_$op-$j-$i";
24 for i in `seq 1 $SAMPLES`; do
25 for j in `seq 1 $STEP $MAXD`; do
27 { time ../src/tdatp1 \
28 "files/op_$op-$j-$i" "files/op_$op-$j-$i.out"
29 } 2> "files/op_$op-$j-$i.time";
34 for i in `seq 1 $SAMPLES`; do
35 for j in `seq 1 $STEP $MAXD`; do
37 FILE="files/op_$op-$j-$i.time"
38 RT=`cat $FILE | grep real | cut -d ' ' -f 2`
39 # asumimos que nunca hay minutos, solo segundos
40 RT=`echo $RT | cut -d 'm' -f 2 | cut -d 's' -f 1`
41 echo "$j $RT" >> "files/op_$op.times"