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

New executable gasmodel2 to price randomly generated, nested expressions #1099

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

jwiegley
Copy link
Contributor

@jwiegley jwiegley commented Dec 16, 2022

This PR adds a new executable to the Pact cabal build, namely exe:gasemodel2 which, when run, generates 5,000 random expression up to 6 levels deep, and then compares the gas cost with the execution time in order to find outliers from the nominal gas rate (gas/time) of 2,500 ns established by @LindaOrtega in 2019.

The code is working for most general builtins and operators, so the PR can go in as is. I'll be continue to extend its support to stateful operations (databases, etc), keysets, valid module generation, etc.

@jwiegley jwiegley requested a review from LindaOrtega December 16, 2022 18:32
@jwiegley jwiegley self-assigned this Dec 16, 2022
@jwiegley jwiegley requested a review from jmcardon December 16, 2022 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants