(b *testing.B)
| 80 | } |
| 81 | |
| 82 | func BenchmarkPutExpression(b *testing.B) { |
| 83 | b.Run("PutIdentifier", func(b *testing.B) { |
| 84 | b.ReportAllocs() |
| 85 | ident := &Identifier{Name: "test"} |
| 86 | for i := 0; i < b.N; i++ { |
| 87 | PutExpression(ident) |
| 88 | } |
| 89 | }) |
| 90 | |
| 91 | b.Run("PutBinaryExpression", func(b *testing.B) { |
| 92 | b.ReportAllocs() |
| 93 | binExpr := &BinaryExpression{ |
| 94 | Left: &Identifier{Name: "id"}, |
| 95 | Operator: "=", |
| 96 | Right: &Identifier{Name: "1"}, |
| 97 | } |
| 98 | for i := 0; i < b.N; i++ { |
| 99 | PutExpression(binExpr) |
| 100 | } |
| 101 | }) |
| 102 | } |
| 103 | |
| 104 | func BenchmarkParallel(b *testing.B) { |
| 105 | b.Run("ParallelSelectStatement", func(b *testing.B) { |
nothing calls this directly
no test coverage detected