nzw921rx opened a new pull request, #13212:
URL: https://github.com/apache/seatunnel/pull/13212
### Purpose of this pull request
Add `IncrementalSourceRecordEmitterBenchmark` as a JMH baseline for
incremental CDC record filtering and emission in Apache SeaTunnel.
The benchmark inherits `BenchmarkBase` and delegates event preparation and
validation to `IncrementalSourceRecordEmitterFixture`. The timed path runs the
existing stream filter and `IncrementalSourceRecordEmitter` with in-memory
Debezium records.
The benchmark covers 5, 10, 15, and 20 columns, INSERT and UPDATE, and both
values of `exactly_once`. Throughput and allocation are measured per input
event. Each UPDATE emits two rows.
### Does this PR introduce any user-facing change?
`IncrementalSourceRecordEmitterBenchmark` is selectable in the Benchmarks
workflow. The benchmark README includes a local run example.
### How was this patch tested?
- Passed Spotless and Maven verification on JDK 11.
- Ran all 16 parameter combinations from the packaged JMH runner with the GC
profiler. The fixture checked the starting offset boundary, emitted rows, and
batch-end checkpoint offset.
```bash
./mvnw -Pbenchmark -pl seatunnel-benchmarks -am -DskipTests -Dskip.ui=true
verify
java -jar seatunnel-benchmarks/target/benchmarks.jar \
IncrementalSourceRecordEmitterBenchmark \
-f 1 -wi 0 -i 1 -r 100ms -prof gc -foe true
```
--
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]