all: ensure b.ReportAllocs() in all the benchmarks (#8460)

With this change, we'll get details on the number of
allocations performed by code. Later on when we have
continuous benchmarking infrastructure, this change
will prove useful to flag regressions.

Fixes #8459

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
This commit is contained in:
Emmanuel T Odeke
2021-01-27 23:52:08 -08:00
committed by GitHub
co-authored by Alessio Treglia
parent 580e9681a5
commit 784a9a69a1
15 changed files with 25 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ import (
)
func BenchmarkAccountMapperGetAccountFound(b *testing.B) {
b.ReportAllocs()
app, ctx := createTestApp(false)
// assumes b.N < 2**24