Repository navigation
Isolate focused performance scenario fixtures - #199
Merged
Merged
Conversation
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Closes #186.
Focused performance scenarios previously included fixture setup inside the measured operation. PostgreSQL diagnostics showed that rows named
PushConfig_Get,PushConfig_List, andPushConfig_Deletealso performed config creation, while several wire scenarios created their task/config fixtures inside the timed path.This made headline latency and throughput unsuitable for ranking the named APIs.
This PR moves required fixture creation outside the measured window so each focused row measures only its named public operation.
What changed
In-process scenarios
PushConfig_Getnow uses a shared immutable pre-seeded config.PushConfig_Listnow uses a fixed pre-seeded three-config fixture.PushConfig_Deleteuses independent pre-seeded task/config fixtures for measured operations.PushConfig_Createremains one measured create against an existing task.Wire scenarios
Focused fixtures are prepared before
RunMeasuredScenario:GetTask_ExistingTaskuses a shared pre-existing task.PushConfig_Createuses a pre-existing task.PushConfig_Getuses a shared immutable config.PushConfig_Listuses a fixed three-config fixture.PushConfig_Deleteuses an independent pre-seeded task/config pair per operation.Performance evidence
The observed performance changes are benchmark attribution corrections, not SDK runtime optimizations.
The deterministic evidence is the PostgreSQL command shape. With fixture setup removed from the measured window, each focused in-process operation now performs exactly one matching store command and one connection acquisition:
GetTask_ExistingTasktask_get × 1task_get × 1PushConfig_Createpush_config_upsert × 1push_config_upsert × 1PushConfig_Getpush_config_upsert × 1+push_config_get × 1push_config_get × 1PushConfig_Listpush_config_upsert × 1+push_config_list_select × 1push_config_list_select × 1PushConfig_Deletepush_config_upsert × 1+push_config_delete × 1push_config_delete × 1Representative PostgreSQL concurrency-1 measurements from the latest CI run:
PushConfig_CreatePushConfig_GetPushConfig_ListPushConfig_DeletePushConfig_Createremains broadly unchanged because it was already isolated. The larger reductions in get/list/delete reflect removal of setup work that did not belong to those measurements.Wire-level focused scenarios show the same structural correction: task/config fixture creation now happens before
RunMeasuredScenario.Absolute latency and throughput values come from separate hosted CI runners and should not be interpreted as SDK runtime speedups. The command-count changes are the primary evidence that #186 is complete.