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

Gas consumption profiling #47

Open
ETatuzova opened this issue May 29, 2023 · 1 comment
Open

Gas consumption profiling #47

ETatuzova opened this issue May 29, 2023 · 1 comment
Assignees

Comments

@ETatuzova
Copy link
Contributor

  1. We need measure gas consumption separately for each test. Now hardhat-gas-reporter allows access only to maximum, minimum and average gasUsage value threw all TestPlaceholderVerifierl.verify calls.
  2. We need a good way to measure and output gas consumption for different placeholder parts, such as "gate argument", "permutation argument", "lpc verification" e t.c.
@hgedia
Copy link
Contributor

hgedia commented May 31, 2023

For finer control over gas profiling we can use hardhat - console.log to output gasLeft() on calls.
Since we do not wish to push console.logs to production, we can evaluate either of the two approaches.

  1. Use a hardhat plugin such as pre-processor to remove logs before push to production. Commit all profiling on main
  2. Maintain a new branch which has profiling enabled via logs by default.

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

When branches are created from issues, their pull requests are automatically linked.

2 participants