add-benchmarks
CommunityAdd JMH microbenchmarks for measurable speed.
Authordprice-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill solves the problem of adding repeatable, in-JVM performance benchmarks to a Spring Boot 4 codebase so you can measure throughput and detect performance regressions.
Core Features & Use Cases
- JMH setup for Spring Boot 4: Adds the me.champeau.jmh Gradle plugin and JMH dependencies, plus a safe, on-demand
./gradlew jmhworkflow. - Correct build configuration: Configures the
jmhJartask with zip64 for large Spring Boot classpaths and defines a benchmark configuration block with short CI-friendly iterations. - Seed benchmark generation: Creates a baseline
*Benchmark.javaundersrc/jmh/java/<package>/to establish a reference point before you add real domain benchmarks. - Use case: When introducing a new hot path (e.g., serialization-heavy logic, mapping changes, or database query adjustments), use this Skill to benchmark throughput of targeted service-method implementations.
Quick Start
Tell the Skill: add JMH benchmarks to my Spring Boot 4 project so I can run ./gradlew jmh and start measuring throughput with a seed benchmark.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: add-benchmarks Download link: https://github.com/dprice-dev/claude-java-skills/archive/main.zip#add-benchmarks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.