kenjis / php-framework-benchmark

PHP Framework Benchmark
1.03k stars 204 forks source link

Cakphp is faster than phalcon??? #83

Open johnlanz opened 6 years ago

johnlanz commented 6 years ago

Is this normal? laravel and cakephp is faster than phalcon? phpperformance I'm currently using a $20 vps from turnkeyinternet

wmac commented 6 years ago

Not just cakephp, but even Laravel etc. It probably is not correct. 10 million requests on a $20 VPS?

johnlanz commented 6 years ago

I think its 10k request which is reasonable Although the vps is really high end for $20 you get 8 cpu E5 processor and 8GB of RAM : https://turnkeyinternet.net/cloud-hosted-virtual-servers-vps/

cebe commented 6 years ago

likely an error, you should check if the frameworks are actually executed and you are not benchmarking an HTTP server error page.

johnlanz commented 6 years ago

yeah its a server error. I really hate to say this but php frameworks are really too slow. less than 3,000 request per second. I benchmark a java web server (light 4j) on my vps and I've got 2.1 million request per second and for light 4j json API I've got 600,000 rps that's 200X faster than any php framework.

joanhey commented 6 years ago

The difference between a fast php framework and a java framework, are more similar when you have connections to the database. Almost all apps use database. This benchmark output 'Hello World' for compare the frameworks minimum overhead without cache, in a context. For output 'Hello world' is faster using php without framework or send it from the server directly.

You are comparing apples with oranges. You said 'I benchmark a java web server .... faster than any php framework'. Benchmark this java web server versus apache, nginx, ...