swooletw / laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
MIT License
4.04k stars 390 forks source link

This is too slow for swoole #305

Closed johnlanz closed 5 years ago

johnlanz commented 5 years ago

Why is this framework too slow? I've tried to test it with wrk (https://github.com/wg/wrk) on my 6 year old pc. ordinary/basic swoole i got: 200k request per second swoole using siler rest api (no database, just array to json): 100k rps laravel-swoole without database: 9k rps Its weird because zend expressive swoole is the same as you guys (around 10k rps) My question is why is it too slow? I wanted to use it and my requirements is around 50k api request a second, is it possible?

johnlanz commented 5 years ago

another thing swoole with middleware on it like fastroute, etc i got 190k rps, so it shouldn't be 9k rps for laravel right?

albertcht commented 5 years ago

Dude, this is Laravel.

johnlanz commented 5 years ago

If its not possible in laravel. It is possible to make it more faster in lumen right?

albertcht commented 5 years ago

The benchmark for Lumen is supposed to be better than Laravel.