Julia VS Haxe benchmarks

Current benchmark data was generated on Thu Jul 13 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 1.9ms 0.3ms 3.0MB 0ms 0ms haxe/hl/c 4.2.5
haxe 1.hx 2.9ms 0.9ms 3.2MB 0ms 0ms haxe/cpp 4.2.5
haxe 1.hx 4.3ms 0.7ms 3.2MB 0ms 0ms haxe/hl/jit 1.13.0
julia 1.jl 200ms 0.6ms 216.9MB 112ms 76ms julia/aot 1.9.2

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 7.jl 600ms 25ms 223.1MB 523ms 63ms julia/aot 1.9.2
haxe 2.hx 1011ms 67ms 2.4MB 997ms 0ms haxe/hl/c 4.2.5
haxe 1.hx 1241ms 0.7ms 2.3MB 1227ms 0ms haxe/hl/c 4.2.5
haxe 3.hx 1389ms 23ms 27.6MB 1563ms 23ms haxe/cpp 4.2.5
haxe 2.hx 2328ms 47ms 3.2MB 2317ms 0ms haxe/hl/jit 1.13.0
haxe 1.hx 2627ms 189ms 3.2MB 2613ms 0ms haxe/hl/jit 1.13.0
haxe 1.hx timeout 0.0ms 3.3MB 4983ms 0ms haxe/cpp 4.2.5
haxe 2.hx timeout 0.0ms 3.2MB 4987ms 0ms haxe/cpp 4.2.5
haxe 3.hx timeout 0.0ms 3.4MB 4513ms 470ms haxe/hl/c 4.2.5
haxe 3.hx timeout 0.0ms 3.7MB 4630ms 350ms 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 100ms 0.8ms 2.3MB 90ms 0ms haxe/hl/c 4.2.5
haxe 1.hx 128ms 0.8ms 2.3MB 120ms 0ms haxe/hl/c 4.2.5
haxe 3.hx 159ms 13ms 25.7MB 153ms 7ms haxe/cpp 4.2.5
haxe 2.hx 236ms 1.9ms 3.3MB 223ms 0ms haxe/hl/jit 1.13.0
haxe 1.hx 258ms 2.9ms 3.3MB 250ms 0ms haxe/hl/jit 1.13.0
julia 7.jl 281ms 4.9ms 223.1MB 193ms 73ms julia/aot 1.9.2
haxe 3.hx 653ms 14ms 3.2MB 577ms 60ms haxe/hl/c 4.2.5
haxe 3.hx 772ms 1.3ms 3.7MB 697ms 60ms haxe/hl/jit 1.13.0
haxe 2.hx 803ms 1.5ms 3.2MB 790ms 0ms haxe/cpp 4.2.5
haxe 1.hx 1101ms 0.7ms 3.2MB 1087ms 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 441ms 3.7ms 206.9MB 367ms 60ms julia/aot 1.9.2

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 1.jl 236ms 5.2ms 200.7MB 150ms 70ms julia/aot 1.9.2