(b *testing.B)
| 45 | } |
| 46 | |
| 47 | func BenchmarkIdentifierPool(b *testing.B) { |
| 48 | b.Run("GetPutIdentifier", func(b *testing.B) { |
| 49 | b.ReportAllocs() |
| 50 | for i := 0; i < b.N; i++ { |
| 51 | ident := GetIdentifier() |
| 52 | ident.Name = "test" |
| 53 | PutIdentifier(ident) |
| 54 | } |
| 55 | }) |
| 56 | } |
| 57 | |
| 58 | func BenchmarkBinaryExpressionPool(b *testing.B) { |
| 59 | b.Run("GetPutBinaryExpression", func(b *testing.B) { |
nothing calls this directly
no test coverage detected