cosmos-sdk/tools/benchmark
dependabot[bot] a03c90beb2
build(deps): Bump google.golang.org/grpc from 1.69.2 to 1.69.4 (#23389)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex | Interchain Labs <alex@skip.money>
2025-01-15 21:23:22 +00:00
..
client/cli feat(store/v2): full iavl/v2 support (#23131) 2025-01-03 10:41:47 +00:00
generator feat(tools/benchmark): introduce benchmark module (#22778) 2024-12-12 15:33:23 +00:00
module feat(tools/benchmark): introduce benchmark module (#22778) 2024-12-12 15:33:23 +00:00
proto chore: re-add IntProto and DecProto and deprecate msg (#22925) 2024-12-17 14:57:03 +00:00
benchmark.pb.go feat(tools/benchmark): introduce benchmark module (#22778) 2024-12-12 15:33:23 +00:00
CHANGELOG.md chore: sync changelogs (#22992) 2024-12-19 07:32:49 +00:00
go.mod build(deps): Bump google.golang.org/grpc from 1.69.2 to 1.69.4 (#23389) 2025-01-15 21:23:22 +00:00
go.sum build(deps): Bump google.golang.org/grpc from 1.69.2 to 1.69.4 (#23389) 2025-01-15 21:23:22 +00:00
README.md feat(tools/benchmark): introduce benchmark module (#22778) 2024-12-12 15:33:23 +00:00
sonar-project.properties feat(tools/benchmark): introduce benchmark module (#22778) 2024-12-12 15:33:23 +00:00
tx.pb.go feat(tools/benchmark): introduce benchmark module (#22778) 2024-12-12 15:33:23 +00: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.