I have been testing a custom PHP script running on VirtualBox (2GB/2Core) - Ubuntu 22.04. First, I tried Apache and upon benchmarking the script, it could complete 10K requests in 36s -
Then, I replaced Apache with OLS and the time taken for requests almost doubled (68s):-
I thought OLS was supposed to be faster. But, what baffles me most is that Apache uses 100% resources (mainly CPU cores) when running the benchmark, but, OLS doesn't even use 50% of resources. What am I doing wrong? I did play around with OLS settings changing the maximum connections, etc., but no change.