Would it be possible to get the actual test files? I would love to do my own benchmarks against my current stack
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.
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.