Using Network Load Generator with Solo
This document describes how to use Network Load Generator with Solo.
Using Network Load Generator with Solo
The Network Load Generator (NLG) is a benchmarking tool designed to stress test Hiero networks by generating configurable transaction loads. To use the Network Load Generator with Solo, follow these steps:
- Create a Solo network:
npx @hashgraph/solo:@latest one-shot single deploy
- Use the
rapid-firecommands to install the NLG chart and start a load test:
@hashgraph/solo:@latest rapid-fire crypto-transfer start --deployment my-deployment --args '"-c 3 -a 10 -t 60"'
- In a separate terminal, you can start a different load test:
@hashgraph/solo:@latest rapid-fire nft-transfer start --deployment my-deployment --args '"-c 3 -a 10 -t 60"'
- To stop the load test early use the
stopcommand:
@hashgraph/solo:@latest rapid-fire nft-transfer stop --deployment my-deployment
- To stop all running load tests and uninstall the NLG chart, use the
destroycommand:
@hashgraph/solo:@latest rapid-fire destroy all --deployment my-deployment
See this example for more details: examples/network-load-generator/README.md
A full list of all available rapid-fire commands can be found in Solo CLI Commands
Argument list for every NLG class
| Class | Argument |
|---|---|
| CryptoTransferLoadTest | [-c |
| TokenTransferLoadTest | [-c |
| NftTransferLoadTest | [-c |
| SmartContractLoadTest | [-c |
| HeliSwapLoadTest | [-c |
| LongevityLoadTest | [-c |