(b *testing.B)
| 44 | } |
| 45 | |
| 46 | func BenchmarkZapJSONFloat32AndComplex64(b *testing.B) { |
| 47 | b.RunParallel(func(pb *testing.PB) { |
| 48 | for pb.Next() { |
| 49 | enc := NewJSONEncoder(testEncoderConfig()) |
| 50 | enc.AddFloat32("float32", 3.14) |
| 51 | enc.AddComplex64("complex64", 2.71+3.14i) |
| 52 | } |
| 53 | }) |
| 54 | } |
| 55 | |
| 56 | const _sliceSize = 5000 |
| 57 |
nothing calls this directly
no test coverage detected