Skip to content

Measure again whether the JVM AOT cache can be on by default, on the 26.12.1 wheel #560

Todo

Description

@tae898

The JVM package keeps its JDK 25 AOT cache opt-in (ARCADEDB_AOT=1 or start_jvm(aot=True)). I would like to measure again, on the 26.12.1 arcadedb-jvm wheel, whether it can be on by default.

Earlier result

From #247, with the figures in the "What we measured" section of the installation page (#248): one laptop, arcadedb-jvm 26.11.1.dev0 on its bundled JDK 25, ABBA order, 19 rounds per arm, 18 clean pairs per figure, with an A/A control. Time with the cache divided by time without it, median and 95% interval:

figure ratio
first script, from import to the first openCypher result 0.653 [0.648, 0.658]
steady: insert_many of 300,000 documents 1.000 [0.948, 1.036]
steady: 100,000 point reads 0.931 [0.877, 1.002]
steady: 5,000 warm 2-hop openCypher queries 0.943 [0.902, 0.996]
steady: peak memory (RSS) 1.009 [0.940, 1.074]

The no-harm bar written before the run was 1.03. The insert_many interval ended at 1.036, so the cache stayed opt-in and was documented instead.

Why look again

  • The miss was 0.006 on one end of one interval (about half a percent of the bar), with a median of 1.000, while the first script ran in about two thirds of the time.
  • The wheel is not the one that was measured. Since 26.11.1.post1 the bundled JRE ships a default class-data-sharing archive (JVM wheel: ship a class-data-sharing archive for the bundled JRE (closes #313) #332), so the start without the cache is no longer the baseline of the study, and the first-script gain may be smaller now.

What to measure

  • The same workloads and figures on the 26.12.1 arcadedb-jvm wheel, with the default CDS archive in both arms and the AOT cache in one, plus the A/A control.
  • Enough rounds for insert_many that its interval is narrower than [0.948, 1.036].
  • The one-time costs, since a default puts them on every user. In the earlier study: a training run of 4.5 s against 2.8 s without the cache, a check run of 0.7 s, and a cache file of 39.6 MiB.
  • The rule, written before the first run.

Activity

  1. added this to the 27.1.1 milestone on Dec 1, 2026
  2. added
    enhancement
    performance
    jvm
    on Dec 1, 2026
  3. added
    python
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementjvmperformancepython

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions