I’m comparing the speed of a hello world example running locally and on kotlin playground:
import java.io.*;
import java.util.*;
fun main(args: Array<String>) {
for (i in 1..10) println("Hello, World!")
}
Running it on https://play.kotlinlang.org takes around 1.5 seconds
Compiling it locally with kotlinc (1.3.31) and running the jar with java 11 takes around 7 seconds
How is it possible that the playground is so much faster? Is it only the hardware?
thanks