You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vector build and search, native wheel against JVM wheel #359
enhancementNew feature or requestjvmThe arcadedb-jvm package (JPype build)nativeThe arcadedb package (native library build)performanceSpeed or memory of the bindings, with a measurementpythonPull requests that update python codevectorVector indexes and find_nearest
I want the vector rows of the which-package table: build and search on both wheels (default and safe beam, several dimensions, a 1M x 128-d case), and whether the earlier build gap persists on the release pair.
It is one row of the bindings study list. It was held on stale pins and re-pins after the 26.12.1 wheels exist.
Priority: P3 (tier 1 of the re-pin order).
Acceptance
The rerun on the matched release pair is scored
The vector rows of the which-package table are filled from it
If the build gap persists, a fix issue is opened with the profile
Results and the scorer output go in this issue as comments. Numbers are generated by script from the result files, never typed.
(Edited 2026-11-23: the study now measures on the 26.12.1 wheels, see #315.)
One more line for this issue. It comes from #365 (the docs audit of 2026-11-11), which I am closing because everything else in it is done:
Re-measure the figures in the docs that were taken on 26.11.1.dev0, now on the 26.12.1 wheels: the vector row of which-package.adoc; in vectors.adoc the float32 query buffer table under "find_nearest", the include_vector=False table under "Hits without the vector", the table under "Agents that write as they go", and the Highway figures under "Distance kernels in the native package"; and the ARCADEDB_AOT=1 table in installation.adoc.
Only the which-package.adoc row comes out of this study as it is planned. The other figures had A/B runs of their own, so they need those runs again in the same pass, and the AOT table is not a vector figure at all. If they do not fit here when the study runs, I will give them their own issue.
The final 26.12.1 wheels are not on PyPI yet, so this runs on 26.12.1.dev2, the newest ones, with an A/A control. I will repeat it on the final wheels as a new run. The rules below are fixed before the first timed run, and the rehearsal is queued first.
I am writing the rules of this measurement down before its first run.
Question. How fast does the native wheel (arcadedb) build a vector index and search it, compared with the JVM wheel (arcadedb-jvm), at 26.12.1.dev2? That is the vector row of the which-package table: the index build, find_nearest and SQL vectorNeighbors with the default beam and with the safe beam (ef_search=100), at 128, 768, and 1536 dimensions with 100,000 vectors, and at 1,000,000 x 128-d. Does the earlier build gap (in an earlier profile the native wheel took 1.64 times as long as the JVM wheel at 128-d and 100,000 vectors) persist on this pair? Which beam does each wheel need to give good recall?
Arm
wheel
role
A
arcadedb 26.12.1.dev2 (native)
reference
B
arcadedb-jvm 26.12.1.dev2
compared
Z
A again
A/A control
Each run is one fresh process that copies an empty database, loads the vectors with insert_columns (slices of 10,000), builds the index with create_vector_index after the load, searches, and closes. Every setting is the wheel's default except dimensions, id_property, and distance_function. So the index is the Python default (INT8 quantization, hierarchy on, graph built at once), not the SQL CREATE INDEX default.
unit
vectors
data
distance
vec128
100,000 x 128-d
first rows of SIFT1M
Euclidean
vec768
100,000 x 768-d
seeded clustered mixture (seed 20261026)
cosine
vec1536
100,000 x 1536-d
seeded clustered mixture (seed 20261026)
cosine
vec128m
1,000,000 x 128-d
first rows of SIFT1M
Euclidean
The mixture has 256 unit cluster centres, a 12-dimensional latent subspace, and a little isotropic noise, with rows normalised to unit length. I chose it for structure, so that recall means something, and I did not tune it against a result. The two SIFT files are pinned by sha256. Data and queries are identical on every arm.
After the build, each run answers 250 untimed warm-up queries per mode, then four timed blocks of 2,000 queries each, one query at a time, k = 10, the same queries in every block:
mode
call
fn_def
find_nearest(q, 10)
fn_safe
find_nearest(q, 10, ef_search=100)
sql_def
SELECT record.id AS id, distance FROM (SELECT expand(vectorNeighbors('Doc[vec]', ?, 10))) and to_list()
sql_safe
the same with 100 as the fourth argument of vectorNeighbors
The deciding figures of every unit are build_s (the wall time of create_vector_index) and the p50 of the four modes. The reported figures are the p99 and the throughput of each mode, vec_load_s, the peak memory after the build and at the end, the price of the safe beam inside a wheel, and recall at k = 10 against exact answers (300 queries, numpy brute force).
Verdict. Per figure, the median of the per-round ratios native / JVM with a 95% bootstrap interval (10,000 resamples, seed 1). For time and memory, below 1.00 the native wheel is faster or smaller. For throughput, above 1.00 the native wheel is faster. The value of a round is that of its one process per arm.
verdict
condition
no difference
the interval lies inside [0.97, 1.03]
not resolved
the interval contains 1.00 and leaves that band
native faster (smaller)
the upper end is below 1.00
JVM faster (smaller)
the lower end is above 1.00
A p99, a throughput, or a memory figure is read only when its interval is at most 0.25 times its median wide, else I call it inconclusive. Recall is reported per arm, with the native minus JVM difference, and flagged above 0.01. It is never a ratio.
The build gap. At vec128, build_s native / JVM with the interval inside [0.97, 1.03] or containing 1.00 means the gap is closed. A lower end above 1.00 (and not inside the band) means it persists and the JVM wheel builds faster. An upper end below 1.00 means it is reversed.
The safe beam. Per wheel and unit, I call the safe beam recommended when the median recall of the safe mode minus the default mode is at least 0.02. Its price is the median of the per-round ratio safe p50 / default p50 inside that wheel, with the minimum and the maximum. The recall gain is a statement about the engine and the cost is a statement about the call. Neither is a speed claim between wheels.
Pins, validity, throttle rule, repetitions, and limits
26.12.1.dev2, one engine version and build commit in every run
Python
3.12, JPype1 1.7.1 (JVM arm only), numpy 2.5.4
settings
every setting is the wheel's default (see above). Heap: the JVM wheel's default (half of the physical memory); the native wheel gets the equal -Xmx, which is its default written out
data
the SIFT files sift_train.npy and sift_test.npy of SIFT1M, checked against their sha256 before the first run
host
my laptop (Core Ultra X9 388H, Linux), two pinned E cores, turbo on, powersave governor, editor, browser, and agent sessions held on other cores. The figures are relative only
kit
the checksum file of the scripts has sha256 b26c303bf6d726baf1d1ecd01c55903fb491f41342c2570dae210e00a400e23f
Validity, checked before any verdict. A unit is INVALID when a run did not use the wheel of its arm, a wheel version, commit, engine version, or engine build commit differs from the pins or between runs, the runs of one wheel did not all get the same maximum heap, or the throttle counters cannot be read. A run counts only when the count of vectors is right, the stored vector of the middle id equals the generated one, every query returned exactly 10 hits, and the recall of both safe modes is at least 0.30 (a plumbing check: unrelated answers give about 0). A run that fails is left out and listed; a unit stops after a failed run in its first round, or after 3 failed runs in a row. A gating figure is INVALID when the A/A control has fewer than 10 clean pairs, when a difference is claimed while the A/A interval neither contains 1.00 nor lies inside [0.97, 1.03] and the interval of B against A does not lie wholly outside [0.90, 1.10], or when another timed job overlapped. It is WEAK with fewer than 10 clean pairs, or with an interval wider than 0.10 times its median. INVALID and WEAK report no result.
Throttle and interference rule. A run starts when the package is at most 70 C (after the first run of a round also at most 2 C above that run's start), after at most 180 s of waiting. A pair is dropped when the two arms' throttled share of the timed window (core throttle time of the two cores) differs by more than 1 percentage point, when their start temperatures differ by more than 5 C, or when my interference sampler marked either one (more than half a core of other work on a group of cores, other benchmark work, a camera, or a suspend).
Repetitions and stopping. In a round, each unit runs the three arms once each, in an order rotated and reversed from round to round. Rounds 0 to 12 (round 0 is dropped), then 2 more for a unit that has a weak figure, at most up to round 20. No round starts that is not expected to end 15 minutes before the 11-hour time limit of a run. The study is split in two: main holds vec128, vec768, and vec1536 (at most 2 runs), and big holds vec128m (at most 3 runs, because one round of it is longer than the other three units together). A study that is not complete then goes on in the next run and nothing is read between the runs. After the last run the verdict is read from the finished rounds under the same rules. No round is added because a result looks close.
Rehearsal. All units run 2 rounds at one fiftieth of the sizes first (vec128m at 20,000 vectors, the others at 2,000). It checks the setup and is never read as a result. A unit whose rehearsal fails a check is not run.
Reruns and changes. A read verdict is final, including "not resolved". After WEAK or INVALID, one unchanged rerun replaces only the figures that reported nothing. A change of units, sizes, thresholds, or pins after a timed run is a new study with a new comment first. The final 26.12.1 wheels will be a new kit.
Limits.
The default beam is the engine's own choice (max(2k, 20) from 10,000 vectors), so the safe beam is a second setting and not a tuned one.
One size per dimension, plus the 1,000,000 x 128-d case. No quantizer other than the default, no filtered search, no concurrency, no inserts after the build.
The databases are built in the run, in a fresh directory on a warm page cache.
One laptop, relative figures only. Native against JVM compares two runtimes on one engine version.
The other figures of the docs audit (the float32 query buffer, include_vector=False, the agent write table, the Highway kernels, the AOT table) are not in this study.
(Edited 2026-12-05: the kit checksum above. The rehearsal check did not accept the version a development wheel reports (26.12.1-SNAPSHOT), so I changed that one check and nothing else; the rules are as before, and no timed run had started.)
I corrected the kit checksum in the rules above and marked the edit at its end. The rehearsal had stopped on a version check, nothing else changed, and no timed run has started.
A limit of this study that I found while checking its wheel pins. The 26.12.1.dev2 wheels were uploaded to PyPI on 2026-11-07 from bindings commit 4b8a5b1, and main is 225 commits ahead of it (checked on 2026-12-06). So they lack the glue changes merged after that date, for example #320 (the exact float of to_json_list on the JVM wheel) and #391 and #392 (typed columns on the JVM wheel). The figures of this study are for that code, and the repeat on the final 26.12.1 wheels stays necessary.
What this means for this study (follow-up to my limit comment above): Judging by their titles these three change other paths than building and searching a vector index, so I do not expect them to move the vector figures; the other 222 commits I have not checked against them.
State: main-n1 (vec128, vec768, vec1536) has been running on compare2 since 2026-12-06 00:27 UTC, and big-n1 (vec128m) is queued behind it. Next: once the final 26.12.1 wheels are on PyPI (there is only 26.12.1.dev2 so far), I will re-pin the same kit with its own fill.py pypi 26.12.1 and rerun what matters. The dev2 figures stay here as the pre-release baseline, and the result on the final wheels comes as its own comment.
(Edited: removed the paragraph that repeated my limit comment above.)
I am running this study again on the same 26.12.1.dev2 wheels on another laptop lane (compare3), because the first full run could not be read. The rules below are the full text of the rerun, fixed before its first timed run, with the one rule change and the new kit checksum in the paragraph that starts "Rerun on the same wheels".
I am writing the rules of this measurement down before its first run.
Question. How fast does the native wheel (arcadedb) build a vector index and search it, compared with the JVM wheel (arcadedb-jvm), at 26.12.1.dev2? That is the vector row of the which-package table: the index build, find_nearest and SQL vectorNeighbors with the default beam and with the safe beam (ef_search=100), at 128, 768, and 1536 dimensions with 100,000 vectors, and at 1,000,000 x 128-d. Does the earlier build gap (in an earlier profile the native wheel took 1.64 times as long as the JVM wheel at 128-d and 100,000 vectors) persist on this pair? Which beam does each wheel need to give good recall?
Arm
wheel
role
A
arcadedb 26.12.1.dev2 (native)
reference
B
arcadedb-jvm 26.12.1.dev2
compared
Z
A again
A/A control
Each run is one fresh process that copies an empty database, loads the vectors with insert_columns (slices of 10,000), builds the index with create_vector_index after the load, searches, and closes. Every setting is the wheel's default except dimensions, id_property, and distance_function. So the index is the Python default (INT8 quantization, hierarchy on, graph built at once), not the SQL CREATE INDEX default.
unit
vectors
data
distance
vec128
100,000 x 128-d
first rows of SIFT1M
Euclidean
vec768
100,000 x 768-d
seeded clustered mixture (seed 20261026)
cosine
vec1536
100,000 x 1536-d
seeded clustered mixture (seed 20261026)
cosine
vec128m
1,000,000 x 128-d
first rows of SIFT1M
Euclidean
The mixture has 256 unit cluster centres, a 12-dimensional latent subspace, and a little isotropic noise, with rows normalised to unit length. I chose it for structure, so that recall means something, and I did not tune it against a result. The two SIFT files are pinned by sha256. Data and queries are identical on every arm.
After the build, each run answers 250 untimed warm-up queries per mode, then four timed blocks of 2,000 queries each, one query at a time, k = 10, the same queries in every block:
mode
call
fn_def
find_nearest(q, 10)
fn_safe
find_nearest(q, 10, ef_search=100)
sql_def
SELECT record.id AS id, distance FROM (SELECT expand(vectorNeighbors('Doc[vec]', ?, 10))) and to_list()
sql_safe
the same with 100 as the fourth argument of vectorNeighbors
The deciding figures of every unit are build_s (the wall time of create_vector_index) and the p50 of the four modes. The reported figures are the p99 and the throughput of each mode, vec_load_s, the peak memory after the build and at the end, the price of the safe beam inside a wheel, and recall at k = 10 against exact answers (300 queries, numpy brute force).
Verdict. Per figure, the median of the per-round ratios native / JVM with a 95% bootstrap interval (10,000 resamples, seed 1). For time and memory, below 1.00 the native wheel is faster or smaller. For throughput, above 1.00 the native wheel is faster. The value of a round is that of its one process per arm.
verdict
condition
no difference
the interval lies inside [0.97, 1.03]
not resolved
the interval contains 1.00 and leaves that band
native faster (smaller)
the upper end is below 1.00
JVM faster (smaller)
the lower end is above 1.00
A p99, a throughput, or a memory figure is read only when its interval is at most 0.25 times its median wide, else I call it inconclusive. Recall is reported per arm, with the native minus JVM difference, and flagged above 0.01. It is never a ratio.
The build gap. At vec128, build_s native / JVM with the interval inside [0.97, 1.03] or containing 1.00 means the gap is closed. A lower end above 1.00 (and not inside the band) means it persists and the JVM wheel builds faster. An upper end below 1.00 means it is reversed.
The safe beam. Per wheel and unit, I call the safe beam recommended when the median recall of the safe mode minus the default mode is at least 0.02. Its price is the median of the per-round ratio safe p50 / default p50 inside that wheel, with the minimum and the maximum. The recall gain is a statement about the engine and the cost is a statement about the call. Neither is a speed claim between wheels.
Rerun on the same wheels, with the amended interference rule and turbo off (2026-12-06). The first full run of this study (kit 3a0d2454df328dfc4834c2791057145b6b51d3fc84d774e7cb7760f1f2503b29, run main-n1) could not be read: the strict rule above dropped every pair for other benchmark load on cores outside the arm's own, so every gating figure came out WEAK with no clean pair. This run uses the same units, sizes, thresholds, and 26.12.1.dev2 wheels, in a new kit with the checksum c24e452939a72d84281d2aef51836c5bf46cec5e28ad045e7deebf9f5b8d86f7, on the compare lane compare3 (cores 8 and 9). Two things differ. One case of the interference rule changes (humem-ops#767): load pinned wholly inside the cores of another accepted compare lane no longer drops a pair, and the scorer prints which rounds had it. Load on any other cores still drops the pair. The A/A control of each unit runs beside the same neighbour and still decides whether a figure is read. Also, the laptop now runs with turbo off, so every time is longer than in the first run, and absolute times of the two runs are not compared. The first run's outputs are kept and not rescored.
Pins, validity, throttle rule, repetitions, and limits
26.12.1.dev2, one engine version and build commit in every run
Python
3.12, JPype1 1.7.1 (JVM arm only), numpy 2.5.4
settings
every setting is the wheel's default (see above). Heap: the JVM wheel's default (half of the physical memory); the native wheel gets the equal -Xmx, which is its default written out
data
the SIFT files sift_train.npy and sift_test.npy of SIFT1M, checked against their sha256 before the first run
host
my laptop (Core Ultra X9 388H, Linux), two pinned E cores, turbo off, powersave governor, editor, browser, and agent sessions held on other cores. The figures are relative only
kit
the checksum file of the scripts has sha256 c24e452939a72d84281d2aef51836c5bf46cec5e28ad045e7deebf9f5b8d86f7
Validity, checked before any verdict. A unit is INVALID when a run did not use the wheel of its arm, a wheel version, commit, engine version, or engine build commit differs from the pins or between runs, the runs of one wheel did not all get the same maximum heap, or the throttle counters cannot be read. A run counts only when the count of vectors is right, the stored vector of the middle id equals the generated one, every query returned exactly 10 hits, and the recall of both safe modes is at least 0.30 (a plumbing check: unrelated answers give about 0). A run that fails is left out and listed; a unit stops after a failed run in its first round, or after 3 failed runs in a row. A gating figure is INVALID when the A/A control has fewer than 10 clean pairs, when a difference is claimed while the A/A interval neither contains 1.00 nor lies inside [0.97, 1.03] and the interval of B against A does not lie wholly outside [0.90, 1.10], or when another timed job overlapped. It is WEAK with fewer than 10 clean pairs, or with an interval wider than 0.10 times its median. INVALID and WEAK report no result.
Throttle and interference rule. A run starts when the package is at most 70 C (after the first run of a round also at most 2 C above that run's start), after at most 180 s of waiting. A pair is dropped when the two arms' throttled share of the timed window (core throttle time of the two cores) differs by more than 1 percentage point, when their start temperatures differ by more than 5 C, or when my interference sampler marked either one (more than half a core of other work on a group of cores, other benchmark work, a camera, or a suspend).
Repetitions and stopping. In a round, each unit runs the three arms once each, in an order rotated and reversed from round to round. Rounds 0 to 12 (round 0 is dropped), then 2 more for a unit that has a weak figure, at most up to round 20. No round starts that is not expected to end 15 minutes before the 11-hour time limit of a run. The study is split in two: main holds vec128, vec768, and vec1536 (at most 2 runs), and big holds vec128m (at most 3 runs, because one round of it is longer than the other three units together). A study that is not complete then goes on in the next run and nothing is read between the runs. After the last run the verdict is read from the finished rounds under the same rules. No round is added because a result looks close.
Rehearsal. All units run 2 rounds at one fiftieth of the sizes first (vec128m at 20,000 vectors, the others at 2,000). It checks the setup and is never read as a result. A unit whose rehearsal fails a check is not run.
Reruns and changes. A read verdict is final, including "not resolved". After WEAK or INVALID, one unchanged rerun replaces only the figures that reported nothing. A change of units, sizes, thresholds, or pins after a timed run is a new study with a new comment first. The final 26.12.1 wheels will be a new kit.
Limits.
The default beam is the engine's own choice (max(2k, 20) from 10,000 vectors), so the safe beam is a second setting and not a tuned one.
One size per dimension, plus the 1,000,000 x 128-d case. No quantizer other than the default, no filtered search, no concurrency, no inserts after the build.
The databases are built in the run, in a fresh directory on a warm page cache.
One laptop, relative figures only. Native against JVM compares two runtimes on one engine version.
The other figures of the docs audit (the float32 query buffer, include_vector=False, the agent write table, the Highway kernels, the AOT table) are not in this study.
enhancementNew feature or requestjvmThe arcadedb-jvm package (JPype build)nativeThe arcadedb package (native library build)performanceSpeed or memory of the bindings, with a measurementpythonPull requests that update python codevectorVector indexes and find_nearest
Activity
tae898 commentedon Nov 22, 2026
One more line for this issue. It comes from #365 (the docs audit of 2026-11-11), which I am closing because everything else in it is done:
26.11.1.dev0, now on the 26.12.1 wheels: the vector row ofwhich-package.adoc; invectors.adocthefloat32query buffer table under "find_nearest", theinclude_vector=Falsetable under "Hits without the vector", the table under "Agents that write as they go", and the Highway figures under "Distance kernels in the native package"; and theARCADEDB_AOT=1table ininstallation.adoc.Only the
which-package.adocrow comes out of this study as it is planned. The other figures had A/B runs of their own, so they need those runs again in the same pass, and the AOT table is not a vector figure at all. If they do not fit here when the study runs, I will give them their own issue.tae898 commentedon Dec 5, 2026
The final 26.12.1 wheels are not on PyPI yet, so this runs on
26.12.1.dev2, the newest ones, with an A/A control. I will repeat it on the final wheels as a new run. The rules below are fixed before the first timed run, and the rehearsal is queued first.I am writing the rules of this measurement down before its first run.
Question. How fast does the native wheel (
arcadedb) build a vector index and search it, compared with the JVM wheel (arcadedb-jvm), at 26.12.1.dev2? That is the vector row of the which-package table: the index build,find_nearestand SQLvectorNeighborswith the default beam and with the safe beam (ef_search=100), at 128, 768, and 1536 dimensions with 100,000 vectors, and at 1,000,000 x 128-d. Does the earlier build gap (in an earlier profile the native wheel took 1.64 times as long as the JVM wheel at 128-d and 100,000 vectors) persist on this pair? Which beam does each wheel need to give good recall?arcadedb26.12.1.dev2 (native)arcadedb-jvm26.12.1.dev2Each run is one fresh process that copies an empty database, loads the vectors with
insert_columns(slices of 10,000), builds the index withcreate_vector_indexafter the load, searches, and closes. Every setting is the wheel's default except dimensions,id_property, anddistance_function. So the index is the Python default (INT8 quantization, hierarchy on, graph built at once), not the SQLCREATE INDEXdefault.The mixture has 256 unit cluster centres, a 12-dimensional latent subspace, and a little isotropic noise, with rows normalised to unit length. I chose it for structure, so that recall means something, and I did not tune it against a result. The two SIFT files are pinned by sha256. Data and queries are identical on every arm.
After the build, each run answers 250 untimed warm-up queries per mode, then four timed blocks of 2,000 queries each, one query at a time, k = 10, the same queries in every block:
find_nearest(q, 10)find_nearest(q, 10, ef_search=100)SELECT record.id AS id, distance FROM (SELECT expand(vectorNeighbors('Doc[vec]', ?, 10)))andto_list()vectorNeighborsThe deciding figures of every unit are
build_s(the wall time ofcreate_vector_index) and the p50 of the four modes. The reported figures are the p99 and the throughput of each mode,vec_load_s, the peak memory after the build and at the end, the price of the safe beam inside a wheel, and recall at k = 10 against exact answers (300 queries, numpy brute force).Verdict. Per figure, the median of the per-round ratios native / JVM with a 95% bootstrap interval (10,000 resamples, seed 1). For time and memory, below 1.00 the native wheel is faster or smaller. For throughput, above 1.00 the native wheel is faster. The value of a round is that of its one process per arm.
A p99, a throughput, or a memory figure is read only when its interval is at most 0.25 times its median wide, else I call it inconclusive. Recall is reported per arm, with the native minus JVM difference, and flagged above 0.01. It is never a ratio.
The build gap. At vec128,
build_snative / JVM with the interval inside [0.97, 1.03] or containing 1.00 means the gap is closed. A lower end above 1.00 (and not inside the band) means it persists and the JVM wheel builds faster. An upper end below 1.00 means it is reversed.The safe beam. Per wheel and unit, I call the safe beam recommended when the median recall of the safe mode minus the default mode is at least 0.02. Its price is the median of the per-round ratio safe p50 / default p50 inside that wheel, with the minimum and the maximum. The recall gain is a statement about the engine and the cost is a statement about the call. Neither is a speed claim between wheels.
Pins, validity, throttle rule, repetitions, and limits
Pins.
2913537be9f3cef65a43ea8ff29d0f998dd115e8fb870b1d9c323b989ac2d6d95fbbdf30d2b8e0ee69aefa9c0881bd62a2858c9904588fd44d58eb9f2d498dd84b8a5b18ea7b54deac8fc7874248f691973133aa-Xmx, which is its default written outsift_train.npyandsift_test.npyof SIFT1M, checked against their sha256 before the first runpowersavegovernor, editor, browser, and agent sessions held on other cores. The figures are relative onlyb26c303bf6d726baf1d1ecd01c55903fb491f41342c2570dae210e00a400e23fValidity, checked before any verdict. A unit is INVALID when a run did not use the wheel of its arm, a wheel version, commit, engine version, or engine build commit differs from the pins or between runs, the runs of one wheel did not all get the same maximum heap, or the throttle counters cannot be read. A run counts only when the count of vectors is right, the stored vector of the middle id equals the generated one, every query returned exactly 10 hits, and the recall of both safe modes is at least 0.30 (a plumbing check: unrelated answers give about 0). A run that fails is left out and listed; a unit stops after a failed run in its first round, or after 3 failed runs in a row. A gating figure is INVALID when the A/A control has fewer than 10 clean pairs, when a difference is claimed while the A/A interval neither contains 1.00 nor lies inside [0.97, 1.03] and the interval of B against A does not lie wholly outside [0.90, 1.10], or when another timed job overlapped. It is WEAK with fewer than 10 clean pairs, or with an interval wider than 0.10 times its median. INVALID and WEAK report no result.
Throttle and interference rule. A run starts when the package is at most 70 C (after the first run of a round also at most 2 C above that run's start), after at most 180 s of waiting. A pair is dropped when the two arms' throttled share of the timed window (core throttle time of the two cores) differs by more than 1 percentage point, when their start temperatures differ by more than 5 C, or when my interference sampler marked either one (more than half a core of other work on a group of cores, other benchmark work, a camera, or a suspend).
Repetitions and stopping. In a round, each unit runs the three arms once each, in an order rotated and reversed from round to round. Rounds 0 to 12 (round 0 is dropped), then 2 more for a unit that has a weak figure, at most up to round 20. No round starts that is not expected to end 15 minutes before the 11-hour time limit of a run. The study is split in two:
mainholds vec128, vec768, and vec1536 (at most 2 runs), andbigholds vec128m (at most 3 runs, because one round of it is longer than the other three units together). A study that is not complete then goes on in the next run and nothing is read between the runs. After the last run the verdict is read from the finished rounds under the same rules. No round is added because a result looks close.Rehearsal. All units run 2 rounds at one fiftieth of the sizes first (vec128m at 20,000 vectors, the others at 2,000). It checks the setup and is never read as a result. A unit whose rehearsal fails a check is not run.
Reruns and changes. A read verdict is final, including "not resolved". After WEAK or INVALID, one unchanged rerun replaces only the figures that reported nothing. A change of units, sizes, thresholds, or pins after a timed run is a new study with a new comment first. The final 26.12.1 wheels will be a new kit.
Limits.
max(2k, 20)from 10,000 vectors), so the safe beam is a second setting and not a tuned one.float32query buffer,include_vector=False, the agent write table, the Highway kernels, the AOT table) are not in this study.(Edited 2026-12-05: the kit checksum above. The rehearsal check did not accept the version a development wheel reports (
26.12.1-SNAPSHOT), so I changed that one check and nothing else; the rules are as before, and no timed run had started.)tae898 commentedon Dec 5, 2026
I corrected the kit checksum in the rules above and marked the edit at its end. The rehearsal had stopped on a version check, nothing else changed, and no timed run has started.
tae898 commentedon Dec 6, 2026
A limit of this study that I found while checking its wheel pins. The
26.12.1.dev2wheels were uploaded to PyPI on 2026-11-07 from bindings commit4b8a5b1, andmainis 225 commits ahead of it (checked on 2026-12-06). So they lack the glue changes merged after that date, for example #320 (the exact float ofto_json_liston the JVM wheel) and #391 and #392 (typed columns on the JVM wheel). The figures of this study are for that code, and the repeat on the final 26.12.1 wheels stays necessary.tae898 commentedon Dec 6, 2026
What this means for this study (follow-up to my limit comment above): Judging by their titles these three change other paths than building and searching a vector index, so I do not expect them to move the vector figures; the other 222 commits I have not checked against them.
State:
main-n1(vec128, vec768, vec1536) has been running on compare2 since 2026-12-06 00:27 UTC, andbig-n1(vec128m) is queued behind it. Next: once the final 26.12.1 wheels are on PyPI (there is only26.12.1.dev2so far), I will re-pin the same kit with its ownfill.py pypi 26.12.1and rerun what matters. Thedev2figures stay here as the pre-release baseline, and the result on the final wheels comes as its own comment.(Edited: removed the paragraph that repeated my limit comment above.)
tae898 commentedon Dec 6, 2026
I am running this study again on the same
26.12.1.dev2wheels on another laptop lane (compare3), because the first full run could not be read. The rules below are the full text of the rerun, fixed before its first timed run, with the one rule change and the new kit checksum in the paragraph that starts "Rerun on the same wheels".I am writing the rules of this measurement down before its first run.
Question. How fast does the native wheel (
arcadedb) build a vector index and search it, compared with the JVM wheel (arcadedb-jvm), at 26.12.1.dev2? That is the vector row of the which-package table: the index build,find_nearestand SQLvectorNeighborswith the default beam and with the safe beam (ef_search=100), at 128, 768, and 1536 dimensions with 100,000 vectors, and at 1,000,000 x 128-d. Does the earlier build gap (in an earlier profile the native wheel took 1.64 times as long as the JVM wheel at 128-d and 100,000 vectors) persist on this pair? Which beam does each wheel need to give good recall?arcadedb26.12.1.dev2 (native)arcadedb-jvm26.12.1.dev2Each run is one fresh process that copies an empty database, loads the vectors with
insert_columns(slices of 10,000), builds the index withcreate_vector_indexafter the load, searches, and closes. Every setting is the wheel's default except dimensions,id_property, anddistance_function. So the index is the Python default (INT8 quantization, hierarchy on, graph built at once), not the SQLCREATE INDEXdefault.The mixture has 256 unit cluster centres, a 12-dimensional latent subspace, and a little isotropic noise, with rows normalised to unit length. I chose it for structure, so that recall means something, and I did not tune it against a result. The two SIFT files are pinned by sha256. Data and queries are identical on every arm.
After the build, each run answers 250 untimed warm-up queries per mode, then four timed blocks of 2,000 queries each, one query at a time, k = 10, the same queries in every block:
find_nearest(q, 10)find_nearest(q, 10, ef_search=100)SELECT record.id AS id, distance FROM (SELECT expand(vectorNeighbors('Doc[vec]', ?, 10)))andto_list()vectorNeighborsThe deciding figures of every unit are
build_s(the wall time ofcreate_vector_index) and the p50 of the four modes. The reported figures are the p99 and the throughput of each mode,vec_load_s, the peak memory after the build and at the end, the price of the safe beam inside a wheel, and recall at k = 10 against exact answers (300 queries, numpy brute force).Verdict. Per figure, the median of the per-round ratios native / JVM with a 95% bootstrap interval (10,000 resamples, seed 1). For time and memory, below 1.00 the native wheel is faster or smaller. For throughput, above 1.00 the native wheel is faster. The value of a round is that of its one process per arm.
A p99, a throughput, or a memory figure is read only when its interval is at most 0.25 times its median wide, else I call it inconclusive. Recall is reported per arm, with the native minus JVM difference, and flagged above 0.01. It is never a ratio.
The build gap. At vec128,
build_snative / JVM with the interval inside [0.97, 1.03] or containing 1.00 means the gap is closed. A lower end above 1.00 (and not inside the band) means it persists and the JVM wheel builds faster. An upper end below 1.00 means it is reversed.The safe beam. Per wheel and unit, I call the safe beam recommended when the median recall of the safe mode minus the default mode is at least 0.02. Its price is the median of the per-round ratio safe p50 / default p50 inside that wheel, with the minimum and the maximum. The recall gain is a statement about the engine and the cost is a statement about the call. Neither is a speed claim between wheels.
Rerun on the same wheels, with the amended interference rule and turbo off (2026-12-06). The first full run of this study (kit
3a0d2454df328dfc4834c2791057145b6b51d3fc84d774e7cb7760f1f2503b29, runmain-n1) could not be read: the strict rule above dropped every pair for other benchmark load on cores outside the arm's own, so every gating figure came out WEAK with no clean pair. This run uses the same units, sizes, thresholds, and26.12.1.dev2wheels, in a new kit with the checksumc24e452939a72d84281d2aef51836c5bf46cec5e28ad045e7deebf9f5b8d86f7, on the compare lane compare3 (cores 8 and 9). Two things differ. One case of the interference rule changes (humem-ops#767): load pinned wholly inside the cores of another accepted compare lane no longer drops a pair, and the scorer prints which rounds had it. Load on any other cores still drops the pair. The A/A control of each unit runs beside the same neighbour and still decides whether a figure is read. Also, the laptop now runs with turbo off, so every time is longer than in the first run, and absolute times of the two runs are not compared. The first run's outputs are kept and not rescored.Pins, validity, throttle rule, repetitions, and limits
Pins.
2913537be9f3cef65a43ea8ff29d0f998dd115e8fb870b1d9c323b989ac2d6d95fbbdf30d2b8e0ee69aefa9c0881bd62a2858c9904588fd44d58eb9f2d498dd84b8a5b18ea7b54deac8fc7874248f691973133aa-Xmx, which is its default written outsift_train.npyandsift_test.npyof SIFT1M, checked against their sha256 before the first runpowersavegovernor, editor, browser, and agent sessions held on other cores. The figures are relative onlyc24e452939a72d84281d2aef51836c5bf46cec5e28ad045e7deebf9f5b8d86f7Validity, checked before any verdict. A unit is INVALID when a run did not use the wheel of its arm, a wheel version, commit, engine version, or engine build commit differs from the pins or between runs, the runs of one wheel did not all get the same maximum heap, or the throttle counters cannot be read. A run counts only when the count of vectors is right, the stored vector of the middle id equals the generated one, every query returned exactly 10 hits, and the recall of both safe modes is at least 0.30 (a plumbing check: unrelated answers give about 0). A run that fails is left out and listed; a unit stops after a failed run in its first round, or after 3 failed runs in a row. A gating figure is INVALID when the A/A control has fewer than 10 clean pairs, when a difference is claimed while the A/A interval neither contains 1.00 nor lies inside [0.97, 1.03] and the interval of B against A does not lie wholly outside [0.90, 1.10], or when another timed job overlapped. It is WEAK with fewer than 10 clean pairs, or with an interval wider than 0.10 times its median. INVALID and WEAK report no result.
Throttle and interference rule. A run starts when the package is at most 70 C (after the first run of a round also at most 2 C above that run's start), after at most 180 s of waiting. A pair is dropped when the two arms' throttled share of the timed window (core throttle time of the two cores) differs by more than 1 percentage point, when their start temperatures differ by more than 5 C, or when my interference sampler marked either one (more than half a core of other work on a group of cores, other benchmark work, a camera, or a suspend).
Repetitions and stopping. In a round, each unit runs the three arms once each, in an order rotated and reversed from round to round. Rounds 0 to 12 (round 0 is dropped), then 2 more for a unit that has a weak figure, at most up to round 20. No round starts that is not expected to end 15 minutes before the 11-hour time limit of a run. The study is split in two:
mainholds vec128, vec768, and vec1536 (at most 2 runs), andbigholds vec128m (at most 3 runs, because one round of it is longer than the other three units together). A study that is not complete then goes on in the next run and nothing is read between the runs. After the last run the verdict is read from the finished rounds under the same rules. No round is added because a result looks close.Rehearsal. All units run 2 rounds at one fiftieth of the sizes first (vec128m at 20,000 vectors, the others at 2,000). It checks the setup and is never read as a result. A unit whose rehearsal fails a check is not run.
Reruns and changes. A read verdict is final, including "not resolved". After WEAK or INVALID, one unchanged rerun replaces only the figures that reported nothing. A change of units, sizes, thresholds, or pins after a timed run is a new study with a new comment first. The final 26.12.1 wheels will be a new kit.
Limits.
max(2k, 20)from 10,000 vectors), so the safe beam is a second setting and not a tuned one.float32query buffer,include_vector=False, the agent write table, the Highway kernels, the AOT table) are not in this study.