https://kotlinlang.org logo
Title
s

spierce7

04/20/2018, 6:23 PM
When will Kotlin-native be ready for performance testing?
o

orangy

04/20/2018, 6:52 PM
I don’t think there is anything that can stop you 🙂
If I were to do this, I’d try implementing this with K/N: https://benchmarksgame-team.pages.debian.net/benchmarksgame/
May be check this: https://github.com/kostya/benchmarks It has some Kotlin code that you can compile to native with minor modifications.
m

msink

04/20/2018, 7:02 PM
In my test - https://github.com/msink/kotlin-pi - Kotlin/Native 0.6 is approx. 1.4 times slower than C. But master version - not yet released - performs almost same as C.
👍 5
s

spierce7

04/21/2018, 3:10 AM
I thought you guys had requested that it not be compared in benchmarks as it's EAP and hasn't gone through optimizations. My question was to try and get a feel for when you feel the compiler will be properly optimized and would be ready for testing.
o

olonho

04/21/2018, 8:48 AM
For that I guess something after 0.8 would make sense (when escape analysis be enabled and fine tuned). But you could check performance with upcoming 0.7, there shall be some improvements