MCPcopy
hub / github.com/uber-go/zap / BenchmarkStackField

Function BenchmarkStackField

logger_bench_test.go:150–154  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

148}
149
150func BenchmarkStackField(b *testing.B) {
151 withBenchedLogger(b, func(log *Logger) {
152 log.Info("Error.", Stack("stacktrace"))
153 })
154}
155
156func BenchmarkObjectField(b *testing.B) {
157 withBenchedLogger(b, func(log *Logger) {

Callers

nothing calls this directly

Calls 3

withBenchedLoggerFunction · 0.85
StackFunction · 0.70
InfoMethod · 0.45

Tested by

no test coverage detected