mirror of
https://github.com/prometheus/prometheus.git
synced 2025-09-20 21:31:02 +02:00
promql: Add a two-legged benchmark for HistogramStatsIterator
Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
parent
fda99c6b35
commit
c84cf3622f
@ -350,6 +350,14 @@ func BenchmarkNativeHistograms(b *testing.B) {
|
||||
name: "histogram_count with long rate interval",
|
||||
query: "histogram_count(sum(rate(native_histogram_series[20m])))",
|
||||
},
|
||||
{
|
||||
name: "two-legged histogram_count/sum with short rate interval",
|
||||
query: "histogram_count(sum(rate(native_histogram_series[2m]))) + histogram_sum(sum(rate(native_histogram_series[2m])))",
|
||||
},
|
||||
{
|
||||
name: "two-legged histogram_count/sum with long rate interval",
|
||||
query: "histogram_count(sum(rate(native_histogram_series[20m]))) + histogram_sum(sum(rate(native_histogram_series[20m])))",
|
||||
},
|
||||
}
|
||||
|
||||
opts := promql.EngineOpts{
|
||||
|
Loading…
x
Reference in New Issue
Block a user