[Dev Tools] extremely slow forge tests #921
-
Team or ProjectTreasure EnvironmentMainnet Select the Dev Tool you are usingFoundry Provide the version of the tool (if applicable)forge 0.0.7 (0a4af94 2025-01-31T21:19:40.678985000Z) Provide a brief description of the functionality you're trying to implement and the issue you are running into.I have a test suite which is extremely slow to run, 20-30 minutes instead of seconds without the --zksync flag. I have the same suite in multiple projects, as it's a UniswapV2 fork. Is this a known issues, or are others experiencing the same? Repo Link (Optional)No response Additional DetailsThis is the only clue I get at the beginning:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
Thanks for the heads up, do you have a repo or something to share for us to try and reproduce? |
Beta Was this translation helpful? Give feedback.
-
sorry still don't have the minimal reproduction, just wanted to share another detail, during the test run the |
Beta Was this translation helpful? Give feedback.
-
Hi @MexicanAce, I experienced the same issue, the build time is negligible but the time required to run tests is extremely long, my project only has 26 fuzz tests with 16 runs for each but it took up to 2 hours to finish. I use
|
Beta Was this translation helpful? Give feedback.
-
@dutterbutter @MexicanAce any chance there are some tricks to already speed things up, based on the example repo? |
Beta Was this translation helpful? Give feedback.
Sir @vmaark we've just made a significant performance improvement to foundry-zksync based on this provided info. You can see the details here: matter-labs/foundry-zksync#962
Will be included in the
0.0.12
release next week. 🙏