mirror of
https://github.com/gofiber/storage.git
synced 2025-10-04 08:16:36 +08:00
update delete benchmarks
This commit is contained in:
@@ -183,13 +183,12 @@ func Benchmark_SQLite3_Get(b *testing.B) {
|
||||
}
|
||||
|
||||
func Benchmark_SQLite3_Delete(b *testing.B) {
|
||||
err := testStore.Set("john", []byte("doe"), 0)
|
||||
require.NoError(b, err)
|
||||
|
||||
b.ReportAllocs()
|
||||
b.ResetTimer()
|
||||
|
||||
var err error
|
||||
for i := 0; i < b.N; i++ {
|
||||
_ = testStore.Set("john", []byte("doe"), 0)
|
||||
err = testStore.Delete("john")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user