compara
Extremely fast table comparison: two tables on a composite key, with counts, per-column statistics and a self-contained HTML report. One tool for every recurring comparison: a nightly export against yesterday’s, a CSV against the Parquet a warehouse emits, a migration’s source against its target.
Faster software for a better planet — less energy, less compute, more time for life.
- Reads CSV, TSV, JSON (newline-delimited or one array of objects) and Parquet, and the two sides need not be in the same format.
- Ten million rows × 20 columns of CSV in about a second on GitHub’s 4-core runner with the files cached, where the fastest of DuckDB, Polars, qsv and ClickHouse takes about 10 s; on Parquet as Polars or DuckDB write it, about twice as fast as the fastest of them (1.7–2.2 s vs 3.9–4.7 s); from a cold disk, little more than the time to read the files (CSV 9.3 s vs 8.6 s to read) (benchmarks).
- Reads and writes object storage and the web directly (
s3://,gs://,az://,https://), with each cloud’s own credentials, and fetches only the Parquet columns it compares (object storage). - One static binary, and a distroless container image; the report is a single HTML file with nothing to host.
- Exit codes made for pipelines:
0identical,1differences,2error,3duplicate keys (with--fail-on-dups).
Start
- Install: Every way to install compara: prebuilt binaries, package managers and the container image.
- Quick start: Two example exports compared, from the counts to the HTML report.
- Everyday comparisons: The comparisons people run most, and what compare writes and when.
Guides
- Compare tables in object storage and on the web: Compare tables on S3, GCS, Azure or a web server, with each cloud’s own credentials, partitioned tables and Delta versions.
- Run compara in a container, in CI or in Kubernetes: The container image, how compara keeps to a container’s limits, the GitHub Action and a Kubernetes Job.
- Name a recurring comparison: Give a comparison you run often a name in compara.toml, and the example pair the repository ships.
Concepts
- Engines and formats: The three engines and their shared result contract, and how each input format is read.
Reference
- compare options: Every option of compare, duplicate keys and profiles.
- The JSON summary: The shape of the summary
--jsonwrites, as a JSON Schema. - compara –help: The commands and options exactly as this build prints them.
Agents
- For AI agents: What an agent gets: a JSON result, exit codes it can branch on, a read-only default, and these docs as markdown.
- Skill: The guide
compara skillgives an agent, as this version prints it.
Benchmarks
- Results: compara against DuckDB and Polars on the same comparisons, local and on object storage, each number with its CI run.
- Where compara is not ahead: Each measure on which another tool beat compara in the same run.
Project
- Changelog: What changed in each release, and what is on the way.
- Contributing: How to build, test and benchmark compara, and the performance gate every change passes.
- Security: What compara protects and how, and how to report a problem.
Built from commit c2d955a, 81 commits after v0.8.0, of 2026-11-25; compara --version says compara 0.9.0. These docs are ahead of the 0.8.0 release: what the changelog lists under Unreleased is not in 0.8.0 yet.