Odin VS Julia benchmarks

Current benchmark data was generated on Fri May 20 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (Model 106)

* -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.)

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 2.1ms 1.0ms 0.9MB 0ms 0ms odin 2022
julia 1.jl 182ms 0.8ms 169.6MB 112ms 68ms julia 1.7.2

lru

Input: 1000 1000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 176ms 1.5ms 1.8MB 160ms 0ms odin 2022

Input: 1000 3000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 517ms 3.6ms 1.8MB 503ms 0ms odin 2022

Input: 100 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 82ms 0.2ms 0.8MB 70ms 0ms odin 2022

mandelbrot

Input: 5000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 1615ms 0.8ms 4.7MB 1603ms 0ms odin 2022

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 69ms 0.3ms 0.8MB 60ms 0ms odin 2022

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 7.jl 757ms 1.2ms 221.8MB 700ms 133ms julia 1.7.2
odin 1.odin 2543ms 1.4ms 0.8MB 2530ms 0ms odin 2022

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 256ms 0.3ms 0.8MB 250ms 0ms odin 2022
julia 7.jl 446ms 1.1ms 222.5MB 377ms 147ms julia 1.7.2

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 1.jl 580ms 1.3ms 208.4MB 520ms 137ms julia 1.7.2
odin 1.odin 819ms 17ms 40.6MB 797ms 7ms odin 2022
odin 2.odin 1251ms 15ms 6.4MB 1240ms 0ms odin 2022

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 122ms 0.2ms 11.4MB 110ms 0ms odin 2022
odin 2.odin 303ms 3.5ms 2.9MB 293ms 0ms odin 2022
julia 1.jl 378ms 1.5ms 205.3MB 323ms 133ms julia 1.7.2

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 2-m.jl 1402ms 3.5ms 197.3MB 2453ms 110ms julia 1.7.2
julia 3-m.jl 2112ms 3.7ms 210.9MB 3757ms 133ms julia 1.7.2
odin 1.odin 4493ms 1.5ms 2.9MB 4480ms 0ms odin 2022

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 2-m.jl 613ms 3.3ms 196.8MB 867ms 150ms julia 1.7.2
julia 3-m.jl 833ms 3.1ms 210.7MB 1250ms 130ms julia 1.7.2
odin 1.odin 1128ms 0.4ms 2.4MB 1120ms 0ms odin 2022

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 285ms 0.2ms 1.9MB 273ms 0ms odin 2022
julia 2-m.jl 413ms 1.1ms 197.9MB 523ms 103ms julia 1.7.2
julia 3.jl 517ms 4.6ms 214.2MB 627ms 130ms julia 1.7.2