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

Function BenchmarkLogFixedIgnored

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

Source from the content-addressed store, hash-verified

148}
149
150func BenchmarkLogFixedIgnored(b *testing.B) {
151 backend := SetBackend(NewLogBackend(ioutil.Discard, "", 0))
152 backend.SetLevel(INFO, "")
153 RunLogBenchmarkFixedString(b)
154}
155
156func RunLogBenchmarkFixedString(b *testing.B) {
157 log := MustGetLogger("test")

Callers

nothing calls this directly

Calls 4

SetBackendFunction · 0.85
NewLogBackendFunction · 0.70
SetLevelMethod · 0.65

Tested by

no test coverage detected