From 06cac59017e271700ed24ecb0abd32d706ea9339 Mon Sep 17 00:00:00 2001 From: discord9 <55937128+discord9@users.noreply.github.com> Date: Wed, 9 Sep 2026 19:28:03 +0800 Subject: [PATCH] test(perf): measure ordinary instant PromQL queries Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> --- .../promql_instant_last_row_9034/case.toml | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/tests/perf/query_cases/promql_instant_last_row_9034/case.toml b/tests/perf/query_cases/promql_instant_last_row_9034/case.toml index 6e61a094b32..176531cc500 100644 --- a/tests/perf/query_cases/promql_instant_last_row_9034/case.toml +++ b/tests/perf/query_cases/promql_instant_last_row_9034/case.toml @@ -58,7 +58,29 @@ step_nanos = 100000000 time_range_layout = "non_overlapping_per_sst" series_layout = "timestamp_major" -# Candidate instant query must exercise the existing LastRow selector. +# Ordinary query results: the instant selector must exercise LastRow. +[[scenario.queries]] +name = "instant_selector_eval" +kind = "tql" +query = "TQL EVAL (1704067303, 1704067303, '1s') promql_instant_last_row_9034{host=~'host.*'}" +warmup = 3 +iterations = 9 + +[scenario.queries.thresholds] +max_candidate_latency_regression_pct = 25 + +# Ordinary range control: this must not enable the LastRow selector. +[[scenario.queries]] +name = "range_selector_eval_control" +kind = "tql" +query = "TQL EVAL (1704067293, 1704067303, '1s') promql_instant_last_row_9034{host=~'host.*'}" +warmup = 3 +iterations = 9 + +[scenario.queries.thresholds] +max_candidate_latency_regression_pct = 25 + +# Diagnostic ANALYZE results retain the existing LastRow coverage. [[scenario.queries]] name = "instant_selector_last_row_candidate" kind = "tql" @@ -69,7 +91,7 @@ iterations = 9 [scenario.queries.thresholds] max_candidate_latency_regression_pct = 25 -# True range control: this must not enable the LastRow selector. +# Diagnostic range control: this must not enable the LastRow selector. [[scenario.queries]] name = "range_selector_last_row_control" kind = "tql"