Some open-source projects made by Frank DENIS.

PHPBench

PHP benchmark suite

PHPBench is a benchmark suite for PHP. It performs a large number of simple tests in order to bench various aspects of the PHP interpreter. PHPBench can be used to compare hardware, operating systems, PHP versions, PHP accelerators and caches, compiler options, etc. Custom tests can be easily added to the suite.

Usage

The ‘tests’ directory contains all tests that PHPBench will try to perform.

This directory can be copied in:

Alternatively, if you run this application in its own directory, you don’t need to copy the ‘test’ directory.

In order to start a basic benchmark, just type:

./phpbench.php

or if something goes wrong:

php phpbench.php

or if you want to save the output to a file:

./phpbench.php | tee output.txt