GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Benchmarks: CrateDB 6.4.6 joins the documents (analytics), dense and time-series tables by tae898 · Pull Request #486 · humemai/arcadedb-embedded-python

This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Conversation

@tae898

@tae898 tae898 commented Oct 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CrateDB 6.4.6 joins as a comparator on three lanes: documents (TPC-H analytics only), dense vectors, and time series. Image crate@sha256:e7bded34… (6.4.6, amd64, crate:latest on 2026-10-23), Apache 2.0, no benchmark clause found. All three lanes talk PostgreSQL wire through the client image's psycopg; no new package.

Lanes in and out

  • In: documents olap (Q1, Q6, top parts, ship mode, by month; runner.ARM_RUNS keeps the arm off the oltp workload and gives it its own stage), dense (float_vector + knn_match, fp32), time series (six TSBS queries).
  • Out: documents OLTP (new-order and payment are one ACID transaction over several statements; CrateDB's unit is one statement), graph, cross-model, sparse, lifecycle, restart. Reasons are in COMPARATORS.md "Not added, and why".

Fairness contract

  • F7: CrateDB exposes no HNSW parameter. Its graph is Lucene 10.4.0's default (Lucene99HnswVectorsFormat DEFAULT_MAX_CONN 16, doubled at layer 0 = hnswlib M 16; DEFAULT_BEAM_WIDTH 100 = EF_CONSTRUCTION), read from the class constants in the pinned image; CrateCodec only wraps the delegate format. It equals the lane's matched value, so the row stamps degree_param 16 / hnswlib_m_doubled_at_base plus cratedb_lucene_max_conn / cratedb_lucene_beam_width, and the adapter refuses to build at any other BENCH_DENSE_COMPARATOR_M. Search beam: knn_match's k is per shard and the table has one shard, so k = max(10, ef_search), best 10 by _score; the lane's matched-recall sweep turns it like every ef. Recall at ef 100: 0.9994 on the 20k laptop corpus.
  • F10 / F10b: relaxed = translog.durability=ASYNC (translog.sync_interval 5 s, the default), strict = REQUEST (the engine default). Both are set per table and read back from information_schema.tables into durability and cratedb_translog_*; a table that did not take the class marks the string "NOT the fairness_check F11: the October pin's embedded vector clean close is a known regression (#89) #90 ... setting". Bulk load and the analytics reads are one setting per cell, as for every engine.
  • F11: answer digests equal the existing engines' on the laptop: all 5 documents digests (SF0.01) and all 6 time-series digests plus row counts (ts100, full 2.59M points) equal DuckDB's, byte for byte.
  • F3 / F6: heap per CrateDB's own rule (a quarter of the cap, 1 GB to 30.5 GB; vendor_memory.cratedb_heap, F3d), processors = the cpuset (read back from sys.nodes).
  • F14: CrateDB indexes every column and has no index DDL. The decision is the engine default; INDEX OFF on the filtered columns is NOT measured yet and is named as owed in INDEX_DECISIONS.

Settings

Setting Our value The existing engines' equivalent Vendor source
Heap CRATE_HEAP_SIZE 25% of the cap, 1 to 30.5 GB Elasticsearch ≤50% of the cap; Neo4j its tool; others half the cap https://cratedb.com/docs/guide/admin/memory.html
processors cpuset size DuckDB PRAGMA threads, PostgreSQL parallel workers, ES allocated processors https://cratedb.com/docs/crate/reference/en/latest/config/node.html
Cluster discovery.type=single-node same on Elasticsearch https://cratedb.com/docs/crate/reference/en/latest/config/cluster.html
Shards, documents and time series 1 per CPU of the cell PostgreSQL workers = cpuset - 1 https://cratedb.com/docs/guide/performance/sharding.html
Shards, dense 1 Elasticsearch number_of_shards: 1 same; F7
Replicas 0 Elasticsearch number_of_replicas: 0 https://cratedb.com/docs/crate/reference/en/latest/sql/statements/create-table.html
Translog, relaxed ASYNC, sync_interval 5 s PostgreSQL synchronous_commit=off, MongoDB j=false same
Translog, strict REQUEST synchronous_commit=on, j=true same
Refresh default 1 s, then REFRESH TABLE in the build timer Elasticsearch refresh https://cratedb.com/docs/crate/reference/en/latest/sql/statements/refresh.html
Settle, documents and time series ANALYZE in the build timer PostgreSQL ANALYZE https://cratedb.com/docs/crate/reference/en/latest/sql/statements/analyze.html
Settle, dense OPTIMIZE ... max_num_segments = 1 in the build timer Elasticsearch force-merge https://cratedb.com/docs/crate/reference/en/latest/sql/statements/optimize.html
HNSW degree / build beam not settable: 16 / 100 Elasticsearch m 16, ef_construction 100 Lucene 10.4.0 Lucene99HnswVectorsFormat

Details, and the PROTOCOL.md section 7 row, are in COMPARATORS.md "CrateDB: every setting…".

Tests and smoke

  • Whole benchmarks/experiments pytest suite on the rebased branch: 1045 passed, 19 skipped, on the branch rebased onto main after the Redis PR (Benchmarks: Redis 8.10.2 joins the dense table (Query Engine HNSW, vendor settings, both durability classes) #481) merged (stage_drafts_2611.sha256 regenerated after that merge).
  • Lane smoke on the laptop against the pinned image in Docker (-m 3g, heap 1g, cores 4,5,8-11, through quiet_build.sh): documents SF0.01 relaxed and strict, dense 20k relaxed (including the insert/delete mutation phase), time series ts100 in full.
  • runner.py cells (server container + client container, cores 8-11, 6g cap, through quiet_build.sh): cratedb_dense micro, cratedb_tpc tpch1 olap at SF0.01 and cratedb_ts ts100 all passed (rc 0). Rows read back -Cprocessors=4 = the cpuset, the shards asked for, and cratedb_heap_max_mib = server_heap. Not run: the large tiers and the strict class through the runner. Under the diagnostic --mem 6g the tier heap does not follow the cap (8g shown in a 6g cap on two rows); at the real tiers the vendor rule gives a quarter of the cap, and those smoke rows are not for publication.

Notes for merging

  • make_2611_stages.NOT_YET_MEASURED keeps page_check from owing CrateDB rows before it has any; remove it with the first full measurement.
  • stage_drafts_2611.sha256 is regenerated on top of the merged Redis PR; any later change to the stage generator needs one more regeneration.
  • Hours at N=3 are an estimate, not a measurement: see the comment below.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tae898 and others added 3 commits October 23, 2026 17:38
@tae898 @claude
Benchmarks: CrateDB 6.4.6 joins as a comparator (documents analytics,…
262de6f
… dense, time series)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@tae898 @claude
Benchmarks: CrateDB stage drafts, priority test, index-decision wording
07fbd67
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@tae898 @claude
Benchmarks: stage drafts regenerated after the Redis merge
63d9075
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@tae898

tae898 commented Oct 23, 2026

Copy link
Copy Markdown
Author

Estimates, not measurements (N=3, both durability classes, serial on the bench host; the laptop smoke gives the shape only):

Lane Cells Per cell (estimate) Total at N=3
Documents analytics tpch1, tpch10 tpch1 about 0.3 h (SF0.01 loaded in 4 s through unnest, so about 7 min for 6M rows, plus 5 queries x 100 iterations); tpch10 about 2 h about 14 h
Dense small (1M), deep10m small about 1.5-2 h (ingest through batched INSERTs at about 2k vectors/s = 8 min, Lucene indexing, then OPTIMIZE into one segment: 142 s for 50k vectors on one core, so it is the long pole); deep10m at least 10 h, unmeasured small about 10 h; deep10m 60 h or more, I would drop it until a 1M timing is in
Time series ts100, ts1000 ts100 about 0.15 h (21 s ingest of 2.59M points measured); ts1000 about 1 h plus the shared 30 min corpus parse about 7 h

Total without deep10m: about 31 h; with it, 90 h or more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tae898
tae898 force-pushed the bench/cratedb-comparator branch from 98c6acb to 63d9075 Compare October 23, 2026 08:40
@tae898
Merge remote-tracking branch 'origin/main' into bench/cratedb-comparator
966ad00
# Conflicts:
#	benchmarks/experiments/COMPARATORS.md
#	benchmarks/experiments/stage_drafts_2611.sha256
@tae898
tae898 merged commit 71949e2 into main Oct 23, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@tae898
tae898 deleted the bench/cratedb-comparator branch October 23, 2026 10:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@tae898
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.