Performance benchmarks: measurement scripts and analysis docs (#272) - #281
Merged
Merged
Conversation
…lysis runs could not be done on different code-geration-runs before
…ure" This reverts commit 1b7a59a.
…of all builder types
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.



Summary
Closes #272 — adds repeatable performance measurement infrastructure and documents
benchmark results comparing Simple Builder, Simple Minimal Builder, RecordBuilder,
and Lombok.
Changes
run_full_analysis.sh(new, single entry point)Runs the complete analysis in two parts:
only (
--no-tracking) for a fair comparison, since RecordBuilder and Lombokprovide no processor-level metrics.
(
jdt,lightweight,none) with JSON tracking enabled for processor-levelphase breakdowns, followed by an automatic comparison.
Portable across platforms: bash (not zsh), no macOS-only constructs —
caffeinateis guarded by
command -v,renicefailure is tolerated, and onlyPOSIX-compatible
dateusage remains.RUNS=5 ./run_full_analysis.shoverridesthe default of 10 runs.
run_performance_measurement.py--formatting-mode <jdt|lightweight|none>option, propagated via-Dsimplebuilder.formattingMode→-Asimplebuilder.formattingMode.--builder-type, failing early with a clear message instead of misleadingcompile errors.
run_oneas theis_simple_buildersparameter, so--formatting-mode(and tracking args) weresilently dropped whenever
--no-trackingwas used — every "none"/"lightweight"run actually produced JDT output. Verified that all three modes now generate
visibly different files.
run_full_comparison.py--label-suffixoption to distinguish measurement campaigns(e.g.
sb-10runs-stability).Documentation:
PERFORMANCE_ANALYSIS.mdrepeated
mvn clean compile, wall/compiler time aggregation, optional JSONprocessor metrics, wall-time-only comparison for external processors.
Builder 23.2s, RecordBuilder 7.0s (295 builders), Lombok 7.2s — including the
caveat that RecordBuilder generates far fewer builders because the test data
contains fewer records.
(~16 ms/builder, ~33% of wall time), while
lightweight(~0.14s) andnone(~0.03s) are effectively free.
Verification
RUNS=1 ./run_full_analysis.shexecuted end-to-end: all 7 report directoriesproduced, final comparison printed.
NONE vs LIGHTWEIGHT = 1410, LIGHTWEIGHT vs JDT = 520.
bash -nsyntax check passes.