Which Apache24-worker/PHP72 setup is the better performer on FreeBSD? Searching the internet, I see different results. People seem tending to assume that FastCGI is the better performer, perhaps because it got „Fast“ in its name.
However, the benchmarks which I saw were run on Linux more than 2 years ago, and:
However, the benchmarks which I saw were run on Linux more than 2 years ago, and:
- we know from this Forums thread that the FreeBSD network stack performed differently (at least in 2014),
- in many cases the exact details of the setup is not clear
- pre-forked or threaded Apache?
- mod_proxy_fcgi over TCP or UDS?
- enablereuse=on or kept off?
- I saw PHP7 already working much faster than PHP5 (Apache24-worker + mod_php). The benchmarks which I saw are all run with PHP5, and perhaps there wouldn't be a huge difference anymore when comparing mod_php7 against PHP7-FPM?
- it is well understood why FastCGI performs better than the original CGI, but I cannot see how all this would make it faster than the dynamically linked-in mod_php which keeps everything in the Apache worker. Only think about the protocol overhead imposed by mod_proxy and mod_proxy_fcgi and also given that a significant number of network connections (either of TCP or UDS) need to be established between the FastCGI daemon and the Apache fcgi-proxy_module – is this negligible, really?
Last edited: