aboutsummaryrefslogtreecommitdiff
path: root/test/mallocrep.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-10-09 11:18:32 -0700
committerRuss Cox <rsc@golang.org>2009-10-09 11:18:32 -0700
commitebd27d62fdd45d2fd84f7b6b3fa0740595ac1a04 (patch)
tree1d0d3f6fed536b018ee2610e83747f9496d082ea /test/mallocrep.go
parentf0bde7c51bf6169043bf605798116b75b85615f5 (diff)
downloadgo-ebd27d62fdd45d2fd84f7b6b3fa0740595ac1a04.tar.xz
time tests; sort -nr times.out | sed 10q is illuminating.
cut the slowest tests down from a few seconds to under half a second. R=r DELTA=21 (6 added, 1 deleted, 14 changed) OCL=35509 CL=35519
Diffstat (limited to 'test/mallocrep.go')
-rw-r--r--test/mallocrep.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mallocrep.go b/test/mallocrep.go
index 6306e59ebc..5367787e9a 100644
--- a/test/mallocrep.go
+++ b/test/mallocrep.go
@@ -31,7 +31,7 @@ func bigger() {
func main() {
flag.Parse();
malloc.GetStats().Alloc = 0; // ignore stacks
- for i := 0; i < 1<<8; i++ {
+ for i := 0; i < 1<<7; i++ {
for j := 1; j <= 1<<22; j<<=1 {
if i == 0 && *chatty {
println("First alloc:", j);