Skip to content

Kotlin Multiplatform Collection of Benchmarks focused on Kotlin/Wasm performance

License

Notifications You must be signed in to change notification settings

Kotlin/kotlin-wasm-benchmarks

Repository files navigation

Kotlin Wasm Benchmarks

JetBrains team project GitHub license GitHub license GitHub license

Kotlin Multiplatform Collection of Benchmarks focused on Kotlin/Wasm performance.

kotlin-wasm-macro-benchmarks.png

compose-multiplatform-benchmarks.png Based on data from Compose Multiplatform Benchmarks

Description

These benchmarks are based on are-we-fast-yet benchmarks collection and JetBrains/Kotlin micro-benchmarks (work-in-progress). To perform benchmarks it uses kotlinx-benchmarks library.

Build and Run

Specify Kotlin version in gradle.properties file or use additional gradle argument -Pkotlin_version=1.8.0.

To run All benchmarks in V8:

./gradlew benchmark

To run All Kotlin/Wasm benchmarks in V8:

./gradlew wasmBenchmark

To run All Kotlin/Wasm benchmarks with binaries optimized by Binaryen in V8:

./gradlew wasmOptBenchmark

To run All Kotlin/JS benchmarks in V8:

./gradlew jsBenchmark

To see all tasks:

./gradlew tasks

Result output is located in build/reports directory.

License

See LICENSE.md file for details.