morpho-org / morpho-utils

Repository gathering useful libraries and contracts.
GNU Affero General Public License v3.0
65 stars 1 forks source link

Calldata for log2 #78

Closed QGarchery closed 1 year ago

github-actions[bot] commented 1 year ago

Changes to gas cost

Generated at commit: b0ed5de48708d7bac5edb7605732103ee7d0767c, compared to commit: fcf73bdda370199ca907783483d0d71a62aa10d8

๐Ÿงพ Summary (20% most significant diffs)

Contract Method Avg (+/-) %
MathRef contract log2Naive -86,056 โœ… -99.29%

Full diff report ๐Ÿ‘‡
| Contract | Deployment Cost (+/-) | Method | Min (+/-) | % | Avg (+/-) | % | Median (+/-) | % | Max (+/-) | % | # Calls (+/-) | |:-|-:|:-|-:|-:|-:|-:|-:|-:|-:|-:|-:| | **MathRef contract** | 200,245 (0) | _log2Dichotomy_
_log2Naive_ | 4,796 (+5)
612 (-86,056) | **+0.10%**
**-99.29%** | 4,796 (+5)
612 (-86,056) | **+0.10%**
**-99.29%** | 4,796 (+5)
612 (-86,056) | **+0.10%**
**-99.29%** | 4,796 (+5)
612 (-86,056) | **+0.10%**
**-99.29%** | 1 (0)
1 (0) | | **MathMock contract** | 119,965 (-43,843) | _max_
_min_
_zeroFloorSub_ | 312 (-22)
345 (-22)
361 (-22) | **-6.59%**
**-5.99%**
**-5.74%** | 312 (-22)
345 (-22)
361 (-22) | **-6.59%**
**-5.99%**
**-5.74%** | 312 (-22)
345 (-22)
361 (-22) | **-6.59%**
**-5.99%**
**-5.74%** | 312 (-22)
345 (-22)
361 (-22) | **-6.59%**
**-5.99%**
**-5.74%** | 1 (0)
1 (0)
1 (0) |