Specs:
I'm trying to benchmark when using php artisan and not, and when not using php artisan, i can get 3000+req/second using wrk.
result in another server to test using wrk
wrk -t4 -c100 -d10s http://10.200.210.64/
cpu tree in server octane using htop: The root process of swoole_http_server is below php artisan octane:start --server=swoole
CPU usage in server octane and all CPU not maximize, each cpu approximately 30%:
result in another server to test using wrk
wrk -t4 -c100 -d10s http://10.200.210.64/
the CPU tree in server octane using htop: This root process swoole_http_server not using php artisan
CPU usage in server octane and all CPU is push to max usage, each cpu approximately 66%+:
How to reproduce running without php artisan,
actually im using php artisan to run this, but this method is tricky
first i run php artisan in background using
php artisan octane:start --server=swoole &
then i close the ssh terminal
and finally i can running octane without using php artisan and maximize cpu usage
is this bug or some feature? i hope i can maximize the cpu usage when using php artisan..
nb: i try adding some flag like --workers=16
and --task-workers=16
the result is same not improve cpu usage.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community