diff options
author | Vladimir Stefanovic <vladimir.stefanovic@imgtec.com> | 2016-12-13 19:29:34 +0100 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-12-13 22:04:23 +0000 |
commit | 48b42d29dc1fb8b4f71b1352c7237ca304a5473a (patch) | |
tree | db7843c5e6ed371e16be61592544052676256b26 /test/bench | |
parent | 3fb1e0bd7f99a9592bd3438b4ebb0b9ebcb3c445 (diff) | |
download | go-48b42d29dc1fb8b4f71b1352c7237ca304a5473a.tar.gz go-48b42d29dc1fb8b4f71b1352c7237ca304a5473a.zip |
test/bench/go1: reduce fasta data size for mips{,64}
Change-Id: I15887ee454acfdb36334dd9f0b59cc520b2b0286
Reviewed-on: https://go-review.googlesource.com/34311
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'test/bench')
-rw-r--r-- | test/bench/go1/fasta_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bench/go1/fasta_test.go b/test/bench/go1/fasta_test.go index 99d8c9754b..af4fbac274 100644 --- a/test/bench/go1/fasta_test.go +++ b/test/bench/go1/fasta_test.go @@ -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 |