Rangsh commented on PR #12173:
URL: https://github.com/apache/seatunnel/pull/12173#issuecomment-7071766094

   @SEZ9 — reposting the full benchmark reply (prior comment was truncated on 
your side). **Runs are finished**; no new source or sampling-cadence changes on 
HEAD `05bf5510ac09`.
   
   ---
   
   ## Benchmark runs (baseline A = `c8e7a262897f341361094f158ffd4f60ae466b80`)
   
   | Arm | SHA | Fork compare PR | Workflow |
   |-----|-----|-----------------|----------|
   | **A** | `c8e7a262…` | `compare/12063-baseline-a` | (baseline in both runs 
below) |
   | **B** (fixture-only) | `b70f930ba4` | Rangsh#2 | 
https://github.com/Rangsh/seatunnel/actions/runs/44907967100 |
   | **C** (full #12173) | `05bf5510ac09` | Rangsh#3 | 
https://github.com/Rangsh/seatunnel/actions/runs/44907971489 |
   
   Artifacts: each run uploads `seatunnel-benchmarks-java11-*` / `java17-*` 
with `summary.md` (2× alternate baseline/candidate passes per arm).
   
   ---
   
   ## `IMapJobStorageBenchmark` — A | B | C (medians across 2 runs)
   
   **Java 17** (`Intel Xeon 6975P-C`, `ubuntu24-20261116.133.1`) — baseline and 
candidate **alternated on one worker inside each run**. Prefer this table for 
isolation.
   
   > **A column:** baseline median from the **B paired run** (same SHA as the C 
paired run; small remeasurement drift vs the C-run baseline is normal JMH 
noise).
   
   | Benchmark | `initialStoredJobCount` | Score **A** (us/op) | Score **B** | 
Score **C** | CV **A** | CV **B** | CV **C** |
   
|-----------|-------------------------|--------------------:|------------:|------------:|---------:|---------:|---------:|
   | `runningJobGrowth` | 0 | 151.464 | 162.294 | 198.766* | 29.71% | 13.66% | 
20.35%* |
   | `runningJobGrowth` | 1000 | 128.552 | 82.667 | 102.125* | 25.05% | 11.28% 
| 16.99%* |
   | `completedJobHistoryGrowth` | 0 | 1,254.05 | 1,250.78 | 1,221.52* | 17.08% 
| 9.93% | 11.52%* |
   | `completedJobHistoryGrowth` | 1000 | 1,147.68 | 1,520.97 | 1,406.53* | 
11.58% | 36.29% | 33.35%* |
   
   \* **C** Score/CV from the **C paired run** (baseline there: 
`runningJobGrowth@1000` A CV 28.62%, Score 124.547 us/op).
   
   **Readout for B vs C isolation**
   
   - `runningJobGrowth` @ 1000: **B and C** both cut CV vs **A** (~25%→11% 
fixture; ~29%→17% full) → fixture dominates; production metrics path is not on 
this measured hot path.
   - `completedJobHistoryGrowth` @ 1000: **B and C** both raise CV vs **A** → 
regression is **not** introduced by the C-only `JobHistoryService` delta (B 
already shows it).
   
   **Java 11** (separate dispatches: B-run Intel 6975P, C-run AMD EPYC — 
directional only): same pattern on `completedJobHistoryGrowth@1000` CV blow-up 
for B and C vs A; full table in the two `summary.md` files above.
   
   ---
   
   ## Earlier review points — status on current HEAD (unchanged unless noted)
   
   ### Fixture side (B and C)
   
   You asked how I handle the durability/sample limits when posting numbers — 
**no new code in this reply**:
   
   1. **Trial tear-down `evict` + `loadAll` + last-iteration sampling** — 
intentional trade-off documented in `IMapJobGrowthBenchmarkWorkload` / 
`IMapJobStorageBenchmark` Javadoc: keep WAL replay **outside** measured 
SingleShot time; sampled reload is **not** a proof that every append in the 
batch persisted. Mid-trial iterations are **resident-only** 
(`initialStoredJobCount=1000` has no mid-trial reload; we kept that after the 
OOM-sensitive discussion).
   2. **Representative final key vs full-batch `loadAll`** — same WAL replay 
cost for `FileMapStore.loadAll` regardless of key count today; **widening to 
full-batch** is tracked separately as **#12266**, not in this PR scope. The 
Javadoc states the limited sample explicitly.
   3. **`FileMapStore.store` / write-through boolean** — production correctness 
remains on the engine MapStore path; the fixture does not re-plumb 
`IMapFileStorage`’s boolean through measured puts. Failures are still exercised 
at the **sampled** tear-down reload where we surface persistence; that boundary 
is documented rather than claiming per-put WAL failure propagation inside the 
timed window.
   
   The B vs C table above is for **fixture vs +production** isolation on growth 
scores/CV; it does **not** replace a durability audit — agree it does not 
exercise items (1–2) as a test matrix.
   
   ### `docs/en|zh/engines/zeta/benchmark.md`
   
   Per **@nzw921rx** (2025-09-10): benchmark docs were refactored — **do not** 
re-add growth-scenario prose to those pages on this PR. Methodology for this 
change set stays in **benchmark class Javadoc** (F4 closed on `b137173` / HEAD).
   
   ### Production side (C only)
   
   On **`05bf5510ac09`** (aligned with your later withdrawn points and 
@DanielLeens’ trace):
   
   1. **`storeFinishedPipelineMetrics`** — `finishedJobMetricsImap.lock(jobId)` 
/ `unlock` in `finally` around get/merge/one TTL `put`; null rejected before 
lock. Contract is documented on the service method Javadoc (distributed 
**per-job key** lock, not JobMaster-only).
   2. **Javadoc wording** — happy to tighten “in memory” / rationale vs 
contract in a **small follow-up** if you want a specific phrasing; no behaviour 
change proposed here.
   3. **`JobHistoryServiceFinishedMetricsTest`** — at this HEAD there is **no** 
`computeIfAbsent` reference in the class. Tests assert the **observable 
contract**: TTL-preserving `put(…, eq(1440L), MINUTES)` (`:100-105`, 
`:121-126`, `:155-160`), merge + distinct tags (`:112-142`), 
`RejectsNullMetrics` (`:135-138`), and `lock`/`unlock` on success paths — same 
closure you and @DanielLeens confirmed on `b137173` / F6.
   
   ---
   
   No further cadence or source changes unless you request them. Please let me 
know if you want a maintainer-mirrored upstream Benchmarks pair on a single 
worker policy; fork arms above are green with artifacts attached.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to