Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions benchmarks/experiments/CAMPAIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ What the October chain taught, kept as rules:
| 76 | **TODO, lands with the tier 1 to tier 2 image rebuild (DECISIONS #173, #174): add `pgvector==0.5.0` and `neo4j-rust-ext==6.3.1.0` to the `client` image.** One edit in `build_images.sh`, the `[client]=` line: `neo4j==6.3.1` becomes `neo4j==6.3.1 neo4j-rust-ext==6.3.1.0` and `pgvector==0.5.0` is appended; register both in the COMPARATORS.md pin table. The harness side is on main and waits for the image: `l3d_dense.PgVector.connect` and `e2_hybrid.PgAgeE2.__init__` import `pgvector.psycopg` LAZILY (a `pgvector_dense` or `pg_age_e2` cell on an image without the package fails at connect with ImportError, loudly, by design), and `neo4j-rust-ext` is a one-`.so` overlay that needs no code. The same PR that added this row also moved `PostgresTPC` (and `postgres_tuned`) to autocommit for single statements, the pgvector dense and cross-model product loads to binary COPY, and the six QuestDB reads to `binary=True` (PROTOCOL.md section 7) | the `client` image: comparators only (Neo4j and Memgraph Bolt arms, pgvector dense, PG+AGE cross-model); no ArcadeDB arm, no tier 1 stage | **pending, lands with the tier 1 to tier 2 image rebuild**, between qP09's ALL-DONE and qP10's first cell, never inside a running stage: rebuild, `verify_pair`, `queue_lint`, then check inside the image that `neo4j.RUST_AVAILABLE` is True and `import pgvector.psycopg` works before the first cell; the image digest change is expected and recorded. The harness code is built and verified on the laptop (answer digests identical before and after for every changed arm) | Row 76 is the rebuild; the code half is the PR that added it. Rows stamped by #173 (`neo4j_rust_ext`, `redis_hiredis`, `es_json_serializer`) land in the same rebuild |
| 77 | ArcadeDB's query heap budget (`arcadedb.queryMaxHeapRAM`, default half the JVM heap) raised for the cells the default refuses: the l1tpc tpch10 olap `top_parts` GROUP BY in both ArcadeDB arms (DECISIONS #175, ArcadeData/arcadedb#9402) | ArcadeDB embedded and served, the documents lane, ONLY in the repair stage | **mechanism written, default OFF (humemai/arcadedb-embedded-python#260); the repair stage is generated after qP09 and run before the tier 1 to tier 2 boundary.** `BENCH_ARCADE_QUERY_MAX_HEAP_RAM_MB` adds the JVM option to the embedded arm and to the served arm's JAVA_OPTS and stamps `arcadedb_query_max_heap_ram_mb` and a source on the row; `override: arcadedb_query_ram`. Which rows are the headline (the default rows with the refusal shown, or the raised rows as an escape hatch like row 21's cap and row 75's body limit) is decided at landing. | not an instrument change: unset, nothing differs |
| 79 | The /next page shows the default outcome for the tpch10 olap `top_parts` cells of both ArcadeDB arms (DECISIONS #176, ArcadeData/arcadedb#9402, fixed by #9415 in 26.11.1; humemai/arcadedb-embedded-python#272): the headline is the rows at the engine's default query heap budget, refused on 12 cores, not the raised-budget rows of row 77 | ArcadeDB embedded and served, the documents analytics table | **done**: `export_web._top_parts_refusals`, `_top_parts_refusal_note`, `_refusal_entries`. The row stays on the table marked `n/c` in every cell with one sentence (the release's heap budget shrinks as cores are added, 26.11.1 fixes it, the next measurement re-measures it), declared the way the ArangoDB one-list cell is (rows 66 and 67). Keyed on the rows: l1tpc, olap, tpch10, an ArcadeDB backend, the release 26.10.1 (engine_version, else the image tag, else a sibling row of the pin), and the refusal the row recorded (the engine's budget message, or the served row's HTTP 500 at the `top_parts` phase); a 26.11.1 row that completes prints its number and the sentence goes by itself. Rows that carry `arcadedb_query_max_heap_ram_mb` are never the headline: export drops them from the tables and from the cancelling of a failed default row. `page_check` checks the sentence and that the row prints no number; `test_docs_top_parts_refusal.py` | not an instrument change |
| 80 | The /next page's next-measurement list says that ArcadeDB's numbers are re-measured on the paper's release, 26.11.1 (DECISIONS #176; humemai/arcadedb-embedded-python#274), while the ArcadeDB rows are a release other than it, and that the comparators' numbers carry over | The page's list of what the next measurement changes; ArcadeDB's rows only, no comparator moves | **done**: `export_web._PAPER_RELEASE` (also the release `_REFUSAL_FIXED_IN` names), `_arcadedb_releases_behind`, and the release branch of `_next_measurement_note`. Keyed on the ArcadeDB rows' `engine_version` (served rows read `server:26.10.1 (build ...)`): a release other than 26.11.1 shows the list with one line, a development build keeps its own list, and 26.11.1 rows take the line off the page. The per-table marks the issue asked for are not built, because no printed cell depends on the defects: the triangle count slowdown (ArcadeData/arcadedb#9400) came in with #9383, which is not in the 26.10.1 build `d36b4ca3a`; key lookups during a concurrent commit (#9397) need a reader running against a committing writer, and no lane runs one; time series rows lost after a kill during compaction (#9452) need both a kill and a concurrent compaction, and the time series lane does neither. The reasons are in the comment above `_PAPER_RELEASE`. Tests: `test_next_remeasure_line.py` | not an instrument change |

**Retired: settled with no change, listed so nobody re-opens them.** Raising ArcadeDB's statement-cache settings (a knob only ArcadeDB would get; item 2 removes the literal path instead). The sparse ingest path (already the faster one). Durable commit cost (one sync per commit, equal to SQLite's; not a defect). `expected_edge_count` as a speed lever (no measurable effect; item 1 adopts it only because it is the documented setting). **Done, and off the list:** the dense table's phases partition their total (`setup_s`, since 2026-09-22, BUGS F101), every stage estimates its whole cell against its cap before running (`cell_cost_check.py`, BUGS F74), one engine wears one version per page (`version_consistency_check`, a publish gate, BUGS F61), and `queue_lint` refuses the process-name wait that only holds for one exact launch line (BUGS F59; every stage waits on its predecessor's ALL-DONE marker).

Expand Down
2 changes: 2 additions & 0 deletions benchmarks/experiments/PAGE-SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ On the live September page ArcadeDB has no row on `docs_olap` since 2026-09-14 (

**The October `docs_olap` table declares ArcadeDB 26.10.1's refusal of top parts at SF10 (DECISIONS #176, CAMPAIGN section 7 row 79).** That release gives each query a heap budget that shrinks as cores are added, and on the benchmark host's 12 cores it refuses the 2,000,000-group aggregate at the engine's default settings in both ArcadeDB arms (ArcadeData/arcadedb#9402, fixed by #9415 in 26.11.1). Both rows stay on the table marked `n/c` in every cell, the same declared outcome as ArangoDB's one-list dense cell, with one plain sentence under the table (`export_web._top_parts_refusal_note`) naming the cause, the fix, and that the next measurement re-measures it. The declaration is keyed on the rows (l1tpc, olap, tpch10, an ArcadeDB backend, the release, and the refusal the row recorded), so a 26.11.1 row that completes prints its number and the sentence goes by itself. Rows that carry `arcadedb_query_max_heap_ram_mb` ran with the budget raised and are never the headline: the export leaves them off the tables. `page_check` checks the sentence and that the row prints no number.

**The next-measurement list says ArcadeDB is measured again on the paper's release (DECISIONS #176, CAMPAIGN section 7 row 80).** The list used to show only while the ArcadeDB rows were a development build, so it left the page when the 26.10.1 release rows landed and a reader would take those numbers as final. While the rows are a release other than 26.11.1 (`export_web._PAPER_RELEASE`, read from the rows' `engine_version`), the list shows with one line: ArcadeDB's numbers are from the release the rows name, the next measurement runs ArcadeDB again on 26.11.1, and every other engine's numbers carry over. Rows from 26.11.1 take the line off the page, and a development build keeps its own list. The line is in the reader's language: no lane, cell, or row. No table carries a per-table mark for the other 26.10.1 defects 26.11.1 fixes, because no printed cell depends on them: the triangle count slowdown (ArcadeData/arcadedb#9400) is not in the 26.10.1 build, and the concurrent-commit lookups (#9397) and the time series loss after a kill during compaction (#9452) need a run the page's tables do not make. A table that comes to print such a cell adds the mark keyed on the rows, with the reason in a code comment.

The decimal-literal defect is upstream #7609, filed 2026-09-15, and the same day's #7611 is the one that decides how this table is read at scale: an indexed lower bound loses part of a run of equal entries, so the revenue query disagreed only at the size where the loss landed on a qualifying row. That is why the revenue total and the revenue by month now count the rows they aggregate and compare the count exactly (DECISIONS #94): the count is part of the answer and not a page column, and without it a lost row sits inside the sums' rounding at the campaign's largest tier.

| id | title | rows | columns |
Expand Down
65 changes: 59 additions & 6 deletions benchmarks/experiments/export_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -3198,6 +3198,30 @@ def _thermal_note():

_DEV_BUILD = re.compile(r"(dev\d*|SNAPSHOT)\b", re.I)

# THE RELEASE THE PAPER PINS (DECISIONS #176): ArcadeDB 26.11.1. The 26.10.1
# rows are a measurement on the way there, so while the ArcadeDB rows' release
# is another one the next-measurement list says ArcadeDB's numbers are
# re-measured on it and the comparators' carry over (_next_measurement_note).
# The same release is the one that fixes the 26.10.1 defects the page declares
# (_REFUSAL_FIXED_IN). When the rows are this release, the line goes by itself.
#
# THE OTHER 26.10.1 DEFECTS FIXED IN 26.11.1 MARK NO PRINTED CELL (checked
# 2026-10-08, humemai/arcadedb-embedded-python#274), so no mark is keyed on
# them, and none is to be added without a printed cell that depends on it:
# * ArcadeData/arcadedb#9400 (country-partitioned triangle count about 4x
# slower, LSQB Q3, the l2olap "LSQB Q3 p50 ms" cell): the regression came in
# with #9383 (merge f5bb4acc39, milestone 26.11.1), which is NOT an ancestor
# of the 26.10.1 build d36b4ca3a. 26.10.1 never had it; no cell is slow.
# * #9397 (openCypher IN and lookupByKey lose a key during a commit that
# deletes and re-creates it): needs a reader running against a concurrent
# committing writer. l2_graph.py, l1_tpc.py and e2_hybrid.py run one client
# at a time, so no printed cell exercises it.
# * #9452 (time series rows of acknowledged commits missing after kill -9
# while COMPACT TIMESERIES TYPE runs, txWalFlush 1 or 2): needs a kill and a
# concurrent compaction. l4_tsbs.py compacts once after the ingest and never
# kills; e3_recovery.py kills but has no table on the page.
_PAPER_RELEASE = "26.11.1"


# WHAT THE NEXT MEASUREMENT CHANGES, ONE LINE PER CHANGE, on the page itself
# (the user, 2026-10-04: "let's write what'll change in the October page").
Expand Down Expand Up @@ -3233,6 +3257,15 @@ def _arcadedb_dev_build_date(rows):
return dates.pop() if len(dates) == 1 else None


def _arcadedb_releases_behind(engine_versions):
"""The x.y.z releases the ArcadeDB rows' engine_version names (served rows
read "server:26.10.1 (build <sha>)") that are not the paper's release, in
order. Development builds are the caller's case, not this one's."""
got = {m.group(1) for ev in engine_versions
for m in [re.search(r"(\d+\.\d+\.\d+)", ev)] if m}
return sorted(got - {_PAPER_RELEASE}, key=lambda v: tuple(int(x) for x in v.split(".")))


def _next_measurement_note(tables):
"""WHEN "the next measurement" is and WHAT it changes, said for the page:
a list of sentences, the first saying when and one per change after it.
Expand All @@ -3244,18 +3277,23 @@ def _next_measurement_note(tables):

KEYED ON THE ROWS: the whole list is shown while the ArcadeDB rows behind
the page are a development build, which is what this campaign measured,
and while a table still defers something. Rows from a release take it off
the page, and so does a page with nothing left to re-measure. Each line
and while a table still defers something. Rows from a release other than
the paper's (_PAPER_RELEASE) show it with the line that ArcadeDB is
measured again on that release and the comparators' numbers carry over;
rows from the paper's release take it off the page, and so does a page
with nothing left to re-measure. Each line
after the first is keyed on what its table sentence is keyed on. The one
change no table sentence describes, ArcadeDB embedded's documents load
(the tables' ingest-path sentence already says what ran), is keyed on its
rows directly (_docs_row_load_tables).
"""
if not _OCTOBER_ENV or SKELETON:
return []
dev = any(_DEV_BUILD.search(str(r.get("engine_version") or ""))
for r in _FROZEN_ROWS if str(r.get("backend") or "").startswith("arcadedb"))
if not dev:
ev_rows = [str(r.get("engine_version") or "") for r in _FROZEN_ROWS
if str(r.get("backend") or "").startswith("arcadedb")]
dev = any(_DEV_BUILD.search(ev) for ev in ev_rows)
behind = [] if dev else _arcadedb_releases_behind(ev_rows)
if not (dev or behind):
return []
conds = [(t, str(c)) for t in tables for c in t.get("conditions") or []]
filed = [s for ss in _NEXT_ITEM_SENTENCES.values() for s in ss]
Expand Down Expand Up @@ -3327,6 +3365,21 @@ def carried_by(key):
f"hits, not the records, as every other engine does.", *sparse))
if rerun:
items.append(_gen("The cells marked `re-run` are measured again."))
if behind:
# Release rows (DECISIONS #176): the move to the paper's release is the
# release line, and the comparators are already at their latest stable
# release, so their numbers carry over rather than move again.
out = [_gen("The next measurement runs after this one is complete, and it makes the "
"changes listed below."),
_gen(f"ArcadeDB's numbers here are from release {_join_and(behind)}. The next "
f"measurement runs ArcadeDB again on release {_PAPER_RELEASE}, the one the "
f"paper reports, and every other engine's numbers carry over.",
*behind, _PAPER_RELEASE)]
out += items
if other:
out.append(_gen("The notes under the tables describe the next measurement's other "
"changes."))
return out
if not (items or other):
return []
date = _arcadedb_dev_build_date(_FROZEN_ROWS)
Expand Down Expand Up @@ -8239,7 +8292,7 @@ def _withheld_recall_cells(table_id):
# tables are built from (main), so a repair-stage row never silently replaces
# the refusal on the page.
_REFUSAL_RELEASES = ("26.10.1",)
_REFUSAL_FIXED_IN = "26.11.1"
_REFUSAL_FIXED_IN = _PAPER_RELEASE
_REFUSAL_BUDGET_MESSAGE = "Query heap budget exceeded"
_TOP_PARTS_GROUPS = 2_000_000 # TPC-H SF10: 200,000 parts per scale factor
_REFUSAL_SCALE = "tpch10"
Expand Down
92 changes: 92 additions & 0 deletions benchmarks/experiments/test_next_remeasure_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
"""The /next page says ArcadeDB's numbers are re-measured on the paper's release while the rows are another release (DECISIONS #176).

Run with `python -m pytest test_next_remeasure_line.py -q -rs` from this directory.

The list of what the next measurement changes used to show only while the ArcadeDB rows were a development build, so it vanished
when the 26.10.1 release rows landed and a reader would take those numbers as final. It now carries one line while the rows are a
release other than the paper's (26.11.1): ArcadeDB is measured again on 26.11.1 and the comparators' numbers carry over. Keyed on
the rows' engine_version; 26.11.1 rows take the line off the page. The defects 26.11.1 fixes in 26.10.1 other than the top parts
refusal (ArcadeData/arcadedb#9400, #9397, #9452) mark no printed cell, so no per-table mark exists to test (see _PAPER_RELEASE).
"""
import os
import re
import sys
from pathlib import Path

import pytest

HERE = Path(__file__).resolve().parent
sys.path.insert(0, str(HERE))

SERVED = "server:{v} (build d36b4ca3ae4c170abc)"
DEV = "26.10.1-SNAPSHOT (build abc/1790000000000/main)"


@pytest.fixture(scope="module")
def EW():
pytest.importorskip("numpy")
mp = pytest.MonkeyPatch()
if not os.environ.get("BENCH_ENGINE_COMMIT"):
mp.setenv("BENCH_ENGINE_COMMIT", "417314c18")
try:
import export_web
finally:
mp.undo()
return export_web


@pytest.fixture
def note(EW, monkeypatch):
monkeypatch.setattr(EW, "_OCTOBER_ENV", True)
monkeypatch.setattr(EW, "SKELETON", False)

def run(versions, tables=(), filed=None):
rows = [{"backend": b, "engine_version": v} for b, v in versions] + [{"backend": "duckdb", "engine_version": "1.5.0"}]
monkeypatch.setattr(EW, "_FROZEN_ROWS", rows)
monkeypatch.setattr(EW, "_NEXT_ITEM_SENTENCES", filed or {})
return EW._next_measurement_note(list(tables))
return run


def _release_rows(v):
return [("arcadedb_embedded", v), ("arcadedb_server", SERVED.format(v=v)), ("arcadedb_embedded", None)]


def test_release_rows_show_the_line(EW, note):
out = note(_release_rows("26.10.1"))
[line] = [x for x in out if "26.11.1" in x]
assert line == ("ArcadeDB's numbers here are from release 26.10.1. The next measurement runs ArcadeDB again on release 26.11.1, "
"the one the paper reports, and every other engine's numbers carry over.")
assert out[0].startswith("The next measurement runs after this one is complete")
assert not re.search(r"\b(lane|cell|row|arm|harness)s?\b", line) # PAGE-SPEC: the reader's language
assert ".notes" not in line
pinned = [g for g in EW._GENERATED if g["text"] == line][0]["values"]
assert {"26.10.1", "26.11.1"} <= set(pinned)
assert not any("development build" in x for x in out)


def test_the_line_goes_with_the_target_release(EW, note):
assert note(_release_rows(EW._PAPER_RELEASE)) == []


def test_a_mix_with_one_other_release_keeps_the_line(EW, note):
out = note(_release_rows("26.11.1") + [("arcadedb_embedded", "26.10.1")])
assert any("release 26.10.1." in x for x in out)


def test_a_development_build_keeps_its_own_list(EW, note):
filed = {"knows": {"Every graph question is asked in both directions of a friendship."}}
tables = [{"id": "l2", "title": "Graph", "conditions": ["Every graph question is asked in both directions of a friendship."]}]
out = note([("arcadedb_embedded", DEV)], tables, filed)
assert any("development build" in x and "every other engine to its latest stable release" in x for x in out)
assert not any("carry over" in x for x in out)


def test_release_rows_keep_the_table_lines_too(EW, note):
s = "Every graph question is asked in both directions of a friendship."
out = note(_release_rows("26.10.1"), [{"id": "l2", "title": "Graph", "conditions": [s]}], {"knows": {s}})
assert any("both directions of a friendship" in x for x in out) and any("carry over" in x for x in out)


def test_the_refusal_sentence_uses_the_same_constant(EW):
assert EW._REFUSAL_FIXED_IN == EW._PAPER_RELEASE == "26.11.1"
Loading