Benchmarks
Every run loads the same randomized data into a single Logs process on MinIO, next to Loki, then sends both the same randomized LogQL 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 |
|---|---|---|---|---|
| logql.metric.range | 3,373 | 324 ms 917 ms | 0.42× | 119 |
| logql.metric.instant | 2,084 | 78.1 ms 205 ms | 0.57× | 67 |
| logql.log.parsed | 1,499 | 129 ms 406 ms | 0.45× | 37 |
| logql.log | 1,237 | 91.2 ms 323 ms | 0.48× | 43 |
| logql.labels | 379 | 21.9 ms 30.3 ms | 0.49× | 0 |
| logql.label_values | 361 | 27.6 ms 29.8 ms | 0.54× | 0 |
| logql.log.parsed.limited | 351 | 73.8 ms 269 ms | 0.60× | 15 |
| logql.log.limited | 299 | 72.3 ms 167 ms | 0.83× | 21 |
- match9,281
- both error174
- inconclusive116
- oracle timeout6
- mismatch4
- oracle error2
Cold reads from object storage
The cold scenario loads 22 hours of logs (about a million lines across 144 streams) 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 Loki 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 |
|---|---|---|---|---|---|---|
| label_values.pod.24h | 3 | 72.2 ms 91.0 ms | 0.79× | 10 6 | 487 KiB 33 KiB | 2.81 ms 6.85 ms |
| labels.24h | 3 | 70.4 ms 100 ms | 0.70× | 11 6 | 488 KiB 33 KiB | 2.07 ms 3.19 ms |
| log.errors.namespace.1h | 3 | 81.0 ms 185 ms | 0.44× | 9 53 | 812 KiB 1.7 MiB | 5.90 ms 16.9 ms |
| log.errors.namespace.24h | 3 | 168 ms 390 ms | 0.43× | 34 213 | 9.4 MiB 11.0 MiB | 11.8 ms 118 ms |
| log.errors.namespace.6h | 3 | 127 ms 253 ms | 0.50× | 20 120 | 4.5 MiB 5.1 MiB | 8.42 ms 69.9 ms |
| log.needle.1h | 3 | 120 ms 376 ms | 0.32× | 11 271 | 2.4 MiB 8.3 MiB | 10.2 ms 82.4 ms |
| log.needle.24h | 3 | 629 ms 1.6 s | 0.39× | 77 1,044 | 41.1 MiB 53.4 MiB | 61.9 ms 738 ms |
| metric.count_by_level.24h | 3 | 739 ms 1.6 s | 0.46× | 79 1,105 | 41.1 MiB 55.4 MiB | 2.59 ms 812 ms |
| metric.count_by_level.6h | 3 | 382 ms 1.3 s | 0.30× | 40 654 | 14.8 MiB 28.7 MiB | 2.17 ms 511 ms |
| metric.errors_by_namespace.24h | 3 | 525 ms 1.2 s | 0.45× | 79 1,188 | 41.1 MiB 60.7 MiB | 2.64 ms 611 ms |
| metric.rate_by_app.1h | 3 | 95.2 ms 223 ms | 0.43× | 7 51 | 511 KiB 1.7 MiB | 2.17 ms 20.1 ms |
| metric.rate_by_app.6h | 3 | 138 ms 249 ms | 0.56× | 16 110 | 1.6 MiB 4.5 MiB | 3.58 ms 48.3 ms |
| series.namespace.24h | 3 | 66.1 ms 114 ms | 0.58× | 10 3 | 487 KiB 20 KiB | 3.85 ms 7.51 ms |
PYTHONPATH=tests/regression mise exec -- python -m harness.fuzz.bench --products logs --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 logs --duration 30mResults land in documentation/benchmarks/fuzz and appear here on the next docs build.