Kotlin compiler performance

How come code on https://try.kotlinlang.org compiles and runs so fast (858 ms)? The same come on my mac takes about 3 seconds kotlinc main.kt && kotlin MainKt.

Sample code

fun main(args: Array<String>) {
  println("Hello from Kotlin!")
}

Are there any compiler options that I can use to make it perform better?

You can use gradle with hot VM. 3 seconds is long even for cold VM though. Probably the problem is that you start up VM twice - one time for compilation and one time for run. So as I said earlier use gradle, kscript or any other way to run on already started JVM. Also different JVM-s have different startup time.

90% of the time here is spent in compiling.