diff --git a/.changeset/smart-actors-refuse.md b/.changeset/smart-actors-refuse.md new file mode 100644 index 0000000000..2a8a688d3e --- /dev/null +++ b/.changeset/smart-actors-refuse.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/gas-report": minor +--- + +Now uses `--isolate` flag in `forge test` for more accurate gas measurement. diff --git a/packages/gas-report/README.md b/packages/gas-report/README.md index 782f3b3a11..f6adb34a47 100644 --- a/packages/gas-report/README.md +++ b/packages/gas-report/README.md @@ -26,7 +26,7 @@ pnpm gas-report --save gas-report.json Or, if you have your own test command, you can pipe the output to `gas-report --stdin`: ```console -GAS_REPORTER_ENABLED=true forge test -vvv | pnpm gas-report --stdin +GAS_REPORTER_ENABLED=true forge test -vvv --isolate | pnpm gas-report --stdin ``` Run `pnpm gas-report --help` for more details.