-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add gas benchmarks for BatchLockup
#359
Conversation
test: misc enhancements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
Reminder to update Ward Analytics (see Telegram) about this once we merge this PR.
Do we also want benchmark tables for
MerkleLockupFactory
andMerkleLL/LT
contracts?
No, as per your rationale.
@andreivladbrg can you please review and approve it? |
Before giving a full review, I have a question.
I guess the reason for adding Also, would it be useful if we add more counts for each batch size? e.g. 2,12,24 etc |
Please see the discussion here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Should we also add a benchmark test to see the size for the value close to 20 million gas for the linear batch function? The current gas usage for a size of 50 is far from exceeding the limit.
The batch size depends on number of segments/tranches as well. So for what values of segments/tranches, would we do it for? |
I am talking about |
For
I can add another test contract to generate this but do we need it? If you want to add to this table, then thats very easy. But if you want to write a script similar to the calculation of PS: we can also add this ~218 number in the Sablier docs of PS: my opinion is there is no need to know the value for max batch size in LL as it can easily be calculated from the data in the gas table we are providing. |
Changelog
Question: Do we also want benchmark tables for
MerkleLockupFactory
andMerkleLL/LT
contracts? IMO that should not be necessary since Airstream campaign creators are usually the companies which have very few incentive to care about transaction cost.