Current benchmark data was generated on Sun Dec 01 2024, 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 |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 645ms | 6.6ms | 3.5MB | 2427ms | 0ms | zig 0.13.0 |
zig | 3-i.zig | 1790ms | 1.2ms | 1.1MB | 1780ms | 0ms | zig 0.13.0 |
zig | 2.zig | 2428ms | 24ms | 1.1MB | 2420ms | 0ms | zig 0.13.0 |
swift | 1.swift | 2463ms | 5.8ms | 6.6MB | 2453ms | 0ms | swift 6.0.2 |
zig | 1.zig | 2870ms | 11ms | 1.1MB | 2857ms | 0ms | zig 0.13.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 60ms | 2.3ms | 3.5MB | 193ms | 0ms | zig 0.13.0 |
zig | 3-i.zig | 149ms | 0.1ms | 1.1MB | 140ms | 0ms | zig 0.13.0 |
zig | 2.zig | 200ms | 1.5ms | 1.1MB | 190ms | 0ms | zig 0.13.0 |
swift | 1.swift | 211ms | 1.2ms | 5.8MB | 200ms | 0ms | swift 6.0.2 |
zig | 1.zig | 241ms | 1.0ms | 1.1MB | 230ms | 0ms | zig 0.13.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 35ms | 1.7ms | 2.9MB | 23ms | 0ms | zig 0.13.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 476ms | 6.6ms | 3.8MB | 1563ms | 3ms | zig 0.13.0 |
zig | 2.zig | 917ms | 5.5ms | 1.5MB | 907ms | 0ms | zig 0.13.0 |
zig | 1.zig | 3670ms | 5.0ms | 1.5MB | 3663ms | 0ms | zig 0.13.0 |