/kt_vs_dart_vs_rust_vs_wasm

Example app to check performance between Kotlin, Dart, Rust and Wasm

Primary LanguageDartMIT LicenseMIT

android_ Kotlin vs Dart vs Rust Vs Wasm

A project written to test performace of the languages Kotlin, Dart, Rust and Wasm on android app by getting how many times a language can get total number prime numbers between a range, in 5 seconds, got the idea from Dave's Garage on Youtube

Build requirements:

  • Rust 1.69+

  • Flutter 3.x+

  • cargo-ndk. Can be installed via cargo with:

    cargo install cargo-ndk

Running

First compile the rust library, then move it to jniLibrary dir of android file using cargo-ndk

cargo ndk -t armeabi-v7a -t arm64-v8a -t x86_64 -t x86 --no-strip -o ./android/app/src/main/jniLibs build --release

Run the flutter app

flutter run

or build

flutter build