The motivation behind this PR was to better organize the repo, making it faster and more robust.
This PR changes the test/benchmarks by moving all files related to benchmarks into their own directory, including files from both the test and script. The main reason is to allow the benchmark Foundry profile to isolate tests and benchmarks, thereby reducing long run times. Additionally, I removed the estimate-max-count.sh script since we now use forge's console2 to log within a single CLI run, instead of running forge script for different block gas limits.
To automate the process of updating the count maps, I've added the update-script-counts, which was challenging due to the number formatting in our Solidity files (using underscores).
I've also removed the .gas.snapshot file, as we now have more accurate tables.
The motivation behind this PR was to better organize the repo, making it faster and more robust.
This PR changes the test/benchmarks by moving all files related to benchmarks into their own directory, including files from both the
test
andscript
. The main reason is to allow thebenchmark
Foundry profile to isolate tests and benchmarks, thereby reducing long run times. Additionally, I removed theestimate-max-count.sh
script since we now use forge'sconsole2
to log within a single CLI run, instead of runningforge script
for different block gas limits. To automate the process of updating the count maps, I've added theupdate-script-counts
, which was challenging due to the number formatting in our Solidity files (using underscores).I've also removed the
.gas.snapshot
file, as we now have more accurate tables.