Does anyone know of any benchmarks of Kotlin/native vs other more mature equivalent languages (Swift, rust, C++, etc)? I'm interested to know where Kotlin is in it's performance process. I've seen this ( https://github.com/msink/kotlin-pi ), but its just algorithms, without much / any ARC, or OO.
m
msink
06/14/2018, 4:12 PM
Yes, kotlin-pi tests only algorithm - performance is almost x1. On the other hand - https://github.com/frol/completely-unscientific-benchmarks tests memory management - performance is x36 times slower to etalon, only CPython is worse - x74. For real applications it will be somewhere in between (x1 - x36)
o
olonho
06/14/2018, 4:14 PM
this ^^^ benchmark is not so interesting, IMO, so my suggestion would be to create a test similar to your expected workload, and report results/problems to us
m
msink
06/15/2018, 1:48 AM
Sure that benchmark is extremal case for heavy use of memory management, in real workloads result is not so bad. But result for Swift is x10, and for Kotlin/JVM - x3.
s
spierce7
06/15/2018, 7:34 PM
I'd expect Kotlin/native to be similar to Swift after Kotlin/native is optimized once all is said and done since their memory management strategies are similar.
Is there any reason that shouldn't be the case @olonho?