Skip to content

Instantly share code, notes, and snippets.

@ircmaxell
Created October 1, 2014 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ircmaxell/52402a07cae2ef3c8064 to your computer and use it in GitHub Desktop.
Save ircmaxell/52402a07cae2ef3c8064 to your computer and use it in GitHub Desktop.
Benchmarks

The following table is the result of running this benchmark.

Columns headed by -O followed by a number are PECL extensions generated by Recki using the experimental PECL compiler backend (on github). Each is the result of compiling the extension with the optimization level indicated.

                 | PHP 5.6.1-dev | ReckiCT -O0 | ReckiCT -O1 | ReckiCT -O2 | ReckiCT -O3 | ReckiCT Jit| HHVM - 3.1.0 

---------------------|---------------|-------------|-------------|-------------|-------------|------------|-------------- simple() | 12748.56186 | 366.82990 | 79.26289 | 25.29381 | 1.00000 | 137.26289 | 272.77835
simplecall() | 6106.75145 | 87.17919 | 8.49017 | 2.16647 | 1.00000 | 18.25087 | 36.35145
simpleucall() | 82133.81720 | 1708.69892 | 105.83871 | 1.17204 | 1.00000 | 458.89247 | 1276.95699
simpleudcall() | 83722.94318 | 1299.18182 | 54.67045 | 1.00000 | 1.43182 | 424.37500 | 1547.40909
mandel() | 75734.13830 | 3156.29787 | 1263.20213 | 1.15957 | 1.00000 | 1585.67021 | 3908.05319
mandel_typed() | 123573.50704 | 5222.22535 | 1469.73239 | 1.23944 | 1.00000 | 2091.70423 | 5637.33803
mandel2() | 95608.51829 | 2510.23780 | 905.15244 | 7.39024 | 1.00000 | 2441.24390 | 3843.03049
mandel2_typed() | 206266.28358 | 4855.58209 | 2027.79104 | 1.13433 | 1.00000 | 2660.62687 | 6645.59701
ackermann(7) | 183.26582 | 2.72692 | 2.15631 | 1.00000 | 1.08879 | 1.64243 | 2.10412
ary(50000) | 21.26416 | FAIL | FAIL | FAIL | FAIL | FAIL | 1.00000
ary2(50000) | 32.50207 | FAIL | FAIL | FAIL | FAIL | FAIL | 1.00000
ary3(2000) | 9.87118 | FAIL | FAIL | FAIL | FAIL | FAIL | 1.00000
fibo(30) | 647.74713 | 5.13264 | 2.12225 | 1.64961 | 1.00000 | 2.71244 | 5.20753
hash1(50000) | 6.86664 | FAIL | FAIL | FAIL | FAIL | FAIL | 1.00000
hash2(500) | 10.73623 | FAIL | FAIL | FAIL | FAIL | FAIL | 1.00000
heapsort(20000) | 11.47100 | FAIL | FAIL | FAIL | FAIL | FAIL | 1.00000
matrix(20) | 21.33294 | FAIL | FAIL | FAIL | FAIL | FAIL | 1.00000
nestedloop(12) | 55070.25333 | 2379.72000 | 571.72000 | 1.90667 | 1.00000 | 1375.40000 | 2065.93333
sieve(30) | 38.09561 | FAIL | FAIL | FAIL | FAIL | FAIL | 1.00000
strcat(200000) | 10.96852 | FAIL | FAIL | FAIL | FAIL | FAIL | 1.00000
jumpapaluza(50, 50) | 62.39698 | 3.43306 | 1.12959 | 1.00000 | 1.19759 | 2.22832 | 1.94425
bitapaluza1(21) | 277.71453 | 11.80259 | 1.00000 | 1.52629 | 1.83138 | 2.89372 | 53.97581
bitapaluza2(18) | 93.79845 | 3.76410 | 1.00000 | 1.39760 | 1.12455 | 2.50744 | 9.67463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment