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:
co-authored by
Alessio Treglia
parent
580e9681a5
commit
784a9a69a1
@@ -7,6 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func BenchmarkAccountMapperGetAccountFound(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
app, ctx := createTestApp(false)
|
||||
|
||||
// assumes b.N < 2**24
|
||||
|
||||
Reference in New Issue
Block a user