Current benchmark data was generated on Sat Jan 28 2023, 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 | 268ms | 0.2ms | 1.0MB | 260ms | 0ms | nim 1.6.10 |
nim | 2.nim | 335ms | 0.2ms | 1.3MB | 327ms | 0ms | nim/clang 1.6.10 |
swift | 3-m.swift | 390ms | 3.2ms | 20.9MB | 687ms | 10ms | swift 5.7.3 |
nim | 1.nim | 779ms | 4.3ms | 1.1MB | 687ms | 73ms | nim 1.6.10 |
nim | 1.nim | 796ms | 1.3ms | 1.2MB | 687ms | 93ms | nim/clang 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 32ms | 3.0ms | 1.1MB | 20ms | 0ms | nim 1.6.10 |
nim | 2.nim | 37ms | 2.3ms | 1.3MB | 27ms | 0ms | nim/clang 1.6.10 |
swift | 3.swift | 58ms | 0.9ms | 14.6MB | 53ms | 3ms | swift 5.7.3 |
nim | 1.nim | 79ms | 0.1ms | 1.1MB | 57ms | 7ms | nim 1.6.10 |
nim | 1.nim | 83ms | 1.7ms | 1.3MB | 67ms | 3ms | nim/clang 1.6.10 |