]> git.llucax.com Git - z.facultad/75.06/jacu.git/commitdiff
Se mejora la salida para que sea más simple el tiempo.
authorLeandro Lucarella <llucax@gmail.com>
Mon, 28 Jun 2004 04:15:51 +0000 (04:15 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Mon, 28 Jun 2004 04:15:51 +0000 (04:15 +0000)
calgary_tests/test_calgary.sh
calgary_tests/test_calgary_zip.sh

index bf0d0830c3c2975c1e9c32cb47e3f16cf33fab8b..fea52491a82e42a11f82fcfca962c45070165c43 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+TIMEFORMAT=%R
+
 jacu=../src/jacu
 
 if [ ! -x $jacu ]; then
index c03b8a4a4467de3ceb8a22eff53bce23d9ec58e7..df13f29885086c3eff23ad1e133965e214aba899 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+TIMEFORMAT=%R
+
 if [ -z "$1" ]; then
        echo "Falta parámetro: ./test_calgary_zip.sh [gzip|bzip2]"
        exit 1
@@ -16,8 +18,9 @@ fi
 for file in bib book1 book2 geo news obj1 obj2 paper1 paper2 paper3 paper4 \
        paper5  paper6 pic progc progl progp trans; do
        echo "===================================="
+       echo $file
        time $1 -c $file > $file.$1 2> /dev/null
-       echo "print '$file: ', `stat -c "%s" $file.$1`*8.0/`stat -c "%s" $file`, ' bpb'" | python
+       echo "print(\"%.04f\" % (`stat -c "%s" $file.$1`*8.0/`stat -c "%s" $file`))" | python
 done
 echo "===================================="