Current benchmark data was generated on Tue Mar 25 2025, 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 |
---|---|---|---|---|---|---|---|
swift | 3-m.swift | 135ms | 1.1ms | 20.9MB | 387ms | 0ms | swift 6.0.3 |
nim | 2.nim | 189ms | 1.0ms | 1.5MB | 180ms | 0ms | nim 2.2.2 |
nim | 2.nim | 235ms | 1.2ms | 1.8MB | 227ms | 0ms | nim/clang 2.2.2 |
nim | 1.nim | 555ms | 2.0ms | 1.8MB | 453ms | 87ms | nim/clang 2.2.2 |
nim | 1.nim | 580ms | 1.8ms | 1.5MB | 467ms | 103ms | nim 2.2.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 21ms | 1.0ms | 1.5MB | 10ms | 0ms | nim 2.2.2 |
nim | 2.nim | 26ms | 0.5ms | 1.8MB | 20ms | 0ms | nim/clang 2.2.2 |
swift | 3.swift | 36ms | 0.3ms | 18.3MB | 30ms | 0ms | swift 6.0.3 |
nim | 1.nim | 59ms | 1.4ms | 1.8MB | 40ms | 3ms | nim/clang 2.2.2 |
nim | 1.nim | 61ms | 1.3ms | 1.5MB | 43ms | 3ms | nim 2.2.2 |