MCPcopy
hub / github.com/rs/zerolog / BenchmarkInfo

Function BenchmarkInfo

benchmark_test.go:35–43  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

33}
34
35func BenchmarkInfo(b *testing.B) {
36 logger := New(io.Discard)
37 b.ResetTimer()
38 b.RunParallel(func(pb *testing.PB) {
39 for pb.Next() {
40 logger.Info().Msg(fakeMessage)
41 }
42 })
43}
44
45func BenchmarkContextFields(b *testing.B) {
46 logger := New(io.Discard).With().

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
MsgMethod · 0.80
NextMethod · 0.65
InfoMethod · 0.65

Tested by

no test coverage detected