jdx bench
IDE equivalent: Benchmark the read path (timings + §15 targets; --include-usages times the live scan)
Benchmark the read path: run the fixed load/show/members/search/hierarchy workload against the resolved roots and print the timing table with PROPOSAL.md §15 targets. Roots resolve like the read commands (--jars plus the selected workspace plus the JDK unless --no-jdk); with no explicit roots and no workspace selected, the local minecraft-client.jar under ~/.gradle/caches/fabric-loom/ is used when present (the scale fixture; gson is the everyday fixture, pass it with --jars). Targets are advisory: rows print ok or OVER and success always exits 0. The usages row is omitted unless --include-usages, which times the current live scan and labels it "no indexed path yet (live scan)". Example: jdx bench --iterations 1.
Usage#
jdx bench [<options>]Options#
| Option | Description |
|---|---|
--jars=<text> | Binary roots: jar files, class directories or globs (repeatable). Merge in front of the selected workspace's roots. |
--src=<text> | Source-dir roots (repeatable). Merge in front of the selected workspace's stored srcs. |
-w, --workspace=<text> | Use a named workspace (see jdx ws). Explicit --jars merge in front of it. |
--no-jdk | Do not include the running JDK's stdlib (included by default). |
--release, --multi-release=<int> | Multi-release jar feature to serve, matching javap --multi-release. The highest META-INF/versions/N at or below N wins; 8 selects base entries only. Omitted, the running JDK feature is used. Values below 8 are a usage error. An explicit value stays in-process; the warm daemon keeps the running JDK. |
--coord=<text> | Maven coordinate root group:artifact:version (repeatable). |
--repo=<text> | Maven repository base URL for --coord fetches (repeatable). |
--fetch | Allow downloading --coord artifacts from Maven repositories. |
--iterations=<int> | Runs per case; the median is reported (default 3). |
--include-usages | Also time usages against the §15 ≤150 ms target. Off by default: there is no indexed path yet, so the row only documents that gap. It runs the current live scan and is labelled "no indexed path yet (live scan)" in text and JSON. The row still prints ok or OVER, and success still exits 0. |
--json | Emit machine-readable JSON instead of human-readable text (same information, D-007). |
-h, --help | Show this message and exit |
Full help text#
Show jdx bench --help
jdx bench --help
Usage: jdx bench [<options>]
Benchmark the read path: run the fixed load/show/members/search/hierarchy workload against the resolved roots and print the timing table with PROPOSAL.md §15 targets. Roots resolve like the read commands (--jars plus the selected workspace plus the JDK unless --no-jdk); with no explicit roots and no workspace selected, the local minecraft-client.jar under ~/.gradle/caches/fabric-loom/ is used when present (the scale fixture; gson is the everyday fixture, pass it with --jars). Targets are advisory: rows print ok or OVER and success always exits 0. The usages row is omitted unless --include-usages, which times the current live scan and labels it "no indexed path yet (live scan)". Example: jdx bench --iterations 1.
Options:
--jars=<text> Binary roots: jar files, class directories or globs (repeatable). Merge in front of the selected workspace's roots.
--src=<text> Source-dir roots (repeatable). Merge in front of the selected workspace's stored srcs.
-w, --workspace=<text> Use a named workspace (see jdx ws). Explicit --jars merge in front of it.
--no-jdk Do not include the running JDK's stdlib (included by default).
--release, --multi-release=<int> Multi-release jar feature to serve, matching javap --multi-release. The highest META-INF/versions/N at or below N wins; 8 selects base entries only. Omitted, the running JDK feature is used. Values below 8 are a usage error. An explicit value stays in-process; the warm daemon keeps the running JDK.
--coord=<text> Maven coordinate root group:artifact:version (repeatable).
--repo=<text> Maven repository base URL for --coord fetches (repeatable).
--fetch Allow downloading --coord artifacts from Maven repositories.
--iterations=<int> Runs per case; the median is reported (default 3).
--include-usages Also time usages against the §15 ≤150 ms target. Off by default: there is no indexed path yet, so the row only documents that gap. It runs the current live scan and is labelled "no indexed path yet (live scan)" in text and JSON. The row still prints ok or OVER, and success still exits 0.
--json Emit machine-readable JSON instead of human-readable text (same information, D-007).
-h, --help Show this message and exitReal output — this example ran against the current jdx when the page was built.