熱門開源網關的性能對比:Goku、Kong & Tyk

neos · · 172 次點擊 · · 開始瀏覽    

不多說,性能測試結果直接給上:

在這里插入圖片描述

我們將市場上的同類熱門產品進行比較,使用相同的環境和條件,測試以下產品:Goku、Kong、Tyk。

image

注:本次壓測對象均為單個網關節點,并且均未啟用插件功能。

測試詳情

一、硬件環境

1.后端服務所在服務器
CPU: Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz * 12
Linux version 3.10.0-957.27.2.el7.x86_64
Total 48G,47G available memory

2.節點所在服務器
CPU: Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz * 12
Linux version 3.10.0-957.27.2.el7.x86_64
Total 48G,47G available memory

3.壓測程序所在服務器
CPU:Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz * 4
Linux version 3.10.0-957.27.2.el7.x86_64
Total 16G,15G available memory

二、壓測條件

壓測工具:Jmeter

使用插件:concurrency thread group 階梯式加壓工具

壓力配置:
在這里插入圖片描述

基準測試報告

一、直接訪問后端服務
Starting the test @ Tue Sep 24 19:02:40 CST 2019 (1569322960758)
Remote engines have been started
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary + 370204 in 00:00:18 = 20504.2/s Avg:    28 Min:     0 Max:  3412 Err:     0 (0.00%) Active: 1200 Started: 1200 Finished: 0
summary + 743800 in 00:00:30 = 24792.5/s Avg:    80 Min:     0 Max: 15227 Err:     0 (0.00%) Active: 3000 Started: 3000 Finished: 0
summary = 1114004 in 00:00:48 = 23180.9/s Avg:    63 Min:     0 Max: 15227 Err:     0 (0.00%)
summary + 733900 in 00:00:30 = 24465.8/s Avg:   152 Min:     0 Max: 31097 Err:     0 (0.00%) Active: 4800 Started: 4800 Finished: 0
summary = 1847904 in 00:01:18 = 23674.7/s Avg:    98 Min:     0 Max: 31097 Err:     0 (0.00%)
summary + 726800 in 00:00:30 = 24227.5/s Avg:   221 Min:     0 Max: 32674 Err:     1 (0.00%) Active: 6000 Started: 6000 Finished: 0
summary = 2574704 in 00:01:48 = 23828.2/s Avg:   133 Min:     0 Max: 32674 Err:     1 (0.00%)
summary + 562492 in 00:00:53 = 10555.1/s Avg:   279 Min:     0 Max: 63191 Err:    23 (0.00%) Active: 0 Started: 6000 Finished: 6000
summary = 3137196 in 00:02:41 = 19444.0/s Avg:   159 Min:     0 Max: 63191 Err:    24 (0.00%)
Tidying up remote @ Tue Sep 24 19:05:23 CST 2019 (1569323123294)
... end of run
二、使用Goku API Gateway
Starting the test @ Tue Sep 24 19:20:20 CST 2019 (1569324020256)
Remote engines have been started
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary +  97104 in 00:00:09 = 10927.8/s Avg:    36 Min:     1 Max:  1128 Err:     0 (0.00%) Active: 600 Started: 600 Finished: 0
summary + 334400 in 00:00:30 = 11148.2/s Avg:   139 Min:     1 Max:  1382 Err:     0 (0.00%) Active: 2400 Started: 2400 Finished: 0
summary = 431504 in 00:00:39 = 11097.5/s Avg:   116 Min:     1 Max:  1382 Err:     0 (0.00%)
summary + 330100 in 00:00:30 = 11002.2/s Avg:   302 Min:     1 Max:  1599 Err:     0 (0.00%) Active: 4200 Started: 4200 Finished: 0
summary = 761604 in 00:01:09 = 11056.0/s Avg:   197 Min:     1 Max:  1599 Err:     0 (0.00%)
summary + 322600 in 00:00:30 = 10748.3/s Avg:   473 Min:     1 Max:  2114 Err:     0 (0.00%) Active: 6000 Started: 6000 Finished: 0
summary = 1084204 in 00:01:39 = 10962.6/s Avg:   279 Min:     1 Max:  2114 Err:     0 (0.00%)
summary + 316800 in 00:00:30 = 10564.9/s Avg:   568 Min:     1 Max:  2329 Err:     0 (0.00%) Active: 6000 Started: 6000 Finished: 0
summary = 1401004 in 00:02:09 = 10870.1/s Avg:   344 Min:     1 Max:  2329 Err:     0 (0.00%)
summary +  27696 in 00:00:05 = 5278.4/s Avg:   547 Min:     1 Max:  1963 Err:     0 (0.00%) Active: 0 Started: 6000 Finished: 6000
summary = 1428700 in 00:02:14 = 10651.3/s Avg:   348 Min:     1 Max:  2329 Err:     0 (0.00%)
Tidying up remote @ Tue Sep 24 19:22:35 CST 2019 (1569324155252)
... end of run
三、使用Kong Gateway
Starting the test @ Tue Sep 24 19:26:51 CST 2019 (1569324411486)
Remote engines have been started
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary +  86604 in 00:00:08 = 10814.7/s Avg:    34 Min:     0 Max:  1039 Err:     0 (0.00%) Active: 600 Started: 600 Finished: 0
summary + 358400 in 00:00:30 = 12056.0/s Avg:   123 Min:     1 Max:  3932 Err:     0 (0.00%) Active: 2400 Started: 2400 Finished: 0
summary = 445004 in 00:00:38 = 11792.6/s Avg:   105 Min:     0 Max:  3932 Err:     0 (0.00%)
summary + 343700 in 00:00:30 = 11371.8/s Avg:   271 Min:     4 Max: 15668 Err:     0 (0.00%) Active: 4200 Started: 4200 Finished: 0
summary = 788704 in 00:01:08 = 11605.4/s Avg:   178 Min:     0 Max: 15668 Err:     0 (0.00%)
summary + 345500 in 00:00:30 = 11602.9/s Avg:   398 Min:     4 Max: 31638 Err:     0 (0.00%) Active: 6000 Started: 6000 Finished: 0
summary = 1134204 in 00:01:38 = 11604.7/s Avg:   245 Min:     0 Max: 31638 Err:     0 (0.00%)
summary + 335200 in 00:00:30 = 11115.5/s Avg:   527 Min:     1 Max: 63127 Err:     0 (0.00%) Active: 6000 Started: 6000 Finished: 0
summary = 1469404 in 00:02:08 = 11489.3/s Avg:   309 Min:     0 Max: 63127 Err:     0 (0.00%)
summary +  46501 in 00:00:25 = 1828.7/s Avg:  1123 Min:     1 Max: 63166 Err:     6 (0.01%) Active: 0 Started: 6000 Finished: 6000
summary = 1515905 in 00:02:33 = 9887.0/s Avg:   334 Min:     0 Max: 63166 Err:     6 (0.00%)
Tidying up remote @ Tue Sep 24 19:29:25 CST 2019 (1569324565588)
... end of run
四、使用Tyk Gateway
Starting the test @ Thu Sep 26 15:53:16 CST 2019 (1569484396886)
Remote engines have been started
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary +  10004 in 00:00:13 =  752.9/s Avg:   508 Min:     0 Max:  3021 Err:     0 (0.00%) Active: 900 Started: 900 Finished: 0
summary +   7900 in 00:00:29 =  272.2/s Avg:  4769 Min:  1229 Max: 11116 Err:     0 (0.00%) Active: 2700 Started: 2700 Finished: 0
summary =  17904 in 00:00:42 =  423.2/s Avg:  2388 Min:     0 Max: 11116 Err:     0 (0.00%)
summary +   6000 in 00:00:30 =  197.9/s Avg: 13697 Min:  9694 Max: 16971 Err:     0 (0.00%) Active: 4500 Started: 4500 Finished: 0
summary =  23904 in 00:01:13 =  329.1/s Avg:  5227 Min:     0 Max: 16971 Err:     0 (0.00%)
summary +   8000 in 00:00:30 =  269.3/s Avg: 17018 Min: 15093 Max: 18762 Err:     0 (0.00%) Active: 6000 Started: 6000 Finished: 0
summary =  31904 in 00:01:42 =  311.7/s Avg:  8183 Min:     0 Max: 18762 Err:     0 (0.00%)
summary +   7400 in 00:00:31 =  241.8/s Avg: 22188 Min: 17459 Max: 25974 Err:     0 (0.00%) Active: 5481 Started: 6000 Finished: 519
summary =  39304 in 00:02:13 =  295.6/s Avg: 10820 Min:     0 Max: 25974 Err:     0 (0.00%)
summary +   5686 in 00:00:22 =  257.1/s Avg: 25384 Min: 23820 Max: 27167 Err:     0 (0.00%) Active: 0 Started: 6000 Finished: 6000
summary =  44990 in 00:02:35 =  290.1/s Avg: 12661 Min:     0 Max: 27167 Err:     0 (0.00%)
Tidying up remote @ Thu Sep 26 15:55:52 CST 2019 (1569484552762)
... end of run

相關鏈接

項目地址:https://github.com/eolinker/g...
控制臺Docker:https://hub.docker.com/r/eoli...
節點Docker:https://hub.docker.com/r/eoli...
官網地址:https://www.eolinker.com

本文來自:Segmentfault

感謝作者:neos

查看原文:熱門開源網關的性能對比:Goku、Kong & Tyk

入群交流(和以上內容無關):Go中文網 QQ 交流群:729884609 或加微信入微信群:274768166 備注:入群;關注公眾號:Go語言中文網

172 次點擊  
加入收藏 微博
暫無回復
添加一條新回復 (您需要 登錄 后才能回復 沒有賬號 ?)
  • 請盡量讓自己的回復能夠對別人有幫助
  • 支持 Markdown 格式, **粗體**、~~刪除線~~、`單行代碼`
  • 支持 @ 本站用戶;支持表情(輸入 : 提示),見 Emoji cheat sheet
  • 圖片支持拖拽、截圖粘貼等方式上傳