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

Function BenchmarkLogLogBackend

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

Source from the content-addressed store, hash-verified

105}
106
107func BenchmarkLogLogBackend(b *testing.B) {
108 backend := SetBackend(NewLogBackend(ioutil.Discard, "", 0))
109 backend.SetLevel(DEBUG, "")
110 RunLogBenchmark(b)
111}
112
113func BenchmarkLogLogBackendColor(b *testing.B) {
114 colorizer := NewLogBackend(ioutil.Discard, "", 0)

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