Skip to content

Commit

Permalink
fixup! Add benchmark comparing EmbeddedCache with new BlocksCache
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Haudum <[email protected]>
  • Loading branch information
chaudum committed Mar 20, 2024
1 parent 567ae5c commit 8c8c635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storage/stores/shipper/bloomshipper/blockscache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func Benchmark_BlocksCacheOld(b *testing.B) {
}
for i := 0; i < b.N; i++ {
// read
for k, _ := range entries {
for k := range entries {
_, _ = cache.Get(ctx, k)
}
}
Expand Down Expand Up @@ -405,7 +405,7 @@ func Benchmark_BlocksCacheNew(b *testing.B) {
}
// read
for i := 0; i < b.N; i++ {
for k, _ := range entries {
for k := range entries {
_, _ = cache.Get(ctx, k)
}
}
Expand Down

0 comments on commit 8c8c635

Please sign in to comment.