mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
fix(clickhouse): order matters
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user