]> Cypherpunks repositories - gostls13.git/commitdiff
add info about Sqrt instruction
authorRob Pike <r@golang.org>
Wed, 5 Aug 2009 00:31:19 +0000 (17:31 -0700)
committerRob Pike <r@golang.org>
Wed, 5 Aug 2009 00:31:19 +0000 (17:31 -0700)
couple of fixes to timing.sh

R=rsc
DELTA=10  (5 added, 0 deleted, 5 changed)
OCL=32742
CL=32756

test/bench/timing.log
test/bench/timing.sh

index 8060d8e9f8762c3730f07ebeaa6eb1fd5546ad93..d7d921ea050310a5c347a7f07d612304c777e853 100644 (file)
@@ -34,3 +34,7 @@ nbody 50000000
        gccgo -O2 nbody.go      118.55u 0.02s 120.32r
        gc nbody        100.84u 0.00s 100.85r
        gc_B nbody      103.33u 0.00s 103.39r
+[
+hacked Sqrt in assembler
+       gc nbody        31.97u 0.00s 32.01r
+]
index 2cd5d8d7856291a034f1df8c34d33241f06c7268..0c1127c95d1e43a163efbe899db1986e61b060ec 100755 (executable)
@@ -30,12 +30,13 @@ fasta() {
 }
 
 revcomp() {
-       6.out -n 25000000 > x
+       gcc -O2 fasta.c
+       a.out 25000000 > x
        echo 'reverse-complement < output-of-fasta-25000000'
-       run 'gcc -O2 reverse-complement.c' a.out 25000000 < x
-       run 'gccgo -O2 reverse-complement.go' a.out -n 25000000 < x
-       run 'gc reverse-complement' $O.out -n 25000000 < x
-       run 'gc_B reverse-complement' $O.out -n 25000000 < x
+       run 'gcc -O2 reverse-complement.c' a.out < x
+       run 'gccgo -O2 reverse-complement.go' a.out < x
+       run 'gc reverse-complement' $O.out < x
+       run 'gc_B reverse-complement' $O.out < x
        rm x
 }