histogram query
This commit is contained in:
parent
7b2cdc7386
commit
4bf29f9e4f
|
@ -17,3 +17,17 @@ SELECT * FROM benchrunner.bench_metrics_confirmation_rate
|
|||
ORDER BY ts DESC
|
||||
```
|
||||
|
||||
```postgresql
|
||||
-- note: arrays are 1-based; histogram array has 21 elements
|
||||
SELECT
|
||||
ts,
|
||||
average_confirmation_time_ms,
|
||||
histogram_confirmation_time_ms[1] as p_min,
|
||||
histogram_confirmation_time_ms[19] as p90,
|
||||
histogram_confirmation_time_ms[20] as p95,
|
||||
histogram_confirmation_time_ms[21] as p_max
|
||||
FROM benchrunner.bench_metrics_confirmation_rate
|
||||
ORDER BY ts DESC
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue