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

Function BenchmarkInt64Field

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

Source from the content-addressed store, hash-verified

98}
99
100func BenchmarkInt64Field(b *testing.B) {
101 withBenchedLogger(b, func(log *Logger) {
102 log.Info("64-bit integer.", Int64("foo", 42))
103 })
104}
105
106func BenchmarkStringField(b *testing.B) {
107 withBenchedLogger(b, func(log *Logger) {

Callers

nothing calls this directly

Calls 3

withBenchedLoggerFunction · 0.85
Int64Function · 0.85
InfoMethod · 0.45

Tested by

no test coverage detected