Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I used the php.ini file that comes bundled with the sources. I just think after I ran the benchmark the first time, I enabled opcode cache explicitly just to be sure. I used the Wordpress setup that comes in the sources. Followed the on-screen instructions. That's it.

I tried tweaking the nginx setup, especially the tcp_nodelay & keepalive_timeout settings. It provided maybe 15% speed up, nothing dramatic. I probably didn't collect enough datapoints to be able to reliably tell. In the end, I sticked to the nginx defaults.



As to the Fibonacci numbers: I don't have it but it would be something along the lines of:

function fib($n) { if ($n <= 1) { return $n; } else { return fib($n - 1) + fib($n - 2); } }

$n = 30; $r = fib($n); echo "Fibonacci number $n is $r\n";

As indicated in the benchmark, it's a dumb exponential implementation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: