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

Function BenchmarkLogLogBackendLongFileFlag

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

Source from the content-addressed store, hash-verified

125}
126
127func BenchmarkLogLogBackendLongFileFlag(b *testing.B) {
128 backend := SetBackend(NewLogBackend(ioutil.Discard, "", log.Llongfile))
129 backend.SetLevel(DEBUG, "")
130 RunLogBenchmark(b)
131}
132
133func RunLogBenchmark(b *testing.B) {
134 password := Password("foo")

Callers

nothing calls this directly

Calls 4

SetBackendFunction · 0.85
RunLogBenchmarkFunction · 0.85
NewLogBackendFunction · 0.70
SetLevelMethod · 0.65

Tested by

no test coverage detected