Posts Tagged ‘alioth shootout’

HipHop for PHP: Benchmark – Revenge of PHP

Monday, April 4th, 2011

In previous article I measured the performance of HipHop for PHP by performing some tests downloaded from the shootout.alioth.debian.org website. Unfortunately the test list was incomplete.

Only six tests were selected to avoid potential incompatibility issues with the HipHop compiler (those incompatibilities can be found in the compilers’ documentation). Three other PHP scripts had problems reading from the STDIN (tests: the reverse-complement, regex-base, k-nucleotide), while the fourth one failed because of lack of support for the gmp library (pidigits test).

As requested by readers however, I present you the results of two consecutive tests: regex-dna and k-nucleotide.
(more…)

HipHop for PHP: Benchmark

Saturday, April 2nd, 2011

Benchmark icon

There is a well known benchmark on the shootout.alioth.debian.org website comparing the performance of many different programming languages. While I am far from discussing the superiority of one language over another, I realized that it would be interesting to perform a little speed test between a … PHP and PHP (compiled with the help of HipHop for PHP).

I hope that test results presented below will be helpful in answering, how much faster is PHP after compilation, and whether the HipHop for PHP is actually as efficient as claimed by Facebook developers. (more…)