Current benchmark data was generated on Tue Dec 31 2024, full log can be found HERE
CONTRIBUTIONS are WELCOME!
* -m in a file name stands for multi-threading or multi-processing
* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)
* -ffi in a file name stands for non-stdlib FFI usage
* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
kotlin | 1.kt | 455ms | 16ms | 575.5MB | 540ms | 63ms | kotlin/jvm 21 |
rust | 4.rs | 1176ms | 7.2ms | 33.8MB | 1153ms | 7ms | rustc 1.83.0 |
rust | 5.rs | 1261ms | 3.1ms | 33.8MB | 1233ms | 10ms | rustc 1.83.0 |
rust | 3.rs | 1415ms | 35ms | 49.8MB | 1373ms | 27ms | rustc 1.83.0 |
kotlin | 1-m.kt | 2928ms | 6.8ms | 248.5MB | 4967ms | 627ms | kotlin/native 1.8.21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
kotlin | 1.kt | 95ms | 2.4ms | 158.2MB | 103ms | 23ms | kotlin/jvm 21 |
rust | 4.rs | 110ms | 0.7ms | 5.8MB | 97ms | 0ms | rustc 1.83.0 |
rust | 5.rs | 119ms | 3.8ms | 5.8MB | 107ms | 0ms | rustc 1.83.0 |
rust | 3.rs | 130ms | 2.4ms | 7.8MB | 117ms | 0ms | rustc 1.83.0 |
kotlin | 1-m.kt | 257ms | 6.2ms | 32.6MB | 400ms | 63ms | kotlin/native 1.8.21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 3-m.rs | 532ms | 58ms | 11.0MB | 2017ms | 47ms | rustc 1.83.0 |
rust | 5-m.rs | 590ms | 52ms | 7.4MB | 2213ms | 77ms | rustc 1.83.0 |
rust | 1-m.rs | 937ms | 10ms | 12.3MB | 3370ms | 293ms | rustc 1.83.0 |
rust | 3.rs | 1091ms | 13ms | 9.3MB | 1040ms | 37ms | rustc 1.83.0 |
kotlin | 2-m.kt | 1799ms | 182ms | 235.5MB | 6667ms | 90ms | kotlin/jvm 21 |
rust | 4.rs | 1822ms | 11ms | 7.4MB | 1810ms | 0ms | rustc 1.83.0 |
kotlin | 1.kt | 2058ms | 23ms | 217.3MB | 2833ms | 57ms | kotlin/jvm 21 |
kotlin | 1.kt | timeout | 0.0ms | 14.8MB | 6030ms | 500ms | kotlin/native 1.8.21 |
kotlin | 2-m.kt | timeout | 0.0ms | 52.1MB | 19097ms | 113ms | kotlin/native 1.8.21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 5-m.rs | 50ms | 2.6ms | 5.3MB | 133ms | 20ms | rustc 1.83.0 |
rust | 3-m.rs | 52ms | 1.5ms | 7.9MB | 150ms | 20ms | rustc 1.83.0 |
rust | 3.rs | 73ms | 3.0ms | 4.0MB | 60ms | 0ms | rustc 1.83.0 |
rust | 1-m.rs | 77ms | 7.5ms | 5.8MB | 220ms | 50ms | rustc 1.83.0 |
rust | 4.rs | 110ms | 2.4ms | 3.4MB | 100ms | 0ms | rustc 1.83.0 |
kotlin | 2-m.kt | 366ms | 8.9ms | 38.2MB | 1350ms | 13ms | kotlin/native 1.8.21 |
kotlin | 1-m.kt | 450ms | 15ms | 73.3MB | 1017ms | 37ms | kotlin/jvm 21 |
kotlin | 1.kt | 646ms | 7.8ms | 10.8MB | 807ms | 53ms | kotlin/native 1.8.21 |
kotlin | 2-m.kt | 757ms | 71ms | 99.7MB | 2643ms | 70ms | kotlin/jvm 21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 1.rs | 1.2ms | 0.1ms | 1.8MB | 0ms | 0ms | rustc 1.83.0 |
rust | 1.rs | 1.2ms | 0.1ms | 1.8MB | 0ms | 0ms | rustc 1.85.0-nightly |
kotlin | 1.kt | 2.3ms | 0.2ms | 4.7MB | 0ms | 0ms | kotlin/native 1.8.21 |
kotlin | 1.kt | 55ms | 4.2ms | 47.4MB | 46ms | 14ms | kotlin/jvm 21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 1.rs | 282ms | 67ms | 43.7MB | 103ms | 310ms | rustc 1.83.0 |
rust | 2-http2.rs | 292ms | 25ms | 60.6MB | 500ms | 323ms | rustc 1.83.0 |
rust | 1-http2.rs | 355ms | 58ms | 65.7MB | 527ms | 487ms | rustc 1.83.0 |
rust | 2-m.rs | 469ms | 97ms | 86.4MB | 190ms | 743ms | rustc 1.83.0 |
kotlin | 2-m.kt | 4837ms | 51ms | 400.1MB | 14360ms | 2470ms | kotlin/jvm 21 |
kotlin | 1.kt | timeout | 0.0ms | 405.3MB | 16127ms | 2747ms | kotlin/jvm 21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 1.rs | 76ms | 20ms | 15.8MB | 10ms | 63ms | rustc 1.83.0 |
rust | 2-m.rs | 122ms | 11ms | 36.6MB | 37ms | 163ms | rustc 1.83.0 |
rust | 2-http2.rs | 221ms | 15ms | 31.7MB | 437ms | 157ms | rustc 1.83.0 |
rust | 1-http2.rs | 271ms | 53ms | 37.3MB | 633ms | 197ms | rustc 1.83.0 |
kotlin | 1-m.kt | 2173ms | 206ms | 269.1MB | 6403ms | 597ms | kotlin/jvm 21 |
kotlin | 2.kt | 2226ms | 288ms | 241.9MB | 2337ms | 253ms | kotlin/jvm 21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 5-i.rs | 27ms | 1.7ms | 9.8MB | 17ms | 0ms | rustc 1.83.0 |
rust | 4-i.rs | 30ms | 1.6ms | 7.8MB | 20ms | 0ms | rustc 1.83.0 |
rust | 3.rs | 59ms | 1.5ms | 33.6MB | 40ms | 7ms | rustc 1.83.0 |
rust | 2.rs | 59ms | 0.6ms | 35.5MB | 37ms | 10ms | rustc 1.83.0 |
rust | 1.rs | 101ms | 3.7ms | 69.3MB | 63ms | 23ms | rustc 1.83.0 |
kotlin | 1-m.kt | 863ms | 53ms | 202.0MB | 2353ms | 83ms | kotlin/jvm 21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 5-i.rs | 197ms | 1.3ms | 53.3MB | 180ms | 3ms | rustc 1.83.0 |
rust | 4-i.rs | 253ms | 1.0ms | 53.6MB | 203ms | 37ms | rustc 1.83.0 |
rust | 3.rs | 386ms | 6.4ms | 238.2MB | 290ms | 83ms | rustc 1.83.0 |
rust | 2.rs | 391ms | 1.5ms | 237.7MB | 287ms | 93ms | rustc 1.83.0 |
rust | 1.rs | 656ms | 1.8ms | 551.0MB | 387ms | 257ms | rustc 1.83.0 |
kotlin | 1-m.kt | 2217ms | 99ms | 784.2MB | 4773ms | 140ms | kotlin/jvm 21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 0-unsafe.rs | 34ms | 1.7ms | 1.9MB | 23ms | 0ms | rustc 1.83.0 |
rust | 1.rs | 46ms | 4.3ms | 2.0MB | 33ms | 0ms | rustc 1.83.0 |
kotlin | 1-m.kt | 172ms | 3.8ms | 94.9MB | 283ms | 30ms | kotlin/jvm 21 |
kotlin | 2-m.kt | 188ms | 5.4ms | 102.2MB | 397ms | 30ms | kotlin/jvm 21 |
kotlin | 2.kt | 285ms | 1.3ms | 7.8MB | 413ms | 3ms | kotlin/native 1.8.21 |
kotlin | 1.kt | 501ms | 15ms | 7.8MB | 600ms | 7ms | kotlin/native 1.8.21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 0-unsafe.rs | 141ms | 8.2ms | 1.9MB | 133ms | 0ms | rustc 1.83.0 |
rust | 1.rs | 170ms | 7.7ms | 2.0MB | 157ms | 0ms | rustc 1.83.0 |
kotlin | 2-m.kt | 298ms | 25ms | 214.4MB | 503ms | 57ms | kotlin/jvm 21 |
kotlin | 1.kt | 308ms | 0.6ms | 204.7MB | 413ms | 40ms | kotlin/jvm 21 |
kotlin | 2.kt | 863ms | 8.2ms | 7.6MB | 1240ms | 50ms | kotlin/native 1.8.21 |
kotlin | 1.kt | 1456ms | 8.2ms | 7.9MB | 1763ms | 17ms | kotlin/native 1.8.21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 0-unsafe.rs | 23ms | 0.5ms | 1.9MB | 10ms | 0ms | rustc 1.83.0 |
rust | 1.rs | 28ms | 1.9ms | 1.9MB | 17ms | 0ms | rustc 1.83.0 |
kotlin | 1-m.kt | 132ms | 1.5ms | 92.4MB | 250ms | 20ms | kotlin/jvm 21 |
kotlin | 2.kt | 134ms | 3.9ms | 5.7MB | 190ms | 0ms | kotlin/native 1.8.21 |
kotlin | 2-m.kt | 159ms | 9.9ms | 90.8MB | 307ms | 27ms | kotlin/jvm 21 |
kotlin | 1.kt | 162ms | 4.0ms | 5.8MB | 207ms | 0ms | kotlin/native 1.8.21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 4-i.rs | 160ms | 3.5ms | 1.8MB | 150ms | 0ms | rustc 1.83.0 |
rust | 7-i.rs | 228ms | 2.2ms | 1.8MB | 220ms | 0ms | rustc 1.83.0 |
rust | 1.rs | 228ms | 5.2ms | 1.8MB | 213ms | 0ms | rustc 1.83.0 |
rust | 2.rs | 263ms | 1.3ms | 1.8MB | 253ms | 0ms | rustc 1.83.0 |
rust | 3.rs | 269ms | 1.6ms | 1.9MB | 257ms | 0ms | rustc 1.85.0-nightly |
kotlin | 1n.kt | 386ms | 8.6ms | 4.7MB | 373ms | 0ms | kotlin/native 1.8.21 |
kotlin | 1.kt | 422ms | 3.5ms | 49.7MB | 463ms | 13ms | kotlin/jvm 21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 4-i.rs | 18ms | 0.7ms | 1.8MB | 10ms | 0ms | rustc 1.83.0 |
rust | 1.rs | 25ms | 0.4ms | 1.8MB | 17ms | 0ms | rustc 1.83.0 |
rust | 7-i.rs | 25ms | 0.7ms | 1.8MB | 20ms | 0ms | rustc 1.83.0 |
rust | 2.rs | 28ms | 0.0ms | 1.8MB | 20ms | 0ms | rustc 1.83.0 |
rust | 3.rs | 28ms | 0.1ms | 1.8MB | 20ms | 0ms | rustc 1.85.0-nightly |
kotlin | 1n.kt | 43ms | 0.8ms | 4.6MB | 30ms | 0ms | kotlin/native 1.8.21 |
kotlin | 1.kt | 112ms | 0.7ms | 49.4MB | 150ms | 17ms | kotlin/jvm 21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 1.rs | 1461ms | 11ms | 2.7MB | 1253ms | 183ms | rustc 1.83.0 |
rust | 2.rs | 1636ms | 13ms | 2.8MB | 1527ms | 93ms | rustc 1.83.0 |
kotlin | 1.kt | 3505ms | 35ms | 353.8MB | 4313ms | 93ms | kotlin/jvm 21 |
kotlin | 1n.kt | timeout | 0.0ms | 7.5MB | 6350ms | 310ms | kotlin/native 1.8.21 |
kotlin | 2n.kt | timeout | 0.0ms | 13.3MB | 4990ms | 177ms | kotlin/native 1.8.21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 1.rs | 306ms | 1.7ms | 2.4MB | 283ms | 3ms | rustc 1.83.0 |
rust | 2.rs | 367ms | 5.1ms | 2.5MB | 353ms | 0ms | rustc 1.83.0 |
kotlin | 1-m.kt | 939ms | 37ms | 355.0MB | 1617ms | 70ms | kotlin/jvm 21 |
kotlin | 1n.kt | timeout | 0.0ms | 7.4MB | 6420ms | 257ms | kotlin/native 1.8.21 |
kotlin | 2n.kt | timeout | 0.0ms | 8.2MB | 5000ms | 150ms | kotlin/native 1.8.21 |