GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Benchmarks: Redis 8.10.2 documents (JSON + FT.AGGREGATE) and time series (TS.*) lanes by tae898 · Pull Request #488 · humemai/arcadedb-embedded-python
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Conversation
|
| Lane | In / out | Why |
|---|---|---|
| documents analytics (l1tpc olap) | in, all five queries | Q1 (all ten TPC-H columns), Q6, top parts, ship mode, revenue by month: one FT.AGGREGATE each (APPLY, GROUPBY with REDUCE SUM / AVG / COUNT, SORTBY with the lane's total order). None dropped |
| documents transactions (l1tpc oltp) | in, with a disclosed gap | new-order and payment as the vendor's optimistic transaction (WATCH, read, MULTI, JSON.SET / JSON.NUMINCRBY, EXEC): atomic and isolated, durable per class, no rollback (a failing command inside EXEC does not undo the others). The lane's transactions always commit (no abort path), so rollback is never exercised; the row says so in redis_txn_model. This lane is not official TPC-C (its docstring says "TPC-C-inspired"). A Lua script has the same property, so nothing better exists; dropping the OLTP table for Redis is one ARM_RUNS entry if you read the gap as disqualifying |
| the four single-record operations | in | single commands, atomic by themselves |
| time series (l4) | in, all six queries | q_last TS.GET; q_range TS.RANGE ... AGGREGATION max; q_global TS.MRANGE ... GROUPBY field REDUCE avg (average of per-host hourly averages; equal to the global average because every host has the same sample count per hour, and the digest checks it); q_groupby TS.MRANGE ... AGGREGATION avg; q_high TS.MRANGE ... FILTER_BY_VALUE with the next double above 90 as the (inclusive) lower bound; q_orderlimit TS.MREVRANGE ... COUNT 5 ... GROUPBY field REDUCE max |
| dense | already in (#481) | |
| graph, cross-model, sparse, lifecycle, restart | out | as in #481 |
| Setting | Our value | Existing engine's equivalent | Vendor doc |
|---|---|---|---|
| Data model, documents | one JSON document per line item / part / order / payment / row (li:<n>, part:<k>, ord:<k>, pay:<seq>, crud:<k>); the key is the id index |
MongoDB collections with unique id indexes | https://redis.io/docs/latest/develop/data-types/json/ |
| Load batch, documents | 50,000 documents per pipeline, no MULTI | MongoDB insert_many 50,000 |
https://redis.io/docs/latest/develop/use/pipelining/ |
| Index, documents | one FT.CREATE ... ON JSON after the load inside the index timer: l_shipdate_n (YYYYMMDD) NUMERIC, aggregated fields SORTABLE |
MongoDB / PostgreSQL index l_shipdate after the load |
https://redis.io/docs/latest/commands/ft.create/ and https://redis.io/docs/latest/develop/ai/search-and-query/advanced-concepts/aggregations/ |
| Query timeout | TIMEOUT 0 on every FT.AGGREGATE, server --search-on-timeout fail (default policy returns a partial answer after 500 ms) |
none needed (no engine returns partial answers on timeout) | https://redis.io/docs/latest/develop/ai/search-and-query/administration/configuration/#search-on-timeout |
| Transactions | WATCH / MULTI / EXEC, no rollback |
MongoDB multi-document transaction, PostgreSQL BEGIN/COMMIT | https://redis.io/docs/latest/develop/using-commands/transactions/ |
| Series layout, time series | one series per (host, field), LABELS host field, vendor defaults for encoding, chunk size, retention, duplicate policy |
MongoDB time-series collection (metaField host) |
https://redis.io/docs/latest/develop/data-types/timeseries/ |
| Ingest batch, time series | TS.MADD, 50,000 points per round trip (one command per field) |
MongoDB insert_many 50,000 |
https://redis.io/docs/latest/commands/ts.madd/ |
| maxmemory / policy | 90% of the cap, noeviction |
Memgraph --memory-limit |
https://raw.githubusercontent.com/redis/redis/8.10.2/redis.conf |
| io-threads | cpuset - 1 | FalkorDB THREAD_COUNT, Memgraph Bolt workers (F6) |
redis.conf, THREADED I/O |
| search-workers (documents only) | cpuset - 1 | PostgreSQL parallel workers = cpuset - 1 | https://redis.io/docs/latest/develop/ai/search-and-query/administration/configuration/#search-workers |
| Durability | relaxed = image default (appendonly no, save 3600 1 300 100 60 10000); strict = --appendonly yes --appendfsync always; both read back with CONFIG GET onto the row |
FalkorDB, same switches | https://redis.io/docs/latest/operate/oss_and_stack/management/persistence/ |
| Caps, cpuset, reps, warm-up, iterations, per-phase memory probes | the lane's own (runner cap rule, 0-11, OLTP_WARMUP, OLAP_ITER, QITER) |
every arm | FAIRNESS F1 to F4 |
Each override is on the row (redis_search_on_timeout, redis_txn_model, redis_index_docs, redis_io_threads, redis_maxmemory, ...) and in PROTOCOL.md section 7 and COMPARATORS.md.
Redis holds the data in memory under noeviction. The SF0.1 smoke (600,572 line items) put the server at 681 MiB, 1.19 KB a row (JSON document plus the SORTABLE index). Extrapolated: SF1 about 7 GB (fits the 14.4 GB maxmemory of the 16g cap), SF10 about 71 GB (against 28.8 GB at 32g). So runner.ARM_RUNS["redis_tpc"] stages the arm at tpch1 only, both workloads, both durability classes (CrateDB's entry is the model); the tpch10 cells are not queued. The extrapolation is linear, from one reading.
Laptop smoke, one rep per cell, generated from results/runs_smoke_redis2.jsonl by smoke_table.py (each Redis row against the other engines' rows of the same lane, workload, TPC-H SF and point count; the durability column is what the adapter read back with CONFIG GET):
| lane, workload, scale | Redis durability | compared with | answer digests | all equal | durability read back |
|---|---|---|---|---|---|
| l1tpc olap, tpch1 SF0.01 | relaxed | duckdb | 5 | yes | appendonly=no, RDB save '3600 1 300 100 60 10000' (image default): nothing is synced at commit |
| l1tpc oltp, tpch1 SF0.01 | relaxed | mongodb, sqlite | 8 | yes | appendonly=no, RDB save '3600 1 300 100 60 10000' (image default): nothing is synced at commit |
| l1tpc oltp, tpch1 SF0.01 | strict | mongodb, sqlite | 8 | yes | appendonly=yes, appendfsync=always: the AOF is fdatasynced at every write |
| l1tpc olap, tpch1 SF0.1 | relaxed | duckdb | 5 | yes | appendonly=no, RDB save '3600 1 300 100 60 10000' (image default): nothing is synced at commit |
| l4 ingest, ts100 500000 points | strict | duckdb, mongodb, timescaledb | 6 | yes | appendonly=yes, appendfsync=always: the AOF is fdatasynced at every write |
| l4 ingest, ts100 500000 points | relaxed | duckdb, mongodb, timescaledb | 6 | yes | appendonly=no, RDB save '3600 1 300 100 60 10000' (image default): nothing is synced at commit |
The first time-series smoke failed on TS.MRANGE argument order (GROUPBY should always come after filter); fixed in this PR, and the six time-series digests above are from the rerun. Bytes per row from the SF0.1 run (about 1.19 KB) put tpch10 at about 71 GB against a 32 GB cap, so redis_tpc runs tpch1 only (ARM_RUNS, as for CrateDB).
uv run --no-project --with pytest --with numpy --with pandas --with pyarrow --with requests python -m pytest -q -p no:cacheprovider . in benchmarks/experiments: 1042 passed, 24 skipped (new: test_redis_docs_ts.py, offline fake of the commands the adapters send).
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ies (TS.*) lanes Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…asured roster, readback alias Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ocuments at tpch1 only (ARM_RUNS, memory measured) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.