mirror of
https://github.com/prometheus/prometheus
synced 2026-04-20 14:31:49 +08:00
enable experimental functions in promql benchmarks
Signed-off-by: Dan Cech <dcech@grafana.com>
This commit is contained in:
@@ -342,7 +342,7 @@ func BenchmarkRangeQuery(b *testing.B) {
|
||||
Reg: nil,
|
||||
MaxSamples: 50000000,
|
||||
Timeout: 100 * time.Second,
|
||||
Parser: parser.NewParser(parser.Options{EnableExtendedRangeSelectors: true}),
|
||||
Parser: parser.NewParser(parser.Options{EnableExtendedRangeSelectors: true, EnableExperimentalFunctions: true}),
|
||||
}
|
||||
engine := promqltest.NewTestEngineWithOpts(b, opts)
|
||||
|
||||
@@ -643,6 +643,7 @@ func BenchmarkInfoFunction(b *testing.B) {
|
||||
Timeout: 100 * time.Second,
|
||||
EnableAtModifier: true,
|
||||
EnableNegativeOffset: true,
|
||||
Parser: parser.NewParser(parser.Options{EnableExperimentalFunctions: true}),
|
||||
}
|
||||
engine := promql.NewEngine(opts)
|
||||
b.Run(tc.name, func(b *testing.B) {
|
||||
|
||||
Reference in New Issue
Block a user