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

Function BenchmarkLogLeveled

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

Source from the content-addressed store, hash-verified

98}
99
100func BenchmarkLogLeveled(b *testing.B) {
101 backend := SetBackend(NewLogBackend(ioutil.Discard, "", 0))
102 backend.SetLevel(INFO, "")
103
104 RunLogBenchmark(b)
105}
106
107func BenchmarkLogLogBackend(b *testing.B) {
108 backend := SetBackend(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