Skip to content

Integrate JSONBench into vortex benchmarking - #11390

Draft
robert3005 wants to merge 3 commits into
wm/variant-layoutfrom
claude/nice-ramanujan-btk0qh
Draft

robert3005 wants to merge 3 commits into
wm/variant-layoutfrom
claude/nice-ramanujan-btk0qh

Conversation

@robert3005

@robert3005 robert3005 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

This adds JSONBench to the benchmark suite. It is the top of a stack. Below it, #11505 extracts from Variants and pushes variant_get into the scan. #11814 then adds the Variant layout and shredding on write. Review and merge them in that order.

  • vortex-bench downloads the Bluesky NDJSON files and writes Parquet with a Parquet Variant column, optionally shredded (--opt shredding=). Vortex files shred by an inferred schema by default.
  • datafusion-bench registers try_variant_get(variant, path, type) with the signature of datafusion-variant, which has no release for DataFusion 55 and Arrow 59. Paths start with $., as in datafusion-variant, which is the form that vortex-datafusion converts to the Vortex variant_get.
  • bench-orchestrator adds the suite. It rejects DuckDB over Vortex, because a Variant cannot be exported to DuckDB yet.
  • vortex-bench/sql/jsonbench.md documents the results at 1, 5 and 20 million rows.

On 1M unshredded rows (--opt shredding=none, DataFusion), Vortex takes 0.41-0.64 of the Parquet query time:

Query Parquet (ms) Vortex (ms) Ratio
Q0 40.7 25.9 0.64
Q1 81.3 50.2 0.62
Q2 86.7 40.9 0.47
Q3 79.4 32.4 0.41
Q4 80.1 36.2 0.45

These results are from the 19 Nov head, before the stack was rebased onto develop.

🤖 Generated with Claude Code

@robert3005 robert3005 added the changelog/feature A new feature label Nov 11, 2026
@robert3005
robert3005 force-pushed the claude/nice-ramanujan-btk0qh branch 2 times, most recently from 7fa1618 to 1560ed0 Compare November 16, 2026 17:39
@robert3005
robert3005 force-pushed the claude/nice-ramanujan-btk0qh branch 4 times, most recently from d6653b6 to 8ade4c1 Compare November 19, 2026 11:41
@lwwmanning
lwwmanning force-pushed the claude/nice-ramanujan-btk0qh branch from 8ade4c1 to 9cd5371 Compare November 23, 2026 11:54
@lwwmanning
lwwmanning changed the base branch from develop to wm/variant-layout November 23, 2026 11:54
robert3005 and others added 3 commits November 23, 2026 07:42
JSONBench runs ClickHouse's five queries over Bluesky events held in a
single Variant column. DataFusion reads it from Parquet, Vortex, and
Vortex Compact. DuckDB reads it from Parquet and its native format.

- vortex-bench: download the NDJSON source files and write Parquet with
  a Parquet Variant column, optionally shredded (`--opt shredding=`).
  Vortex files shred by an inferred schema by default and use the
  Variant layout through an edition of their own. Add
  `Benchmark::queries_for_engine`, because Variant access has no SQL
  syntax that both engines accept.
- datafusion-bench: register `variant_get(variant, path, type)`. It has
  the signature of datafusion-variant, which has no release for
  DataFusion 55 and Arrow 59.
- bench-orchestrator: add the suite, and reject DuckDB over Vortex,
  which cannot export a Variant to DuckDB yet.
- Document the results at 1, 5 and 20 million rows in
  `vortex-bench/sql/jsonbench.md`.

Signed-off-by: Robert Kruszewski <github@robertk.io>
Signed-off-by: Will Manning <will@spiraldb.com>
#11505 now converts only `try_variant_get` with a `$.` path to the Vortex
`variant_get`, as datafusion-variant parses paths from `$` and raises an
error from `variant_get` when a value does not cast. The stand-in that
datafusion-bench registers was `variant_get` with bare paths, so its
queries no longer pushed down. It is now `try_variant_get`, it takes
paths from `$.`, and the DataFusion queries call it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Will Manning <will@spiraldb.com>
Develop now resolves each target to the scan its suite runs, so the
JSONBench target over Vortex resolves to the v2 scan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Will Manning <will@spiraldb.com>
@lwwmanning
lwwmanning force-pushed the claude/nice-ramanujan-btk0qh branch from 9cd5371 to 07dd62b Compare November 23, 2026 13:11
@lwwmanning
lwwmanning added this pull request to stack #11820 November 23, 2026 13:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants