diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-29 20:52:43 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-29 20:52:43 +0000 |
commit | 12ebd6294172cc1108bbadab78fea03e890a6da4 (patch) | |
tree | 4f2fad1f4b778519bdd5941185c7e1d032af055b /libgo/go/exp/html/token_test.go | |
parent | 6effa4dc115122a3a4838de0a302dfcadcefeeca (diff) | |
download | ppe42-gcc-12ebd6294172cc1108bbadab78fea03e890a6da4.tar.gz ppe42-gcc-12ebd6294172cc1108bbadab78fea03e890a6da4.zip |
libgo: Update Go library to master revision 15489/921e53d4863c.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195560 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/exp/html/token_test.go')
-rw-r--r-- | libgo/go/exp/html/token_test.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libgo/go/exp/html/token_test.go b/libgo/go/exp/html/token_test.go index 63a8bfc4834..14e23467f49 100644 --- a/libgo/go/exp/html/token_test.go +++ b/libgo/go/exp/html/token_test.go @@ -634,9 +634,7 @@ func benchmarkTokenizer(b *testing.B, level int) { } b.SetBytes(int64(len(buf))) runtime.GC() - var ms runtime.MemStats - runtime.ReadMemStats(&ms) - mallocs := ms.Mallocs + b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { z := NewTokenizer(bytes.NewBuffer(buf)) @@ -674,10 +672,6 @@ func benchmarkTokenizer(b *testing.B, level int) { } } } - b.StopTimer() - runtime.ReadMemStats(&ms) - mallocs = ms.Mallocs - mallocs - b.Logf("%d iterations, %d mallocs per iteration\n", b.N, int(mallocs)/b.N) } func BenchmarkRawLevelTokenizer(b *testing.B) { benchmarkTokenizer(b, rawLevel) } |