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:
parent
0104cea6c8
commit
9905446dc3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user