2.2.14 • Published 8 months ago

@latticexyz/gas-report v2.2.14

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Gas Report

Measure and report gas usage within forge tests

Add some reports to your forge tests

import { Test } from "forge-std/Test.sol";
import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol";

contract ExampleTest is Test, GasReporter {
  function testGas() public {
    startGasReport("description of behavior to measure gas for");
    // do something here
    endGasReport();
  }
}

Then use the cli command to run tests and save the report:

pnpm gas-report --save gas-report.json

Or, if you have your own test command, you can pipe the output to gas-report --stdin:

GAS_REPORTER_ENABLED=true forge test -vvv --isolate | pnpm gas-report --stdin

Run pnpm gas-report --help for more details.

2.2.14

9 months ago

2.2.13

9 months ago

2.2.12

9 months ago

2.2.11

9 months ago

2.2.10

9 months ago

2.2.9

10 months ago

2.2.8

10 months ago

2.2.5

10 months ago

2.2.4

10 months ago

2.2.7

10 months ago

2.2.6

10 months ago

2.2.3

10 months ago

2.2.2

10 months ago

2.2.1

10 months ago

2.2.0

10 months ago

2.1.1

11 months ago

2.1.0

11 months ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.4

1 year ago

2.0.0-next.18

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

2.0.0-next.17

1 year ago

2.0.0-next.16

1 year ago

2.0.0-next.15

2 years ago

2.0.0-next.14

2 years ago

2.0.0-next.13

2 years ago

2.0.0-next.12

2 years ago

2.0.0-next.11

2 years ago

2.0.0-next.10

2 years ago

2.0.0-next.9

2 years ago

2.0.0-next.8

2 years ago

2.0.0-next.7

2 years ago

2.0.0-next.6

2 years ago

2.0.0-next.5

2 years ago

2.0.0-next.4

2 years ago

2.0.0-next.3

2 years ago

2.0.0-next.2

2 years ago

2.0.0-next.1

2 years ago

2.0.0-next.0

2 years ago