This repository contains sample benchmarks that may be used by Caliper, a blockchain performance benchmark framework. For more information on Caliper, please see the Caliper main repository
This project still work in progess.
Steps to run :
- Set your NPM project details with npm init (or just execute npm init -y) in your workspace directory (if you haven’t done this already, i.e., you don’t have a package.json file).
npm init -y
- Install the Caliper CLI
npm install --only=prod @hyperledger/[email protected]
- Check the version
npx caliper --version
- Check the help file of Caliper CLI
npx caliper --help
- Bind the CLI to the required platform SDK
npx caliper bind --caliper-bind-sut fabric --caliper-bind-sdk 1.4.0
- Install relevant npm packages
-
Copy this specified 'grpc' packages from path of 'packages' into the path of 'node_modules'
-
Ensure the relevant chaincode (which under path of 'src') been compile using 'go build chaincode_filename.go'
-
Invoke the local CLI binary (using npx) with the appropriate parameters.
npx caliper benchmark run --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/fabric/fabric-v1.4.0/2org1peergoleveldb/fabric-go.yaml
https://hyperledger.github.io/caliper/v0.2/installing-caliper/
https://medium.com/@madhavi.kulkarni180796/hyperledger-caliper-benchmark-6d4d47e9d6ae