Julia VS Haxe 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
haxe 1.hx 2.0ms 0.6ms 2.3MB 0ms 0ms haxe/hl/c 4.2.5
haxe 1.hx 2.8ms 0.7ms 3.2MB 0ms 0ms haxe/cpp 4.2.5
haxe 1.hx 4.5ms 0.7ms 2.9MB 0ms 0ms haxe/hl/jit 1.13.0
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
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
haxe 2.hx 994ms 40ms 2.3MB 980ms 0ms haxe/hl/c 4.2.5
haxe 1.hx 1247ms 2.7ms 2.3MB 1233ms 0ms haxe/hl/c 4.2.5
haxe 3.hx 1406ms 28ms 27.6MB 1567ms 33ms haxe/cpp 4.2.5
haxe 2.hx 2363ms 105ms 3.3MB 2347ms 0ms haxe/hl/jit 1.13.0
haxe 1.hx 2512ms 18ms 3.2MB 2500ms 0ms haxe/hl/jit 1.13.0
haxe 1.hx timeout 0.0ms 3.2MB 4990ms 0ms haxe/cpp 4.2.5
haxe 2.hx timeout 0.0ms 3.3MB 4987ms 0ms haxe/cpp 4.2.5
haxe 3.hx timeout 0.0ms 3.3MB 4527ms 457ms haxe/hl/c 4.2.5
haxe 3.hx timeout 0.0ms 3.7MB 4650ms 333ms haxe/hl/jit 1.13.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 2.hx 104ms 3.2ms 2.3MB 93ms 0ms haxe/hl/c 4.2.5
haxe 1.hx 135ms 7.0ms 2.3MB 127ms 0ms haxe/hl/c 4.2.5
haxe 3.hx 162ms 6.8ms 27.7MB 163ms 10ms haxe/cpp 4.2.5
haxe 2.hx 240ms 3.7ms 3.3MB 230ms 0ms haxe/hl/jit 1.13.0
julia 7.jl 244ms 1.8ms 168.0MB 217ms 97ms julia/aot 1.8.5
haxe 1.hx 272ms 6.7ms 3.2MB 257ms 0ms haxe/hl/jit 1.13.0
julia 7.jl 390ms 5.7ms 228.4MB 370ms 100ms julia 1.8.5
haxe 3.hx 640ms 11ms 3.2MB 577ms 47ms haxe/hl/c 4.2.5
haxe 3.hx 777ms 5.9ms 3.7MB 703ms 53ms haxe/hl/jit 1.13.0
haxe 2.hx 852ms 0.5ms 3.2MB 840ms 0ms haxe/cpp 4.2.5
haxe 1.hx 1045ms 1.8ms 3.2MB 1033ms 0ms haxe/cpp 4.2.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

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 1.jl 220ms 6.3ms 150.0MB 170ms 90ms julia/aot 1.8.5
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
haxe 1.hx 1664ms 24ms 146.0MB 1903ms 83ms haxe/cpp 4.2.5
haxe 2.hx 4554ms 27ms 497.1MB 5670ms 267ms haxe/cpp 4.2.5
haxe 1.hx timeout 0.0ms 48.6MB 4713ms 267ms haxe/hl/c 4.2.5
haxe 2.hx timeout 0.0ms 83.0MB 4397ms 587ms haxe/hl/c 4.2.5
haxe 1.hx timeout 0.0ms 49.0MB 4723ms 257ms haxe/hl/jit 1.13.0
haxe 2.hx timeout 0.0ms 130.3MB 4463ms 517ms haxe/hl/jit 1.13.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 1.hx 110ms 5.1ms 27.7MB 103ms 3ms haxe/cpp 4.2.5
julia 4.jl 307ms 3.7ms 225.8MB 247ms 140ms julia 1.8.5
haxe 2.hx 416ms 5.7ms 60.4MB 453ms 27ms haxe/cpp 4.2.5
haxe 1.hx 782ms 2.8ms 8.6MB 747ms 17ms haxe/hl/c 4.2.5
haxe 1.hx 932ms 15ms 11.1MB 883ms 30ms haxe/hl/jit 1.13.0
haxe 2.hx 1153ms 13ms 13.4MB 1010ms 120ms haxe/hl/c 4.2.5
haxe 2.hx 1294ms 5.6ms 25.0MB 1167ms 110ms haxe/hl/jit 1.13.0

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
haxe 1.hx 3417ms 46ms 27.6MB 3310ms 237ms haxe/cpp 4.2.5
haxe 1.hx timeout 0.0ms 3.4MB 4647ms 337ms haxe/hl/c 4.2.5
haxe 1.hx timeout 0.0ms 3.8MB 4703ms 273ms haxe/hl/jit 1.13.0

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 1.hx 356ms 2.1ms 27.5MB 330ms 20ms haxe/cpp 4.2.5
julia 7.jl 452ms 0.1ms 222.8MB 543ms 113ms julia 1.8.5
haxe 1.hx 780ms 0.7ms 3.2MB 727ms 40ms haxe/hl/c 4.2.5
haxe 1.hx 830ms 0.2ms 3.7MB 770ms 40ms haxe/hl/jit 1.13.0

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
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
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
haxe 1.hx timeout 0.0ms 6.9MB 4983ms 0ms haxe/cpp 4.2.5
haxe 1.hx timeout 0.0ms 3.0MB 4990ms 0ms haxe/hl/c 4.2.5
haxe 1.hx timeout 0.0ms 3.7MB 4990ms 0ms haxe/hl/jit 1.13.0

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
haxe 1.hx 1304ms 0.9ms 3.1MB 1297ms 0ms haxe/hl/c 4.2.5
haxe 1.hx 2338ms 1.4ms 6.7MB 2327ms 0ms haxe/cpp 4.2.5
haxe 1.hx timeout 0.0ms 3.6MB 4987ms 0ms haxe/hl/jit 1.13.0

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 1.hx 330ms 0.8ms 2.8MB 317ms 0ms haxe/hl/c 4.2.5
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
haxe 1.hx 589ms 0.5ms 5.3MB 573ms 0ms haxe/cpp 4.2.5
haxe 1.hx 3427ms 6.5ms 3.6MB 3410ms 0ms haxe/hl/jit 1.13.0