MCPcopy Create free account
hub / github.com/antchfx/htmlquery / BenchmarkDisableSelectorCache

Function BenchmarkDisableSelectorCache

query_test.go:56–61  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

54}
55
56func BenchmarkDisableSelectorCache(b *testing.B) {
57 DisableSelectorCache = true
58 for i := 0; i < b.N; i++ {
59 getQuery("/AAA/BBB/DDD/CCC/EEE/ancestor::*")
60 }
61}
62
63func TestSelectorCache(t *testing.T) {
64 SelectorCacheMaxEntries = 2

Callers

nothing calls this directly

Calls 1

getQueryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…