Skip to content

Latest commit

 

History

History
57 lines (33 loc) · 1.4 KB

File metadata and controls

57 lines (33 loc) · 1.4 KB

What's this?

This code contains examples used in these blog articles:

Overall Requirements.

Java

  • Java in Version 21 specified by JAVA_HOME. (Version 25 is not supported Gradle.)
  • An installed GraalVM specified by GRAALVM_HOME.

Rust

Haskell

Kotlin

The Kotlin example is built and run using Gradle.

./gradlew computeAverageIncome

Rust

You need at least the version 1.46.0 of rustc to build this example.

To build and run the Rust application you have to move to its project directory:

cd src/main/rust/compute_average_income

Running the slow development Rust version:

cargo run

Running the fast Rust version:

cargo run --release

Haskell

You need an installation of Stack.

To build and run the Haskell benchmark:

./gradlew computeAverageIncomeHaskell

GraalVM

./gradlew computeAverageIncomeGraalVM

Run all benchmarks

First you have to install everything needed for the individual benchmarks. Then you can start all at once:

./gradlew computeAverageIncome