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

benches: improve resolution of add_prices #603

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ureeves
Copy link
Collaborator

@ureeves ureeves commented Jan 20, 2025

The range of values the add_prices benchmark is performed under doesn't showcase the important of the behavior that we want to capture very well - meaning the transition from the "interpreter better" to "webassembly better" regimes. This commit improves that by changing this range to a more representative value.

The range of values the `add_prices` benchmark is performed under
doesn't showcase the important of the behavior that we want to capture
very well - meaning the transition from the "interpreter better" to
"webassembly better" regimes. This commit improves that by changing this
range to a more representative value.
@ureeves
Copy link
Collaborator Author

ureeves commented Jan 20, 2025

Also, it seems like the contract this bench is inspired on was consistently called with 14 price updates. This number is interesting since it is effectively the number at which the webassembly runtime starts exhibiting better behavior than the interpreter - meaning the contract would have benefited, albeit very slightly, from the runtime.

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.65%. Comparing base (8c7d526) to head (9352d1b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #603   +/-   ##
=======================================
  Coverage   85.65%   85.65%           
=======================================
  Files          46       46           
  Lines       24554    24554           
  Branches    24554    24554           
=======================================
  Hits        21032    21032           
  Misses       1672     1672           
  Partials     1850     1850           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant