]> Cypherpunks repositories - gostls13.git/commitdiff
test/bench/shootout: pidigits is much faster
authorRob Pike <r@golang.org>
Tue, 28 Aug 2012 22:33:05 +0000 (15:33 -0700)
committerRob Pike <r@golang.org>
Tue, 28 Aug 2012 22:33:05 +0000 (15:33 -0700)
Also fix a bug in the script (s/runonly/run/)

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6501051

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

index c89f562e8efe74274dea31a1d46fa5486cd744d6..95d7982a27e071f2b7230c9067d045f57e87288b 100644 (file)
@@ -1063,3 +1063,9 @@ pidigits 10000
        gc pidigits     3.51u 0.00s 3.52r # -6%
        gc_B pidigits   3.51u 0.00s 3.52r # -6%
 
+# Aug 28, 2012
+# After some assembler work in package big.
+pidigits 10000
+       gc pidigits     2.85u 0.02s 2.88r # -22%
+       gc_B pidigits   2.88u 0.01s 2.90r # -21%
+
index 47707e74387060e947f0c9438e0fbf6276cc564a..890c7e80932d152dd4373877c526ebc5b669c269 100755 (executable)
@@ -176,7 +176,7 @@ meteor() {
 
 pidigits() {
        runonly echo 'pidigits 10000'
-       runonly 'gcc -O2 pidigits.c -lgmp' a.out 10000
+       run 'gcc -O2 pidigits.c -lgmp' a.out 10000
        run 'gccgo -O2 pidigits.go' a.out -n 10000
        run 'gc pidigits' $O.out -n 10000
        run 'gc_B  pidigits' $O.out -n 10000