Julia VS Odin benchmarks

Current benchmark data was generated on Sat Jan 28 2023, 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.0ms 0.7ms 1.7MB 0ms 0ms odin 2023
julia 1.jl 181ms 7.2ms 167.3MB 124ms 62ms julia/aot 1.8.5
julia 1.jl 192ms 1.3ms 171.1MB 118ms 90ms julia 1.8.5

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1-i.odin 529ms 0.2ms 1.2MB 520ms 0ms odin 2023
julia 7.jl 548ms 2.6ms 168.3MB 510ms 110ms julia/aot 1.8.5
julia 7.jl 704ms 4.6ms 223.7MB 650ms 127ms julia 1.8.5
odin 1.odin 2890ms 20ms 1.2MB 2877ms 0ms odin 2023

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1-i.odin 56ms 2.3ms 1.2MB 50ms 0ms odin 2023
julia 7.jl 244ms 1.8ms 168.0MB 217ms 97ms julia/aot 1.8.5
odin 1.odin 290ms 0.2ms 1.2MB 280ms 0ms odin 2023
julia 7.jl 390ms 5.7ms 228.4MB 370ms 100ms julia 1.8.5

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 1.jl 423ms 2.7ms 156.6MB 393ms 103ms julia/aot 1.8.5
julia 1.jl 536ms 6.8ms 202.9MB 493ms 113ms julia 1.8.5
odin 1.odin 545ms 31ms 40.6MB 520ms 7ms odin 2023
odin 2.odin 1176ms 2.5ms 6.4MB 1163ms 0ms odin 2023

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 119ms 0.9ms 11.3MB 110ms 0ms odin 2023
julia 1.jl 220ms 6.3ms 150.0MB 170ms 90ms julia/aot 1.8.5
odin 2.odin 289ms 3.1ms 2.7MB 277ms 0ms odin 2023
julia 1.jl 326ms 0.8ms 196.8MB 283ms 117ms julia 1.8.5

binarytrees

Input: 18

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 4.jl 1087ms 3.4ms 239.5MB 1010ms 153ms julia 1.8.5

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 4.jl 307ms 3.7ms 225.8MB 247ms 140ms julia 1.8.5

fannkuch-redux

Input: 11

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 2-m.jl 1774ms 2.9ms 211.0MB 3117ms 120ms julia 1.8.5

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 2-m.jl 533ms 3.6ms 212.9MB 707ms 110ms julia 1.8.5

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 7-m.jl 624ms 7.1ms 298.7MB 857ms 147ms julia 1.8.5

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 7.jl 452ms 0.1ms 222.8MB 543ms 113ms julia 1.8.5

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1-m.odin 852ms 21ms 46.9MB 1477ms 43ms odin 2023
julia 8.jl 1110ms 2.3ms 271.6MB 1483ms 130ms julia 1.8.5

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 173ms 1.9ms 29.8MB 220ms 20ms odin 2023
julia 8.jl 762ms 3.6ms 263.1MB 840ms 143ms julia 1.8.5

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 3.jl 787ms 3.7ms 177.6MB 747ms 120ms julia 1.8.5
julia 1.jl 1376ms 7.8ms 262.4MB 1283ms 167ms julia 1.8.5

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 3.jl 348ms 5.3ms 176.1MB 303ms 123ms julia 1.8.5
julia 1.jl 783ms 32ms 261.5MB 710ms 137ms julia 1.8.5

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 2-m.jl 1364ms 5.8ms 193.7MB 2393ms 117ms julia 1.8.5
julia 3-m.jl 2101ms 0.8ms 211.4MB 3773ms 133ms julia 1.8.5
odin 1.odin 4615ms 1.6ms 2.7MB 4603ms 0ms odin 2023

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 2-m.jl 578ms 1.9ms 194.3MB 860ms 107ms julia 1.8.5
julia 3-m.jl 805ms 4.7ms 209.2MB 1213ms 133ms julia 1.8.5
odin 1.odin 1156ms 0.1ms 2.1MB 1143ms 0ms odin 2023

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 291ms 0.1ms 1.8MB 280ms 0ms odin 2023
julia 2-m.jl 379ms 1.7ms 192.1MB 473ms 100ms julia 1.8.5
julia 3.jl 473ms 1.7ms 209.3MB 597ms 110ms julia 1.8.5