AztecProtocol / noir-starter

MIT License
168 stars 40 forks source link

set up gas bench marking tests #8

Closed critesjosh closed 1 year ago

critesjosh commented 1 year ago

Problem

I want to know how much gas the Solidity verifier contracts for my circuit will use.

Proposed solution

Set up gas bench marking scripts to make it easy to:

  1. start up a local eth network
  2. deploy the verifier contract
  3. send a transaction to verify a proof and log the gas usage

Alternatives considered

No response

Additional context

No response

Submission Checklist

critesjosh commented 1 year ago

This section of the hardhat docs will be useful https://hardhat.org/hardhat-runner/docs/guides/test-contracts#using-the-gas-reporter