PHPBench provides 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.
In order to get accurate results, every test is evaluated more than once.
By defaut, tests are evaluated 100000 times, or multiples of that value for
some tests that are known to be CPU-expensive or other tests that are known to be very fast.
If you have slow hardware or very fast hardware, you can change the number
of iterations, with the -i switch:
./phpbench.php -i 5000
he 'score' you get when the benchmark completes is a ratio between the number of iterations and the total time that was needed to perform all tests.
Thus, the score should be independant of the number of iterations, but the higher number you use, the more accuracy you will get.
What's New in This Release:
· The regression test of test_bitwise has been fixed for 64-bits CPUs.