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

Function BenchmarkBoolField

logger_bench_test.go:75–79  ·  logger_bench_test.go::BenchmarkBoolField
(b *testing.B)

Source from the content-addressed store, hash-verified

73}
74
75func BenchmarkBoolField(b *testing.B) {
76 withBenchedLogger(b, func(log *Logger) {
77 log.Info("Boolean.", Bool("foo", true))
78 })
79}
80
81func BenchmarkByteStringField(b *testing.B) {
82 val := []byte("bar")

Callers

nothing calls this directly

Calls 3

withBenchedLoggerFunction · 0.85
BoolFunction · 0.85
InfoMethod · 0.45

Tested by

no test coverage detected