This repository benchmarks performance of various Ethereum development
frameworks by simulating a call to Convex's systemShutdown
method. This method
uses about 16M gas and performs a number of token transfers
-
Run
cp .env.example .env
, and in the resulting.env
file enter a URL to an Ethereum archive node in theETH_RPC_URL
environment variable. (Alchemy provides free archive node data) -
Run
yarn
to install dependencies for Ganache and Hardhat -
Install Foundry's forge and Dapptools using the installation instructionshere and here respectively
-
Run
dapp update
to install dependencies for Dapptools and Foundry -
Run any command in the
Makefile
to benchmark that tool. For example, usemake benchmark-hardhat
to run the simulation against Hardhat. Alternatively, runmake benchmark-all
to run all tools
- Set
export CLEAR_CACHE=1
in your.env
file to clear the Ganache and Hardhat caches