(b *testing.B, s string)
| 35 | } |
| 36 | |
| 37 | func benchmarkAppendJSONStringViaStrconv(b *testing.B, s string) { |
| 38 | b.ReportAllocs() |
| 39 | b.SetBytes(int64(len(s))) |
| 40 | b.RunParallel(func(pb *testing.PB) { |
| 41 | var buf []byte |
| 42 | for pb.Next() { |
| 43 | buf = strconv.AppendQuote(buf[:0], s) |
| 44 | } |
| 45 | }) |
| 46 | } |
no test coverage detected
searching dependent graphs…