https://github.com/nikvolf/sub-bench-random
https://github.com/nikvolf/sub-bench-random
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nikvolf/sub-bench-random
- Owner: NikVolf
- Created: 2020-01-30T17:00:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T14:08:21.000Z (over 3 years ago)
- Last Synced: 2025-01-06T21:20:49.710Z (over 1 year ago)
- Language: TypeScript
- Size: 675 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sub-bench-random
You can use this bench routine to run against `substrate --dev` node. No configuration needed!
This sends transfers from around 1000 endowed accounts to _random_ new accounts, thus trying to avoid state cache hits in substrate.
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`