(b *testing.B)
| 192 | } |
| 193 | |
| 194 | func BenchmarkWrap(b *testing.B) { |
| 195 | err := errors.New("foo") |
| 196 | b.RunParallel(func(pb *testing.PB) { |
| 197 | for pb.Next() { |
| 198 | _ = errtrace.Wrap(err) |
| 199 | } |
| 200 | }) |
| 201 | } |
| 202 | |
| 203 | func BenchmarkFmtErrorf(b *testing.B) { |
| 204 | err := errors.New("foo") |