fix(clickhouse): order matters

This commit is contained in:
Manuel de la Peña
2025-04-15 17:17:26 +02:00
parent aac5d67055
commit ff6212a42c

View File

@@ -242,9 +242,6 @@ func Benchmark_Clickhouse_Get(b *testing.B) {
}
func Benchmark_Clickhouse_Set_And_Delete(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
client := newTestStore(b, Config{
Engine: Memory,
Table: "test_table",
@@ -252,6 +249,9 @@ func Benchmark_Clickhouse_Set_And_Delete(b *testing.B) {
})
defer client.Close()
b.ReportAllocs()
b.ResetTimer()
var err error
for i := 0; i < b.N; i++ {
_ = client.Set("john", []byte("doe"), 0)