Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants