Package Data | |
---|---|
Maintainer Username: | yuan1994 |
Maintainer Contact: | albert@unisharp.com (Albert Chen) |
Package Create Date: | 2019-05-05 |
Package Last Update: | 2019-05-05 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:24:37 |
Package Statistics | |
---|---|
Total Downloads: | 3,665 |
Monthly Downloads: | 42 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This package provides a high performance HTTP server to speed up your Laravel/Lumen application based on Swoole.
Fork from swooletw/laravel-swoole to support version 2.5.x , thank swooletw!
| PHP | Laravel | Lumen | Swoole | |:-------:|:-------:|:-----:|:-------:| | >=7.1 | ~5.4 | ~5.4 | >=4.0.0 |
Socket.io
protocol.Please see Wiki
Test with clean Lumen 5.6, using DigitalOcean 3 CPUs / 1 GB Memory / PHP 7.2 / Ubuntu 16.04.4 x64
Benchmarking Tool: wrk
wrk -t4 -c100 http://your.app
wrk -t4 -c10 http://lumen-swoole.local
Running 10s test @ http://lumen-swoole.local
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 6.41ms 1.56ms 19.71ms 71.32%
Req/Sec 312.99 28.71 373.00 72.00%
12469 requests in 10.01s, 3.14MB read
Requests/sec: 1245.79
Transfer/sec: 321.12KB
wrk -t4 -c10 http://lumen-swoole.local:1215
Running 10s test @ http://lumen-swoole.local:1215
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.39ms 4.88ms 105.21ms 94.55%
Req/Sec 1.26k 197.13 1.85k 68.75%
50248 requests in 10.02s, 10.88MB read
Requests/sec: 5016.94
Transfer/sec: 1.09MB
The common questions are collected in Q&A. You can go check if your question is listed in the document.
Please read Issues Guideline before you submit an issue, thanks.
Bugs and feature request are tracked on GitHub.
The Laravel-Swoole package is open-sourced software licensed under the MIT license.
Hey dude! Help me out for a couple of :beers:!