sablier-labs / docs

Documentation and guides for Sablier
https://docs.sablier.com
GNU General Public License v3.0
14 stars 7 forks source link

Add gas costs for the different types of streams #143

Closed maxdesalle closed 2 months ago

maxdesalle commented 2 months ago

CleanShot 2024-04-26 at 20 46 02@2x

PaulRBerg commented 2 months ago

This would be also useful for user comms.

We have been frequently asked about the costs of creating streams.

smol-ninja commented 2 months ago

I've worked on this benchmark PR. I can add new rows to include gas usage for different stream shapes, and then we can copy paste from the tables to docs.

~But the question I would like to ask is: how many segments should be considered for the benchmark? 10, 50, 100?~ I've realized the answer is any number because if a shape is cheaper for 10 segments, it will also be cheaper for 100.

andreivladbrg commented 2 months ago

the exact shapes from the app and the docs are in the examples repo, we can simply add there a benchmark in the tests

smol-ninja commented 2 months ago

Makes sense to add them in the examples repo itself.

andreivladbrg commented 2 months ago

Merged 223e6b640cef1d223e0f018d6911aa4cf53e4348