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

Function BenchmarkLogLogBackendColor

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

Source from the content-addressed store, hash-verified

111}
112
113func BenchmarkLogLogBackendColor(b *testing.B) {
114 colorizer := NewLogBackend(ioutil.Discard, "", 0)
115 colorizer.Color = true
116 backend := SetBackend(colorizer)
117 backend.SetLevel(DEBUG, "")
118 RunLogBenchmark(b)
119}
120
121func BenchmarkLogLogBackendStdFlags(b *testing.B) {
122 backend := SetBackend(NewLogBackend(ioutil.Discard, "", log.LstdFlags))

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