mirror of
https://github.com/golang/go
synced 2024-11-12 02:10:21 -07:00
3ba6387bd0
Memory usage has been reduced. The tests are still slow, but that is issue #10571. /usr/bin/time shows significant variation in the peak memory usage compiling with tip. This is unsurprising, given GC. Using Go 1.4.2, memory is stable at 410mb. Using tip at d2ee09298, memory ranges from 470mb (+15%) to 534mb (+30%), with a mean of 504mb (+23%), with n=50. Fixes #9933. Change-Id: Id31f3ae086ec324abf70e8f1a8044c4a0c27e274 Reviewed-on: https://go-review.googlesource.com/10211 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
13 lines
287 B
Go
13 lines
287 B
Go
// runoutput ./rotate.go
|
|
|
|
// Copyright 2013 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Generate test of bit rotations.
|
|
// The output is compiled and run.
|
|
|
|
package main
|
|
|
|
const mode = 0
|