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

Function BenchmarkFloat64Field

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

Source from the content-addressed store, hash-verified

86}
87
88func BenchmarkFloat64Field(b *testing.B) {
89 withBenchedLogger(b, func(log *Logger) {
90 log.Info("Floating point.", Float64("foo", 3.14))
91 })
92}
93
94func BenchmarkIntField(b *testing.B) {
95 withBenchedLogger(b, func(log *Logger) {

Callers

nothing calls this directly

Calls 3

withBenchedLoggerFunction · 0.85
Float64Function · 0.85
InfoMethod · 0.45

Tested by

no test coverage detected