mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +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) {
|
func Benchmark_Clickhouse_Set_And_Delete(b *testing.B) {
|
||||||
b.ReportAllocs()
|
|
||||||
b.ResetTimer()
|
|
||||||
|
|
||||||
client := newTestStore(b, Config{
|
client := newTestStore(b, Config{
|
||||||
Engine: Memory,
|
Engine: Memory,
|
||||||
Table: "test_table",
|
Table: "test_table",
|
||||||
@@ -252,6 +249,9 @@ func Benchmark_Clickhouse_Set_And_Delete(b *testing.B) {
|
|||||||
})
|
})
|
||||||
defer client.Close()
|
defer client.Close()
|
||||||
|
|
||||||
|
b.ReportAllocs()
|
||||||
|
b.ResetTimer()
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
_ = client.Set("john", []byte("doe"), 0)
|
_ = client.Set("john", []byte("doe"), 0)
|
||||||
|
Reference in New Issue
Block a user