]> Cypherpunks repositories - gostls13.git/commitdiff
test/bench/go1: reduce fasta data size for mips{,64}
authorVladimir Stefanovic <vladimir.stefanovic@imgtec.com>
Tue, 13 Dec 2016 18:29:34 +0000 (19:29 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 13 Dec 2016 22:04:23 +0000 (22:04 +0000)
Change-Id: I15887ee454acfdb36334dd9f0b59cc520b2b0286
Reviewed-on: https://go-review.googlesource.com/34311
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
test/bench/go1/fasta_test.go

index 99d8c9754b1188bf2ca95afc9b39ebf4cc4e605c..af4fbac274c125756988ff517b8d47e041159fe1 100644 (file)
@@ -12,10 +12,10 @@ var fastabytes = makefasta()
 
 func makefasta() []byte {
        var n int = 25e6
-       if runtime.GOARCH == "arm" {
+       if runtime.GOARCH == "arm" || runtime.GOARCH == "mips" || runtime.GOARCH == "mips64" {
                // TODO(dfc) remove this limitation after precise gc.
                // A value of 25e6 consumes 465mb of heap on 32bit
-               // platforms, which is too much for most ARM systems.
+               // platforms, which is too much for some systems.
                // A value of 25e5 produces a memory layout that
                // confuses the gc on 32bit platforms. So 25e4 it is.
                n = 25e4