Skip to content
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

Measure gas usage in tests #20

Open
ya7on opened this issue Dec 21, 2024 · 0 comments
Open

Measure gas usage in tests #20

ya7on opened this issue Dec 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ya7on
Copy link
Member

ya7on commented Dec 21, 2024

For future gas usage optimization, it needs to be measured first.
In @ton/test-utils there is totalFees parameter of transaction structure. I believe we could rely on this value for measuring gas usage. Or maybe some research is needed here to find out how to count it.
I suggest add to tests gas usage variable with predefined measured value. And substract totalFees from it (or anything else more correct if we find it)
After that issue we could start to somehow optimize gas usage.

@ya7on ya7on added the enhancement New feature or request label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant