Skip to content

Tune JMH configurations for stable measurements - #2050

Merged
liblit merged 1 commit into
wala:masterfrom
liblit:performance-baseline
Aug 31, 2026
Merged

Tune JMH configurations for stable measurements#2050
liblit merged 1 commit into
wala:masterfrom
liblit:performance-baseline

Conversation

@liblit

@liblit liblit commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Increase forks, warmup iterations, and measurement iterations across all JMH benchmarks so the suite can reliably detect ~2% performance changes. Remove per-method fork overrides whose concerns are now covered by the higher class defaults. Update Javadoc to match.

Suite wall-clock time increases from ~7 minutes to ~20 minutes: +170% or ~2.7×. In my opinion, that extra time is acceptable in exchange for letting us make more trustworthy decisions about performance impacts of future changes.

Increase forks, warmup iterations, and measurement iterations across
all JMH benchmarks so the suite can reliably detect ~2% performance
changes.  Remove per-method fork overrides whose concerns are now
covered by the higher class defaults.  Update Javadoc to match.

Suite wall-clock time increases from ~7 minutes to ~20
minutes: (+170%, ~2.7×).  In my opinion, that extra time is reasonable
in exchange for letting us make more trustworthy decisions about
performance impacts of future changes.
@liblit
liblit requested a review from msridhar August 31, 2026 16:15
@liblit liblit self-assigned this Aug 31, 2026
@liblit
liblit enabled auto-merge August 31, 2026 16:16
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.81%. Comparing base (adaa50c) to head (cd20a58).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2050   +/-   ##
=========================================
  Coverage     50.81%   50.81%           
- Complexity    12761    12762    +1     
=========================================
  Files          1368     1368           
  Lines         83499    83499           
  Branches      14414    14414           
=========================================
  Hits          42431    42431           
+ Misses        36385    36383    -2     
- Partials       4683     4685    +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@msridhar msridhar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100% agreed that more time for more accurate measurements is worthwhile. NullAway's JMH suite takes almost 1 hour to run, as a comparison.

@liblit
liblit added this pull request to the merge queue Aug 31, 2026
Merged via the queue into wala:master with commit 8a541c9 Aug 31, 2026
11 checks passed
@liblit
liblit deleted the performance-baseline branch August 31, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants