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 Rust 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
rust 5.rs 2161ms 12ms 33.8MB 2140ms 3ms rustc 1.98.1
rust 3.rs 2212ms 49ms 49.8MB 2183ms 10ms rustc 1.98.1
rust 4.rs 2253ms 19ms 33.8MB 2230ms 10ms rustc 1.98.1
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
rust 5.rs 185ms 4.9ms 5.7MB 173ms 0ms rustc 1.98.1
rust 4.rs 203ms 1.5ms 5.7MB 190ms 0ms rustc 1.98.1
rust 3.rs 205ms 20ms 7.8MB 190ms 0ms rustc 1.98.1
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
rust 1.rs 1.6ms 0.3ms 1.9MB 0ms 0ms rustc 1.98.1
php 1.php 20ms 1.7ms 20.6MB 3ms 8ms php 8.3.6

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 1084ms 8.3ms 33.8MB 1060ms 10ms rustc 1.98.1
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
rust 1.rs 212ms 3.5ms 9.8MB 197ms 0ms rustc 1.98.1
php 1.php 1203ms 2.2ms 34.9MB 1183ms 3ms php 8.3.6