Benchmarks
Every run loads the same randomized data into two writers and a reader on MinIO, next to Prometheus or Mimir, then sends both the same randomized PromQL queries. Each answer is checked for correctness and timed. The newest run is shown by default.
| Query family | Cases | p99 latency | p50 ratio | Non-match |
|---|---|---|---|---|
| promql.instant | 1,197 | 18.5 ms 166 ms | 0.08× | 24 |
| promql.range | 1,166 | 35.8 ms 218 ms | 0.09× | 27 |
| promql.label_values | 124 | 8.07 ms 45.8 ms | 0.25× | 0 |
| promql.series | 114 | 17.5 ms 77.8 ms | 0.27× | 0 |
| promql.labels | 15 | 7.91 ms 52.9 ms | 0.23× | 0 |
- match2,565
- both error42
- inconclusive8
- mismatch1
Cold reads from object storage
The cold scenario loads 22 hours of 30-second metrics (about 2.7 million samples, including churning high-cardinality series) at the default scale into both systems, waits until everything is flushed and compacted into MinIO, then runs a fixed battery of hour-to-day queries. Before every measured query the system answering it is restarted with nothing local: no memory or disk caches, no downloaded index or block files. Only the side being measured runs a query at a time, and Mimir's store-gateway reads only object storage. Each process does whatever it does on its own at startup before the query is sent, and that work is reported separately. MinIO adds a fixed delay to every first byte to stand in for S3.
| Query family | Runs | Cold p50 | Ratio | GETs | Read | Warm p50 |
|---|---|---|---|---|---|---|
| agg.error_ratio_by_namespace.24h | 3 | 212 ms 315 ms | 0.67× | 36 82 | 2.6 MiB 59.6 MiB | 2.35 ms 163 ms |
| agg.rate_by_service.1h | 3 | 114 ms 190 ms | 0.60× | 8 41 | 836 KiB 4.6 MiB | 2.60 ms 70.9 ms |
| agg.rate_by_service.24h | 3 | 249 ms 281 ms | 0.89× | 33 81 | 2.6 MiB 59.6 MiB | 3.08 ms 140 ms |
| highcard.sessions_by_namespace.1h | 3 | 103 ms 202 ms | 0.51× | 8 41 | 389 KiB 681 KiB | 2.07 ms 69.1 ms |
| highcard.sessions_by_namespace.24h | 3 | 129 ms 364 ms | 0.35× | 14 82 | 1.1 MiB 7.4 MiB | 2.73 ms 145 ms |
| histogram.p99_by_service.6h | 3 | 151 ms 329 ms | 0.46× | 31 82 | 2.1 MiB 43.0 MiB | 2.37 ms 135 ms |
| instant.max_memory.24h | 3 | 149 ms 190 ms | 0.78× | 26 68 | 2.1 MiB 8.6 MiB | 6.13 ms 78.9 ms |
| label_names.24h | 3 | 92.1 ms 120 ms | 0.76× | 12 6 | 1.7 MiB 383 KiB | 3.27 ms 3.66 ms |
| label_values.instance.24h | 3 | 53.5 ms 111 ms | 0.48× | 5 6 | 323 KiB 43 KiB | 2.53 ms 3.66 ms |
| label_values.session_id.24h | 3 | 68.0 ms 111 ms | 0.61× | 6 6 | 451 KiB 65 KiB | 6.20 ms 3.27 ms |
| raw.memory.1h | 3 | 110 ms 128 ms | 0.86× | 9 5 | 581 KiB 73 KiB | 3.02 ms 28.2 ms |
| series.namespace.24h | 3 | 116 ms 122 ms | 0.95× | 22 6 | 1.3 MiB 219 KiB | 3.08 ms 6.21 ms |
PYTHONPATH=tests/regression mise exec -- python -m harness.fuzz.bench --products metrics --scenarios cold --duration 40mHow runs are measured
The differential fuzzer in tests/regression/harness/fuzz runs both systems on one Docker host, each pinned to its own CPU set. A run fails on any mismatch, implementation error or timeout, unstable implementation answer, or rejected write. The recent scenario queries data still being ingested; historical queries older data that has been flushed to object storage, with artificial latency added to MinIO; cold restarts the answering system before every query, as described above.
To record a new run from the repository root:
PYTHONPATH=tests/regression mise exec -- python -m harness.fuzz.bench --products metrics --duration 30mResults land in documentation/benchmarks/fuzz and appear here on the next docs build.