Home  >  Article  >  Backend Development  >  apache - php just outputs a hello world, why is the rps so low?

apache - php just outputs a hello world, why is the rps so low?

WBOY
WBOYOriginal
2016-09-06 08:57:111119browse

apache - php just outputs a hello world, why is the rps so low?

This is the test:
ab -n 1000 -c 100 -w http://m.salamander.com/index...

This is the framework I wrote: Salamander

Reply content:

apache - php just outputs a hello world, why is the rps so low?

This is the test:
ab -n 1000 -c 100 -w http://m.salamander.com/index...

This is the framework I wrote: Salamander

Why should we remove the dependence on composer and use spl_auto_load?
Let’s change it back!

Processing less than 18 requests per second, the performance of your framework is too bad.
PHP’s built-in single-process HTTP server can easily handle more than 11K requests per second (Ubuntu i5-3230M).
apache - php just outputs a hello world, why is the rps so low?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn