Abstract
Caliper是Hyperledger的其中一个子项目,它是一种测试区块链智能合约性能的工具。
可以设置非常多样的测试组合,结果包含吞吐量,延迟,资源使用率。
由于主页给出的测试全都是坑无法通过,这里记录其解决过程,留个笔记。
Repository
- 本文使用的是官网提供的例子
https://hyperledger.github.io/caliper/v0.4.2/getting-started/#sample-networks
- Github上开源
https://github.com/hyperledger/caliper-benchmarks
Table of contents
Chapter1
git clone git@github.com:hyperledger/caliper-benchmarks.git
这里进到项目要init一下,不然后面步骤都会出错
cd caliper-benchmarks
npm init
<