Skip to content

Commit 4b8d5a8

Browse files
committed
test(store/acceptance): increase key length in benchmarks [skip ci]
1 parent b3ef329 commit 4b8d5a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

store/acceptance/benchmark.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package acceptance
55

66
import (
77
"errors"
8+
"strings"
89
"testing"
910

1011
"github.com/bartventer/httpcache/store/driver"
@@ -14,7 +15,7 @@ import (
1415
func RunB(b *testing.B, factory Factory) {
1516
b.Helper()
1617

17-
key := "benchmark_key"
18+
key := "benchmark_key" + strings.Repeat("x", 100)
1819
value := []byte("benchmark_value")
1920
b.Run("Get", func(b *testing.B) { benchmarkGet(b, factory.Make, key) })
2021
b.Run("Set", func(b *testing.B) { benchmarkSet(b, factory.Make, key, value) })

0 commit comments

Comments
 (0)