From 8bdcad30a495d16e1c1d5db0e05e499389c0f959 Mon Sep 17 00:00:00 2001 From: Charles Korn Date: Wed, 28 Jun 2023 15:35:02 +1000 Subject: [PATCH] Add benchmark for query using timestamp() Signed-off-by: Charles Korn --- promql/bench_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/promql/bench_test.go b/promql/bench_test.go index 6818498bf..fb5f3a06d 100644 --- a/promql/bench_test.go +++ b/promql/bench_test.go @@ -186,6 +186,10 @@ func rangeQueryCases() []benchCase { expr: "count({__name__!=\"\",l=\"\"})", steps: 1, }, + // timestamp() function + { + expr: "timestamp(a_X)", + }, } // X in an expr will be replaced by different metric sizes.