-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Tests: Batching Benchmarks #9927
Conversation
WalkthroughWalkthroughThe recent update streamlines the batch handling process in Ethereum Optimism by enhancing testing capabilities through benchmarking for batch building operations. This update aims to optimize transaction processing efficiency and system reliability by evaluating performance under various compressors. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9927 +/- ##
===========================================
- Coverage 28.33% 0.60% -27.74%
===========================================
Files 165 92 -73
Lines 7270 2477 -4793
Branches 1330 575 -755
===========================================
- Hits 2060 15 -2045
+ Misses 5104 2462 -2642
+ Partials 106 0 -106
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bench looks good to me & runs locally. Just some nits on dad code.
* Add Benchmark for AddSingularBatch * update compressor configs ; address PR comments * Add b.N * Export RandomSingularBatch through batch_test_util.go * measure only the final batch ; other organizational improvements * Add Benchmark for ToRawSpanBatch * update tests * minor fixup * Add Benchmark for adding *All* Span Batches * comment fixups * narrow tests to only test span batches that won't exceed RLP limit * address pr comments
This Benchmark measures the time it takes to add a singular batch to either a Singular Batch, or a Span Batch. In its present configuration it measures only the FINAL batch added, in order to show that as a batch grows, its performance changes over time.
It has a collection of test targets for number-of-batches and tx-per-batch, which it then multiplies by the two Batch Types, and then multiplies again by each Compressor type.
We are investigating the root cause of Quadratic Batcher Performance when using span batches, so this helps to demonstrate the loss in performance, and will help us to confirm the improvement as we fix it.
Sample Output
Span Batches are low performance to the extent that I am still waiting for results from this latest version of the test, but here is an example of Singular vs Span with the NonCompressor:
And the same for Ratio Compressor: