Rust
run-benchmarks
Use this skill when the user wants to run performance benchmarks, compare languages, or test the compute-average-income implementations.
$ Instalar
git clone https://github.com/techatspree/GcRustVsJvm ~/.claude/skills/GcRustVsJvm// tip: Run this command in your terminal to install the skill
SKILL.md
run-benchmarks
Use this skill when the user wants to run performance benchmarks, compare languages, or test the compute-average-income implementations.
Instructions
-
Set JAVA_HOME to Java 23 for Gradle compatibility:
export JAVA_HOME=/Users/tnfink/Library/Java/JavaVirtualMachines/openjdk-23.0.1/Contents/Home -
Run all benchmarks with:
./gradlew computeAverageIncomeOr run individual language benchmarks:
- Kotlin:
./gradlew computeAverageIncomeKotlin - GraalVM:
./gradlew computeAverageIncomeGraalVM(requires GRAALVM_HOME) - Rust:
./gradlew computeAverageIncomeRust - Haskell:
./gradlew computeAverageIncomeHaskell
- Kotlin:
-
For Haskell profiling:
./gradlew profileAverageIncomeHaskell
Notes
- Gradle 9.2.1 uses JDK 21 toolchain (auto-provisioned via foojay)
- GraalVM benchmark requires GRAALVM_HOME environment variable set
- Haskell uses GHC 9.10.3 (LTS-24.25)
- Rust uses cargo with --release flag
