Skip to content

Add explicit benchmark tag semantics - #4402

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:benchmark-tag-semantics
Aug 28, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:benchmark-tag-semantics

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Draft — please ignore until reviewed by @ChrisRackauckas.

What changed and why

This adds a public tag_kind(tag) classification API for benchmark tags and changes autoplot to identify algorithm families from those semantics. The previous automatic family selection treated any tag present on at most 80% of methods as a family, which could plot traits such as :fifth_order or roles such as :reference while suppressing a real family such as :rk when every method shared it.

Built-in tags are classified as :family, :trait, :role, :provider, :variant, or :domain; unknown tags return :unknown. Packages can specialize DiffEqDevTools.tag_kind(::Val{:custom_tag}), while callers can still pass explicit families to autoplot. The new public API is documented in both OrdinaryDiffEq and DiffEqDevTools, and DiffEqDevTools is bumped from 3.5.0 to 3.6.0.

This is the first unchecked implementation item in the consolidated benchmarking roadmap: #3286.

Regression evidence

Before the implementation, the new semantic tests failed on the unfixed tree:

automatic algorithm tags | 7 7
tag semantics | Error 9/9
UndefVarError: `tag_kind` not defined in `Main`
ERROR: Package DiffEqDevTools errored during testing

With the implementation applied, the same focused test files pass:

automatic algorithm tags | 7/7
tag semantics | 10/10
tags reach the WorkPrecision entries | 5/5
filter_by_tags | 12/12
exclude_by_tags | 3/3
merge_wp_sets | 5/5
wp_area | 2/2
best_by_tag | 7/7
best_of_families | 5/5
autoplot | 13/13
with_autodiff_variants | 15/15
Testing DiffEqDevTools tests passed

The autoplot regression assertions verify that a uniform :rk tag still produces family_rk, while :fifth_order and :reference do not produce family plots.

Verification

  • GROUP=TagSemantics julia +release --project=lib/DiffEqDevTools -e 'using Pkg; Pkg.test()'
    • All 79 focused assertions passed after rebasing onto 468bea34e0.
  • GROUP=Core julia +release --project=lib/DiffEqDevTools -e 'using Pkg; Pkg.test()'
    • The full Core group passed after the final rebase: Benchmark Tests 15/15, ODE AppxTrue 7/7, Analyticless Convergence 7/7, Analyticless Stochastic WP 2/2, Convergence retain_solutions 35/35, Stability Region 7/7, Plot Recipes 58/58, nonlinear work-precision diagrams 6/6, Tagging 42/42, Multiple Error Estimates 12/12, Best-of-Family Selection 42/42, and Timeout 7/7.
  • GROUP=QA julia +release --project=lib/DiffEqDevTools -e 'using Pkg; Pkg.test()'
    • Aqua 15/15; package tests passed after the final rebase.
  • julia +release --project=docs docs/make.jl
    • Doctest, document checks, and rendering completed successfully. Existing page-size warnings and the expected local deployment-detection warning remained. The feature patch was unchanged by the subsequent rebase.
  • /home/crackauc/.juliaup/bin/julia +1.12 -e 'using Runic; exit(Runic.main(ARGS))' -- --check <changed Julia files>
    • Clean after the final rebase.
  • typos <changed files>
    • Clean after the final rebase.
  • git diff --check upstream/master...HEAD
    • Clean after the final rebase.

The feature patch ID remained 8ccf6815a29f14ec186eba13c707a8368a8f8fee across both rebases.

Review notes and unverified paths

The initial built-in classification is API policy and is the main judgment call to review. One-off custom families do not become automatic merely because they are uncommon: they should be passed explicitly or registered through the Val extension point.

I did not run GROUP=Everything, GPU jobs, or Julia pre-release jobs locally. I ran the ModelingToolkit InterfaceII downstream group only on a clean base checkout to classify unrelated failures from the first CI run, not as feature-branch validation.

🤖 Generated with Claude Code
https://chatgpt.com/codex/tasks/01a03caf-aae8-74c3-9a79-53b836434858

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 28, 2026 01:04
@ChrisRackauckas
ChrisRackauckas merged commit ce0306d into SciML:master Aug 28, 2026
122 of 131 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 11, 2026
- Fix definite assignment in ROCK stages (#4321)
- Correct NonlinearSolve downgrade dependency floors (#4394)
- Fix ensemble work-precision error storage (#4390)
- Add explicit benchmark tag semantics (#4402)
- fix: require cache-aware nonlinear solver in PDIRK (#4406)
- fix: accept SciML caches in nlsolve! (#4407)
- Support generic callback event storage (#4398)
- test: account for Hairer4 BLAS variation (#4410)
- Fix Rosenbrock interpolation after callback truncation (#4411)
- Fix weak Platen methods for scalar Wiener processes (#4413)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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