Command Palette

Search for a command to run...

Back to skills
skill № 31854

docker-jfr-benchmark-loop

Run a repeatable RDF4J performance loop against one JMH benchmark in Docker with Linux Java 26 and JFR CPU-time profiling. Use when working in this repo on…

FreeRuns bundled scripts
eclipse-rdf4jby eclipse-rdf4j★ 427 GitHub stars

Install docker-jfr-benchmark-loop in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Docker JFR Benchmark Loop

Use this skill for one-benchmark perf work in this repo. Default runner: scripts/run-docker-jfr-loop.sh, not ad hoc Maven or raw JMH commands.

Quick start

Dry-run a known selector:

.codex/skills/docker-jfr-benchmark-loop/scripts/run-docker-jfr-loop.sh \
  org.eclipse.rdf4j.model.benchmark.ValueCreationBenchmark.createBNode \
  --dry-run

Explicit selector plus params:

.codex/skills/docker-jfr-benchmark-loop/scripts/run-docker-jfr-loop.sh \
  --module core/model \
  --class org.eclipse.rdf4j.model.benchmark.ValueCreationBenchmark \
  --method createBNode \
  --param samples=1000

Repo-grounded defaults

  • The wrapper calls repo helper scripts/run-single-benchmark-docker.sh.
  • The Docker helper already forces Linux Java 26 plus --enable-jfr --enable-jfr-cpu-times.
  • The inner helper already enforces:
    • settings=profile
    • dumponexit=true
    • duration=120s
    • warmup=0
    • measurement=10 iterations of 10s
    • forks=1
    • jdk.CPUTimeSample#enabled=true
    • report-on-exit=cpu-time-hot-methods
  • This skill wrapper adds the missing fidelity flags:
    • -XX:FlightRecorderOptions=stackdepth=1024
    • -XX:+UnlockDiagnosticVMOptions
    • -XX:+DebugNonSafepoints
  • The repo helper sets -XX:StartFlightRecording:method-profiling=max for CPU-time JFR runs.

Core loop

  1. Pick one benchmark selector. Keep selector, params, Docker image, and profiling flags constant for the whole comparison.
  2. Capture a baseline run with scripts/run-docker-jfr-loop.sh.
  3. Read the .jfr using references/jfr-reading.md.
  4. Choose one candidate fix with material CPU share. Prefer the fix most likely to move total runtime, not just local self time.
  5. Re-run the exact same selector and params.
  6. Compare benchmark delta plus hotspot shift.
  7. Repeat until:
    • the hotspot shifts,
    • CPU share falls below a meaningful threshold,
    • or GC / locks / memory / I/O / JIT behavior dominates instead.

Operating rules

  • Route benchmark variation through --param.
  • Route JVM tuning through --jvm-arg.
  • Do not use raw --jmh-arg during JFR runs; the helper rejects extra JMH args when JFR is enabled.
  • Do not switch to a second StartFlightRecording; stay aligned with repo helper behavior.
  • Do not treat a small benchmark gain as proof the hotspot fix failed. First check whether another bottleneck surfaced and now caps the total speedup.
  • If the run is not CPU-bound, say so and pivot to lock, GC, memory, I/O, or JIT evidence instead of forcing a CPU-only story.

Output contract

Answers using this skill should usually include:

  • exact run command
  • .jfr path
  • top CPU hotspots
  • confidence notes
  • next-fix hypothesis
  • whether a second bottleneck likely masks part of the gain

Escalate cleanly

Reference map

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • agents/openai.yaml
  • references/jfr-reading.md
  • references/perf-loop.md
  • scripts/run-docker-jfr-loop.sh

FAQ

What does the docker-jfr-benchmark-loop skill do?

Run a repeatable RDF4J performance loop against one JMH benchmark in Docker with Linux Java 26 and JFR CPU-time profiling. Use when working in this repo on benchmark-guided performance changes, hotspot triage, JFR reading, CPU bottleneck analysis, or repeated baseline, fix, and rerun loops. Trigger on requests mentioning benchmark, profiling, JFR, hotspot, perf loop, CPU bottleneck, or Docker benchmark runs in RDF4J.

How do I install the docker-jfr-benchmark-loop skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the docker-jfr-benchmark-loop skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare docker-jfr-benchmark-loop with