Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add gas reports for validium mode #38

Closed
wants to merge 38 commits into from

Conversation

ColoCarletti
Copy link
Member

@ColoCarletti ColoCarletti commented Jan 15, 2024

What ❔

Adds scripts to run the validium_mode_example in validium_mode and rollup_mode, and graph the results.

Why ❔

To measure the gas cost reduction in validium mode compared to rollup, consider that does not store pubdata in L1.

Run

In validium_mode_example/scripts/ directory

  • For Validium report run:

    ./validium_report.sh validium
    

This will carate validium_gas_report.csv.

  • For Rollup report run:

    ./validium_report.sh rollup
    

This will carate rollup_gas_report.csv.

  • To create the graph run:

    python3 create_gas_report.py
    

This will create a graph.png in that directory.

* Update output readme

* Add a note for transactions

* Fix note
* remove logs from pubdata

* update comment
* Refactor readme example

* Fix some comments

* Remove validium.md
@ilitteri ilitteri marked this pull request as ready for review January 17, 2024 18:18
Copy link
Collaborator

@ilitteri ilitteri left a comment

Choose a reason for hiding this comment

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

The PR looks good. Left some comments and let's add a section on the README about this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets move this script to validium_mode_example/scripts

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@ilitteri
Copy link
Collaborator

The PR looks good. Left some comments and let's add a section on the README about this.

Both reports and the graph should be stored in a directory

Base automatically changed from validium_mode_pubdata_0_env to validium_mode January 19, 2024 14:22
Oppen pushed a commit that referenced this pull request Feb 9, 2024
Co-authored-by: agolajko <57454127+agolajko@users.noreply.github.com>
Co-authored-by: agolajko <agostonlajko@gmail.com>
Co-authored-by: Ramon Canales <emaildoramon@gmail.com>
Co-authored-by: Yury Akudovich <ya@matterlabs.dev>
Co-authored-by: Shahar Kaminsky <sk@matterlabs.dev>
Oppen pushed a commit that referenced this pull request Feb 9, 2024
* ci: testing added

* test: temporarily commenting out failing tests

* ci: cleaned up + added testing

* fix: CI syntax

* ci: added missing "needs" statement

* ci: added missing node-setup

* ci: added missing artifacts for cacheing

* test: xdescribe and xit instead of commenting

* chore: formatting
@ilitteri
Copy link
Collaborator

This is no longer necessary

@ilitteri ilitteri closed this Feb 22, 2024
@ilitteri ilitteri deleted the feat_validium_mode_add_gas_report branch February 22, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants