(b *testing.B)
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func BenchmarkExamples(b *testing.B) { |
| 41 | for _, test := range examples { |
| 42 | b.Run(test.Name, func(b *testing.B) { |
| 43 | example := config.New(filepath.Join("..", "examples", test.Name)) |
| 44 | |
| 45 | for b.Loop() { |
| 46 | _, err := compiler.Compile(example) |
| 47 | assert.Nil(b, err) |
| 48 | } |
| 49 | }) |
| 50 | } |
| 51 | } |