Run Performance Benchmarks

VerifiedSafe

Runs performance benchmarks for compute-average-income implementations. Useful for comparing performance across languages like Kotlin, GraalVM, Rust, and Haskell using Gradle.

Sby Skills Guide Bot
TestingIntermediate
506/2/2026
Claude Code
#benchmarks#performance#multi-language#gradle

Recommended for

Our review

Runs performance benchmarks for the compute-average-income implementation across multiple languages (Kotlin, GraalVM, Rust, Haskell) using Gradle.

Strengths

  • Multi-language support (Kotlin, GraalVM, Rust, Haskell) for performance comparison.
  • Automation via Gradle for reproducible execution.
  • Includes Haskell profiling for deeper analysis.

Limitations

  • Requires specific environment variables (JAVA_HOME, GRAALVM_HOME).
  • Depends on Gradle and JDK toolchains which can be heavy to set up.
  • Limited to the 'compute-average-income' project only.
When to use it

When you need to compare the performance of the same business logic implemented in different compiled languages.

When not to use it

For generic benchmarks or outside the context of the compute-average-income project.

Security analysis

Safe
Quality score80/100

The skill only contains environment variable setting and gradle build commands; no destructive, exfiltration, or obfuscated actions.

No concerns found

Examples

Run all benchmarks
Run all compute-average-income benchmarks for Kotlin, GraalVM, Rust, and Haskell.
Profile Haskell implementation
Profile the Haskell implementation of compute-average-income.
Run individual language benchmark
Run the Rust benchmark for compute-average-income.

run-benchmarks

Use this skill when the user wants to run performance benchmarks, compare languages, or test the compute-average-income implementations.

Instructions

  1. Set JAVA_HOME to Java 23 for Gradle compatibility:

    export JAVA_HOME=/Users/tnfink/Library/Java/JavaVirtualMachines/openjdk-23.0.1/Contents/Home
    
  2. Run all benchmarks with:

    ./gradlew computeAverageIncome
    

    Or run individual language benchmarks:

    • Kotlin: ./gradlew computeAverageIncomeKotlin
    • GraalVM: ./gradlew computeAverageIncomeGraalVM (requires GRAALVM_HOME)
    • Rust: ./gradlew computeAverageIncomeRust
    • Haskell: ./gradlew computeAverageIncomeHaskell
  3. 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
Related skills