Php VS Haxe benchmarks

Current benchmark data was generated on Wed Feb 08 2023, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8171M 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

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 1.hx 2201ms 42ms 146.2MB 2680ms 83ms haxe/cpp 4.2.5
haxe 2.hx timeout 0.0ms 400.3MB 6437ms 250ms haxe/cpp 4.2.5
haxe 1.hx timeout 0.0ms 48.6MB 4717ms 263ms haxe/hl/c 4.2.5
haxe 2.hx timeout 0.0ms 83.0MB 4470ms 507ms haxe/hl/c 4.2.5
haxe 1.hx timeout 0.0ms 49.0MB 4710ms 267ms haxe/hl/jit 1.13.0
haxe 2.hx timeout 0.0ms 130.2MB 4537ms 447ms haxe/hl/jit 1.13.0
php 1.php timeout 0.0ms 141.3MB 4927ms 50ms php 8.2.2

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 1.hx 153ms 9.8ms 27.6MB 140ms 17ms haxe/cpp 4.2.5
haxe 2.hx 587ms 11ms 60.3MB 693ms 37ms haxe/cpp 4.2.5
php 1.php 983ms 7.1ms 62.4MB 943ms 20ms php 8.2.2
haxe 1.hx 1017ms 21ms 8.6MB 963ms 33ms haxe/hl/c 4.2.5
haxe 1.hx 1220ms 18ms 11.1MB 1147ms 53ms haxe/hl/jit 1.13.0
haxe 2.hx 1565ms 20ms 13.4MB 1423ms 123ms haxe/hl/c 4.2.5
haxe 2.hx 1987ms 8.3ms 25.0MB 1800ms 173ms haxe/hl/jit 1.13.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 1.hx 3.7ms 0.5ms 2.3MB 0ms 0ms haxe/hl/c 4.2.5
haxe 1.hx 4.3ms 1.1ms 3.2MB 0ms 0ms haxe/cpp 4.2.5
haxe 1.hx 5.0ms 0.5ms 3.2MB 0ms 0ms haxe/hl/jit 1.13.0
php 1.php 58ms 2.1ms 51.3MB 28ms 16ms php 8.2.2

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 1.hx 1517ms 33ms 97.1MB 1783ms 63ms haxe/cpp 4.2.5
haxe 1.hx timeout 0.0ms 32.7MB 4657ms 327ms haxe/hl/c 4.2.5
haxe 1.hx timeout 0.0ms 53.7MB 4637ms 347ms haxe/hl/jit 1.13.0
php 1.php timeout 0.0ms 113.2MB 4943ms 37ms php 8.2.2

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 1.hx 303ms 9.8ms 28.7MB 303ms 13ms haxe/cpp 4.2.5
php 1.php 1378ms 5.3ms 66.4MB 1340ms 20ms php 8.2.2
haxe 1.hx 1964ms 16ms 10.9MB 1850ms 93ms haxe/hl/c 4.2.5
haxe 1.hx 2306ms 12ms 20.2MB 2133ms 157ms haxe/hl/jit 1.13.0