Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
151
func
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
Infof
Method · 0.80
New
Function · 0.70
SetOutput
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…