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 Javascript 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
javascript 1-m.js 1265ms 52ms 166.7MB 1970ms 113ms bun 1.4.2
javascript 1.js 1464ms 5.7ms 446.7MB 1510ms 173ms node 24.21.0
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
javascript 1.js 127ms 3.1ms 40.8MB 153ms 17ms bun 1.4.2
javascript 1.js 192ms 4.0ms 81.8MB 210ms 23ms node 24.21.0
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
javascript 1.js 6.7ms 1.0ms 12.5MB 0ms 0ms bun 1.4.2
php 1.php 20ms 1.7ms 20.6MB 3ms 8ms php 8.3.6
javascript 1.js 53ms 4.8ms 50.0MB 36ms 6ms node 24.21.0

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
javascript 1-m.js 760ms 4.7ms 132.5MB 1093ms 90ms bun 1.4.2
javascript 1.js 931ms 17ms 230.9MB 973ms 120ms node 24.21.0
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
javascript 1.js 180ms 2.7ms 57.9MB 243ms 20ms bun 1.4.2
javascript 1.js 262ms 3.9ms 107.0MB 280ms 33ms node 24.21.0
php 1.php 1203ms 2.2ms 34.9MB 1183ms 3ms php 8.3.6