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

Function BenchmarkIntField

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

Source from the content-addressed store, hash-verified

92}
93
94func BenchmarkIntField(b *testing.B) {
95 withBenchedLogger(b, func(log *Logger) {
96 log.Info("Integer.", Int("foo", 42))
97 })
98}
99
100func BenchmarkInt64Field(b *testing.B) {
101 withBenchedLogger(b, func(log *Logger) {

Callers

nothing calls this directly

Calls 3

withBenchedLoggerFunction · 0.85
IntFunction · 0.85
InfoMethod · 0.45

Tested by

no test coverage detected