Results for 38 of 40 languages from this run on actest1.

Unavailable in this run: Hack, Lisp. Follow the run link for failure details.

Php VS Java benchmarks

Current benchmark data was generated on Sun Sep 27 2026, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][4 cores] Intel(R) Core(TM) i7-3687U CPU @ 2.10GHz (Model 58)

* -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
java 2.java 782ms 124ms 569.1MB 957ms 133ms openjdk 21.0.12
java 2.java 1276ms 44ms 1086.4MB 900ms 603ms openjdk/zgc 21.0.12
php 1.php 10062ms 39ms 111.8MB 10037ms 7ms php 8.3.6

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 2.java 192ms 18ms 167.6MB 260ms 27ms openjdk 21.0.12
java 2.java 378ms 84ms 239.8MB 267ms 200ms openjdk/zgc 21.0.12
php 1.php 869ms 39ms 31.1MB 847ms 10ms php 8.3.6

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
php 1.php 20ms 1.7ms 20.6MB 3ms 8ms php 8.3.6
java 1.java 93ms 5.3ms 44.3MB 116ms 12ms openjdk 21.0.12
java 1.java 165ms 3.2ms 42.8MB 128ms 88ms openjdk/zgc 21.0.12

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 1.java 639ms 19ms 672.5MB 787ms 113ms openjdk 21.0.12
java 1.java 1091ms 23ms 952.0MB 723ms 573ms openjdk/zgc 21.0.12
php 1.php 5831ms 51ms 82.1MB 5797ms 13ms php 8.3.6

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 1-m.java 244ms 6.2ms 203.4MB 380ms 43ms openjdk 21.0.12
java 1.java 494ms 111ms 341.8MB 367ms 237ms openjdk/zgc 21.0.12
php 1.php 1203ms 2.2ms 34.9MB 1183ms 3ms php 8.3.6