MCPcopy
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
156func 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

BenchmarkLogFixedFunction · 0.85
BenchmarkLogFixedIgnoredFunction · 0.85

Calls 2

MustGetLoggerFunction · 0.85
DebugMethod · 0.80

Tested by

no test coverage detected