Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

evm keeper benchmark #577

Closed
wants to merge 3 commits into from
Closed

evm keeper benchmark #577

wants to merge 3 commits into from

Conversation

JayT106
Copy link
Contributor

@JayT106 JayT106 commented Sep 20, 2021

Description

Adds some benchmark tests for erc20 token tx, statedb, and state_transition


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@orijbot
Copy link

orijbot commented Sep 20, 2021

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments only

x/evm/keeper/benchmark_test.go Show resolved Hide resolved
nonce := suite.app.EvmKeeper.GetNonce(suite.address)
msg := evmtypes.NewTx(suite.app.EvmKeeper.ChainID(), nonce, &common.Address{}, big.NewInt(100), 21000, big.NewInt(1), nil, nil)
msg.From = suite.address.Hex()
err := msg.Sign(ethtypes.LatestSignerForChainID(suite.app.EvmKeeper.ChainID()), suite.signer)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can move the LatestSignerForChainID outside the for loop

@JayT106 JayT106 closed this Sep 22, 2021
@JayT106 JayT106 mentioned this pull request Sep 22, 2021
@JayT106
Copy link
Contributor Author

JayT106 commented Sep 22, 2021

redo PR in #586

@fedekunze fedekunze deleted the evm-keeper-benchmark branch March 4, 2022 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants