All Kotlin benchmarks

Current benchmark data was generated on Tue Jan 18 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 761ms 137ms 837.5MB 700ms 173ms Kotlin/jvm 17.0.1

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 100ms 2.5ms 97.9MB 83ms 27ms Kotlin/jvm 17.0.1
1.kt 372ms 5.1ms 66.9MB 337ms 20ms Kotlin/Native 1.6.10

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.kt 323ms 4.2ms 65.0MB 367ms 37ms Kotlin/jvm 17.0.1
1.kt 3327ms 225ms 167.4MB 4067ms 87ms Kotlin/jvm 17.0.1
2.kt 3708ms 561ms 190.9MB 6440ms 77ms Kotlin/jvm 17.0.1

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.kt 246ms 42ms 60.1MB 263ms 23ms Kotlin/jvm 17.0.1
1.kt 894ms 45ms 106.9MB 1383ms 53ms Kotlin/jvm 17.0.1
2.kt 1389ms 188ms 132.2MB 2370ms 63ms Kotlin/jvm 17.0.1
1.kt 1757ms 6.5ms 7.5MB 1713ms 7ms Kotlin/Native 1.6.10
2.kt 1762ms 5.6ms 7.5MB 1727ms 3ms Kotlin/Native 1.6.10

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 2.9ms 0.7ms 2.4MB 0ms 0ms Kotlin/Native 1.6.10
1.kt 65ms 4.2ms 39.3MB 42ms 14ms Kotlin/jvm 17.0.1

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 528ms 6.4ms 39.9MB 543ms 10ms Kotlin/jvm 17.0.1
1.kt 770ms 6.6ms 2.4MB 760ms 0ms Kotlin/Native 1.6.10

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 79ms 0.4ms 2.4MB 70ms 0ms Kotlin/Native 1.6.10
1.kt 122ms 10ms 40.1MB 147ms 3ms Kotlin/jvm 17.0.1

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 18ms 0.5ms 2.4MB 10ms 0ms Kotlin/Native 1.6.10
1.kt 82ms 3.6ms 39.9MB 93ms 7ms Kotlin/jvm 17.0.1

pidigits

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 1734ms 27ms 209.1MB 1960ms 100ms Kotlin/jvm 17.0.1

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 347ms 62ms 111.0MB 417ms 33ms Kotlin/jvm 17.0.1
2n.kt 987ms 19ms 15.0MB 953ms 10ms Kotlin/Native 1.6.10
1n.kt 3008ms 23ms 8.2MB 2967ms 7ms Kotlin/Native 1.6.10

http-server

Input: 500

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.kt 2322ms 225ms 239.7MB 3600ms 273ms Kotlin/jvm 17.0.1
1.kt 2488ms 61ms 245.4MB 3717ms 270ms Kotlin/jvm 17.0.1

json-serde

Input: sample 5000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 1122ms 38ms 212.7MB 1920ms 93ms Kotlin/jvm 17.0.1

Input: canada 15

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 4265ms 145ms 1110.2MB 6183ms 427ms Kotlin/jvm 17.0.1

lru

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 651ms 4.1ms 131.4MB 710ms 33ms Kotlin/jvm 17.0.1

Input: 1000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 236ms 3.7ms 107.9MB 293ms 27ms Kotlin/jvm 17.0.1

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 173ms 2.5ms 70.1MB 247ms 13ms Kotlin/jvm 17.0.1

secp256k1

Input: 500

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 1358ms 14ms 182.1MB 2190ms 43ms Kotlin/jvm 17.0.1

Input: 50

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.kt 343ms 1.0ms 117.0MB 567ms 33ms Kotlin/jvm 17.0.1