Now I would like to show you something why I think that something is wrong with Enhance or that LiteSpeed itself is not working as it should.
I created a test environment in 10 minutes to show you the results:
- ubuntu 22.04 in Vultr - HF
- PHP - installed to simply "sudo apt install php8.1-fpm"
- Caddy Web Server - https://caddyserver.com/
- simple php file with hello world
- kernel 6.2, if it makes a difference?
- go language 1.20
Here a simple Caddy configuration for PHP support in a few lines (without cache or other settings)
PHP file
A simple http test from a worldwide location - I have a test server in Poland
CPU consumption during the test - not visible
And now for the best, a benchmark using loader.io
Do you see this result?
Success Response - 131158 requests / per minute 😳
Average response 114ms
This result is only for a server with 1 cpu and 1gb ram
Now can someone explain to me why this is possible here? Is it simply that Caddy handles PHP so well?
It seems so... in future I would like to use Caddy instead of LiteSpeed because it is efficient, free and opensource
What do you think? Why is this result possible in Caddy and not in LiteSpeed without cache? Unless Caddy has some cache mechanism that I do not know about? But I should also mention that I changed the code of the PHP file for the test and after refreshing the browser the new content was already served, without any delay...
In litespeed with no cache enabled the response is up to 5s and uses all the CPU power, this is not normal....
What are your thoughts?