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

Function BenchmarkReflectField

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

Source from the content-addressed store, hash-verified

160}
161
162func BenchmarkReflectField(b *testing.B) {
163 withBenchedLogger(b, func(log *Logger) {
164 log.Info("Reflection-based serialization.", Reflect("user", _jane))
165 })
166}
167
168func BenchmarkAddCallerHook(b *testing.B) {
169 logger := New(

Callers

nothing calls this directly

Calls 3

withBenchedLoggerFunction · 0.85
ReflectFunction · 0.85
InfoMethod · 0.45

Tested by

no test coverage detected