MCPcopy Create free account
hub / github.com/labstack/gommon / BenchmarkLog

Function BenchmarkLog

log/log_test.go:151–157  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

149}
150
151func BenchmarkLog(b *testing.B) {
152 l := New("test")
153 l.SetOutput(new(bytes.Buffer))
154 for i := 0; i < b.N; i++ {
155 l.Infof("Info=%s, Debug=%s", "info", "debug")
156 }
157}

Callers

nothing calls this directly

Calls 3

InfofMethod · 0.80
NewFunction · 0.70
SetOutputMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…