@@ -16,7 +16,7 @@ This package provides a high performance HTTP server to speed up your Laravel/Lu
1616## Features  
1717
1818*  Run ** Laravel/Lumen**  application on top of ** Swoole** .
19- *  Outstanding performance boosting up to ** 30x ** .
19+ *  Outstanding performance boosting up to ** 5x **  faster .
2020*  Sandbox mode to isolate app container.
2121*  Support running websocket server in ** Laravel** .
2222*  Support ` Socket.io `  protocol.
@@ -28,7 +28,8 @@ Please see [Wiki](https://github.com/swooletw/laravel-swoole/wiki)
2828
2929## Benchmark  
3030
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+ 
3233Benchmarking Tool: [ wrk] ( https://github.com/wg/wrk ) 
3334
3435``` 
@@ -38,27 +39,31 @@ wrk -t4 -c100 http://your.app
3839### Nginx with FPM  
3940
4041``` 
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 
4346  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  
4952``` 
5053
5154### Swoole HTTP Server  
5255
5356``` 
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 
5661  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  
6267``` 
6368
6469## Q&A  
0 commit comments