Skip to content

Commit

Permalink
Update readme for SamYuan1990#76
Browse files Browse the repository at this point in the history
Signed-off-by: lyp830414 <lyp830414@163.com>
  • Loading branch information
lyp830414 committed Feb 5, 2021
1 parent 8c15da8 commit 2189a37
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 11 deletions.
33 changes: 24 additions & 9 deletions README.MD
Expand Up @@ -27,15 +27,30 @@ To answer, the best parameter for specific fabric network and fabric chaincode,
- GUI for tape, tape focus on once off time performance testing.

## Quick start
1. install this project `npm install`
1. install fabric sample `curl -vsS https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash`
1. get tape `docker pull guoger/tape`
1. apply the bridge file to adjust block parameters for test network `cp sample/prepareConfig.sh fabric-samples/test-network`
1. Install this project `npm install`

1. Install fabric-sample environment

`curl -vsS https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash`

**Note**

If the above curl command fails, it may be that the old version of curl cannot handle redirection or cannot be redirected due to network reasons in
some countries and regions. At this time, users can download the [bootstrap.sh](https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh) script then run it.

1. Get tape `docker pull guoger/tape`

1. Apply the bridge file to adjust block parameters for test network `cp sample/prepareConfig.sh fabric-samples/test-network`

1. `npm start`
1. access localhost:3000, click ![TestNetworkSample](doc/quick_sample.png)
1. click![submit](doc/quicksample2.png)
1. access `localhost:3000/result/BatchTimeout` to see TPS relationship with BatchTimeout
1. access `localhost:3000/result/MaxMessageCount` to see TPS relationship with MaxMessageCount

1. Access localhost:3000, click ![TestNetworkSample](doc/quick_sample.png)

1. Click![submit](doc/quicksample2.png)

1. Access `localhost:3000/result/BatchTimeout` to see TPS relationship with BatchTimeout

1. Access `localhost:3000/result/MaxMessageCount` to see TPS relationship with MaxMessageCount

## Version Plan
version | define| feature
Expand All @@ -61,4 +76,4 @@ version | URL | comments
---|---|---
0.0.1 | https://www.bilibili.com/video/BV1x54y1x78Z | N/A
0.0.1 | https://www.bilibili.com/video/BV1dV411y7oZ | N/A
0.0.2 | https://www.bilibili.com/video/bv13t4y1B7AE | N/A
0.0.2 | https://www.bilibili.com/video/bv13t4y1B7AE | N/A
19 changes: 17 additions & 2 deletions README_ZH.MD
Expand Up @@ -24,13 +24,28 @@ Probe是在[TWGC performance work group](https://github.com/Hyperledger-TWGC/fab

## 快速上手
1. 安装项目 `npm install`
1. 下载fabric-sample `curl -vsS https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash`

1. 安装fabric-sample环境

`curl -vsS https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash`

**【注】**

如果上述curl命令执行失败,这可能是由于部分国家或地区的网络原因导致curl的ssl握手失败。
在这种情况下,我们建议用户手工下载[bootstrap.sh](https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh)脚本和运行。

1. 下载tape的dockeer版本 `docker pull guoger/tape`

1. 将参数控制脚本通过以下命令安装 `cp sample/prepareConfig.sh fabric-samples/test-network`

1. 启动Probe `npm start`

1. 打开`localhost:3000`, 点击![TestNetworkSample](doc/quick_sample.png)

1. 点击![submit](doc/quicksample2.png)

1. 待完成后访问 `localhost:3000/result/BatchTimeout` 查看TPS与BatchTimeout之间的关系

1. 待完成后访问 `localhost:3000/result/MaxMessageCount` 查看TPS与MaxMessageCount之间的关系

## 维护和升级计划
Expand All @@ -57,4 +72,4 @@ version | URL | comments
---|---|---
0.0.1 | https://www.bilibili.com/video/BV1x54y1x78Z | N/A
0.0.1 | https://www.bilibili.com/video/BV1dV411y7oZ | N/A
0.0.2 | https://www.bilibili.com/video/bv13t4y1B7AE | N/A
0.0.2 | https://www.bilibili.com/video/bv13t4y1B7AE | N/A

0 comments on commit 2189a37

Please sign in to comment.