cosmos-sdk/tools/benchmark
Alex | Interchain Labs c819fe280f
Some checks failed
Tests / Code Coverage / test-x-tx (push) Has been cancelled
Tests / Code Coverage / test-tools-benchmark (push) Has been cancelled
Tests / Code Coverage / test-clientv2 (push) Has been cancelled
Tests / Code Coverage / test-core (push) Has been cancelled
Tests / Code Coverage / test-depinject (push) Has been cancelled
Tests / Code Coverage / test-errors (push) Has been cancelled
Tests / Code Coverage / test-math (push) Has been cancelled
Tests / Code Coverage / test-schema (push) Has been cancelled
Tests / Code Coverage / test-collections (push) Has been cancelled
Tests / Code Coverage / test-cosmovisor (push) Has been cancelled
Tests / Code Coverage / test-confix (push) Has been cancelled
Build SimApp / build (amd64) (push) Has been cancelled
Build SimApp / build (arm64) (push) Has been cancelled
Run Gosec / Gosec (push) Has been cancelled
Lint / golangci-lint (push) Has been cancelled
Checks dependencies and mocks generation / Check go mod tidy (push) Has been cancelled
Checks dependencies and mocks generation / Check up to date mocks (push) Has been cancelled
System Tests / setup (push) Has been cancelled
Tests / Code Coverage / test-store (push) Has been cancelled
Tests / Code Coverage / split-test-files (push) Has been cancelled
Tests / Code Coverage / test-log (push) Has been cancelled
Tests / Code Coverage / test-integration (push) Has been cancelled
Tests / Code Coverage / test-e2e (push) Has been cancelled
Tests / Code Coverage / test-sim-nondeterminism (push) Has been cancelled
System Tests / test-system (push) Has been cancelled
System Tests / test-system-legacy (push) Has been cancelled
Tests / Code Coverage / tests (00) (push) Has been cancelled
Tests / Code Coverage / tests (01) (push) Has been cancelled
Tests / Code Coverage / tests (02) (push) Has been cancelled
Tests / Code Coverage / tests (03) (push) Has been cancelled
Tests / Code Coverage / repo-analysis (push) Has been cancelled
Sims release/0.47.x / install-runsim (push) Has been skipped
Sims release/0.47.x / test-sim-import-export (push) Has been skipped
Sims release/0.47.x / test-sim-after-import (push) Has been skipped
Sims release/0.47.x / test-sim-multi-seed-short (push) Has been skipped
Sims release/0.47.x / sims-notify-failure (push) Has been skipped
Sims / build (push) Has been cancelled
Sims / test-sim-import-export (push) Has been cancelled
Sims / test-sim-after-import (push) Has been cancelled
Sims / test-sim-deterministic (push) Has been cancelled
Sims / test-sim-multi-seed-short (push) Has been cancelled
Remove GitHub Action Old Artifacts / remove-old-artifacts (push) Has been cancelled
Sims release/0.50.x / build (push) Has been cancelled
Sims release/0.50.x / install-runsim (push) Has been cancelled
Sims release/0.50.x / test-sim-import-export (push) Has been cancelled
Sims release/0.50.x / test-sim-after-import (push) Has been cancelled
Sims release/0.50.x / test-sim-multi-seed-short (push) Has been cancelled
Sims release/0.50.x / sims-notify-failure (push) Has been cancelled
Sims release/0.53.x / build (push) Has been cancelled
Sims release/0.53.x / install-runsim (push) Has been cancelled
Sims release/0.53.x / test-sim-import-export (push) Has been cancelled
Sims release/0.53.x / test-sim-after-import (push) Has been cancelled
Sims release/0.53.x / test-sim-multi-seed-short (push) Has been cancelled
Sims Nightly (Long) / test-sim-multi-seed-long (push) Has been cancelled
Sims Nightly (Long) / test-sim-import-export (push) Has been cancelled
Sims release/0.53.x / sims-notify-failure (push) Has been cancelled
Sims Nightly (Long) / sims-notify-failure (push) Has been cancelled
Sims release/0.47.x / build (push) Failing after 23s
chore: use newest core (#24878)
2025-06-13 17:04:57 -04:00
..
client/cli feat(tools/benchmark): introduce benchmark module (#24021) 2025-03-20 10:56:03 -04:00
generator feat(tools/benchmark): introduce benchmark module (#24021) 2025-03-20 10:56:03 -04:00
module feat(tools/benchmark): introduce benchmark module (#24021) 2025-03-20 10:56:03 -04:00
benchmark.pb.go feat(tools/benchmark): introduce benchmark module (#24021) 2025-03-20 10:56:03 -04:00
CHANGELOG.md feat(tools/benchmark): introduce benchmark module (#24021) 2025-03-20 10:56:03 -04:00
go.mod chore: use newest core (#24878) 2025-06-13 17:04:57 -04:00
go.sum chore: use newest core (#24878) 2025-06-13 17:04:57 -04:00
README.md docs: lint (#24854) 2025-06-11 10:20:44 -04:00
tx.pb.go feat(tools/benchmark): introduce benchmark module (#24021) 2025-03-20 10:56:03 -04:00

cosmossdk.io/tools/benchmark

A benchmark module to test chain and storage performance. It can be used to holistically test the end to end performance of a node. Given an initial configuration tools/benchmark provides:

  • A possibly enormous sequence of key-value sets in InitGenesis distributed across n storekeys, e.g. 20M keys across 5 store keys
  • A client which syncs to genesis state then deterministically generates txs which contain a configurable sequence of get, insert, update & delete operations
  • A keeper which processes the above transactions and emits some telemetry data about them.

Client invocation looks like:

simdv2 tx benchmark load-test --from bob --yes --ops 1000 --pause 10 -v

On exit it dumps the generator state so that running again should still be in sync. It assumes that any transaction accepted by the network was processed, which may not be the case, so miss rate will probably increase over time. This isn't really a problem for tests.

Obviously this module is built to DOS a node by testing the upper bounds of chain performance; when testing gas limits should be increased. It should not be included in chains by default but is enabled in simapp for testing.