File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ import (
6
6
"fmt"
7
7
"testing"
8
8
9
- "github.com/grafana/mimir/pkg/mimirpb"
10
- "github.com/grafana/mimir/pkg/util/test"
11
9
"github.com/stretchr/testify/require"
12
10
"github.com/twmb/franz-go/pkg/kgo"
11
+
12
+ "github.com/grafana/mimir/pkg/mimirpb"
13
+ "github.com/grafana/mimir/pkg/util/test"
13
14
)
14
15
15
16
func TestRecordVersionHeader (t * testing.T ) {
@@ -225,7 +226,7 @@ func BenchmarkDeserializeRecordContent(b *testing.B) {
225
226
require .NoError (b , err )
226
227
227
228
b .Run ("deserialize v1" , func (b * testing.B ) {
228
- for b . Loop () {
229
+ for range b . N {
229
230
wr := & mimirpb.PreallocWriteRequest {}
230
231
err := DeserializeRecordContent (v1bytes , wr , 1 )
231
232
if err != nil {
@@ -236,7 +237,7 @@ func BenchmarkDeserializeRecordContent(b *testing.B) {
236
237
})
237
238
238
239
b .Run ("deserialize v2" , func (b * testing.B ) {
239
- for b . Loop () {
240
+ for range b . N {
240
241
wr := & mimirpb.PreallocWriteRequest {}
241
242
err := DeserializeRecordContent (v2bytes , wr , 2 )
242
243
if err != nil {
You can’t perform that action at this time.
0 commit comments