(b *testing.B)
| 69 | } |
| 70 | |
| 71 | func BenchmarkExpressionSlicePool(b *testing.B) { |
| 72 | b.Run("GetPutExpressionSlice", func(b *testing.B) { |
| 73 | b.ReportAllocs() |
| 74 | for i := 0; i < b.N; i++ { |
| 75 | slice := GetExpressionSlice() |
| 76 | *slice = append(*slice, &Identifier{Name: "test"}) |
| 77 | PutExpressionSlice(slice) |
| 78 | } |
| 79 | }) |
| 80 | } |
| 81 | |
| 82 | func BenchmarkPutExpression(b *testing.B) { |
| 83 | b.Run("PutIdentifier", func(b *testing.B) { |
nothing calls this directly
no test coverage detected