MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / BenchmarkSuggestKeywordCacheMiss

Function BenchmarkSuggestKeywordCacheMiss

pkg/errors/cache_test.go:219–230  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

217}
218
219func BenchmarkSuggestKeywordCacheMiss(b *testing.B) {
220 ClearSuggestionCache()
221 ResetSuggestionCacheStats()
222
223 b.ReportAllocs()
224 b.ResetTimer()
225 for i := 0; i < b.N; i++ {
226 // Force cache miss by using unique input
227 ClearSuggestionCache()
228 _ = SuggestKeyword("SELCT")
229 }
230}

Callers

nothing calls this directly

Calls 3

ClearSuggestionCacheFunction · 0.85
SuggestKeywordFunction · 0.85

Tested by

no test coverage detected