-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from rockyxiashilong/master
压测数据提交
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# WeIdentity 性能测试报告 | ||
|
||
## 1. 测试结论 | ||
|
||
针对WeIdentity v1.6.0进行了性能测试,经过测试,各接口性能均符合预期,下图列出各接口具体数据。 | ||
|
||
| **接口** | **交易数** | **平均响应时间(ms)** | **最小响应时间(ms)** | **最大响应时间(ms)** | **最大TPS** | | ||
| ------------------------- | -------- | -------------- | -------------- | -------------- | --------- | | ||
| CreateWeId | 59534 | 2031 | 184 | 7774 | 199 | | ||
| GetWeIdDocument | 685187 | 175 | 3 | 1286 | 2285 | | ||
| SetPublicKey | 85931 | 1412 | 41 | 4842 | 286 | | ||
| IsAuthorityIssuer | 1707173 | 70.16 | 1 | 1048 | 5708 | | ||
| IsSpecificTypeIssuer | 900017 | 133.3 | 3 | 1763 | 3063.23 | | ||
| QueryAuthorityIssuerInfo | 982550 | 122.12 | 2 | 1912 | 3314.7 | | ||
| QueryCpt | 25757519 | 0.03 | 0 | 40 | 86071.28 | | ||
| CreateCredential | 1001318 | 103.36 | 1 | 10184 | 3343.97 | | ||
| CreateSelectiveCredential | 4765140 | 0.62 | 0 | 263 | 15946.42 | | ||
| CreatePresentation | 716447 | 85.89 | 3 | 1447 | 2831.7 | | ||
| Verify | 493131 | 242.88 | 9 | 1416 | 1662.27 | | ||
| VerifyByPresention | 302936 | 396.49 | 10 | 2566 | 1015.41 | | ||
| CreateEvidence | 65881 | 1827.24 | 117 | 5047 | 221.84 | | ||
| GetEvidence | 648350 | 185.2 | 4 | 1446 | 655.66 | | ||
| VerifySigner | 669416 | 179.53 | 4 | 1286 | 2235.85 | | ||
| AddLogByHash | 81579 | 1491.49 | 83 | 4739 | 273.73 | | ||
| BarCodeTransportation | 63019 | 1921 | 32 | 13759 | 210.95 | | ||
|
||
说明:本次压测采用的是8核16G机器进行压测,四节点组网,压力主要在交易节点; | ||
|
||
通过观察发现并发数增加时,TPS和RT对应增加,综合考虑TPS和RT,所有接口均采用并发数500进行数据采集。 | ||
|
||
### 1.1 测试内容 | ||
|
||
对WeIdentity SDK v1.6.0进行压测,采用500并发量持续压测5分钟,观察 sdk主要接口的TPS和RT,采用的是梯度增压的方式进行压力测试,找出符合系统预期的TPS和RT。 | ||
|
||
### 1.2 测试总结 | ||
|
||
本次测试共采集3组TPS性能数据,从测试结果分析: | ||
|
||
1. 在并发数增加时,TPS和RT响应会增加,综合考虑,采用500并发的数据进行数据采集。 | ||
|
||
2. 测试机和区块连交易节点在同一个局域网内,网络响应时间0.2ms,网络不影响整个响应时间 | ||
3. 通过nmon观察服务器的CPU、内存、I/O读写速度,均不存在瓶颈。 | ||
|
||
## 2.测试环境 | ||
|
||
### 2.1 测试组网 | ||
|
||
![image](.\images\performance.png) | ||
|
||
组网描述: | ||
|
||
4个区块链节点分别部署在4台服务器上,机器配置为8核16G,按两个机构各两个节点的场景模拟。Jmeter压测机(需要安装jmeter环境,配置最好也是8核16G)会把交易通过sdk往一个区块链节点进行发送。 | ||
|
||
### 2.2 软硬件环境 | ||
|
||
实验室内网云机器,服务器操作系统CentOS Linux release7.5.1804。 | ||
|
||
### 2.3 压测客户端 | ||
|
||
Jmeter 5.1.1 压测程序,安装在linux环境上,采用单客户端模式进行压测 | ||
|
||
### 2.4 软件版本 | ||
|
||
| **子系统** | **版本号** | **说明** | | ||
| -------------- | --------------- | ------- | | ||
| FISCO-BCOS | FISCO BCOS V2.2 | 底层节点版本 | | ||
| web3sdk | release-2.1.3 | 配套sdk版本 | | ||
| WeIdentity SDK | V1.6.0 | 待测程序 | | ||
|