You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/10 10:40:16 UTC
[GitHub] [apisix] idbeta commented on issue #2644: request help: APISIX Benchmark fails
idbeta commented on issue #2644:
URL: https://github.com/apache/apisix/issues/2644#issuecomment-724619030
Could you try to deploy APISIX, upstream, wrk on different servers? The results should be very different, I tested it, when everything is on the same machine, the test result is relatively low, I guess it is related to resource competition.
I used your code as upstream, set the route like this:
```
curl http://127.0.0.1:9080/apisix/admin/routes/100 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"uri": "/test",
"upstream": {
"type": "roundrobin",
"nodes": {
"172.16.0.16:3000": 1
}
}
}'
```
And my result was:
Upstream:
```
$ wrk -t8 -c32 -d60s http://localhost:3000/test
Running 1m test @ http://localhost:3000/test
8 threads and 32 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.10ms 0.95ms 29.35ms 89.94%
Req/Sec 3.87k 428.55 7.03k 81.42%
1850057 requests in 1.00m, 132.33MB read
Requests/sec: 30798.58
Transfer/sec: 2.20MB
```
When everything is on the same machine, the APISIX's QPS:
```
$ wrk -t8 -c32 -d60s http://localhost:9080/test
Running 1m test @ http://localhost:9080/test
8 threads and 32 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.90ms 1.80ms 39.15ms 92.60%
Req/Sec 2.37k 400.28 3.66k 70.29%
1134575 requests in 1.00m, 128.71MB read
Requests/sec: 18898.94
Transfer/sec: 2.14MB
```
When APISIX, upstream, wrk on separate machines, the APISIX's QPS:
```
$ wrk -t8 -c32 -d60s http://172.16.0.17:9080/test
Running 1m test @ http://172.16.0.17:9080/test
8 threads and 32 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.24ms 1.21ms 41.76ms 95.03%
Req/Sec 3.60k 496.53 5.68k 76.65%
1720481 requests in 1.00m, 195.17MB read
Requests/sec: 29661.13
Transfer/sec: 3.25MB
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org