Current benchmark data was generated on Wed May 25 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 |
---|---|---|---|---|---|---|---|
c | 8-i.c | 318ms | 4.5ms | 1.1MB | 300ms | 0ms | clang 11.0.0 |
c | 8-i.c | 320ms | 17ms | 1.0MB | 310ms | 0ms | gcc 12.1.0 |
c | 5.c | 334ms | 0.4ms | 1.0MB | 320ms | 0ms | gcc 12.1.0 |
c | 8-i.c | 339ms | 0.3ms | 0.6MB | 330ms | 0ms | zigcc 0.10.0 |
c | 5.c | 361ms | 4.0ms | 1.1MB | 350ms | 0ms | clang 11.0.0 |
c | 5.c | 426ms | 0.4ms | 0.6MB | 413ms | 0ms | zigcc 0.10.0 |
swift | 7.swift | 428ms | 28ms | 5.4MB | 420ms | 0ms | swift 5.6.1 |
c | 2.c | 431ms | 3.8ms | 0.6MB | 420ms | 0ms | zigcc 0.10.0 |
c | 2.c | 458ms | 12ms | 1.1MB | 437ms | 0ms | clang 11.0.0 |
c | 2.c | 478ms | 5.8ms | 1.0MB | 467ms | 0ms | gcc 12.1.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
c | 8-i.c | 36ms | 0.4ms | 0.6MB | 30ms | 0ms | zigcc 0.10.0 |
c | 8-i.c | 36ms | 0.3ms | 0.9MB | 23ms | 0ms | gcc 12.1.0 |
c | 8-i.c | 37ms | 2.3ms | 1.1MB | 23ms | 0ms | clang 11.0.0 |
c | 5.c | 37ms | 2.9ms | 1.1MB | 30ms | 0ms | clang 11.0.0 |
c | 5.c | 37ms | 2.0ms | 1.0MB | 23ms | 0ms | gcc 12.1.0 |
swift | 7.swift | 43ms | 0.7ms | 5.4MB | 33ms | 0ms | swift 5.6.1 |
c | 5.c | 45ms | 0.2ms | 0.6MB | 37ms | 0ms | zigcc 0.10.0 |
c | 2.c | 45ms | 0.1ms | 0.6MB | 33ms | 0ms | zigcc 0.10.0 |
c | 2.c | 47ms | 3.4ms | 1.1MB | 37ms | 0ms | clang 11.0.0 |
c | 2.c | 50ms | 0.4ms | 1.0MB | 40ms | 0ms | gcc 12.1.0 |