Php VS Julia 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.)

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
php 1.php timeout 0.0ms 141.1MB 4953ms 33ms php 8.2.1

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
php 1.php 781ms 1.5ms 62.3MB 750ms 17ms php 8.2.1

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
php 1.php 48ms 3.8ms 51.3MB 22ms 10ms php 8.2.1
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

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
php 1.php 4853ms 20ms 113.5MB 4810ms 23ms php 8.2.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
php 1.php 1068ms 0.8ms 66.4MB 1030ms 23ms php 8.2.1