Benchmarks and status
Quixote uses TPC-H Q01 through Q22 over local Parquet files as a correctness and performance test suite on Linux x86-64 (AVX2) and Apple Silicon (NEON). Results are checked against DuckDB 2.0.1 on the exact same Parquet files.
These numbers are engineering reference points, not an apples-to-apples SQL engine comparison:
- No SQL parser: Quixote runs hand-written physical query plans in
benchmarks/tpch/, while DuckDB parses, plans, and optimizes SQL. - Build flags: Quixote is built with explicit
-O2 -g0 -DNDEBUG, vendored static Zstd 1.5.7, and no Arrow C++ runtime dependency. - Measurement setup: 8 CPU threads for both engines (
2I/O threads at SF 1.0 and SF 10;8I/O threads at SF 100), median of 5 runs (SF 1.0 / 10) or 3 runs (SF 100) after warmup on idle machines, with nominal Apple Silicon thermals and zero disk spill under the configured query limits (2 GiB/4 GiB/8 GiB).
Scale summary (commit 8c70ca9)
All 22 queries matched DuckDB 2.0.1 outputs at every scale on both platforms.
| Scale | Platform | Threads | Quixote total | DuckDB 2.0.1 ref | Ratio | Max peak working memory |
|---|---|---|---|---|---|---|
| SF 1.0 | Linux x86-64 (AVX2) | 8 CPU / 2 I/O | 577.9 ms | 953.7 ms | 0.61x | 57.5 MiB |
| SF 1.0 | Apple Silicon M4 (NEON) | 8 CPU / 2 I/O | 402.0 ms | 611.2 ms | 0.66x | 55.4 MiB |
| SF 10 | Linux x86-64 (AVX2) | 8 CPU / 2 I/O | 4,629.7 ms | 7,744.6 ms | 0.60x | 177.7 MiB |
| SF 10 | Apple Silicon M4 (NEON) | 8 CPU / 2 I/O | 3,972.7 ms | 6,018.0 ms | 0.66x | 169.9 MiB |
| SF 100 | Linux x86-64 (AVX2) | 8 CPU / 8 I/O | 46,191.4 ms | 77,795.6 ms | 0.59x | 1,294.3 MiB |
| SF 100 | Apple Silicon M4 (NEON) | 8 CPU / 8 I/O | 42,697.2 ms | 63,561.2 ms | 0.67x | 1,293.8 MiB |
SF 100 spans roughly 23 GiB of local Parquet files (600 million lineitem rows).
Per-query SF 100 breakdown (commit 8c70ca9)
Median elapsed milliseconds and peak working memory (MiB) per query at SF 100
(8 CPU threads, 8 I/O threads, 16 GiB runtime limit, 8 GiB query limit):
| Query | Linux Quixote (ms) | Linux DuckDB (ms) | Linux Peak (MiB) | M4 Quixote (ms) | M4 DuckDB (ms) | M4 Peak (MiB) |
|---|---|---|---|---|---|---|
| Q01 | 2,205.4 | 3,293.0 | 20.0 | 2,592.1 | 2,830.0 | 19.5 |
| Q02 | 456.0 | 735.7 | 110.6 | 375.7 | 553.8 | 108.8 |
| Q03 | 2,469.8 | 4,076.7 | 786.1 | 2,143.2 | 2,971.0 | 784.5 |
| Q04 | 1,464.2 | 2,410.7 | 421.1 | 1,370.4 | 1,945.0 | 472.9 |
| Q05 | 2,833.8 | 4,333.4 | 254.0 | 2,581.4 | 3,535.7 | 253.6 |
| Q06 | 1,074.8 | 1,810.2 | 11.0 | 1,009.3 | 1,434.5 | 11.0 |
| Q07 | 2,994.7 | 4,009.0 | 349.9 | 2,454.5 | 3,272.4 | 349.5 |
| Q08 | 3,514.2 | 5,367.2 | 208.1 | 3,429.3 | 4,258.2 | 208.0 |
| Q09 | 5,291.0 | 7,319.9 | 1,294.3 | 4,505.0 | 6,365.1 | 1,293.8 |
| Q10 | 2,560.8 | 4,332.6 | 1,071.8 | 2,091.5 | 3,253.1 | 1,041.8 |
| Q11 | 384.0 | 636.7 | 410.5 | 304.3 | 543.7 | 396.5 |
| Q12 | 1,422.0 | 2,268.2 | 99.8 | 1,581.3 | 1,757.0 | 97.9 |
| Q13 | 2,586.1 | 5,117.1 | 326.5 | 2,588.6 | 4,844.0 | 326.2 |
| Q14 | 1,985.5 | 2,854.8 | 642.3 | 2,046.2 | 2,486.3 | 642.2 |
| Q15 | 2,125.3 | 2,715.6 | 701.3 | 1,956.5 | 2,270.6 | 696.8 |
| Q16 | 409.1 | 720.1 | 332.9 | 344.1 | 562.8 | 331.1 |
| Q17 | 1,903.8 | 4,435.3 | 135.3 | 1,951.4 | 3,494.2 | 131.7 |
| Q18 | 1,509.9 | 6,027.7 | 26.0 | 1,272.3 | 4,337.3 | 26.0 |
| Q19 | 1,992.2 | 3,066.4 | 37.0 | 2,176.6 | 2,701.9 | 36.9 |
| Q20 | 2,184.1 | 3,315.9 | 202.2 | 2,187.6 | 2,801.2 | 191.0 |
| Q21 | 4,252.9 | 7,960.9 | 1,073.0 | 3,307.7 | 6,604.4 | 1,084.6 |
| Q22 | 571.8 | 988.5 | 261.6 | 428.3 | 739.0 | 256.1 |
Current status
| Area | Status | Notes |
|---|---|---|
| Arrow scalar types | Implemented | 19 nullable types via Arrow C Data / C Stream |
| Nested Arrow types | Implemented | Struct, List, LargeList, Map (including nested Parquet I/O) |
| Physical operators | Implemented | Filter, project, joins (all 7 types), groupby, aggregates, sort, top-K, window, set ops, UTF-8 regex |
| Standalone Parquet | Implemented | V1/V2 reader, V2 writer, Zstd/Snappy/LZ4_RAW/Gzip, row-group and page-index pruning |
| Spilling & budgets | Implemented | Query-wide working/reserved/held accounting; disk spill for sort, Grace joins, grouping, set ops |
| Profiling | Implemented | Operator counters, JSON, OTLP/HTTP JSON, Perfetto traces (QueryProfile) |
| SIMD dispatch | Implemented | Runtime AVX2 (x86-64) and NEON (arm64) kernels verified against scalar implementations |
| Test suites | Passing | 45 native CTest suites, 1,974 Python tests (Linux), 16 relocated C++ SDK consumer checks |
| SQL parser | Out of scope | Physical plan API only |
| API & ABI stability | Experimental | Alpha (0.1.0a1); Python and C++ APIs may change |
Reproduce locally
From a source checkout with the interop dependency group installed:
uv run --no-sync python benchmarks/tpch/generate.py --scale 1.0 --out build/tpch-data/sf1.0
uv run --no-sync python benchmarks/tpch/eval.py \
--data-dir build/tpch-data/sf1.0 \
--mode benchmark --runs 5 --threads 8 --io-threads 2 \
--memory-limit "4 GiB" --query-memory-limit "2 GiB"
Replace --scale 1.0 with 10 or 100 (adjusting --memory-limit,
--query-memory-limit, and --io-threads 8 for SF 100) to run the larger
datasets.