Skip to content

Kotlin/kotlin-wasm-benchmarks

 
 

Repository files navigation

Kotlin Wasm Benchmarks

JetBrains team project GitHub license GitHub license GitHub license

This is kotlin multiplatform benchmarks to compare Kotlin Wasm vs Kotlin JS performance.

Description

These benchmarks are based on JetBrains micro-benchmarks benchmarks and macro-benchmarks based on are-we-fast-yet benchmarks collection. 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.