Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into no-pointer-optimisation-txn
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Miheev committed Jun 12, 2024
2 parents ca514b2 + 874953d commit 45f2225
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdbx/txn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ func BenchmarkTxn_renew(b *testing.B) {

func BenchmarkTxn_Put_append(b *testing.B) {
env, _ := setup(b)
err := env.SetGeometry(-1, -1, 128*1024*1024, -1, -1, 4096)
err := env.SetGeometry(-1, -1, 256*1024*1024, -1, -1, 4096)
if err != nil {
b.Error(err)
return
Expand Down Expand Up @@ -1200,7 +1200,7 @@ func BenchmarkTxn_Put_append(b *testing.B) {

func BenchmarkTxn_Put_append_noflag(b *testing.B) {
env, _ := setup(b)
err := env.SetGeometry(-1, -1, 128*1024*1024, -1, -1, 4096)
err := env.SetGeometry(-1, -1, 256*1024*1024, -1, -1, 4096)
if err != nil {
b.Fatalf("Cannot set mapsize: %s", err)
}
Expand All @@ -1217,8 +1217,8 @@ func BenchmarkTxn_Put_append_noflag(b *testing.B) {
}

err = env.Update(func(txn *Txn) (err error) {
var k [8]byte
for i := 0; i < b.N; i++ {
var k [8]byte
binary.BigEndian.PutUint64(k[:], uint64(i))
err = txn.Put(db, k[:], k[:], 0)
if err != nil {
Expand Down

0 comments on commit 45f2225

Please sign in to comment.