@@ -16,7 +16,7 @@ This package provides a high performance HTTP server to speed up your Laravel/Lu
16
16
## Features
17
17
18
18
* Run ** Laravel/Lumen** application on top of ** Swoole** .
19
- * Outstanding performance boosting up to ** 30x ** .
19
+ * Outstanding performance boosting up to ** 5x ** faster .
20
20
* Sandbox mode to isolate app container.
21
21
* Support running websocket server in ** Laravel** .
22
22
* Support ` Socket.io ` protocol.
@@ -28,7 +28,8 @@ Please see [Wiki](https://github.com/swooletw/laravel-swoole/wiki)
28
28
29
29
## Benchmark
30
30
31
- Test with clean Lumen 5.5, using MacBook Air 13, 2015.
31
+ Test with clean Lumen 5.6, using DigitalOcean 3 CPUs / 1 GB Memory / PHP 7.2 / Ubuntu 16.04.4 x64
32
+
32
33
Benchmarking Tool: [ wrk] ( https://github.com/wg/wrk )
33
34
34
35
```
@@ -38,27 +39,31 @@ wrk -t4 -c100 http://your.app
38
39
### Nginx with FPM
39
40
40
41
```
41
- Running 10s test @ http://lumen.app:9999
42
- 4 threads and 100 connections
42
+ wrk -t4 -c10 http://lumen-swoole.local
43
+
44
+ Running 10s test @ http://lumen-swoole.local
45
+ 4 threads and 10 connections
43
46
Thread Stats Avg Stdev Max +/- Stdev
44
- Latency 1.14s 191.03ms 1.40s 90.31 %
45
- Req/Sec 22.65 10.65 50 .00 65.31 %
46
- 815 requests in 10.07s, 223.65KB read
47
- Requests/sec: 80.93
48
- Transfer/sec: 22.21KB
47
+ Latency 6.41ms 1.56ms 19.71ms 71.32 %
48
+ Req/Sec 312.99 28.71 373 .00 72.00 %
49
+ 12469 requests in 10.01s, 3.14MB read
50
+ Requests/sec: 1245.79
51
+ Transfer/sec: 321.12KB
49
52
```
50
53
51
54
### Swoole HTTP Server
52
55
53
56
```
54
- Running 10s test @ http://127.0.0.1:1215
55
- 4 threads and 100 connections
57
+ wrk -t4 -c10 http://lumen-swoole.local:1215
58
+
59
+ Running 10s test @ http://lumen-swoole.local:1215
60
+ 4 threads and 10 connections
56
61
Thread Stats Avg Stdev Max +/- Stdev
57
- Latency 11.58ms 4.74ms 68.73ms 81.63 %
58
- Req/Sec 2.19k 357.43 2.90k 69.50 %
59
- 87879 requests in 10.08s, 15.67MB read
60
- Requests/sec: 8717.00
61
- Transfer/sec: 1.55MB
62
+ Latency 2.39ms 4.88ms 105.21ms 94.55 %
63
+ Req/Sec 1.26k 197.13 1.85k 68.75 %
64
+ 50248 requests in 10.02s, 10.88MB read
65
+ Requests/sec: 5016.94
66
+ Transfer/sec: 1.09MB
62
67
```
63
68
64
69
## Q&A
0 commit comments