All Haxe benchmarks

Current benchmark data was generated on Thu May 04 2023, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz (Model 85)

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

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 2096ms 20ms 146.2MB 2420ms 73ms haxe/cpp 4.2.5
2.hx timeout 0.0ms 398.3MB 5893ms 190ms haxe/cpp 4.2.5
1.hx timeout 0.0ms 48.7MB 4733ms 247ms haxe/hl/c 4.2.5
2.hx timeout 0.0ms 83.0MB 4490ms 493ms haxe/hl/c 4.2.5
1.hx timeout 0.0ms 49.0MB 4743ms 237ms haxe/hl/jit 1.13.0
2.hx timeout 0.0ms 130.2MB 4500ms 483ms haxe/hl/jit 1.13.0

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 128ms 7.4ms 25.8MB 120ms 10ms haxe/cpp 4.2.5
2.hx 597ms 8.3ms 58.4MB 653ms 40ms haxe/cpp 4.2.5
1.hx 844ms 3.6ms 8.6MB 797ms 33ms haxe/hl/c 4.2.5
1.hx 1008ms 5.7ms 11.1MB 950ms 40ms haxe/hl/jit 1.13.0
2.hx 1339ms 21ms 13.5MB 1210ms 113ms haxe/hl/c 4.2.5
2.hx 1818ms 21ms 25.0MB 1650ms 150ms haxe/hl/jit 1.13.0

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 3154ms 17ms 27.6MB 3213ms 220ms haxe/cpp 4.2.5
1.hx timeout 0.0ms 3.3MB 4647ms 333ms haxe/hl/c 4.2.5
1.hx timeout 0.0ms 3.7MB 4743ms 237ms haxe/hl/jit 1.13.0

Input: 250000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 332ms 2.6ms 27.7MB 317ms 23ms haxe/cpp 4.2.5
1.hx 779ms 2.0ms 3.3MB 723ms 40ms haxe/hl/c 4.2.5
1.hx 837ms 0.9ms 3.7MB 787ms 37ms haxe/hl/jit 1.13.0

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 2.6ms 0.5ms 3.2MB 0ms 0ms haxe/cpp 4.2.5
1.hx 3.3ms 0.7ms 2.9MB 0ms 0ms haxe/hl/c 4.2.5
1.hx 4.5ms 1.1ms 2.8MB 0ms 0ms haxe/hl/jit 1.13.0

lru

Input: 1000 1000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 200ms 9.2ms 20.4MB 180ms 7ms haxe/cpp 4.2.5
1.hx 209ms 2.4ms 2.9MB 197ms 0ms haxe/hl/c 4.2.5
1.hx 230ms 8.2ms 3.6MB 217ms 0ms haxe/hl/jit 1.13.0

Input: 1000 3000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 549ms 11ms 25.6MB 537ms 7ms haxe/cpp 4.2.5
1.hx 615ms 3.9ms 2.9MB 600ms 0ms haxe/hl/c 4.2.5
1.hx 669ms 6.6ms 3.7MB 653ms 3ms haxe/hl/jit 1.13.0

Input: 100 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 88ms 1.1ms 12.2MB 73ms 3ms haxe/cpp 4.2.5
1.hx 103ms 0.5ms 2.8MB 93ms 0ms haxe/hl/c 4.2.5
1.hx 113ms 0.5ms 3.6MB 103ms 0ms haxe/hl/jit 1.13.0

merkletrees

Input: 17

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 1500ms 28ms 95.2MB 1657ms 53ms haxe/cpp 4.2.5
1.hx timeout 0.0ms 31.9MB 4647ms 333ms haxe/hl/c 4.2.5
1.hx timeout 0.0ms 54.0MB 4657ms 327ms haxe/hl/jit 1.13.0

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 260ms 8.6ms 26.7MB 263ms 13ms haxe/cpp 4.2.5
1.hx 1701ms 17ms 10.9MB 1557ms 123ms haxe/hl/c 4.2.5
1.hx 2040ms 23ms 20.3MB 1910ms 110ms haxe/hl/jit 1.13.0

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.hx 1084ms 2.5ms 2.4MB 1070ms 0ms haxe/hl/c 4.2.5
1.hx 1446ms 1.1ms 2.3MB 1430ms 0ms haxe/hl/c 4.2.5
3.hx 1504ms 9.5ms 27.7MB 1800ms 57ms haxe/cpp 4.2.5
2.hx 2451ms 1.1ms 3.2MB 2440ms 0ms haxe/hl/jit 1.13.0
1.hx 2611ms 7.8ms 3.2MB 2593ms 0ms haxe/hl/jit 1.13.0
1.hx timeout 0.0ms 3.2MB 4987ms 0ms haxe/cpp 4.2.5
2.hx timeout 0.0ms 3.2MB 4983ms 0ms haxe/cpp 4.2.5
3.hx timeout 0.0ms 3.3MB 4527ms 460ms haxe/hl/c 4.2.5
3.hx timeout 0.0ms 3.6MB 4680ms 307ms haxe/hl/jit 1.13.0

Input: 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.hx 115ms 3.2ms 2.3MB 103ms 0ms haxe/hl/c 4.2.5
1.hx 147ms 0.3ms 2.3MB 140ms 0ms haxe/hl/c 4.2.5
3.hx 171ms 4.5ms 27.7MB 183ms 13ms haxe/cpp 4.2.5
2.hx 257ms 4.8ms 3.3MB 240ms 0ms haxe/hl/jit 1.13.0
1.hx 274ms 13ms 3.3MB 260ms 0ms haxe/hl/jit 1.13.0
3.hx 693ms 2.4ms 3.2MB 620ms 57ms haxe/hl/c 4.2.5
3.hx 822ms 1.3ms 3.6MB 763ms 47ms haxe/hl/jit 1.13.0
2.hx 864ms 26ms 3.2MB 850ms 0ms haxe/cpp 4.2.5
1.hx 1125ms 3.7ms 3.2MB 1110ms 0ms haxe/cpp 4.2.5

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx timeout 0.0ms 7.2MB 4987ms 0ms haxe/cpp 4.2.5
1.hx timeout 0.0ms 3.1MB 4980ms 0ms haxe/hl/c 4.2.5
1.hx timeout 0.0ms 3.8MB 4987ms 0ms haxe/hl/jit 1.13.0

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 1361ms 10ms 2.9MB 1347ms 0ms haxe/hl/c 4.2.5
1.hx 2168ms 1.1ms 6.6MB 2153ms 0ms haxe/cpp 4.2.5
1.hx timeout 0.0ms 3.6MB 4987ms 0ms haxe/hl/jit 1.13.0

Input: 2000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.hx 342ms 0.3ms 2.9MB 330ms 0ms haxe/hl/c 4.2.5
1.hx 548ms 0.2ms 5.4MB 533ms 0ms haxe/cpp 4.2.5
1.hx 2851ms 2.8ms 3.7MB 2840ms 0ms haxe/hl/jit 1.13.0