mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
promql: add a benchmark for topk with k > 1
I picked k = 5. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
211ae4f1f0
commit
cf54a14f9c
|
@ -157,6 +157,9 @@ func rangeQueryCases() []benchCase {
|
||||||
{
|
{
|
||||||
expr: "topk(1, a_X)",
|
expr: "topk(1, a_X)",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
expr: "topk(5, a_X)",
|
||||||
|
},
|
||||||
// Combinations.
|
// Combinations.
|
||||||
{
|
{
|
||||||
expr: "rate(a_X[1m]) + rate(b_X[1m])",
|
expr: "rate(a_X[1m]) + rate(b_X[1m])",
|
||||||
|
|
Loading…
Reference in a new issue