add info about Sqrt instruction

couple of fixes to timing.sh

R=rsc
DELTA=10  (5 added, 0 deleted, 5 changed)
OCL=32742
CL=32756
This commit is contained in:
Rob Pike 2009-08-04 17:31:19 -07:00
parent dbe004efe4
commit abaf604648
2 changed files with 10 additions and 5 deletions

View 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
]

View file

@ -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
}