An app compiled with Kotlin/JS 1.8.0-Beta runs ~7% slower than with Kotlin 1.7.21. It's not much, but it's noticeable in my benchmark. Should this be expected and why?
j
Johann Pardanaud
11/27/2022, 9:44 AM
Do you have any reproducible example?
r
Robert Jaros
11/27/2022, 10:37 AM
For now I could provide only compiled bundles. I'm building 1.8-beta version with a snapshot of KVision, which isn't published yet.
Robert Jaros
11/27/2022, 11:33 AM
Kotlin 1.7.21 app - https://kotlin1721.netlify.app/
Kotlin 1.8.0-Beta app - https://kotlin18beta.netlify.app/
The app processes 10000 simple DOM nodes in a loop and prints each cycle time and the average time. Times may vary slightly depending on the system or browser load, but with a few runs it's clear the 1.8-beta version is just a bit slower.