Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
9905446d
Commit
9905446d
authored
Mar 30, 2013
by
Brad Fitzpatrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/textproto: report allocs in benchmarks
R=golang-dev, minux.ma CC=golang-dev
https://golang.org/cl/8187045
parent
0104cea6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
reader_test.go
src/pkg/net/textproto/reader_test.go
+2
-0
No files found.
src/pkg/net/textproto/reader_test.go
View file @
9905446d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment