Skip to content

Commit 2961ec3

Browse files
committed
compatible with go 1.0
1 parent 5ccb62d commit 2961ec3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

http_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,28 @@ func BenchmarkNewHttpRequest_Get(b *testing.B) {
7575
for i := 0; i < b.N; i++ {
7676
NewHttpRequest(getRequestConfig)
7777
}
78-
b.ReportAllocs()
78+
//b.ReportAllocs()
7979
}
8080

8181
func BenchmarkNewHttpRequest_Post(b *testing.B) {
8282
for i := 0; i < b.N; i++ {
8383
NewHttpRequest(postRequestConfig)
8484
}
85-
b.ReportAllocs()
85+
//b.ReportAllocs()
8686
}
8787

8888
func BenchmarkCopyHttpRequest_Get(b *testing.B) {
8989
base, _ := NewHttpRequest(getRequestConfig)
9090
for i := 0; i < b.N; i++ {
9191
CopyHttpRequest(getRequestConfig, base)
9292
}
93-
b.ReportAllocs()
93+
//b.ReportAllocs()
9494
}
9595

9696
func BenchmarkCopyHttpRequest_Post(b *testing.B) {
9797
base, _ := NewHttpRequest(postRequestConfig)
9898
for i := 0; i < b.N; i++ {
9999
CopyHttpRequest(postRequestConfig, base)
100100
}
101-
b.ReportAllocs()
101+
//b.ReportAllocs()
102102
}

0 commit comments

Comments
 (0)