Commit abaf6046 authored by Rob Pike's avatar Rob Pike

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
parent dbe004ef
...@@ -34,3 +34,7 @@ nbody 50000000 ...@@ -34,3 +34,7 @@ nbody 50000000
gccgo -O2 nbody.go 118.55u 0.02s 120.32r gccgo -O2 nbody.go 118.55u 0.02s 120.32r
gc nbody 100.84u 0.00s 100.85r gc nbody 100.84u 0.00s 100.85r
gc_B nbody 103.33u 0.00s 103.39r gc_B nbody 103.33u 0.00s 103.39r
[
hacked Sqrt in assembler
gc nbody 31.97u 0.00s 32.01r
]
...@@ -30,12 +30,13 @@ fasta() { ...@@ -30,12 +30,13 @@ fasta() {
} }
revcomp() { revcomp() {
6.out -n 25000000 > x gcc -O2 fasta.c
a.out 25000000 > x
echo 'reverse-complement < output-of-fasta-25000000' echo 'reverse-complement < output-of-fasta-25000000'
run 'gcc -O2 reverse-complement.c' a.out 25000000 < x run 'gcc -O2 reverse-complement.c' a.out < x
run 'gccgo -O2 reverse-complement.go' a.out -n 25000000 < x run 'gccgo -O2 reverse-complement.go' a.out < x
run 'gc reverse-complement' $O.out -n 25000000 < x run 'gc reverse-complement' $O.out < x
run 'gc_B reverse-complement' $O.out -n 25000000 < x run 'gc_B reverse-complement' $O.out < x
rm x rm x
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment