@@ -462,7 +462,7 @@ func TestColFindFirstUint8(t *testing.T) {
462462func BenchmarkColFindFirstUint8 (b * testing.B ) {
463463 b .ResetTimer ()
464464
465- for i := 0 ; i < b .N ; i ++ {
465+ for range b .N {
466466 cmf .ColFindFirstUint8 (cmf .Index [0 ], testDataCol8 [4 ].first , testDataCol8 [4 ].last , testDataCol8 [4 ].search )
467467 }
468468}
@@ -510,7 +510,7 @@ func TestColFindFirstSubUint8(t *testing.T) {
510510func BenchmarkColFindFirstSubUint8 (b * testing.B ) {
511511 b .ResetTimer ()
512512
513- for i := 0 ; i < b .N ; i ++ {
513+ for range b .N {
514514 cmf .ColFindFirstSubUint8 (cmf .Index [0 ], 0 , 7 , testDataColSub8 [4 ].first , testDataColSub8 [4 ].last , testDataColSub8 [4 ].search )
515515 }
516516}
@@ -558,7 +558,7 @@ func TestColFindLastUint8(t *testing.T) {
558558func BenchmarkColFindLastUint8 (b * testing.B ) {
559559 b .ResetTimer ()
560560
561- for i := 0 ; i < b .N ; i ++ {
561+ for range b .N {
562562 cmf .ColFindLastUint8 (cmf .Index [0 ], testDataCol8 [4 ].first , testDataCol8 [4 ].last , testDataCol8 [4 ].search )
563563 }
564564}
@@ -606,7 +606,7 @@ func TestColFindLastSubUint8(t *testing.T) {
606606func BenchmarkColFindLastSubUint8 (b * testing.B ) {
607607 b .ResetTimer ()
608608
609- for i := 0 ; i < b .N ; i ++ {
609+ for range b .N {
610610 cmf .ColFindLastSubUint8 (cmf .Index [0 ], 0 , 7 , testDataColSub8 [4 ].first , testDataColSub8 [4 ].last , testDataColSub8 [4 ].search )
611611 }
612612}
@@ -654,7 +654,7 @@ func TestColFindFirstUint16(t *testing.T) {
654654func BenchmarkColFindFirstUint16 (b * testing.B ) {
655655 b .ResetTimer ()
656656
657- for i := 0 ; i < b .N ; i ++ {
657+ for range b .N {
658658 cmf .ColFindFirstUint16 (cmf .Index [1 ], testDataCol16 [4 ].first , testDataCol16 [4 ].last , testDataCol16 [4 ].search )
659659 }
660660}
@@ -702,7 +702,7 @@ func TestColFindFirstSubUint16(t *testing.T) {
702702func BenchmarkColFindFirstSubUint16 (b * testing.B ) {
703703 b .ResetTimer ()
704704
705- for i := 0 ; i < b .N ; i ++ {
705+ for range b .N {
706706 cmf .ColFindFirstSubUint16 (cmf .Index [1 ], 0 , 15 , testDataColSub16 [4 ].first , testDataColSub16 [4 ].last , testDataColSub16 [4 ].search )
707707 }
708708}
@@ -750,7 +750,7 @@ func TestColFindLastUint16(t *testing.T) {
750750func BenchmarkColFindLastUint16 (b * testing.B ) {
751751 b .ResetTimer ()
752752
753- for i := 0 ; i < b .N ; i ++ {
753+ for range b .N {
754754 cmf .ColFindLastUint16 (cmf .Index [1 ], testDataCol16 [4 ].first , testDataCol16 [4 ].last , testDataCol16 [4 ].search )
755755 }
756756}
@@ -798,7 +798,7 @@ func TestColFindLastSubUint16(t *testing.T) {
798798func BenchmarkColFindLastSubUint16 (b * testing.B ) {
799799 b .ResetTimer ()
800800
801- for i := 0 ; i < b .N ; i ++ {
801+ for range b .N {
802802 cmf .ColFindLastSubUint16 (cmf .Index [1 ], 0 , 15 , testDataColSub16 [4 ].first , testDataColSub16 [4 ].last , testDataColSub16 [4 ].search )
803803 }
804804}
@@ -846,7 +846,7 @@ func TestColFindFirstUint32(t *testing.T) {
846846func BenchmarkColFindFirstUint32 (b * testing.B ) {
847847 b .ResetTimer ()
848848
849- for i := 0 ; i < b .N ; i ++ {
849+ for range b .N {
850850 cmf .ColFindFirstUint32 (cmf .Index [2 ], testDataCol32 [4 ].first , testDataCol32 [4 ].last , testDataCol32 [4 ].search )
851851 }
852852}
@@ -894,7 +894,7 @@ func TestColFindFirstSubUint32(t *testing.T) {
894894func BenchmarkColFindFirstSubUint32 (b * testing.B ) {
895895 b .ResetTimer ()
896896
897- for i := 0 ; i < b .N ; i ++ {
897+ for range b .N {
898898 cmf .ColFindFirstSubUint32 (cmf .Index [2 ], 8 , 23 , testDataColSub32 [4 ].first , testDataColSub32 [4 ].last , testDataColSub32 [4 ].search )
899899 }
900900}
@@ -942,7 +942,7 @@ func TestColFindLastUint32(t *testing.T) {
942942func BenchmarkColFindLastUint32 (b * testing.B ) {
943943 b .ResetTimer ()
944944
945- for i := 0 ; i < b .N ; i ++ {
945+ for range b .N {
946946 cmf .ColFindLastUint32 (cmf .Index [2 ], testDataCol32 [4 ].first , testDataCol32 [4 ].last , testDataCol32 [4 ].search )
947947 }
948948}
@@ -990,7 +990,7 @@ func TestColFindLastSubUint32(t *testing.T) {
990990func BenchmarkColFindLastSubUint32 (b * testing.B ) {
991991 b .ResetTimer ()
992992
993- for i := 0 ; i < b .N ; i ++ {
993+ for range b .N {
994994 cmf .ColFindLastSubUint32 (cmf .Index [2 ], 8 , 23 , testDataColSub32 [4 ].first , testDataColSub32 [4 ].last , testDataColSub32 [4 ].search )
995995 }
996996}
@@ -1038,7 +1038,7 @@ func TestColFindFirstUint64(t *testing.T) {
10381038func BenchmarkColFindFirstUint64 (b * testing.B ) {
10391039 b .ResetTimer ()
10401040
1041- for i := 0 ; i < b .N ; i ++ {
1041+ for range b .N {
10421042 cmf .ColFindFirstUint64 (cmf .Index [3 ], testDataCol64 [4 ].first , testDataCol64 [4 ].last , testDataCol64 [4 ].search )
10431043 }
10441044}
@@ -1086,7 +1086,7 @@ func TestColFindFirstSubUint64(t *testing.T) {
10861086func BenchmarkColFindFirstSubUint64 (b * testing.B ) {
10871087 b .ResetTimer ()
10881088
1089- for i := 0 ; i < b .N ; i ++ {
1089+ for range b .N {
10901090 cmf .ColFindFirstSubUint64 (cmf .Index [3 ], 16 , 47 , testDataColSub64 [4 ].first , testDataColSub64 [4 ].last , testDataColSub64 [4 ].search )
10911091 }
10921092}
@@ -1134,7 +1134,7 @@ func TestColFindLastUint64(t *testing.T) {
11341134func BenchmarkColFindLastUint64 (b * testing.B ) {
11351135 b .ResetTimer ()
11361136
1137- for i := 0 ; i < b .N ; i ++ {
1137+ for range b .N {
11381138 cmf .ColFindLastUint64 (cmf .Index [3 ], testDataCol64 [4 ].first , testDataCol64 [4 ].last , testDataCol64 [4 ].search )
11391139 }
11401140}
@@ -1182,7 +1182,7 @@ func TestColFindLastSubUint64(t *testing.T) {
11821182func BenchmarkColFindLastSubUint64 (b * testing.B ) {
11831183 b .ResetTimer ()
11841184
1185- for i := 0 ; i < b .N ; i ++ {
1185+ for range b .N {
11861186 cmf .ColFindLastSubUint64 (cmf .Index [3 ], 16 , 47 , testDataColSub64 [4 ].first , testDataColSub64 [4 ].last , testDataColSub64 [4 ].search )
11871187 }
11881188}
0 commit comments