Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bench GetUint64 should actually call GetUint64 #515

Merged
merged 1 commit into from Jul 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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