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
Native image: the full-text index build at perf scale M takes over 30 minutes, the JVM build 163 s #12839
Found by the nightly performance run (#12427) on perf-01.
What happens
The bench case fulltext/build at scale M times out (30-minute case cap) on the native server, while the JVM server built from the same commit finishes it in 163 s:
More than 11x slower suggests something native-specific (reflection fallback, a missing intrinsic, an analyzer path that is interpreted, or a stall) rather than general overhead. Not yet investigated; a thread dump of the native server during the build would tell.
Reproduce
bench run --workload fulltext --scale M --image arcadedata/arcadedb:latest-native --variant native --reps 1 --warmup 0 against the JVM image as the control.
I investigated this and did not find a native-specific defect in the full-text index build. The timeout comes from how the bench counts time.
The 1800 s cap covers the whole case, not one build
BenchRunner.runCase sets a single deadline (caseTimeout, 30 min) for all of execute():
prepare(), which for fulltext/build also inserts the 500k documents (with 128-dim embeddings) when they are not present yet
2 warmup builds
5 measured builds
The reported build_s is the median of a single build, so the two numbers in the issue are not comparable:
JVM: 7 x 163 s = 1141 s, under the cap, reported as ok with build_s 163
Native at scale S builds in 22.7 s vs 14.9 s on the JVM (about 1.5x). The same ratio at M gives about 245 s per build, and 7 x 245 s is about 1715 s before the data load, so the case passes 1800 s and reports a timeout with no metrics
The JVM also times out at scale L, which fits the same per-case cap
Measurement
Native server image built from main at b805606 (macOS arm64, GraalVM CE 25.0.2), -Xms8g -Xmx8g -XX:+PrintGC, 500k documents of 200 words from the bench's 10k-word dictionary (scale M):
CREATE INDEX ON Doc (body) FULL_TEXT: 136.4 s, linear at about 27 s per 100k records
GC pauses short (max about 1.2 s for a full GC), no superlinear growth
That is in the same range as the JVM's 149-163 s on perf-01. Caveat: this was not run on perf-01's Linux x86_64 image or in Docker.
Where the fix belongs
The bench harness, not the engine. Options:
make the timeout per repetition instead of per case
use fewer warmups/reps for build-type cases
raise the cap for this case
load the data outside the case's deadline
If native build_s is still far above the JVM once the cap no longer hides it, we reopen the investigation on the Linux image.
There was no engine problem here. The benchmark runner applied its 30-minute limit to a whole case (data load, 2 warm-up builds and 5 measured builds together), not to one build. A native full-text build at scale M takes about 245 s, so 7 builds plus the load went past 30 minutes and the case was reported as a timeout without metrics, while the faster JVM build stayed just under the cap.
What changes:
--timeout-min (default 30) now limits each warm-up and each measured repetition separately.
New --prepare-timeout-min (default: same as --timeout-min) limits the data load.
New --case-timeout-min (default 120, 0 = no cap) caps the whole case as a hang detector.
A timeout message now says which step ran over, for example rep 3/5 exceeded 1800000 ms.
If native build_s still turns out far above the JVM's now that the case completes, the engine investigation can be reopened on the Linux image. The nightly script in arcadedb-perf-infra passes no timeout flag, so it picks up the new defaults; only a stale comment there needs updating.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Activity
robfrank commentedon Nov 22, 2026
I investigated this and did not find a native-specific defect in the full-text index build. The timeout comes from how the bench counts time.
The 1800 s cap covers the whole case, not one build
BenchRunner.runCasesets a single deadline (caseTimeout, 30 min) for all ofexecute():prepare(), which forfulltext/buildalso inserts the 500k documents (with 128-dim embeddings) when they are not present yetThe reported
build_sis the median of a single build, so the two numbers in the issue are not comparable:build_s163Measurement
Native server image built from main at b805606 (macOS arm64, GraalVM CE 25.0.2),
-Xms8g -Xmx8g -XX:+PrintGC, 500k documents of 200 words from the bench's 10k-word dictionary (scale M):CREATE INDEX ON Doc (body) FULL_TEXT: 136.4 s, linear at about 27 s per 100k recordsThat is in the same range as the JVM's 149-163 s on perf-01. Caveat: this was not run on perf-01's Linux x86_64 image or in Docker.
Where the fix belongs
The bench harness, not the engine. Options:
If native
build_sis still far above the JVM once the cap no longer hides it, we reopen the investigation on the Linux image.robfrank commentedon Nov 22, 2026
Fixed by #13095, shipping in 26.12.1.
There was no engine problem here. The benchmark runner applied its 30-minute limit to a whole case (data load, 2 warm-up builds and 5 measured builds together), not to one build. A native full-text build at scale M takes about 245 s, so 7 builds plus the load went past 30 minutes and the case was reported as a timeout without metrics, while the faster JVM build stayed just under the cap.
What changes:
--timeout-min(default 30) now limits each warm-up and each measured repetition separately.--prepare-timeout-min(default: same as--timeout-min) limits the data load.--case-timeout-min(default 120,0= no cap) caps the whole case as a hang detector.rep 3/5 exceeded 1800000 ms.If native
build_sstill turns out far above the JVM's now that the case completes, the engine investigation can be reopened on the Linux image. The nightly script in arcadedb-perf-infra passes no timeout flag, so it picks up the new defaults; only a stale comment there needs updating.❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
fix(ArcadeData#12839): bench timeouts apply per step, not per case (A…