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

feat: add the ability to run benchmarks on the QGB contract #218

Merged
merged 7 commits into from
Oct 13, 2023

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented Oct 4, 2023

Overview

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@rach-id rach-id added the enhancement New feature or request label Oct 4, 2023
@rach-id rach-id self-assigned this Oct 4, 2023
/// https://github.com/foundry-rs/foundry/issues/3475#issuecomment-1469940917
/// To have accurate results, make sure to add the following costs:
/// A byte of calldata costs either 4 gas (if it is zero) or 16 gas (if it is any other value).
contract Benchmark is DSTest {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[note for reviewers]
This is always run, but it only takes 5.71ms, so I guess it's okey. we can leave it running with the tests.

evan-forbes
evan-forbes previously approved these changes Oct 5, 2023
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utack

@rach-id rach-id merged commit c9f0f0e into master Oct 13, 2023
9 checks passed
@rach-id rach-id deleted the benchmark branch October 13, 2023 09:24
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

Successfully merging this pull request may close these issues.

3 participants