mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
promql: add benchmark for match against blank string
Blank strings are not handled efficiently by tsdb. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
e1b7082008
commit
80ac0d7c82
|
@ -174,6 +174,15 @@ func rangeQueryCases() []benchCase {
|
||||||
{
|
{
|
||||||
expr: "a_X + on(l) group_right a_one",
|
expr: "a_X + on(l) group_right a_one",
|
||||||
},
|
},
|
||||||
|
// Label compared to blank string.
|
||||||
|
{
|
||||||
|
expr: "count({__name__!=\"\"})",
|
||||||
|
steps: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
expr: "count({__name__!=\"\",l=\"\"})",
|
||||||
|
steps: 1,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// X in an expr will be replaced by different metric sizes.
|
// X in an expr will be replaced by different metric sizes.
|
||||||
|
|
Loading…
Reference in a new issue