mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
do not report allocations in benchmarks
That's what -benchmem is for.
This commit is contained in:
@@ -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++ {
|
||||
|
||||
Reference in New Issue
Block a user