A light-weight tool to test performance of Hyperledger Fabric
Sometimes we need to test performance of a deployed Fabric network with ease. There are many excellent projects out there, i.e. Hyperledger Caliper. However, we sometimes just need a tiny, handy tool, like
This includes a very simple traffic generator:
It is used to perform super simple performance test:
Our main focus is to make sure that tape will not be the bottleneck of performance test
You could get
tape in three ways:
tapebinary from it
make tapeat root dir. Go1.14 or higher is required.
tapebinary will be available at project root directory.
docker pull guoger/tape
./tape -c config.yaml -n 40000 to generate 40000 transactions to Fabric.
docker run -v $PWD:/tmp guoger/tape tape -c $CONFIG_FILE -n 40000
Set this to integer times of batchsize, so that last block is not cut due to timeout. For example, if you have batch size of 500, set this to 500, 1000, 40000, 100000, etc.
We use logrus for logging, which can be set with env var
Here are possbile values (warn by default)
"panic", "fatal", "error", "warn", "warning", "info", "debug", "trace"
Put this generator closer to Fabric, or even on the same machine. This is to prevent network bandwidth from being the bottleneck.
Increase number of messages per block in your channel configuration may help
Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file.