MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / benchmarkLogKeyEnabled

Function benchmarkLogKeyEnabled

base/log_keys_test.go:207–213  ·  view source on GitHub ↗
(b *testing.B, name string, logKey LogKey, logKeys *LogKeyMask)

Source from the content-addressed store, hash-verified

205}
206
207func benchmarkLogKeyEnabled(b *testing.B, name string, logKey LogKey, logKeys *LogKeyMask) {
208 b.Run(name, func(bn *testing.B) {
209 for i := 0; i < bn.N; i++ {
210 logKeys.Enabled(logKey)
211 }
212 })
213}

Callers 1

BenchmarkLogKeyEnabledFunction · 0.85

Calls 2

RunMethod · 0.65
EnabledMethod · 0.45

Tested by

no test coverage detected