https://github.com/nikvolf/sub-bench
https://github.com/nikvolf/sub-bench
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nikvolf/sub-bench
- Owner: NikVolf
- Created: 2020-01-20T08:57:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T14:01:14.000Z (over 3 years ago)
- Last Synced: 2025-04-23T14:41:02.392Z (about 1 year ago)
- Language: TypeScript
- Size: 1.11 MB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sub-bench
You can use this bench tool to run against `substrate --dev` node. No configuration needed!
Having your substrate started in `--dev` mode with default websockets config, run here
```
npm install
npx tsc
node dist/index.js
```
or just if already npm-installed & compiled
```
node dist/index.js
```
### some configuration
You can change how long will it spam transactions in bench.config.json:
`processedTransactions = 1000`
replace it with any number to spam more/less
In the same file, you can change how much is spammed per seccond:
`tps = 100`
websockets url is set in `polkadot.bench.config.json`
### kudos
thanks for @mixbytes and their tank project which actually runs those configured benchmarks