add 4 thread config for speedy server #16
2
.gitignore
vendored
2
.gitignore
vendored
@ -70,7 +70,7 @@ m4/lt~obsolete.m4
|
|||||||
/DrogonCMS
|
/DrogonCMS
|
||||||
vendors/local-api-server/local-drogon-api-server
|
vendors/local-api-server/local-drogon-api-server
|
||||||
vendors/local-api-server/test/local-server_test
|
vendors/local-api-server/test/local-server_test
|
||||||
vendors/simple-reverse-proxy/simple-reverse-proxy
|
vendors/simple-reverse-proxy/simple_reverse_proxy
|
||||||
|
|
||||||
# Generated Makefile
|
# Generated Makefile
|
||||||
# (meta build system like autotools,
|
# (meta build system like autotools,
|
||||||
|
59
README.md
59
README.md
@ -23,33 +23,7 @@ This is a Drogon Content Management System(CMS).
|
|||||||
|
|
||||||
## Benchmarks
|
## Benchmarks
|
||||||
|
|
||||||
### An-toa test results of Drogon Server Only with 2 IO threads
|
### A NodeJs Server Test with 2 IO threads
|
||||||
```
|
|
||||||
wrk -c200 -d5 -t2 http://localhost:8848/hello
|
|
||||||
Running 5s test @ http://localhost:8848/hello
|
|
||||||
2 threads and 200 connections
|
|
||||||
Thread Stats Avg Stdev Max +/- Stdev
|
|
||||||
Latency 1.91ms 689.56us 7.56ms 72.86%
|
|
||||||
Req/Sec 52.72k 3.50k 63.00k 71.00%
|
|
||||||
524174 requests in 5.00s, 91.48MB read
|
|
||||||
Requests/sec: 104741.94
|
|
||||||
Transfer/sec: 18.28MB
|
|
||||||
```
|
|
||||||
|
|
||||||
### An-toa test results of Drogon Server + Drogon Proxy with 2 IO threads
|
|
||||||
```
|
|
||||||
wrk -c200 -d5 -t2 http://localhost:8088/hello
|
|
||||||
Running 5s test @ http://localhost:8088/hello
|
|
||||||
2 threads and 200 connections
|
|
||||||
Thread Stats Avg Stdev Max +/- Stdev
|
|
||||||
Latency 3.95ms 0.94ms 8.80ms 67.84%
|
|
||||||
Req/Sec 25.39k 3.15k 29.20k 84.00%
|
|
||||||
252520 requests in 5.00s, 44.07MB read
|
|
||||||
Requests/sec: 50465.86
|
|
||||||
Transfer/sec: 8.81MB
|
|
||||||
```
|
|
||||||
|
|
||||||
### oDinZu NodeJs Server Test with 2 IO threads
|
|
||||||
```
|
```
|
||||||
wrk -c200 -d5 -t2 http://localhost:3000
|
wrk -c200 -d5 -t2 http://localhost:3000
|
||||||
Running 5s test @ http://localhost:3000
|
Running 5s test @ http://localhost:3000
|
||||||
@ -62,31 +36,18 @@ Requests/sec: 15033.66
|
|||||||
Transfer/sec: 2.31MB
|
Transfer/sec: 2.31MB
|
||||||
```
|
```
|
||||||
|
|
||||||
### oDinZu Drogon Server Web Sockets with 2 IO threads
|
### Drogon Server with Web Sockets, Drogon Proxy with 2 IO threads
|
||||||
```
|
```
|
||||||
Running 5s test @ ws://localhost:8848/chat
|
wrk -c200 -d5 -t2 ws://localhost:8088/
|
||||||
|
Running 5s test @ ws://localhost:8088/
|
||||||
2 threads and 200 connections
|
2 threads and 200 connections
|
||||||
Thread Stats Avg Stdev Max +/- Stdev
|
Thread Stats Avg Stdev Max +/- Stdev
|
||||||
Latency 4.70ms 9.94ms 258.14ms 99.17%
|
Latency 2.67ms 6.11ms 47.94ms 94.97%
|
||||||
Req/Sec 25.20k 2.14k 30.09k 82.00%
|
Req/Sec 57.95k 4.90k 69.61k 74.00%
|
||||||
250651 requests in 5.01s, 171.39MB read
|
576699 requests in 5.01s, 394.34MB read
|
||||||
Non-2xx or 3xx responses: 250651
|
Non-2xx or 3xx responses: 576699
|
||||||
Requests/sec: 50056.01
|
Requests/sec: 115151.94
|
||||||
Transfer/sec: 34.23MB
|
Transfer/sec: 78.74MB
|
||||||
```
|
|
||||||
|
|
||||||
### oDinZu Drogon HTTP Server GET/JSON REQ with 2 IO threads
|
|
||||||
```
|
|
||||||
wrk -c200 -d5 -t4 http://localhost:8848/3a322920d42ef0763152a6efff2ed51985530aedd45370f92fd0f0b8dcc30220
|
|
||||||
Running 5s test @ http://localhost:8848/3a322920d42ef0763152a6efff2ed51985530aedd45370f92fd0f0b8dcc30220
|
|
||||||
4 threads and 200 connections
|
|
||||||
Thread Stats Avg Stdev Max +/- Stdev
|
|
||||||
Latency 7.54ms 23.66ms 413.86ms 98.15%
|
|
||||||
Req/Sec 10.37k 0.90k 13.36k 87.00%
|
|
||||||
206443 requests in 5.00s, 141.16MB read
|
|
||||||
Non-2xx or 3xx responses: 206443
|
|
||||||
Requests/sec: 41253.06
|
|
||||||
Transfer/sec: 28.21MB
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development & Contributing
|
## Development & Contributing
|
||||||
|
2
vendors/simple-reverse-proxy/config.json
vendored
2
vendors/simple-reverse-proxy/config.json
vendored
@ -18,7 +18,7 @@
|
|||||||
"app": {
|
"app": {
|
||||||
//threads_num: The number of IO threads, 1 by default, if the value is set to 0, the number of threads
|
//threads_num: The number of IO threads, 1 by default, if the value is set to 0, the number of threads
|
||||||
//is the number of CPU cores
|
//is the number of CPU cores
|
||||||
"threads_num": 16,
|
"threads_num": 4,
|
||||||
//enable_session: False by default
|
//enable_session: False by default
|
||||||
"enable_session": false,
|
"enable_session": false,
|
||||||
"session_timeout": 0,
|
"session_timeout": 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user