Microbenchmarks for experimental WasmGC-based Kotlin/Wasm compiler running in V8 against Kotlin/JS.
Adapted from Kotlin/Native project
-
Build Kotlin from sources
- Clone https://github.com/JetBrains/kotlin
- Set up JDKs and variables
- Run
./gradlew install --parallel
to publish it to~/.m2
-
Get d8 shell. You can use JSVU or build it from sources
-
Get wasm-opt from https://github.com/WebAssembly/binaryen
-
Run
./gradlew jsBench wasmBench wasmBenchOpt -Pv8=/path/to/d8 -PwasmOpt=/path/to/wasm-opt
-
Compare ./build/*.json results using K/N benchmarks analyzer with flag -f