Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

jmh-benchmark-compare

БесплатноЗапускает вложенные скриптыНе проверен

Parse JMH result text by finding the first header line that starts with Benchmark and contains Mode and Score, build a structured table for all columns/rows…

eclipse-rdf4jот eclipse-rdf4j★ 427 звёзд на GitHub

Об этом скилле

jmh-benchmark-compare

Use this skill when benchmark output comparison must be reproducible, sortable, and exportable.

Quick start

Run two-file comparison:

python3 .codex/skills/jmh-benchmark-compare/scripts/jmh_benchmark_compare.py \
  /path/run-a.txt /path/run-b.txt \
  --export-formats txt,md,csv,xlsx,html \
  --output-dir /tmp \
  --output-base jmh-compare

Sort by diff percent (descending):

python3 .codex/skills/jmh-benchmark-compare/scripts/jmh_benchmark_compare.py \
  run-a.txt run-b.txt \
  --sort-column "Diff % [run-b - run-a]" \
  --sort-desc \
  --export-formats md \
  --output /tmp/jmh-diff.md

Core behavior

  1. Detect first JMH table header line: line.startswith("Benchmark") and "Mode" in line and "Score" in line.
  2. Derive column boundaries from that header.
  3. Parse all following benchmark rows into an internal table.
  4. Match overlapping benchmark keys across files.
  5. Add derived columns: Diff Score [target - baseline], Diff % [target - baseline], Status [...].

Default key columns are all columns except Cnt, Score, Error. Override via --id-columns.

Inputs and overlap

  • Pass any mix of files and directories.
  • Directory entries are scanned for files that contain a JMH header.
  • --overlap-mode all keeps only rows present in all files.
  • --overlap-mode any keeps rows present in at least two files.
  • Baseline selection: --baseline <index-or-label>.

Filters and regression shortcuts

  • Hide tiny deltas: --min-deviation-pct 1.0
  • Show only regressions above threshold: --regressions-over-pct 3.0
  • Control direction interpretation: --score-direction auto|higher|lower

Historical analysis

Analyze trends across many runs:

python3 .codex/skills/jmh-benchmark-compare/scripts/jmh_benchmark_compare.py \
  /path/bench-history \
  --recursive \
  --glob "*.txt" \
  --timestamp-source auto \
  --analyze-over-time \
  --regressions-over-pct 2.5 \
  --export-formats html,csv \
  --output-dir /tmp \
  --output-base jmh-history

Timeline report files are emitted with -timeline suffix.

Exports

  • txt: aligned plain-text table.
  • md: valid markdown table.
  • csv: spreadsheet-friendly CSV.
  • xlsx: native Excel workbook (single sheet). (xslx alias accepted)
  • html: sortable table (click header), built-in CSS + JS, color theme selector.

If one format and explicit destination needed, use --output /path/file.ext. If multiple formats, use --output-dir + --output-base.

Script

scripts/jmh_benchmark_compare.py

For timestamp parsing behavior and filename examples, see: references/timestamps-and-discovery.md

Полный SKILL.md на GitHub

Установить jmh-benchmark-compare в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/timestamps-and-discovery.mdscripts/jmh_benchmark_compare.pyscripts/jmh_compare_core.pyscripts/jmh_compare_export.pyscripts/test_jmh_compare_core.py

FAQ

Что делает скилл jmh-benchmark-compare?

Parse JMH result text by finding the first header line that starts with Benchmark and contains Mode and Score, build a structured table for all columns/rows, compare overlapping benchmarks across 2+ files, compute Diff Score and Diff %, filter by deviation or regression thresholds, analyze regressions over time from filename/mtime timestamps, and export sortable reports to txt/md/csv/xlsx/html. Use for benchmark run comparisons, regression triage, and directory-wide historical analysis.

Как установить скилл jmh-benchmark-compare?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл jmh-benchmark-compare запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить jmh-benchmark-compare с