# PHP Benchmark

- Thread: https://externals.io/message/5498
- Original archive: https://news-web.php.net/php.internals/5498
- Started by Joerg Behrens on 2003-11-16T20:19:23+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #5498 — Joerg Behrens — 2003-11-16T20:19:23+00:00

URL: https://externals.io/message/5498#5498

----- Original Message ----- 
From: "Sebastian Bergmann" <sebastian@php.net>
To: <internals@lists.php.net>
Sent: Saturday, November 15, 2003 8:13 AM
Subject: [PHP-DEV] PHP Benchmark


>   A while ago I posted [1] a script that performed some micro-benchmarks
>   on PHP.
> 
>   I have now refined this benchmark by splitting the monolithic script
>   into one script per micro-benchmark thus performing each benchmark with
>   a fresh PHP interpreter.
> 
>   The benchmark "suite" is available at
> 
>     http://www.sebastian-bergmann.de/PHP_Benchmark/
> 
>   Any comments, feedback, corrections and additions are welcome,
> Sebastian

Just for the records..

./run.sh
PHP 4.3.4 (64bit)
  Object Creation: 87530 objects created per second
  Member Access: 136673 member accesses per second
  Method Calls: 95166 method calls per second
  Array Creation: 134483 arrays created per second
  Array Index Access: 94235 array elements accessed by index per second
  Array Key Access: 258844 array elements accessed by key per second
  Basic FP: 468412 basic FP operations per second
  Complex FP: 255004 complex FP operations per second
  Nested Loops (FP): 138418 nested loops per second
  Nested Loops (Int): 137983 nested loops per second

CPU: Mips r12000
Mhz: 270
Compiler: mipspro cc

Note: 32bit binary is 1-5% faster.

regards
Joerg
