Skip to content

Commit

Permalink
Merge pull request #515 from hashicorp/fix-bench
Browse files Browse the repository at this point in the history
Bench GetUint64 should actually call GetUint64
  • Loading branch information
raskchanky committed Jul 12, 2022
2 parents 9174562 + cb2cdcc commit d255cf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bench/bench.go
Expand Up @@ -6,8 +6,9 @@ package raftbench
// makes comparing backend performance easier by sharing the tests.

import (
"github.com/hashicorp/raft"
"testing"

"github.com/hashicorp/raft"
)

func FirstIndex(b *testing.B, store raft.LogStore) {
Expand Down Expand Up @@ -164,7 +165,7 @@ func GetUint64(b *testing.B, store raft.StableStore) {

// Run GetUint64 a number of times
for n := 0; n < b.N; n++ {
if _, err := store.Get([]byte{0x05}); err != nil {
if _, err := store.GetUint64([]byte{0x05}); err != nil {
b.Fatalf("err: %s", err)
}
}
Expand Down

0 comments on commit d255cf5

Please sign in to comment.