metabase/test: Report allocs in benchmarkSelect()
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
54ef71a92f
commit
0a60e43e5c
1 changed files with 2 additions and 0 deletions
|
@ -1216,6 +1216,8 @@ func TestExpiredObjects(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func benchmarkSelect(b *testing.B, db *meta.DB, cid cidSDK.ID, fs objectSDK.SearchFilters, expected int) {
|
func benchmarkSelect(b *testing.B, db *meta.DB, cid cidSDK.ID, fs objectSDK.SearchFilters, expected int) {
|
||||||
|
b.ReportAllocs()
|
||||||
|
|
||||||
var prm meta.SelectPrm
|
var prm meta.SelectPrm
|
||||||
prm.SetContainerID(cid)
|
prm.SetContainerID(cid)
|
||||||
prm.SetFilters(fs)
|
prm.SetFilters(fs)
|
||||||
|
|
Loading…
Add table
Reference in a new issue