Skip to content

Adding PSM Gas Consumption script#203

Closed
ben-chain wants to merge 44 commits intomasterfrom
karl-gas-testing
Closed

Adding PSM Gas Consumption script#203
ben-chain wants to merge 44 commits intomasterfrom
karl-gas-testing

Conversation

@ben-chain
Copy link
Collaborator

Description

Adds a script to our tests that allows you to check out the PSM cost of ovmSSTORE and ovmSLOAD under various conditions.

Questions

  • should this be put somewhere else?

Metadata

Fixes

  • Partially addresses YAS-423

Contributing Agreement

Copy link

@willmeister willmeister left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@smartcontracts smartcontracts left a comment

Choose a reason for hiding this comment

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

LGTM. Left a few misc comments.


function setStorage(bytes32 key, bytes32 value) public {
builtInStorage[key] = value;
bytes memory EMcalldata = abi.encodeWithSelector(bytes4(keccak256(bytes("ovmSSTORE()"))), key, value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rename this to SimpleStorageOVM just to clarify the separation?

* TESTS *
*********/

describe.skip('Partial State Manager -- Storage Performance Testing Script', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason why this is skipped right now?

}
})

it('setStorage', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think generally better to put each function into a separate describe() and then list out the cases within an it().

@K-Ho
Copy link
Contributor

K-Ho commented Dec 1, 2020

Closing in favor of ethereum-optimism/contracts#71

@K-Ho K-Ho closed this Dec 1, 2020
@gakonst gakonst deleted the karl-gas-testing branch March 18, 2021 15:02
Lredhdx pushed a commit to node-real/combo-optimism that referenced this pull request Jun 17, 2024
bap2pecs pushed a commit to babylonlabs-io/optimism that referenced this pull request Jul 31, 2024
theochap pushed a commit that referenced this pull request Dec 10, 2025
## Overview

Alters the workflow triggers such that the `push` trigger only runs when
the PR is merged into `main`, and the `pull_request` trigger is agnostic
to the `type`. This prevents double-runs of CI workflows in the merge
queue / upon PR creation.
Zena-park added a commit to tokamak-network/optimism that referenced this pull request Dec 30, 2025
emhane pushed a commit that referenced this pull request Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants