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

Function BenchmarkLogLogBackendStdFlags

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

Source from the content-addressed store, hash-verified

119}
120
121func BenchmarkLogLogBackendStdFlags(b *testing.B) {
122 backend := SetBackend(NewLogBackend(ioutil.Discard, "", log.LstdFlags))
123 backend.SetLevel(DEBUG, "")
124 RunLogBenchmark(b)
125}
126
127func BenchmarkLogLogBackendLongFileFlag(b *testing.B) {
128 backend := SetBackend(NewLogBackend(ioutil.Discard, "", log.Llongfile))

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