(b *testing.B)
| 102 | } |
| 103 | |
| 104 | func BenchmarkParallel(b *testing.B) { |
| 105 | b.Run("ParallelSelectStatement", func(b *testing.B) { |
| 106 | b.ReportAllocs() |
| 107 | b.RunParallel(func(pb *testing.PB) { |
| 108 | for pb.Next() { |
| 109 | stmt := GetSelectStatement() |
| 110 | stmt.Columns = append(stmt.Columns, &Identifier{Name: "id"}) |
| 111 | stmt.Where = &BinaryExpression{ |
| 112 | Left: &Identifier{Name: "id"}, |
| 113 | Operator: "=", |
| 114 | Right: &Identifier{Name: "1"}, |
| 115 | } |
| 116 | PutSelectStatement(stmt) |
| 117 | } |
| 118 | }) |
| 119 | }) |
| 120 | } |
nothing calls this directly
no test coverage detected