[#15] Fix partial encoder bench
'benchmarkLog' and 'benchmarkEncoder' are pretty much the same, but it can be changed later. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
045b966ecb
commit
cb2e66427d
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ func BenchmarkEncoder(b *testing.B) {
|
|||
SyslogPid(),
|
||||
})
|
||||
l := zap.New(coreWithContext)
|
||||
benchmarkLog(b, l)
|
||||
benchmarkEncoder(b, l)
|
||||
})
|
||||
b.Run("partial", func(b *testing.B) {
|
||||
encoder := NewPartialEncoder(zapcore.NewConsoleEncoder(zc.EncoderConfig), SyslogFields)
|
||||
|
@ -37,7 +37,7 @@ func BenchmarkEncoder(b *testing.B) {
|
|||
SyslogPid(),
|
||||
})
|
||||
l := zap.New(coreWithContext)
|
||||
benchmarkLog(b, l)
|
||||
benchmarkEncoder(b, l)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue