Simple benchmarking tool for measuring the performance of Fabric++
Tested with Node v8.4
scripts/chaincode.sh
: install and instantiate the chaincode.scripts/generate_smallbank.sh
: sample experiment script which runs multiple configurations of smallbank benchmarkscripts/network.sh
: start/stop the fabric clusterscripts/prepare-artifacts.sh
: prepare different artifacts for initializing the fabric network.scripts/prepare-network.sh
: wrapper scripts which initializes the network, and install/instantiates the chaincode.scripts/registry.sh
: start the docker registry servicescripts/template-gen.sh
: script to generate the yaml files used by docker, and custom configtx files.
src/admin.js
: register an admin account used by the benchmarksrc/client.js
: simple client which is used to invoke the chaincodessrc/benchmark.js
: simple benchmarking client which submits transactions at a specified rate to the fabric network.
The throughput is measured from the log files written by one of the fabric nodes.
The benchmark-fabric directory must pe copied to a NFS filesystem mounted on all nodes participating in the fabric network. sample_benchmark.sh file provides a simple example of how the benchmark can be invoked.