Current benchmark data was generated on Fri May 20 2022, 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 |
---|---|---|---|---|---|---|---|
nim | 2.nim | 261ms | 0.9ms | 0.7MB | 247ms | 0ms | nim 1.6.6 |
nim | 2.nim | 337ms | 0.7ms | 0.9MB | 320ms | 0ms | nim/clang 1.6.6 |
swift | 3-m.swift | 369ms | 4.6ms | 21.0MB | 663ms | 7ms | swift 5.6.1 |
nim | 1.nim | 771ms | 2.8ms | 0.7MB | 650ms | 103ms | nim 1.6.6 |
nim | 1.nim | 787ms | 2.3ms | 0.9MB | 657ms | 110ms | nim/clang 1.6.6 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 28ms | 0.1ms | 0.7MB | 20ms | 0ms | nim 1.6.6 |
nim | 2.nim | 36ms | 0.1ms | 1.0MB | 30ms | 0ms | nim/clang 1.6.6 |
swift | 3.swift | 64ms | 15ms | 14.6MB | 60ms | 0ms | swift 5.6.1 |
nim | 1.nim | 81ms | 0.5ms | 0.7MB | 57ms | 7ms | nim 1.6.6 |
nim | 1.nim | 82ms | 0.9ms | 1.0MB | 63ms | 3ms | nim/clang 1.6.6 |