Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
I did mean rune but thats ok
Browse files Browse the repository at this point in the history
  • Loading branch information
madflojo committed Jan 12, 2021
1 parent ccf043a commit 9e742cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hord_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func BenchmarkDrivers(b *testing.B) {

// Exec Benchmark
for i := 0; i < b.N; i++ {
err := db.Set("Test_Keys_"+string(i), data)
err := db.Set("Test_Keys_"+fmt.Sprintf("%d", i), data)
if err != nil {
b.Fatalf("Error when executing Benchmark test - %s", err)
}
Expand All @@ -93,7 +93,7 @@ func BenchmarkDrivers(b *testing.B) {
// Setup A Bunch of Keys
b.StopTimer()
for i := 0; i < 5000; i++ {
_ = db.Set("Test_Keys_"+string(i), data)
_ = db.Set("Test_Keys_"+fmt.Sprintf("%d", i), data)
}

// Exec Benchmark
Expand All @@ -103,7 +103,7 @@ func BenchmarkDrivers(b *testing.B) {
if count > 4999 {
count = 0
}
_, err := db.Get("Test_Keys_" + string(count))
_, err := db.Get("Test_Keys_" + fmt.Sprintf("%d", count))
if err != nil {
b.Fatalf("Error when executing Benchmark test - %s", err)
}
Expand Down

0 comments on commit 9e742cc

Please sign in to comment.