Thank you for sharing, this is really nice work! I'm looking Forward to the next posts :) there's one thing i don't understand, you say "in contrast to Kotlin, where all those numbers have to be boxed as Integer objects". I don't think this is true and i don't know how you got to this conclusion. Would be interesting to take a look at a flight record to see the allocations, or do you have some heap data somewhere?
a
altavir
08/13/2019, 9:07 PM
Good research, yet it is inconclusive. 2-5% difference is not the difference you should build your conclusions on. Also, Computer language benchmark game is known not to be quite friendly with JVM. For example, it does not use JMH so the results do not properly account for VM warmup.