Contributing Benchmark Results
Thank you for contributing to the BenchBox community results dataset! Community-submitted results help everyone compare platforms on real workloads and grow the benchmark coverage.
Prerequisites
- Install BenchBox - follow the Getting Started guide
- Run a benchmark - you need a complete benchmark result to submit
- Keep your pseudonym salt -
benchbox submitcreates it for you on first use; see step 2 below
Step-by-Step Submission Flow
1. Run a benchmark
Run a complete benchmark suite (not a cherry-picked subset of queries):
Install the platform extra first in your project environment (for example,
uv add benchbox --extra duckdb).
uv run -- benchbox run --platform duckdb --benchmark tpch --official --scale 1 --seed 42 \ --phases power,throughput --streams 2 --benchmark-option tpch_refresh_functions=trueThe result JSON is written to benchmark_runs/results/.
benchbox submit refuses a TPC-H or TPC-DS result whose compliance_class is not
official, and a default benchbox run never records official:
- A run below scale factor 1 is
unofficial_subscale, so--scale 0.01produces a result thatsubmitrefuses. - A run at scale factor 1 or above is
unofficial_nonstandardunless it came frombenchbox run --official, which needs an official scale factor and a--seed. TPC-H official scale factors are 1, 10, 30, 100, 300, 1000, 3000, 10000, 30000 and 100000; TPC-DS has the same list without 30.--officialalso refuses a partial run and a query subset. TPC-H needs the power and throughput phases, the refresh functions and--streamsof at least the minimum for the scale (2 at scale factor 1, 3 at 10, 4 at 30, 5 at 100). TPC-DS needs the load, power, throughput and maintenance phases and an even--streamsof at least 4.
Benchmarks without a TPC compliance class, such as SSB, are not subject to that check. See the TPC-H official guide for official runs.
One optional companion file may be written next to the result JSON. Add
--capture-plans on supported platforms to create <result>.plans.json;
benchbox submit packages it automatically when it sits next to the result
JSON, so a missing plans file does not make a default submission incomplete.
The --tuning flag accepts notuning (default), tuned, auto, or a path to
a YAML config; use tuned, auto, or a YAML path only for intentionally tuned
submissions. Tuning needs no file of its own: the configuration a run requested
and the ledger of what it applied are recorded inside the result JSON under
platform.tuning. Older bundles carry <result>.tuning.json and
<result>.applied.json companions instead, and those are still accepted.
2. Configure the public-submission salt
benchbox submit pseudonymizes retained public identifiers with a private
salt. You need no setup: the first benchbox submit, benchbox export or
benchbox publish run creates a random salt in ~/.benchbox/submission_salt
and prints where it was written. Later runs reuse the same file.
-
Back it up. The salt decides your pseudonymous identifiers. Keep the file to keep them stable across submissions; deleting it or losing it makes the next run create a new salt, which changes the pseudonyms of results you stage again.
-
Override it. A non-empty
BENCHBOX_MACHINE_ID_SALTtakes precedence over the file. Use it to share one salt across machines or to match a CI secret:Terminal window export BENCHBOX_MACHINE_ID_SALT="<stable-private-random-value>" -
Previews write nothing.
--dry-runonbenchbox submitandbenchbox publish runnever creates the file. A submit preview with no salt yet uses a temporary one. -
Containers and CI. A container or CI job whose
HOMEis discarded after each run creates a new salt every time, which changes the pseudonyms and the hosted idempotency keys of each run. Mount a persistentHOMEor setBENCHBOX_MACHINE_ID_SALTfrom a secret.
Do not commit the salt, include it in the submission package, or paste it into
the pull request. If the file is unreadable, empty or cannot be created,
the command refuses and tells you to fix or delete the file or to set
BENCHBOX_MACHINE_ID_SALT.
3. Package the submission
Use uv run -- benchbox submit to create a submission package:
uv run -- benchbox submit --last --output ./submission
uv run -- benchbox results --paths --limit 25
uv run -- benchbox submit benchmark_runs/results/tpch_sf1_duckdb_sql_<timestamp>_<id>.json --output ./submission
uv run -- benchbox submit --last --dry-runThe commands package the most recent result, list result paths, package a specific result file, and preview what would be packaged without writing files. The --paths option writes one path per line to stdout, so it is safe to pipe to xargs. Use it to find the exact path when you need to choose a specific run.
This creates a submission/ directory containing:
| File | Description |
|---|---|
bundle/<result>.json | The canonical schema-v2 result bundle |
bundle/<result>.plans.json | Optional query execution plans from --capture-plans |
<result>.manifest.json | Metadata: hash, benchmark, platform, contributor |
CONTRIBUTING.md | PR instructions (for reference) |
The manifest’s submitted_by field defaults to your git config user.name.
If that is empty (e.g. a fresh sandbox or CI runner), benchbox submit warns
and writes the field as "". Override with --submitted-by "Your Name" if
you prefer not to set git config or want a different attribution.
4. Fork and open a PR
-
Fork the BenchBox repository on GitHub (or use your existing fork)
-
Copy the contents of
submission/bundle/intoresults-data/bundles/in your fork -
Copy
submission/<result>.manifest.jsonalongside the bundle files (the per-bundle manifest filename inherits the bundle stem so two contributors submitting the same week cannot collide) -
Regenerate the inventory before you commit:
Terminal window uv run -- python scripts/generate_corpus_inventory.py --write -
Commit and open a pull request against the
published-resultsbranch ofBenchBox-dev/BenchBox(the public repository)
Use this PR title format:
results: <benchmark> <platform> sf<scale>Example: results: tpch DuckDB sf1.0
Vendor conditions for cloud platforms
A result from Snowflake, BigQuery, Redshift, Athena, Databricks, ClickHouse Cloud or
MotherDuck is subject to that vendor’s publishing terms. benchbox submit takes
--plan-tier, --preview-feature, --vendor-permission, --vendor-notice-date,
--vendor-notice-ref and --self-run to record them in the manifest, and refuses
free-tier, trial and preview results without the vendor’s permission. Follow the
vendor publishing checklist for your
platform before you open the pull request.
5. CI validation
When your PR is opened, the Validate Submission workflow runs automatically. It checks:
- Schema compliance - the bundle is valid schema-v2 JSON with all required fields
- Hash verification - the SHA-256 hash in the manifest matches the bundle contents
- Sanity checks - no all-zero timings, no negative durations, valid platform/benchmark names
- Cache evidence - a recorded session cache-control receipt must confirm the cache is disabled; on Snowflake/Redshift a bundle declaring an enabled result cache without a disabling receipt is refused; all-SUCCESS runs with zero rows everywhere are flagged
- Timing plausibility (warnings only) -
timing-plateau(implausibly tight per-query band),small-scale-floor(tiny data answered slowly),scale-invariant(timings flat across a 10x scale span), and informationalfloor-outlier(fastest query far above the peer median). Warnings never fail validation; sub-millisecond rows are timer noise and excluded from the evidence - Compliance gate - unofficial
compliance_classvalues are refused; onlyofficialmay be submitted. Maintainers validating their own corpus bundles can opt in to one exemption withscripts/validate_submission.py --trust-internal-source(library:validate_bundles(..., trust_internal_source=True)): a bundle whose own manifest sidecar names it inbundle_fileand carriesresult_source: internalmay then carryunofficial_nonstandard,unofficial_subscaleor a gateway-routed run, because subscale and non-standard corpus runs can never beofficial. The flag is off by default and the submission CI never passes it, so a community PR cannot self-declare its way past the rule; bundles with no sidecar, or withcommunityorvendoras the source, stay refused even with the flag, and the trusted-mirror lane still skips the rule. Theofficialclass marks BenchBox’s scale-factor and seed gate; it is not a TPC audit, certification or compliance claim. TPC-derived results are labelled “Derived from <benchmark>” and do not comply with the TPC specification - Query-set coverage - the normalized query IDs must cover the benchmark’s canonical query set (e.g. TPC-H Q1–Q22 in any Q-prefixed, bare, or padded spelling); the benchmark id is matched case-insensitively
- Cost provenance - direct cost totals require
normalized_costprovenance; totals alongsidecost_status: unavailableare refused - Metadata extraction - a summary comment is posted on the PR showing what the submission adds
Community submissions must include a manifest, execute at least one query, and
report summary.validation=passed with no failed measurement evidence.
Truthful partial results are accepted only from the trusted maintainer mirror
path and remain excluded from rankings.
passed checks row counts only for TPC-H, TPC-DS and SSB. For every other benchmark it means the data loaded and the queries ran without error; no answers are checked (What PASSED means for each benchmark).
5a. Plausibility overrides
Timing-plausibility findings (timing-plateau, scale-invariant,
small-scale-floor) block community publication until covered by a
committed <bundle_stem>.override.json companion beside the bundle.
The artifact lists the covered rules with exact registry pins, the
reason, an evidence link, an expiry date (YYYY-MM-DD) or
single-batch, and the approver. The approver must differ from the PR author, and an APPROVED
review from the approver must exist — file content alone never
authorizes. Approval is required on every PR that adds or touches a
covered bundle, including PRs that reuse an unchanged override.
Overrides never substitute for the unofficial-research
compliance label and vice versa. Expired or malformed artifacts fail
validation; the mirror lane renders overrides advisory.
Submissions are data-only: every file a PR adds under
results-data/bundles/ must be a supported .json result bundle, companion,
sidecar manifest, or the inventory. Scripts, workflows, symlinks, executables,
package manifests, and hidden control paths are rejected. If your submission
is blocked for a non-.json file, remove it and open a separate
develop-targeted PR for any non-data change.
If validation fails, the PR comment will explain what to fix. The workflow also
checks that results-data/corpus-inventory.json matches the submitted bundles.
If that check fails, rerun:
uv run -- python scripts/generate_corpus_inventory.py --write6. Review and merge
A maintainer reviews the submission for quality and environment consistency.
Once approved and merged into published-results, the bundle enters the
complete results archive. It does not automatically enter develop or the
curated static Explorer snapshot.
What Makes a Good Submission
The Benchmark Methodology page gathers what a result at a given scale factor and iteration count supports.
- Complete benchmark suite - run the full query set, not a cherry-picked subset
- Stable environment - run on a dedicated machine or instance, not a shared laptop under load
- Default configuration - unless you’re specifically benchmarking a tuned configuration, use defaults
- Reproducible - include enough environment metadata that someone else could replicate the run
- Honest results - don’t hand-optimize queries or cherry-pick favorable runs
Trust Labels
Results in the explorer carry trust labels. In
benchbox/core/results/provenance.py, RESULT_SOURCES defines the manifest
result_source values and SOURCE_TO_TRUST_LABEL maps them to trust labels.
TRUST_LABELS is the complete canonical trust-label vocabulary:
| Canonical label | Explorer display | Meaning |
|---|---|---|
maintainer-run | Maintainer Run | Generated by BenchBox CI or project maintainers |
community-submission | Community Submission | Contributed via PR from an arms-length community member |
vendor-supplied | Vendor Supplied | Produced by the platform vendor itself; applied by maintainers, never self-declared on a submission |
verified | Verified | Reserved for future third-party attestation |
The publisher also accepts ci, local, and unofficial-research as
publish-only workflow labels through benchbox publish run --label. These labels
are not derived from result_source and are not part of the canonical Explorer
trust-label vocabulary above.
Community submissions are labeled “Community Submission” in the explorer to
distinguish them from maintainer-curated results, and are currently excluded
from ranked tables. We will re-evaluate their inclusion over the coming months.
Vendor Supplied (vendor-supplied) results appear in ranked tables but
always carry the distinct vendor badge, because the platform vendor has a direct
interest in the outcome.
The vendor-supplied label is maintainer-applied and never self-declared on a
submission. You cannot self-apply the vendor label through a community PR. The
label is derived from a bundle living under results-data/bundles/vendor/, and the
submission CI (validate-submission.yml) rejects any pull request from a
non-maintainer that adds files under that path. Community submissions belong in
results-data/bundles/ (not vendor/); maintainers place and review vendor
results.
Funding Disclosure
Independent of who produced a result, you may disclose how the run was funded. This is optional and orthogonal to the trust label (a community run can be on a free trial; a vendor result can be employer-funded).
| Funding value | Meaning |
|---|---|
employer | Paid for by your employer |
personal | Paid for out of pocket |
free-trial | Free trial or promotional credits |
vendor-sponsored | The platform vendor paid for or sponsored the run |
grant | Research or institutional grant |
unspecified | Not disclosed (the default) |
Quality Expectations
Submissions that don’t meet these criteria may be asked for revisions:
- Full query coverage - all queries in the benchmark must be included
- No synthetic data - results must come from actual benchmark execution
- Reasonable timings - query durations should be plausible for the platform and scale factor
- Valid metadata - benchmark ID, platform name, and scale factor must match known values
- Schema v2 format - BenchBox currently writes top-level
version"2.2". Public submission validation accepts numeric2.xversions for forward-compatible schema-v2 bundles, but rejects missing or malformed values. To check your bundle:uv run -- python -c "import json; print(json.load(open('bundle.json'))['version'])"
Running Validation Locally
You can validate your bundle before opening a PR. Run validation through
uv run -- python so it uses the same environment as BenchBox.
uv run -- python scripts/validate_submission.py path/to/result.json
uv run -- python scripts/validate_submission.py results-data/bundles/
uv run -- python scripts/generate_corpus_inventory.py --checkThe first command validates one bundle, the second validates every bundle in a directory, and the third verifies the inventory is current before you open the PR.
If you use pre-commit locally, install the shared hooks once from the primary clone (never from a linked worktree) so inventory drift is checked automatically:
uv run -- pre-commit installQuestions?
Start a discussion if you need help with a submission or want to report a correction.