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/08/10 14:48:47 UTC

[GitHub] [apisix] Yiyiyimu commented on pull request #2036: feature: support etcd v3, by mocking v2 API

Yiyiyimu commented on pull request #2036:
URL: https://github.com/apache/apisix/pull/2036#issuecomment-671401256


   I make a default benchmark test on my local PC, it seems that deploying etcd v3 could improve performance quite a lot
   
   |                                    | v3                                                           | v2                                                           |
   | ---------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
   | 1 worker + 1 upstream + no plugin  | + sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.17ms  153.33us   3.44ms   77.84%<br/>    Req/Sec     6.83k   271.91     7.53k    72.55%<br/>  69316 requests in 5.10s, 275.85MB read<br/>Requests/sec:  13591.19<br/>Transfer/sec:     54.09MB<br/>+ sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.18ms  176.65us   5.14ms   83.33%<br/>    Req/Sec     6.80k   268.62     7.48k    73.53%<br/>  68972 requests in 5.10s, 274.49MB read<br/>Requests/sec:  13524.55<br/>Transfer/sec:     53.82MB | + sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads
  and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.33ms  211.08us   5.95ms   82.60%<br/>    Req/Sec     6.05k   289.03     6.63k    71.57%<br/>  61423 requests in 5.10s, 245.32MB read<br/>Requests/sec:  12043.51<br/>Transfer/sec:     48.10MB<br/>+ sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.31ms  195.78us   3.63ms   81.55%<br/>    Req/Sec     6.11k   600.94    11.41k    97.03%<br/>  61396 requests in 5.10s, 245.22MB read<br/>Requests/sec:  12039.57<br/>Transfer/sec:     48.09MB |
   | 1 worker + 1 upstream + 2 plugins  | + sleep 3<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency   558.87us    1.24ms  35.81ms   96.89%<br/>    Req/Sec    19.64k     1.91k   28.10k    76.24%<br/>  197213 requests in 5.10s, 801.24MB read<br/>Requests/sec:  38669.03<br/>Transfer/sec:    157.11MB<br/>+ sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency   521.08us    1.05ms  25.48ms   97.08%<br/>    Req/Sec    19.72k     1.84k   23.12k    73.00%<br/>  196309 requests in 5.00s, 797.58MB read<br/>Requests/sec:  39251.72<br/>Transfer/sec:    159.47MB | + sleep 3<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threa
 ds and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.47ms  252.12us   9.54ms   84.44%<br/>    Req/Sec     5.48k   588.37    10.98k    97.03%<br/>  55055 requests in 5.10s, 223.67MB read<br/>Requests/sec:  10796.49<br/>Transfer/sec:     43.86MB<br/>+ sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.51ms  292.56us   9.64ms   88.99%<br/>    Req/Sec     5.34k   540.96    10.24k    97.03%<br/>  53658 requests in 5.10s, 217.99MB read<br/>Requests/sec:  10521.64<br/>Transfer/sec:     42.75MB |
   | fake empty apisix server: 1 worker | + sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.20ms  249.70us   8.56ms   90.65%<br/>    Req/Sec     6.71k   299.13     7.87k    75.49%<br/>  68112 requests in 5.10s, 271.06MB read<br/>Requests/sec:  13356.74<br/>Transfer/sec:     53.15MB<br/>+ sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.27ms    1.00ms  18.01ms   98.38%<br/>    Req/Sec     6.74k   786.85    13.37k    96.04%<br/>  67753 requests in 5.10s, 269.64MB read<br/>Requests/sec:  13287.07<br/>Transfer/sec:     52.88MB | + sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads
  and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.17ms  153.33us   3.44ms   77.84%<br/>    Req/Sec     6.83k   271.91     7.53k    72.55%<br/>  69316 requests in 5.10s, 275.85MB read<br/>Requests/sec:  13591.19<br/>Transfer/sec:     54.09MB<br/>+ sleep 1<br/>+ wrk -d 5 -c 16 http://127.0.0.1:9080/hello<br/>Running 5s test @ http://127.0.0.1:9080/hello<br/>  2 threads and 16 connections<br/>  Thread Stats   Avg      Stdev     Max   +/- Stdev<br/>    Latency     1.18ms  176.65us   5.14ms   83.33%<br/>    Req/Sec     6.80k   268.62     7.48k    73.53%<br/>  68972 requests in 5.10s, 274.49MB read<br/>Requests/sec:  13524.55<br/>Transfer/sec:     53.82MB |
   
   


----------------------------------------------------------------
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