4 ms·
Would it be possible to get the actual test files? I would love to do my own benchmarks against my current stack
by allanmacgregor 13y ago
Would it be possible to get the actual test files? I would love to do my own benchmarks against my current stack
- jkopczewski 13y agoI 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.
- jkopczewski 13y agoAs 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.