Repository navigation
feat: DH-23226: Benchmark scaling - #446
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 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
Contributor
There was a problem hiding this comment.
🔵 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
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.

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.
sourceandtimedare generated once at 6xscale.row.count, and each test readshead(N)from it. Separate files per row factor are no longer generated.runner.setScaleFactors(static, inc)with the total rows per mode as a multiple ofscale.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).setRowFactor,setRowFactorsand the oldsetScaleFactors(int, int), nowsetMergeFactors, are package-private.timedmerge path: nowselect→merge→update. Merged copies share one materialized table and onlytimestampis materialized per copy.TrainTestRunnerupdated to the new API.scale-standard.shfor full-suite confirmation runs.Tests Completed
scale-standard.sh, 3 passes)Note: rates change for rescaled benchmarks, so expect a one-time trend break in the nightly history.