baidu / Jprotobuf-rpc-socket

Protobuf RPC是一种基于TCP协议的二进制RPC通信协议的Java实现
Apache License 2.0
530 stars 221 forks source link

压力测试代码实现 #3

Closed xiemalin closed 9 years ago

xiemalin commented 10 years ago

目标QPS: 2万+

jhunters commented 9 years ago

压力测试代码已经完成 EchoServicePerformanceTest.java

jhunters commented 9 years ago

测试结果符合测试要求,平均单线程: QPS 1万, 2线程 2.5万

---------------------Performance Result-------------------------
send byte size: 40;receive byte size: 46
|         total count|       time took(ms)|           average(ms)|                 QPS|             threads|
|              100000|               10563|                     0|               10000|                   1|
---------------------Performance Result-------------------------
---------------------Performance Result-------------------------
send byte size: 40;receive byte size: 46
|         total count|       time took(ms)|           average(ms)|                 QPS|             threads|
|              100000|                8197|                     0|               12500|                   1|
---------------------Performance Result-------------------------
---------------------Performance Result-------------------------
send byte size: 1135;receive byte size: 1135
|         total count|       time took(ms)|           average(ms)|                 QPS|             threads|
|              100000|               10455|                     0|               10000|                   1|
---------------------Performance Result-------------------------
---------------------Performance Result-------------------------
send byte size: 40;receive byte size: 46
|         total count|       time took(ms)|           average(ms)|                 QPS|             threads|
|              100000|                4978|                     0|               25000|                   2|
---------------------Performance Result-------------------------
---------------------Performance Result-------------------------
send byte size: 40;receive byte size: 46
|         total count|       time took(ms)|           average(ms)|                 QPS|             threads|
|              100000|                4789|                     0|               25000|                   4|
---------------------Performance Result-------------------------
---------------------Performance Result-------------------------
send byte size: 40;receive byte size: 46
|         total count|       time took(ms)|           average(ms)|                 QPS|             threads|
|              100000|                5082|                     0|               20000|                  20|
---------------------Performance Result-------------------------
---------------------Performance Result-------------------------
send byte size: 1135;receive byte size: 1135
|         total count|       time took(ms)|           average(ms)|                 QPS|             threads|
|              100000|                5935|                     0|               20000|                  20|
---------------------Performance Result-------------------------
---------------------Performance Result-------------------------
send byte size: 1135;receive byte size: 1135
|         total count|       time took(ms)|           average(ms)|                 QPS|             threads|
|              100000|                5918|                     0|               20000|                  40|