]> Cypherpunks repositories - gostls13.git/commit
testing: quantize AllocsPerRun
authorRob Pike <r@golang.org>
Thu, 30 May 2013 15:28:08 +0000 (11:28 -0400)
committerRob Pike <r@golang.org>
Thu, 30 May 2013 15:28:08 +0000 (11:28 -0400)
commitcf5dd6ad644ef0f12e5e1f550a3721b146ad177a
tree1bd99b7238acc583d5c41bc43dc5cd0548878a9c
parente17281b39779c18fc73779c81a3741b05ea85485
testing: quantize AllocsPerRun
As the code now says:

We are forced to return a float64 because the API is silly, but do
the division as integers so we can ask if AllocsPerRun()==1
instead of AllocsPerRun()<2.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/9837049
src/pkg/testing/allocs.go