Skip to content

perf: scatter groupby-sum terms directly instead of unstacking#25

Open
FBumann wants to merge 7 commits into
masterfrom
perf/groupby-sum-scatter
Open

perf: scatter groupby-sum terms directly instead of unstacking#25
FBumann wants to merge 7 commits into
masterfrom
perf/groupby-sum-scatter

Merge branch 'master' into perf/groupby-sum-scatter

9808c9a
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded Jun 7, 2026 in 0s

Performance Gate Passed

⚡ 6 improved benchmarks
✅ 73 untouched benchmarks
🆕 59 new benchmarks
⏩ 593 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Memory test_to_lp[nodal_balance-severity=50] 9.2 MB 3.1 MB ×3
Memory test_to_lp[nodal_balance-severity=0] 385.3 KB 135.3 KB ×2.8
Memory test_build[nodal_balance-severity=50] 16.5 MB 7 MB ×2.4
Memory test_to_solver[highs-nodal_balance-severity=50] 12.9 MB 7.2 MB +80.06%
Memory test_to_solver[gurobi-nodal_balance-severity=50] 13.1 MB 7.4 MB +77.77%
Memory test_build[nodal_balance-severity=0] 1.4 MB 1.2 MB +22.41%
🆕 Memory test_to_solver[highs-basic-n=250] N/A 55.1 MB N/A
🆕 Memory test_build[merge_balance-severity=100] N/A 24.2 MB N/A
🆕 Memory test_to_lp[nodal_balance-severity=100] N/A 6 MB N/A
🆕 Memory test_build[masked-n=100] N/A 735.4 KB N/A
🆕 Memory test_build[sparse_network-n=250] N/A 36.6 MB N/A
🆕 Memory test_to_solver[gurobi-knapsack-n=10000] N/A 2.8 MB N/A
🆕 Memory test_build[cumsum-severity=100] N/A 42.5 MB N/A
🆕 Memory test_to_lp[sparse_network-n=250] N/A 34.5 MB N/A
🆕 Memory test_to_lp[knapsack-n=10000] N/A 82.8 KB N/A
🆕 Memory test_to_solver[gurobi-expression_arithmetic-n=250] N/A 41.4 MB N/A
🆕 Memory test_build[knapsack-n=10000] N/A 792.3 KB N/A
🆕 Memory test_to_lp[merge_balance-severity=100] N/A 17.6 MB N/A
🆕 Memory test_to_solver[gurobi-cumsum-severity=100] N/A 75.6 MB N/A
🆕 Memory test_to_lp[piecewise-n=1000] N/A 162.4 KB N/A
... ... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing perf/groupby-sum-scatter (9808c9a) with master (6d47dfa)

Open in CodSpeed

Footnotes

  1. 593 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.