Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/op/go-logging
/ RunLogBenchmarkFixedString
Function
RunLogBenchmarkFixedString
log_test.go:156–163 ·
view source on GitHub ↗
(b *testing.B)
Source
from the content-addressed store, hash-verified
154
}
155
156
func
RunLogBenchmarkFixedString(b *testing.B) {
157
log := MustGetLogger(
"test"
)
158
159
b.ResetTimer()
160
for
i := 0; i < b.N; i++ {
161
log.Debug(
"some random fixed text"
)
162
}
163
}
Callers
2
BenchmarkLogFixed
Function · 0.85
BenchmarkLogFixedIgnored
Function · 0.85
Calls
2
MustGetLogger
Function · 0.85
Debug
Method · 0.80
Tested by
no test coverage detected