1
0
mirror of https://github.com/golang/go synced 2024-09-25 01:20:13 -06:00

net/textproto: report allocs in benchmarks

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/8187045
This commit is contained in:
Brad Fitzpatrick 2013-03-30 10:52:22 -07:00
parent 0104cea6c8
commit 9905446dc3

View File

@ -290,6 +290,7 @@ Non-Interned: test
`, "\n", "\r\n", -1)
func BenchmarkReadMIMEHeader(b *testing.B) {
b.ReportAllocs()
var buf bytes.Buffer
br := bufio.NewReader(&buf)
r := NewReader(br)
@ -319,6 +320,7 @@ func BenchmarkReadMIMEHeader(b *testing.B) {
}
func BenchmarkUncommon(b *testing.B) {
b.ReportAllocs()
var buf bytes.Buffer
br := bufio.NewReader(&buf)
r := NewReader(br)