node 8.9.0
npm 6.14.8
#下载
git clone https://github.com/hyperledger/caliper-benchmarks.git
cd caliper-benchmarks
#切换到v0.3.0
git checkout v0.3.0
#生成package.json文件
npm init -y
#安装caliper-cli
npm install --only=prod @hyperledger/caliper-cli@0.3.0
#绑定fabric1.4.1,会下载sdk,ca-client
npx caliper bind --caliper-bind-sut fabric:1.4.1
#进行测试
sudo npx caliper launch master --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/fabric/fabric-v1.4.1/2org1peergoleveldb/fabric-go.yaml
可能出现的错误
crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/admincerts/Admin@org2.example.com-cert.pem not found
解决方案
cd networks/fabric/config_solo
#下载bin文件以及生成区块
sudo ./generate.sh