Skip to content

Tests: benchmark problems' screen figures on current master (qap5 on CG) - #564

Merged
bodono merged 1 commit into
masterfrom
claude/bench-test-comment
Nov 25, 2026
Merged

bodono merged 1 commit into
masterfrom
claude/bench-test-comment

Conversation

@bodono

@bodono bodono commented Nov 25, 2026

Copy link
Copy Markdown
Member

The qap5 comment in test/problems/test_benchmark_problems.h gave 275 to 1,250 iterations on CG in double precision. That figure came from the screen run before #558, which changed the CPU solver's eigCG as well as the GPU solver's. This PR updates the comment to the figures from the screen re-run on the merged code, and says in the header which code the screen ran on. Comments only: no test, setting or tolerance changes.

What changes

  • qap5: in double precision, 275 iterations on the direct solvers. On CG, 275 to 300 with eigCG and 325 to 550 with DEFLATE_VECTORS=0. In single precision, 250 to 325 (direct solvers).
  • Header: "Screen (Mac, 2026-11-24)" becomes "Screen (Mac, on master of 2026-11-25)". The re-run used the same driver and the same 71 cells as the first screen: 59,009 solves, none failed. The tree it ran on (the Tests: nine benchmark problems (SDP and LP certificates, box-cone QPs) #562 branch with master merged in) is identical to master at 4ccf238.

The rest of the file and the README

Every other figure in the file was checked against current master and still holds:

  • The other eight problems' iteration ranges are the same in the re-run screen as in the comments.
  • The single-precision CG skips were re-run on master from 201 starts, with the caps the comments quote. In single precision deflation is compiled out.
  • GOULDQP2 on CG ("0.3 s, 65,000 to 89,000 CG iterations"): 65,765 to 88,721 CG iterations over 41 starts, and 0.29 to 0.32 s at the default start. eigCG makes no difference on this problem: its counts are identical, start by start, with DEFLATE_VECTORS=0. Without LAPACK it takes 65,735 to 87,254.
  • eigCG still changes the CG work of qap5 and DUALC1, as their comments say. Over 41 starts, DUALC1 takes 201 to 227 CG iterations with eigCG and 1,058 to 1,116 without. qap5 takes 539 to 591 with eigCG and 4,320 to 6,636 without.
  • max_iters is still at least 13 times the most iterations seen. qap5's cap of 20,000 is now 36 times its largest count (550). The cap is unchanged.
  • test/problems/benchmark/README.md quotes no iteration counts, so it does not change.

The problems table with "20,000 (1,250)" for qap5 appears only in #562's description, not in the repository. This PR does not edit that description.

Validation (Mac, Apple M4)

  • run_tests_direct: ALL TESTS PASSED, 106 run and 15 skipped of 121.
  • run_tests_indirect: ALL TESTS PASSED, 103 run and 18 skipped of 121.
  • qap5 in this run: 275 iterations on both.

🤖 Generated with Claude Code

The qap5 comment gave 275 to 1,250 iterations on CG in double precision,
from the screen before the GPU eigCG change (#558), which also changed the
CPU solver's eigCG. The same screen re-run on the merged code (master of
2026-11-25) gives 275 to 300 with eigCG and 325 to 550 with
DEFLATE_VECTORS=0. The comment now says that, and the header's screen line
says which code it ran on.

Every other figure in the file holds on current master:
- the other problems' iteration ranges are those of the re-run screen;
- the single-precision CG skips, re-run on current master from 201 starts:
  qap5 fails 67 of 201 at 6,750 iterations (Accelerate) and 63 (OpenBLAS
  without FMA), infd2 fails 1 of 201 at 6,500 (OpenBLAS without FMA), as
  before;
- GOULDQP2 on CG: 65,765 to 88,721 CG iterations over 41 starts and 0.29 to
  0.32 s at the default start.

Comments only; no test changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bodono
bodono marked this pull request as ready for review November 25, 2026 21:37
@bodono
bodono merged commit 29d96a8 into master Nov 25, 2026
95 checks passed
@bodono
bodono deleted the claude/bench-test-comment branch November 25, 2026 21:37
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.

1 participant