Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jun 28, 2024
1 parent 2892bb5 commit c531783
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mdbx/cursor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ func BenchmarkCursor_Renew(b *testing.B) {
})
}

func BenchmarkCursor_SetRange_OneKey(b *testing.B) {
func BenchmarkCursor_Set_OneKey(b *testing.B) {
env, _ := setup(b)

var db DBI
Expand Down Expand Up @@ -1597,7 +1597,7 @@ func BenchmarkCursor_SetRange_OneKey(b *testing.B) {

b.ResetTimer()
for i := 0; i < b.N; i++ {
_, _, err := c.Get(k, nil, SetRange)
_, _, err := c.Get(k, nil, Set)
if err != nil {
return err
}
Expand All @@ -1608,7 +1608,7 @@ func BenchmarkCursor_SetRange_OneKey(b *testing.B) {
}
}

func BenchmarkCursor_SetRange_Sequence(b *testing.B) {
func BenchmarkCursor_Set_Sequence(b *testing.B) {
env, _ := setup(b)

var db DBI
Expand Down Expand Up @@ -1642,7 +1642,7 @@ func BenchmarkCursor_SetRange_Sequence(b *testing.B) {
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
_, _, err = c.Get(keys[i], nil, SetRange)
_, _, err = c.Get(keys[i], nil, Set)
if err != nil {
return err
}
Expand All @@ -1653,7 +1653,7 @@ func BenchmarkCursor_SetRange_Sequence(b *testing.B) {
}
}

func BenchmarkCursor_SetRange_Random(b *testing.B) {
func BenchmarkCursor_Set_Random(b *testing.B) {
env, _ := setup(b)

var db DBI
Expand Down Expand Up @@ -1688,7 +1688,7 @@ func BenchmarkCursor_SetRange_Random(b *testing.B) {
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
_, _, err = c.Get(keys[i], nil, SetRange)
_, _, err = c.Get(keys[i], nil, Set)
if err != nil {
return err
}
Expand Down

0 comments on commit c531783

Please sign in to comment.