do not report allocations in benchmarks

That's what -benchmem is for.
This commit is contained in:
Matthias Radestock
2017-12-07 20:27:31 +00:00
parent 50327c9b5f
commit f305c35bfd
6 changed files with 11 additions and 15 deletions

View File

@@ -40,12 +40,11 @@ func BenchmarkPodServiceRender(b *testing.B) {
}
func benchmarkRender(b *testing.B, r render.Renderer) {
report, err := loadReport()
if err != nil {
b.Fatal(err)
}
b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {