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

Function BenchmarkByteStringField

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

Source from the content-addressed store, hash-verified

79}
80
81func BenchmarkByteStringField(b *testing.B) {
82 val := []byte("bar")
83 withBenchedLogger(b, func(log *Logger) {
84 log.Info("ByteString.", ByteString("foo", val))
85 })
86}
87
88func BenchmarkFloat64Field(b *testing.B) {
89 withBenchedLogger(b, func(log *Logger) {

Callers

nothing calls this directly

Calls 3

withBenchedLoggerFunction · 0.85
ByteStringFunction · 0.85
InfoMethod · 0.45

Tested by

no test coverage detected