GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — DON'T MERGE: Add some preliminary Batching benchmarks. by igorbernstein2 · Pull Request #486 · googleapis/gax-java
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
Conversation
|
|
I will defer to @pongad on this one |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #486 +/- ## ========================================= Coverage 70.34% 70.34% Complexity 773 773 ========================================= Files 162 162 Lines 3672 3672 Branches 275 275 ========================================= Hits 2583 2583 Misses 973 973 Partials 116 116 Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this? The 20x slow down is a little...disconcerting. Could you teach me how to run a profiler? I tried -Pprofilers=stack but that seems to not be the right incantation.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| requestBuilder.addMessages( | ||
| PubsubMessage.newBuilder() | ||
| .setData(payloads[RANDOM.nextInt(payloads.length)]) | ||
| .setMessageId("message-" + i) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Edit build.gradle and add If you find that you are using certain configs often, we can expose them via gradle properties (like PS. I'll update the readme with this info later on today |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I hacked together a proof of concept implementation that removes batch merging. entries are accumulated in the ThresholdBatcher and a Batch is only built on pushCurrentBatch(). The results are fairly encouraging: I have a few things to clean up & verify, and then I'll open a separate PR for this change. This is orthogonal to @pongad's work on the RequestAccumulator. My change would just centralize the place where entries are spooled, while @pongad's would extract it to a separate class. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@igorbernstein2, this is an old PR. Can we close it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
ok, I'll reopen something similar once I get back to work on this |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.