mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 14:17:12 +02:00
[TESTS] PromQL: shrink work done in BenchmarkRangeQuery
Previously, BenchmarkRangeQuery would run each case with three data sizes (1, 10, 100) and three range lengths (1, 100, 1000) for nine variations. With 36 cases, running with `-count=6` to get dependable results, would take 40-50 minutes in total. This PR removes the middle option in both dimensions, thus shrinking to four variations and about 20 minutes to run everything. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
25aee26a57
commit
31eb3b286d
@ -247,7 +247,6 @@ func rangeQueryCases() []benchCase {
|
||||
tmp = append(tmp, c)
|
||||
} else {
|
||||
tmp = append(tmp, benchCase{expr: strings.ReplaceAll(c.expr, "X", "one"), steps: c.steps})
|
||||
tmp = append(tmp, benchCase{expr: strings.ReplaceAll(c.expr, "X", "ten"), steps: c.steps})
|
||||
tmp = append(tmp, benchCase{expr: strings.ReplaceAll(c.expr, "X", "hundred"), steps: c.steps})
|
||||
}
|
||||
}
|
||||
@ -260,7 +259,6 @@ func rangeQueryCases() []benchCase {
|
||||
tmp = append(tmp, c)
|
||||
} else {
|
||||
tmp = append(tmp, benchCase{expr: c.expr, steps: 1})
|
||||
tmp = append(tmp, benchCase{expr: c.expr, steps: 100})
|
||||
tmp = append(tmp, benchCase{expr: c.expr, steps: 1000})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user