Skip to content

feat: DH-23226: Benchmark scaling - #446

Merged
stanbrub merged 19 commits into
deephaven:mainfrom
stanbrub:benchmark-scaling
Nov 24, 2026
Merged

stanbrub merged 19 commits into
deephaven:mainfrom
stanbrub:benchmark-scaling

Conversation

@stanbrub

@stanbrub stanbrub commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Rescale the standard benchmarks so most land near 8s (6s minimum) on the JVM 25 nightly, while loading less duplicated data and simplifying how tests set their scale.

  • One generated file per table: source and timed are generated once at 6x scale.row.count, and each test reads head(N) from it. Separate files per row factor are no longer generated.
  • Simpler scale API: each test calls runner.setScaleFactors(static, inc) with the total rows per mode as a multiple of scale.row.count (0 skips that mode). The runner uses real rows up to the cap, then the fewest merged copies. runner.setMaxRowFactor(cap) lowers the cap (default 6) for memory-sensitive classes. Row factors may be fractional (two decimals).
  • Low-level setters made internal: setRowFactor, setRowFactors and the old setScaleFactors(int, int), now setMergeFactors, are package-private.
  • timed merge path: now select → merge → update. Merged copies share one materialized table and only timestamp is materialized per copy.
  • Removed the unused warmup feature.
  • Rescaled all standard tests: factors calibrated from the nightly and matrix runs, then corrected for JVM 25.
  • TrainTestRunner updated to the new API.
  • New matrix profile scale-standard.sh for full-suite confirmation runs.

Tests Completed

  • Full standard suite, 5 passes on the matrix server (JVM 25): 621 of 685 benchmarks in 6–11s, against 472 in the nightly, with matching run-to-run variability and 23% less operation time per pass
  • Confirmation run of the latest scale corrections (scale-standard.sh, 3 passes)

Note: rates change for rescaled benchmarks, so expect a one-time trend break in the nightly history.

@stanbrub stanbrub self-assigned this Nov 18, 2026
@stanbrub
stanbrub requested a balanced review from Copilot November 18, 2026 04:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The training runner calls tables() before setting the 620× scale, causing unnecessary reinitialization and, with a cold cache, generation of an unwanted 6× dataset.

1 open issue
What changed in this PR

Updates Deephaven’s benchmark harness and standard suite to target roughly eight-second runs on JVM 25, with less duplicated data and simpler scale configuration.

Changes:

  • Adds fractional per-mode scales, capped real-row loading, shared generated tables, and leaner timed-table merging.
  • Recalibrates standard benchmarks and migrates the training runner to the new scale API.
  • Removes unused warmup support and adds a three-pass confirmation matrix.
File Description
src/​main/​resources/​io/​deephaven/​benchmark/​run/​profile/​default.properties Removes the unused warmup setting.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​train/​TrainTestRunner.java Migrates training to the new scale API.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​where/​WhereTest.java Recalibrates filter scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​where/​WhereOneOfTest.java Recalibrates alternative-filter scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​where/​WhereNotInTest.java Recalibrates exclusion-filter scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​where/​WhereInTest.java Recalibrates membership-filter scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​vectors/​VectorTest.java Recalibrates dense and sparse vector scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​Setup.java Removes the obsolete scaling helper.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingWAvgTimeTest.java Migrates and rescales time-based weighted averages.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingWAvgTickTest.java Migrates and rescales tick-based weighted averages.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingSumTimeTest.java Migrates and rescales time-based rolling sums.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingSumTickTest.java Migrates and rescales tick-based rolling sums.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingStdTimeTest.java Migrates and rescales time-based standard deviations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingStdTickTest.java Migrates and rescales tick-based standard deviations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingProdTimeTest.java Migrates and rescales time-based rolling products.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingProdTickTest.java Migrates and rescales tick-based rolling products.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingMinTimeTest.java Migrates and rescales time-based rolling minima.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingMinTickTest.java Migrates and rescales tick-based rolling minima.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingMaxTimeTest.java Migrates and rescales time-based rolling maxima.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingMaxTickTest.java Migrates and rescales tick-based rolling maxima.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingGroupTimeTest.java Migrates and rescales time-based rolling groups.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingGroupTickTest.java Migrates and rescales tick-based rolling groups.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingFormulaTimeTest.java Migrates and rescales time-based rolling formulas.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingFormulaTickTest.java Migrates and rescales tick-based rolling formulas.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingCountWhereTimeTest.java Migrates and rescales time-based conditional counts.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingCountWhereTickTest.java Migrates and rescales tick-based conditional counts.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingCountTimeTest.java Migrates and rescales time-based rolling counts.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingCountTickTest.java Migrates and rescales tick-based rolling counts.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingComboTest.java Migrates and rescales combined rolling operations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingAvgTimeTest.java Migrates and rescales time-based rolling averages.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​RollingAvgTickTest.java Migrates and rescales tick-based rolling averages.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​MixedComboTest.java Migrates and rescales mixed update operations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmsTimeTest.java Migrates and rescales time-based exponential sums.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmsTickTest.java Migrates and rescales tick-based exponential sums.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmStdTimeTest.java Migrates and rescales time-based exponential deviations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmStdTickTest.java Migrates and rescales tick-based exponential deviations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmMinTimeTest.java Migrates and rescales time-based exponential minima.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmMinTickTest.java Migrates and rescales tick-based exponential minima.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmMaxTimeTest.java Migrates and rescales time-based exponential maxima.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmMaxTickTest.java Migrates and rescales tick-based exponential maxima.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmaTimeTest.java Migrates and rescales time-based exponential averages.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​EmaTickTest.java Migrates and rescales tick-based exponential averages.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​CumSumTest.java Recalibrates cumulative-sum scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​CumProdTest.java Recalibrates cumulative-product scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​CumMinTest.java Recalibrates cumulative-minimum scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​CumMaxTest.java Recalibrates cumulative-maximum scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​CumCountWhereTest.java Migrates and rescales cumulative conditional counts.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​updateby/​CumComboTest.java Recalibrates combined cumulative operations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​StandardTestRunner.java Implements scaling, shared data generation, and loading changes.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​sort/​SortDescendingTest.java Migrates setup and recalibrates sort scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​sort/​SortComboTest.java Recalibrates mixed-direction sort scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​sort/​SortAscendingTest.java Recalibrates sort and chained-operation scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​select/​SelectDistinctTest.java Recalibrates distinct-selection scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​join/​ReverseAsOfJoinTest.java Migrates and rescales reverse as-of joins.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​join/​NaturalJoinTest.java Migrates natural joins to explicit total scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​join/​JoinTest.java Caps real rows and recalibrates join scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​join/​ExactJoinTest.java Migrates and rescales exact joins.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​join/​AsOfJoinTest.java Migrates and rescales as-of joins.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​index/​DataIndexLoadTest.java Preserves the real-row cap under the new API.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​index/​DataIndexBenefitTest.java Migrates capped index benchmarks and adjusts scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​formula/​UserFormulaTest.java Adds calibrated scales for each user-formula case.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​formula/​RowIteratorTest.java Migrates and rescales row iteration.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​formula/​InlineFormulaTest.java Migrates and rescales inline formulas.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​formula/​DateTimeFormulaTest.java Replaces the scale helper with per-test factors.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​client/​BarrageClientTest.java Caps real-row loading for client benchmarks.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​VarByTest.java Recalibrates variance aggregation scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​UngroupTest.java Caps real rows and rescales ungrouping.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​TailByTest.java Caps real rows and rescales grouped tails.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​SumByTest.java Recalibrates sum aggregation scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​StdByTest.java Recalibrates standard-deviation aggregation scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​PartitionByTest.java Recalibrates partitioning scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​MinByTest.java Caps real rows and rescales minimum aggregations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​MedianByTest.java Caps real rows and rescales median aggregations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​MaxByTest.java Caps real rows and rescales maximum aggregations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​LastByTest.java Caps real rows and rescales last-row selection.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​HeadByTest.java Caps real rows and rescales grouped heads.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​GroupByTest.java Caps real rows and rescales grouping.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​FirstByTest.java Caps real rows and rescales first-row selection.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​CountByTest.java Recalibrates grouped-count scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​by/​AvgByTest.java Recalibrates average aggregation scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​aggby/​WeightedComboTest.java Caps real rows and rescales weighted combinations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​aggby/​SortedComboTest.java Recalibrates sorted aggregation combinations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​aggby/​PositionalComboTest.java Caps real rows and rescales positional combinations.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​aggby/​CountWhereTest.java Recalibrates conditional-count aggregation scales.
src/​it/​java/​io/​deephaven/​benchmark/​tests/​standard/​aggby/​BasicMathComboTest.java Caps real rows and rescales math combinations.
.github/​workflows/​matrix-exist-remote-benchmarks.yml Exposes the new confirmation matrix profile.
.github/​resources/​release-scale-benchmark.properties Removes the unused warmup setting.
.github/​resources/​nightly-scale-benchmark.properties Removes the unused warmup setting.
.github/​resources/​compare-scale-benchmark.properties Removes the unused warmup setting.
.github/​resources/​adhoc-scale-benchmark.properties Removes the unused warmup setting.
.github/​matrix/​scale-standard.sh Defines three full-suite confirmation passes.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The latest scale corrections require the planned three-pass JVM 25 benchmark-host run to confirm timing targets and heap headroom, which static review cannot establish.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@stanbrub
stanbrub marked this pull request as ready for review November 19, 2026 01:00
Copilot AI balanced review requested due to automatic review settings November 19, 2026 01:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain to block the benchmark recalibration changes.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 19, 2026 01:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the benchmark scaling and shared-data changes.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 19, 2026 17:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the benchmark scaling changes.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 20, 2026 23:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the benchmark scaling and data-loading changes.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 20, 2026 23:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the benchmark scaling and recalibration changes.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 23, 2026 23:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The review reports no active issues with the benchmark scaling and configuration changes.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 24, 2026 01:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues require further changes.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The supplied review reports no active issues requiring resolution for the benchmark scaling and shared-data changes.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The supplied review reports no active issues with the benchmark scaling and runner changes.

No open issues 🎉

Review effort: Balanced

@stanbrub stanbrub changed the title feat: Benchmark scaling feat: DH-23226: Benchmark scaling Nov 24, 2026
@stanbrub
stanbrub merged commit 80b6b34 into deephaven:main Nov 24, 2026
3 checks passed
@stanbrub
stanbrub deleted the benchmark-scaling branch November 24, 2026 04:20
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