MCPcopy
hub / github.com/op/go-logging / BenchmarkLogFixed

Function BenchmarkLogFixed

log_test.go:143–148  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

141}
142
143func BenchmarkLogFixed(b *testing.B) {
144 backend := SetBackend(NewLogBackend(ioutil.Discard, "", 0))
145 backend.SetLevel(DEBUG, "")
146
147 RunLogBenchmarkFixedString(b)
148}
149
150func BenchmarkLogFixedIgnored(b *testing.B) {
151 backend := SetBackend(NewLogBackend(ioutil.Discard, "", 0))

Callers

nothing calls this directly

Calls 4

SetBackendFunction · 0.85
NewLogBackendFunction · 0.70
SetLevelMethod · 0.65

Tested by

no test coverage detected