Current benchmark data was generated on Wed Feb 08 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 |
---|---|---|---|---|---|---|---|
c | 8-i.c | 331ms | 4.8ms | 1.2MB | 320ms | 0ms | zigcc 0.11.0-dev.1580+a5b34a61a |
c | 8-i.c | 398ms | 5.5ms | 1.3MB | 387ms | 0ms | gcc 12.2.0 |
c | 5.c | 403ms | 1.6ms | 1.3MB | 390ms | 0ms | gcc 12.2.0 |
c | 5.c | 422ms | 5.1ms | 1.4MB | 410ms | 0ms | clang 14.0.0 |
c | 8-i.c | 423ms | 7.5ms | 1.4MB | 410ms | 0ms | clang 14.0.0 |
c | 5.c | 426ms | 3.6ms | 1.0MB | 413ms | 0ms | zigcc 0.11.0-dev.1580+a5b34a61a |
c | 2.c | 433ms | 1.0ms | 1.2MB | 420ms | 0ms | zigcc 0.11.0-dev.1580+a5b34a61a |
c | 2.c | 467ms | 4.0ms | 1.4MB | 453ms | 0ms | clang 14.0.0 |
swift | 7.swift | 565ms | 41ms | 5.1MB | 553ms | 0ms | swift 5.7.3 |
c | 2.c | 592ms | 1.5ms | 1.3MB | 580ms | 0ms | gcc 12.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
c | 8-i.c | 37ms | 1.3ms | 1.3MB | 27ms | 0ms | zigcc 0.11.0-dev.1580+a5b34a61a |
c | 8-i.c | 43ms | 1.7ms | 1.3MB | 30ms | 0ms | gcc 12.2.0 |
c | 5.c | 43ms | 0.8ms | 1.3MB | 30ms | 0ms | gcc 12.2.0 |
c | 5.c | 45ms | 1.0ms | 1.4MB | 37ms | 0ms | clang 14.0.0 |
c | 8-i.c | 45ms | 0.2ms | 1.4MB | 30ms | 0ms | clang 14.0.0 |
c | 2.c | 47ms | 0.6ms | 1.2MB | 40ms | 0ms | zigcc 0.11.0-dev.1580+a5b34a61a |
c | 2.c | 51ms | 2.5ms | 1.4MB | 40ms | 0ms | clang 14.0.0 |
c | 5.c | 53ms | 4.0ms | 1.0MB | 43ms | 0ms | zigcc 0.11.0-dev.1580+a5b34a61a |
swift | 7.swift | 58ms | 2.1ms | 5.1MB | 47ms | 0ms | swift 5.7.3 |
c | 2.c | 63ms | 0.8ms | 1.3MB | 50ms | 0ms | gcc 12.2.0 |