Query pre-computed SQL engine benchmarks. Runs standalone, no server setup required.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A deterministic, orchestrated harness for verifying database performance at scale. Developed by Ramona C. Truta
This platform is a specialized laboratory for testing SQL performance hypotheses. It transforms query tuning from intuition into a reproducible science.
The core of the system is a Deterministic Orchestration Harness that guarantees that if the logic or the environment changes, the benchmark result changes. If they do not, the result is addressable and cached.
Scope: the focus to date is synthetic and canonical (TPC-H) data, which is the right instrument for mechanism experiments β where controlled, reproducible data isolates the variable under test. Real-data support exists but is experimental; see the FAQ for the synthetic-vs-real rationale, the container model, and the roadmap (AI-security testbed, real-data trust chain).
The Heart of the system is the Experiment ID, an 8-character hash that governs the entire lifecycle. This hash is a SHA-256 fingerprint generated from:
assets/), engine clients (resources/), and data generators (plugins/).Semantic Normalization: The hashing engine distinguishes between a logic change and a formatting change.
To ensure IO-bound performance is not masked by memory buffers, we implement a dual-layer cold start mechanism:
thrash_os_cache primitive that maps and dirties a file larger than physical RAM. This forces the OS to evict Page Cache entries, ensuring cold read performance for both containerized and in-process (DuckDB) engines.The platform is built for the future of Autonomous Engineering. The Experiment ID allows AI agents to treat the laboratory as a Deterministic Performance API.
Benchmarks are defined as N-dimensional matrices in YAML. The platform expands these into a Cartesian product of Independent Dagster Partitions. This allows for parallel dispatch and granular retries.
setup.sh uses it, and it can install Python 3.11 for you.From PyPI β the lab is installable, which gives you the tooling and the sqlbench CLI:
From source β clone the repo to also get the published capsules (sql_benchmarks/experiments/results/) and the full harness. The laboratory includes a comprehensive setup script that manages virtual environments, dependencies, and directory initialization.
While the system is powered by Dagster, the primary interface is the CLI for automated workflows.
To write your own experiment, start from the annotated template and see the catalog of published runs in docs/experiments.md.
Managed with a strict separation between Harness and Scenario:
The first published study with this lab: an independent measurement of DuckDB's Quack client-server protocol (beta, v1.5.3). Each row links the runnable config to its committed, verifiable capsule. Full numbers, scaling exponents, and verification steps in docs/published_capsules.md.
| Act | Question | Config | Capsule | Finding |
|---|---|---|---|---|
| I | What does the protocol cost? | quack_execution_modes.yaml | b8e2bfaf | Attach-mode overhead grows with scan size (2.6Γ β 9.5Γ at 10M rows); pushdown stays flat at ~2Γ. |
| II | Why is pushdown ~2Γ and not 1Γ? | quack_residual_threads.yaml | 25b0e134 | The residual tracks reduced server-side parallelism (~2β4 of 8 threads), not transport. |
| III | Does it generalize to joins? | tpch_quack_validation.yaml | b198363e | On canonical TPC-H Q3, pushdown holds (~1.9Γ); attach mode cannot run the join at all (DNF). |
| IV | Does it beat the incumbent? | quack_vs_postgres.yaml | 902d1277 | DuckDB-over-Quack (pushdown) beats PostgreSQL by up to 13.2Γ, and the gap widens with scale. |
Act 0 (b82b4eae) is the exploratory scout that started it β see docs/published_capsules.md.
The lab also ships scenario suites for other studies β selectivity/,
null_logic/, null_sentinel/, recursion/, sort_spill/, tpch/, and more
under sql_benchmarks/scripts/sql/ β each runnable across the engine matrix.
The lab works at two layers, named two different ways. Keeping them distinct is the difference between a number you can trace and a number you have to trust.
| Layer | What it is | Named by | Example |
|---|---|---|---|
| Capsule | one experiment's complete results | its Experiment ID β an 8-char SHA-256 of the question (config + SQL + measurement code), assigned by the machine | 48c92f31 |
| Release | a signed set of capsules backing a publication | a human name: sqlbenchdag-<topic>-v<N>-<YYYYMMDD> | sqlbenchdag-quack-v1-20260614 |
A release contains capsules; a capsule is one experiment. The machine names
capsules (hashes you can't forge); the author names releases (words that mean
something). sqlbenchdag is the lab's maker's mark β sql + bench +
dag (Dagster, the orchestration that distinguishes this lab from a bare query
timer). It is carried on every release this lab produces.
Two hashes, two jobs (a capsule contains both β they are not the same thing):
integrity.seal) is a checksum β it
verifies the capsule's contents are untouched. You file by the address; the
seal is the tamper-evident lid.Reproducibility is pinned to the release. Because the Experiment ID hashes the measurement code, it is stable only at a fixed code revision β which is exactly what the signed release tag freezes. To reproduce a published capsule, check out its release tag and re-run its config; the same question yields the same ID, or the comparison is refused by construction.
Provenance roadmap: a per-capsule
generatorstamp (sqlbenchdag@<commit>) will record the exact build that produced each capsule. It writes through the finalization code, which lives inside the Experiment-ID hash, so it ships with a future release rather than re-numbering capsules already published.
See docs/published_capsules.md for the full trust chain (reproducibility, integrity, timestamp, authorship) and how to verify each. Reproducibility and integrity are automatic on every run; timestamp and signature are optional steps you add only when publishing β the producer workflow is docs/PUBLISHING.md.
Copyright 2025-2026 Ramona C. Truta. Licensed under the Apache License 2.0.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sql-benchmarks-lab)<a href="https://allmcps.com/mcp/sql-benchmarks-lab"><img src="https://allmcps.com/api/badge/sql-benchmarks-lab?style=directory" alt="SQL Benchmarks Lab on AllMCPs" /></a>