I'm considering to write a windows DLL using Kotlin native (I haven't used Kotlin for some years and have no experience with Kotlin native). I do not need to do anything fancy like concurrency.
It is just meant for calculations. I haven't decided if it needs to access a database or not yet.
I have heard that Kotlin native performance is not good. How bad is it exactly? I can live with worse than C++ or Kotlin running on a JVM... but if it is anywhere near Python-level bad performance then that would be a problem.
The tests I've done, while not as scientifically rigorous, place it in the 2-3 range.
Landry Norris
02/13/2023, 2:48 PM
Edit: grammar
When reading benchmarks like this, keep in mind that C/C++/Rust often use the ‘native’ cpu target, which produces the most optimized binary, but only ensures compatibility with the CPU used to build the binary. In production, you’d use the x86_64 or arm64 target, like Kotlin does.