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

Withdrawal Queue Gas Tests #699

Merged

Conversation

Jeday
Copy link
Contributor

@Jeday Jeday commented Mar 21, 2023

Added gas test for batch operations on WQ.

Usage notes

Tests are skipped when not run with test:gas. Run time is pretty long and transactions pump block price and may interfere with other tests. Fiddle with MAX_BATCH_SIZE and batchIncrement to generate different results and insights.

Findings

  • requestWithdrawals fails on >~270 batch size. Could be hardhat limitation.
  • finalize spikes in gas usage on first time.
  • claimWithdrawalsoverestimates gas, convergence at ~21% less gas used

Results

image
image

@Jeday Jeday marked this pull request as ready for review March 21, 2023 10:07
Copy link
Contributor

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@TheDZhon TheDZhon merged commit be746e2 into fix/shapella-upgrade-beta3-to-rc Mar 22, 2023
@TheDZhon TheDZhon deleted the feature/withdrawal-queue-gas-test branch March 22, 2023 11:31
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