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

Function BenchmarkEnabledLogKeys

base/log_keys_test.go:200–205  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

198}
199
200func BenchmarkEnabledLogKeys(b *testing.B) {
201 logKeys := logKeyMask(KeyCRUD, KeyDCP, KeyReplicate)
202 for i := 0; i < b.N; i++ {
203 _ = logKeys.EnabledLogKeys()
204 }
205}
206
207func benchmarkLogKeyEnabled(b *testing.B, name string, logKey LogKey, logKeys *LogKeyMask) {
208 b.Run(name, func(bn *testing.B) {

Callers

nothing calls this directly

Calls 2

logKeyMaskFunction · 0.85
EnabledLogKeysMethod · 0.80

Tested by

no test coverage detected