Benchmarks
Every run loads the same randomized data into two writers and a reader on MinIO, next to Tempo, then sends both the same randomized TraceQL 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 |
|---|---|---|---|---|
| traceql.spanset | 1,353 | 49.1 ms 670 ms | 0.01× | 284 |
| trace.by_id | 710 | 17.2 ms 562 ms | 0.01× | 0 |
| traceql.structural | 649 | 38.6 ms 736 ms | 0.01× | 94 |
| traceql.aggregate | 432 | 42.2 ms 609 ms | 0.01× | 32 |
| tags.names | 187 | 19.6 ms 418 ms | 0.01× | 131 |
| tags.values | 178 | 25.3 ms 336 ms | 0.03× | 0 |
| traceql.by | 157 | 43.8 ms 776 ms | 0.01× | 28 |
| traceql.pipeline | 151 | 38.1 ms 696 ms | 0.01× | 9 |
| traceql.select | 105 | 42.0 ms 646 ms | 0.01× | 29 |
- match3,315
- inconclusive607
Cold reads from object storage
The cold scenario loads 22 hours of traces (about 30,000 traces and 190,000 spans) 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 Tempo 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 |
|---|---|---|---|---|---|---|
| search.broad.1h | 3 | 217 ms 521 ms | 0.42× | 49 19 | 3.1 MiB 304 KiB | 4.25 ms 507 ms |
| search.broad.24h | 3 | 306 ms 624 ms | 0.49× | 74 418 | 6.2 MiB 6.4 MiB | 22.7 ms 466 ms |
| search.broad.6h | 3 | 340 ms 535 ms | 0.63× | 81 114 | 6.8 MiB 1.8 MiB | 11.4 ms 485 ms |
| search.duration.6h | 3 | 560 ms 509 ms | 1.10× | 205 114 | 17.2 MiB 1.7 MiB | 7.21 ms 522 ms |
| search.selective.24h | 3 | 1.4 s 671 ms | 2.07× | 308 462 | 40.9 MiB 6.6 MiB | 28.0 ms 589 ms |
| search.selective.6h | 3 | 878 ms 631 ms | 1.39× | 275 126 | 21.5 MiB 1.8 MiB | 14.5 ms 573 ms |
| search.tag.24h | 3 | 550 ms 563 ms | 0.98× | 207 425 | 33.6 MiB 6.8 MiB | 5.26 ms 521 ms |
| tags.names.24h | 3 | 118 ms 810 ms | 0.15× | 10 396 | 642 KiB 1.9 MiB | 4.54 ms 548 ms |
| tags.values.service.24h | 3 | 73.3 ms 139 ms | 0.53× | 12 66 | 644 KiB 658 KiB | 2.24 ms 126 ms |
| trace.by_id.mid | 3 | 144 ms 352 ms | 0.41× | 10 175 | 1.6 MiB 3.2 MiB | 2.17 ms 198 ms |
| trace.by_id.old | 3 | 96.0 ms 363 ms | 0.26× | 3 175 | 1.0 MiB 3.2 MiB | 2.33 ms 234 ms |
PYTHONPATH=tests/regression mise exec -- python -m harness.fuzz.bench --products traces --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 traces --duration 30mResults land in documentation/benchmarks/fuzz and appear here on the next docs build.