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

Function BenchmarkStringField

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

Source from the content-addressed store, hash-verified

104}
105
106func BenchmarkStringField(b *testing.B) {
107 withBenchedLogger(b, func(log *Logger) {
108 log.Info("Strings.", String("foo", "bar"))
109 })
110}
111
112func BenchmarkStringerField(b *testing.B) {
113 withBenchedLogger(b, func(log *Logger) {

Callers

nothing calls this directly

Calls 3

withBenchedLoggerFunction · 0.85
StringFunction · 0.85
InfoMethod · 0.45

Tested by

no test coverage detected