Commit 48b42d29 authored by Vladimir Stefanovic's avatar Vladimir Stefanovic Committed by Brad Fitzpatrick

test/bench/go1: reduce fasta data size for mips{,64}

Change-Id: I15887ee454acfdb36334dd9f0b59cc520b2b0286
Reviewed-on: https://go-review.googlesource.com/34311Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 3fb1e0bd
...@@ -12,10 +12,10 @@ var fastabytes = makefasta() ...@@ -12,10 +12,10 @@ var fastabytes = makefasta()
func makefasta() []byte { func makefasta() []byte {
var n int = 25e6 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. // TODO(dfc) remove this limitation after precise gc.
// A value of 25e6 consumes 465mb of heap on 32bit // 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 // A value of 25e5 produces a memory layout that
// confuses the gc on 32bit platforms. So 25e4 it is. // confuses the gc on 32bit platforms. So 25e4 it is.
n = 25e4 n = 25e4
......
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