I'm just wondering how much slower Kotlin's program is compared to Java's program.
Compiler optimization plays a very important part in program performance.
- If most of compiler optimizations in java is done at runtime when compiling bytecode to native machine code (by JVM), then Kotlin's performance would be as similar as Java.
- But if most of compiler optimizations in java is done at compile-time when compiling java code to bytecode, then Kotlin would be notably slower than Java because Kotlin's compiler is not as mature and optimized as Java's compiler.