Skip to content

Ways to accelerate the simulator? #4442

@npinto

Description

@npinto

We are looking into ways to accelerate the simulator (for deeper explorations of the state space) and we found that aside from the GC, the biggest bottleneck seems to be the type reflection used in go-amino.

Would it be possible to have a flag to somehow disable this in the simulator CLI ?

Here are the results of the profiler on a fast sim test run. The command used was go test -cpuprofile cpu.prof -bench -mod=readonly github.com/cosmos/cosmos-sdk/simapp -run TestFullAppSimulation -SimulationEnabled=true -SimulationNumBlocks=100 -SimulationBlockSize=200 -SimulationCommit=true -SimulationSeed=99 -SimulationPeriod=5 -v -timeout 24h:

profile001.pdf

image

/cc @fernand

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions