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

Function BenchmarkStringerField

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

Source from the content-addressed store, hash-verified

110}
111
112func BenchmarkStringerField(b *testing.B) {
113 withBenchedLogger(b, func(log *Logger) {
114 log.Info("Level.", Stringer("foo", InfoLevel))
115 })
116}
117
118func BenchmarkTimeField(b *testing.B) {
119 t := time.Unix(0, 0)

Callers

nothing calls this directly

Calls 3

withBenchedLoggerFunction · 0.85
StringerFunction · 0.85
InfoMethod · 0.45

Tested by

no test coverage detected