Repository navigation
Description
Proposal
Problem
The in-process performance driver currently implements both:
PushNotify_ManyConfigsOneTaskUpdatePushDelivery_CallbackLatency
by calling the same NotifyPushConfigs function.
Every timed operation currently:
- creates a task;
- creates eight push-notification configurations;
- sends a task update;
- lists the task's configurations;
- invokes delivery callbacks.
This means PushDelivery_CallbackLatency does not isolate callback latency, and the two scenarios are effectively duplicate end-to-end workloads under different names.
The latest PostgreSQL rows show approximately 9–11 ms p95 and large concurrency-4 tails, but the current result cannot identify whether time is spent in task creation, configuration inserts, config lookup, transactions, connection-pool waits, payload construction, or callback invocation.
Goal
Make push-performance rows distinct and attributable while retaining one end-to-end fan-out scenario.
Scope
- Move fixture creation outside the measured operation where the scenario is intended to measure delivery.
- Keep an explicit end-to-end scenario that includes realistic store lookup and delivery fan-out.
- Add component measurements for:
- push-config lookup/list only;
- payload construction, if non-trivial;
- callback delivery loop with a preloaded config set;
- optional PostgreSQL config insert/setup as a separate row rather than hidden setup.
- Parameterize or report fan-out count.
- Report successful and failed delivery counts accurately.
- Preserve in-memory and PostgreSQL coverage.
- Avoid real network callbacks in this focused in-process decomposition.
Suggested scenario split
PushNotify_EndToEndManyConfigsPushConfig_ListManyConfigsPushDelivery_CallbackFanout- optional
PushConfig_CreateManyif configuration-write cost needs explicit coverage
Acceptance criteria
-
PushDelivery_CallbackLatencyno longer creates tasks or push configs in the measured region. - The callback scenario measures a pre-seeded fixed fan-out.
- The end-to-end scenario remains available under an unambiguous name.
- In-memory and PostgreSQL reports contain the new rows.
- Scenario-specific counters reflect actual configs and callbacks.
- Tests prove setup is outside the timed operation for decomposed rows.
- Documentation explains what each row includes.
- Performance smoke and repository validation pass.
Evidence
Latest CI run 29840589229, artifact 8499875367:
- In-memory callback p95: approximately 0.09 ms at c1 and 1.53 ms at c4.
- PostgreSQL callback p95: approximately 9.80 ms at c1 and 10.70 ms at c4.
- PostgreSQL callback c4 max: approximately 9.07 seconds.
These values are intentionally not treated as an SDK optimization target until the timed work is decomposed.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity