This code contains examples used in these blog articles:
- Yes, Rust has garbage collection, and a Fast One
- Kotlin/JVM, Rust and Randy Random
- Haskell is faster than Rust! Wait a Sec!
The Kotlin example is built and run using Gradle.
./gradlew computeAverageIncome
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
You need an installation of Stack.
To build and run the Haskell benchmark:
./gradlew computeAverageIncomeHaskell
First you have to install everything needed for the individual benchmarks. Then you can start all at once:
./gradlew computeAverageIncome