update delete benchmarks

This commit is contained in:
Muhammed Efe Cetin
2023-09-15 18:23:02 +03:00
parent 36dd674d93
commit db1dd2bf6a
21 changed files with 109 additions and 93 deletions

View File

@@ -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")
}