Skip to content

Release v0.12.0: cubic B-splines, threading, three-mass backgrounds and growth - #100

Open
marcobonici wants to merge 58 commits into
mainfrom
develop
Open

marcobonici wants to merge 58 commits into
mainfrom
develop

Conversation

@marcobonici

@marcobonici marcobonici commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

v0.12.0 release candidate (develop → main)

Reactant natural-cubic and Akima interval lookup (7d26f73)

For traced knot vectors, use a batched binary search instead of a knots-by-queries comparison. Native Julia, the natural-cubic polynomial and the public API are unchanged. Tests cover exact knots, extrapolation, changed matrix ordinates/queries and Enzyme pullbacks against ForwardDiff. benchmark/bench_shared_cubic.jl compares three vector calls with one matrix call at the ELG2 shape (69 knots, 4,008 queries).

Downstream CPU validation on one pinned Alcanter core, with unchanged Effort reactant_dev and widened inference weights: public Effort.apply_AP 207–217 → 82–83 µs, AP pullback 379–409 → 273–278 µs. Full ELG2 predictor 316–355 → 189–215 µs; full Wren log posterior + 13 derivatives 625–668 → 495–539 µs, with archived gradients checked at 16 positions plus a repeat. These are warm medians, not chain wall times. Some measurements throttled; no GPU speedup is asserted. Three compiled vector calls remained faster than the matrix call on this CPU. A second run with Effort’s local environment tracking the published develop branch, tested patched-first, reproduced the gain: public Effort AP pullback 380–401 → 274–278 µs, full Wren log posterior + 13 derivatives 617–638 → 497–538 µs (13–22% less time across matched positions). All 79 focused ACE/Effort checks passed.

Matrix natural-cubic spline gradients (89dfdfa): The reverse rule now reads column views instead of copying six slices per curve. In two local runs the complete prepared Mooncake gradient allocated 35–37% fewer bytes across three matrix sizes. At 1,024 knots × 256 curves this was 34.06 MB → 21.37 MB and 4,786 → 178 allocations. GC-inclusive mean runtime fell at all three sizes in both runs, although one median was mixed. Spline values, scalar losses, and gradients of both knot positions and curve values were bit-identical on the tested inputs, including A→B→A preparation reuse. Small Float32/64 gradients agreed with ForwardDiff. All 38 focused interpolation and AD tests passed locally. No API or forward-solver change.

Migration: the two old registry keys are removed, not aliases. The dictionary exposes 16 new scalar models. Rebuild inputs from each model’s ordered metadata and select outputs by label (7 → 11). The old flat nine-vector ended Mnu, w0, wa; the new flat one-mass, default-helium vector ends w0, wa, Neff. One-mass models fix (0.06, 0, 0) eV; degenerate models take a mass sum. sigma8 keys denote total matter at z=0.

Analytic API: pass three physical masses, not a scalar. Hybrid is the default: temperature rescaling below Neff=3.044, radiation at and above the switch, using the radiation-side derivative at equality in Float32 and Float64. Pass temperature explicitly to recover the previous convention. Cold+baryon growth and approximate matter growth are distinct; the latter is not full scale-dependent perturbation growth. Reusable cubic B-spline plans include banded construction and local evaluation.

Validation: matched CLASS fixtures check analytic expansion and distances; separate growth-ODE and CAMB background checks are not independent tests of all 11 neural outputs. Registry checks establish loading and inference, not full-domain accuracy. The archives report internal errors and some nonpositive distance predictions. Independent 10k evaluation and amplitude round trips remain pending. Use the Checks tab for current-head CI; historical counts below apply only to the revisions named. No merge or tag is part of this update.

Historical release notes and validation at earlier revisions (superseded where inconsistent)

v0.12.0 release candidate (develop → main)

Changes for callers

  • The analytic background and growth API takes a w0waCDMCosmology. Pass three physical neutrino masses in eV (zeros allowed); scalar masses, including scalar zero, are no longer accepted. Emulator input conventions and shipped weights are separate and unchanged by this PR.
  • neutrino_prescription=:temperature remains the default. :radiation fixes the neutrino temperature; :hybrid uses temperature scaling below Neff=3.044 and radiation at and above it. The hybrid value is continuous; its derivative at the switch uses the radiation side.
  • Flat-curvature distance derivatives and derivatives with respect to growth query coordinates are repaired. Growth queries must satisfy 1/139 ≤ a ≤ 1.01. CBGrowth() and MatterGrowthApprox() are distinct; the latter is not scale-dependent perturbation growth.
  • Not-a-knot cubic B-splines support reusable plans, vector/matrix values, and AD. Host plans use banded solves and local stencils. Reactant plans have a 64 MiB dense-operator limit. set_threads controls new FFTW plans and host spline solves; it replaces set_fft_threads.
  • Native Mooncake input gradients cover supported frozen Lux Dense chains. Other architectures retain the documented fallback. The optional integration requires Mooncake 0.5.67 or later in the 0.5 series. Zygote is a weak dependency and test extra, not a mandatory direct dependency.
  • Regression fixture payloads are restored from the pinned v4 Zenodo archive. Manifests and checksum/restoration tests stay in git.

Validation and release gate

See the checks on the current head. At a32c9ba, both lower-bound and coverage checks passed; both Julia 1.12/macOS jobs timed out. The follow-up preserves the full matrix and numerical cases, times each top-level suite file, and runs the consolidated Akima edge test in a fresh Julia process on the macOS 1.12 PR lane versus in-process on push. Only this matrix cell has a longer test budget. A timeout is not a passing test. No blanket performance nonregression is claimed.

Package and dependency compatibility, a completed macOS run, and the repository's required approval must be checked before merge. This PR does not create a tag or GitHub release.

Historical review notes and performance evidence (earlier commits, superseded where inconsistent)

Current release scope — updated 2026-11-11

Merge develop into main for v0.12.0. Project.toml is already at 0.12.0.
Current source head: 7a48a98d836ba617f88c111f7ba3a9f2f3c1b612. This PR follows develop, including the B-spline merge from PR #97 and the native Mooncake/frozen-inference changes below. The earlier B-spline scope audit was at c5f9ca06d1cd00a6b224ea505bb36f612477004e; it is not a full audit of every later change.

No tag or GitHub release is created by this PR. Release tagging remains a separate, explicitly authorized action from merged main.

Cubic B-splines and threading

  • Not-a-knot cubic B-spline interpolation through cubic_b_spline_interpolation, CubicBSpline and CubicBSplinePlan: vector/matrix ordinates, scalar/vector evaluation queries, and :clamp / :throw / :zero extrapolation. Plans take a fixed vector query grid. High-level constructors derive their knot vector from the sites; they do not accept custom knots.
  • Public lower-level CubicBSplineBasis, knot/domain/support accessors, basis_row, basis_stencil, basis_matrix, bspline_basis and bspline_coefficients. The low-level basis supports explicit custom knot vectors; basis_matrix currently supports dense storage only.
  • Plain Julia plans store a band factorization and four-entry query stencils rather than a dense query-by-site interpolation operator. Host coefficient solves and pullbacks include guarded specialized solves and parallel handling of large dense Float32/Float64 batches.
  • ForwardDiff, Zygote and Mooncake support derivatives through values, sites and query coordinates. The raw factorization storage is structural, not a differentiable public input.
  • Reactant uses a prepared dense plan operator with a 64 MiB limit. One-shot compiled interpolation supports fixed host sites and dynamic device values/queries, not fully dynamic device sites. Dynamic compiled :throw is unsupported; host-validated fixed plans can use it.
  • set_threads(n) controls FFTW plans created afterwards and the task budget for host B-spline solves/pullbacks. The Julia pool must be provisioned at startup. set_fft_threads is deprecated and forwards to set_threads.

Background/growth changes and compatibility

  • Analytic neutrino backgrounds and growth require exactly three explicit physical masses in eV, including zeros. The legacy scalar analytic mass mode has been removed, including scalar zero. Omitted masses use the explicit massless triple. Earlier text claiming scalar mode is retained is historical and superseded.
  • Differentiable Neff with the explicit temperature/radiation prescriptions and typed CBGrowth() / MatterGrowthApprox() sources. These are intentional thermal prescriptions, not a claim to reproduce CAMB's default hybrid prescription.
  • Growth queries are restricted to the integration interval 1/139 ≤ a ≤ 1.01. Default production ODE tolerances and raw initial-condition growth normalization remain unchanged.
  • Emulator total-mass inputs, trained weights and historical label conventions remain separate from the analytic API. No datasets were regenerated and no emulators retrained.
  • The compiled Akima edge-gradient repair in 5421f07 keeps inactive denominators positive independently of the final selection mask, with unconditional vector/matrix forward and AD regressions.

Native Mooncake input gradients and frozen inference

  • d764e83 adds an explicit input-only reverse rule for stateless, nonempty Lux Dense chains with identity, tanh, or tanh_fast, CPU vectors/matrices and Float32/Float64 inputs/weights. The supported native path does not call ForwardDiff internally. Unsupported architectures retain the explicitly documented legacy ForwardDiff-backed bridge.
  • Prepared inference reuses frozen reverse weights without scanning their contents on every evaluation. Matching-precision weights are borrowed; mixed-precision copies are made once per parameter-identity binding. Activation tapes and cotangents remain invocation-local, and copied preparations have independent bindings. Direct rrule!! retains per-call owned reverse weights.
  • Weights, model and inference states are frozen. Training remains a separate Lux.apply/Lux.Training or SimpleChains API; this rule does not suppress training parameter gradients. Retraining should create a new inference emulator/preparation. In-place mutation of weights under a live preparation, including aliasing an optimizer's writable parameters, is unsupported.
  • Forward evaluation still uses Lux's precision policy; reverse cotangents are projected at each layer, with stable mathematical tanh-tail derivatives. No inference parameters receive cotangents.
  • c1289ba fixes prepared-cache binding for abstractly declared parameter fields by retaining the direct native path, with direct/root/nested regression coverage and a no-ForwardDiff tripwire.
  • Compatibility change: the entire optional Mooncake integration now requires Mooncake ≥0.5.67, <0.6, not just the MLP rule. Its Julia requirements include 1.10.8+, 1.11.6+ and 1.12.1+ within those release series. ACE's base Julia compatibility is unchanged.
  • Added independent text reference fixtures, mixed-precision/preference subprocess tests, prepared root/debug/copy/replay checks, frozen-model identity tests, and training/inference separation checks. Tests run in the normal suite, not behind an environment-variable opt-in.

Lowest-compatible-dependency CI

  • 7a48a98 adds a separate Linux / Julia 1.12 lower-bound job, alongside the existing Julia 1.10/1.11/1.12 × Linux/Windows/macOS matrix.
  • Uses julia-actions/julia-downgrade-compat v2.7.0 pinned by commit, in alldeps mode, including weak/extension dependencies and test extras. No backend is excluded.
  • Runs the full package suite with allow_reresolve: false and force_latest_compatible_version: false, preventing test setup from silently upgrading away from the selected minimum environment. The resolved Project/Manifest are uploaded for diagnosis even when the job fails.
  • This tests a jointly compatible minimum dependency set, not every possible version combination or a claim that all individual minimum versions can coexist. It does not replace the normal CI matrix and does not upload lower-bound coverage into the main coverage report.
  • The new job is awaiting its first result; YAML/static validation is not an executed lower-bound test.

Native-rule validation and performance evidence

  • Narval Julia 1.12.5 full Pkg.test(): 12,863 package checks + 11 fixture checks passed for the frozen-rule candidate. That snapshot also contained unrelated local loader/export edits, so this is not an exact-clean-PR-head certification. An earlier one-hour run timed out; the unchanged two-hour retry passed. Both logs were retained.
  • Shipped-network validation: 2,334 checks over 32 Lux networks and public Capse TT/TE/EE/BB/PP plus aggregate paths, and Effort PyBird/LPT/REPT multipoles plus aggregate paths. A separate pilot passed 94 checks. Actual EmulatorsTrainer training/export/inference coexistence passed 9 checks; this was an API regression test, not training-accuracy certification.
  • Review-fix validation used clean archived d764e83 plus exactly the five repair files: reproduced the original abstract-parameter failure, then passed 1,266 native checks, four isolated precision-policy runs and 11 fixture checks. Those five file blobs match committed c1289ba.
  • Independent Astra High and Opus 5.5 High source reviews initially requested two fixes (abstract parameter binding and old-Mooncake test assumptions). After the repairs, Astra approved and Opus approved with nits, conditional on runtime validation and current-head CI. These are review findings, not formal GitHub merge approval or performance certification.

Matched ten-second BenchmarkTools blocks, four fresh A/B/B/A processes, one physical CPU and BLAS thread, prepared value-and-input-gradient calls, with all GC samples retained:

Workload Allocated bytes: old bridge → frozen native Allocation count Median time (ms) Mean including GC (ms)
Capse Lux TT 1,455,312 → 1,343,440 209 → 189 0.508 → 0.449 0.727 → 0.694
Effort PyBird monopole 709,952 → 317,152 542 → 482 0.350 → 0.184 0.443 → 0.224

Allocated bytes fell 7.7% / 55.3% versus the old bridge. Effort's median passed the stability gate; Capse's candidate median and both workloads' GC-inclusive means did not meet the predeclared 10% block-spread threshold. Mean-time nonregression remains inconclusive despite the favorable observations; no universal speedup is claimed. Effort D/bias were fixed, and these are not complete likelihood benchmarks. Capse's default SimpleChains backend is not optimized by this Lux-only rule.

Current CI status and companion Python scope

Current-head checks remain authoritative. The lower-bound CI addition has just been pushed; earlier passing checks do not certify 7a48a98. At the preceding c1289ba snapshot, both documentation jobs and Julia 1.10/1.11 benchmark jobs passed, while package-test results were still pending. Codecov gates failed: patch coverage 94.80% against a 99.13% target; project coverage 96.92% (−2.22 percentage points). The new lux_mlp.jl reported 98.92% coverage, one uncovered line; most uncovered changed lines belong to the broader release PR. Coverage thresholds have not been weakened. This PR is not claimed CI-green or merge-ready.

Companion Python release: jaxace #57, current head 368596b916ae11265883cfa5f8ce3d65f70693cf.

  • That PR provides the same high-level not-a-knot interpolation/spline/plan interfaces, vector/matrix values, extrapolation modes and JAX differentiation, but not the complete Julia low-level basis/stencil/coefficient API or compact host-plan implementation.
  • The pushed JAX implementation still uses dense construction and dense plan operators, with documented workspace/operator limits. Its local banded-construction candidate is uncommitted and not included in Mooncake support #57; even that candidate retains dense plan application and dense query-basis evaluation.
  • A bounded audit loaded the actual committed JAX source, not the modified working tree. All three public forward paths matched existing frozen Julia references at N=4,5,6,8,81 with rtol=atol=1e-12. Reused JIT plan construction/application and live value/site/query gradients were exercised on JAX 0.4.38. Those fixtures identify Julia 132a6e5 plus recorded local source hashes; this was not a fresh numerical rerun of the exact merge tree.

Outstanding qualifications

No blanket cross-language feature/performance parity or universal speedup is claimed. The historical review below records Zygote performance findings, an uncommitted positional-call optimization, and a transverse-distance derivative issue at exactly Ωk0=0. This B-spline scope audit does not revalidate those findings at the new head or claim they are fixed. User-local background/loader/test edits remain outside this PR.

Historical release review and measurements (older heads; superseded where noted above)

Release preparation

Merge develop into main for v0.12.0, following released v0.11.0. Project.toml is bumped to 0.12.0.

This is a pre-1.0 minor release. It adds public thermal and growth prescriptions and deliberately changes the explicit vector-mass convention. No tag or GitHub release is created by this PR. Tag the merged main commit later.

Reviewed head: 1ece493 (1ece4938d9814ea92b714708f5bd42825d5e7edd). Companion Python release: jaxace v0.8.0, CosmologicalEmulators/jaxace#57

Changes

  • Backgrounds for exactly three individual neutrino masses (zeros allowed). They use the CLASS thermal anchor and account for the massless remainder correctly.
  • Differentiable Neff with explicit :temperature / :radiation prescriptions across backgrounds, distances and growth.
  • Typed CBGrowth() (the unchanged default) and MatterGrowthApprox() growth sources, selected outside the numerical ODE parameter vector.
  • The legacy scalar-mν thermal model, default ODE tolerances and raw initial-condition growth normalisation are kept. Legacy scalar mν is intentionally a different model from (m, 0, 0).
  • Text fixtures from scalar, CLASS, CAMB, Julia and JAX references, with their generators. Focused tests run unconditionally in the standard suite.

Review fixes (4017d90, 1ece493)

  • The historical nine-argument positional w0waCDMCosmology constructor is restored, with the new thermal defaults and Dual-valued fields.
  • Growth domain. D_z, f_z and D_f_z now raise ArgumentError for queries outside the integration interval 1/139 ≤ a=1/(1+z) ≤ 1.01, including non-finite redshifts. Previously such queries depended on solver-specific saveat behaviour. The exact endpoints are accepted and tested. Background and distance functions are not restricted.
  • Prepared ForwardDiff and Mooncake gradients are reused at changed Ωcb, h, masses and Neff, and at zero masses, with componentwise comparisons. There are per-mass finite-difference checks for both sources and both prescriptions.
  • test/fixtures/neutrino_neff/ad_convergence.md is a forward-vs-reverse agreement report: 54 rows covering E, four distance integration orders and four growth tolerances, for both prescriptions. It is not an independent accuracy guarantee.

Compatibility and physics notes

  • The explicit mass-vector path now means three physical masses in eV, not a naive species sum. Previous vector-path outputs can change.
  • Nonstandard Neff requires the explicit three-mass path. The two thermal presets are intentional models, not CAMB's default hybrid prescription.
  • MatterGrowthApprox adds ρν(masses) − ρν(massless reference) for all species at the same temperature and Neff. It is neither ρν − 3pν nor scale-dependent total-matter perturbation growth.
  • Growth now rejects out-of-domain redshifts. This is a pre-1.0 behaviour change.
  • Trained emulator inputs are not extended. No datasets were regenerated and no emulators were retrained.

Validation

Immutable evidence. All 16 pre-existing ACE fixture files are byte-for-byte unchanged across the review follow-ups; the independent reviewer compared them. New references were added alongside them, not substituted.

Cross-language. 40 model combinations, 200 redshift rows. Maximum relative differences: E ~1.3e-12, raw D ~6.3e-11, f ~2.8e-10. The saved CLASS growth references check CLASS's background-growth ODE, not perturbation growth.

Full Pkg.test() at 1ece493, Julia 1.12.6.

Run Result
Independent reviewer, clean exact-tree checkout 3330 passed (14m09s)
Maintainer's local working copy 3332 passed. The two extra assertions come from unrelated, uncommitted local loader edits that are not part of this PR.

The reviewer also re-ran generate_ad_convergence.jl, and all 54 rows reproduced exactly.

Current-head CI at 1ece493: all 23 checks reported SUCCESS at snapshot 2026-10-04 21:35 UTC.

Performance (separate from correctness)

  1. Julia Zygote regression introduced by this PR (open). The PR benchmark job at 1ece493 compares main with the PR head. On the legacy scalar-mν functions, Mooncake, ForwardDiff and primal timings are unchanged. Zygote is slower:

    Benchmark (main / PR time ratio; lower means the PR is slower) Julia 1.10 Julia 1.11 Julia 1.12
    zygote_r_z (100 redshifts) 0.75 (10.5 → 13.9 ms) 0.62 (26.2 → 42.2 ms) 0.65 (32.7 → 50.5 ms)
    single_z/zygote_r_z 0.76 (0.141 → 0.187 ms) 0.70 0.74
    zygote_D_z, zygote_f_z (direct and DI) 0.93–0.94 0.80–0.86 0.84–0.87

    Distances: diagnosed, with an uncommitted local follow-up. Every internal keyword hop costs extra in Zygote's backward pass, and each extra keyword adds to that cost. This PR forwards Neff and neutrino_prescription through every r_z → r̃_z → E_a hop, once per redshift. Marking only the input validation as non-differentiable recovered about 3%, so validation is not the main cost.

    A local follow-up passes positional arguments on those internal hops. Public keyword signatures, validation, defaults and AD inputs are unchanged. On Julia 1.12.6 (laptop, one pinned core, two reps), direct Zygote r_z over 100 redshifts went from ~18 ms (main) and ~28 ms (1ece493) to ~4.5 ms. Values and Zygote/ForwardDiff gradients were string-identical across all three versions. Mooncake, ForwardDiff and primal timings did not change.

    This follow-up is not yet pushed or accepted. The CI results above do not cover it. It still needs independent review, a push and a fresh CI benchmark run. Local tests of that uncommitted tree:

    • focused test_args=["neutrino_neff"]: 1052/1052, including 250 new Zygote/ForwardDiff/Mooncake parity and validation assertions;
    • full Pkg.test(): 3582/3582, which is 3330 committed + 2 unrelated local loader assertions + 250 new ones.

    Growth: still regressed, not resolved. The D_z/f_z Zygote slowdown comes from code outside the ODE right-hand side. It shows up as about 1,000 more allocations in pullback construction plus a slower adjoint backward pass. Making the RHS calls positional changed nothing. The mechanism was not isolated within the time-boxed investigation, and maintainer acceptance or a follow-up is needed.

  2. JAX scalar reverse-mode growth tradeoff. This is a separate, disclosed accuracy/cost tradeoff in jaxace Mooncake support #57 and does not apply to this Julia package.

This PR makes no blanket "no performance regression" claim.

Known pre-existing issue (not introduced or fixed here)

At exactly Ωk0 = 0, gradients of the transverse distances (dM_z, dA_z, dL_z) are unreliable. ForwardDiff returns NaN, and Zygote (through the S_of_K rrule limit) and Mooncake disagree on ∂/∂Ωk0. All other components agree. The same behaviour occurs on main. It needs a separate fix. The new parity test uses Ωk0 = -0.01 only because of this singular point; that choice does not fix the issue.

Related release

jaxace v0.8.0 preparation: CosmologicalEmulators/jaxace#57. Its separate JAX scalar reverse-mode growth tradeoff is described there.

marcobonici and others added 13 commits August 6, 2026 18:48
Add traced vector and matrix B-spline evaluation, preserve extrapolation semantics, and update stencil AD rules and regression coverage.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Add 12 tests covering: Reactant Enzyme gradient through
CubicBSplinePlan (vector + matrix), Reactant Enzyme
gradient through stencil evaluation, Float32 and ForwardDiff
Dual plan support, matrix plan extrapolation policies,
and Reactant CubicBSpline with non-uniform knots.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Replace scalar band substitution with an affine scan so Reactant plans remain dynamic and differentiable while substantially reducing vector execution cost. Add deterministic solve, shape, Float32, and Enzyme regression coverage plus the performance investigation record.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Register the existing B-spline ChainRules rules with Mooncake and add
plan-specific Akima and cubic-spline pullbacks. This removes large generic
reverse-mode tapes from prepared vector and matrix plans. Add dense-plan,
plain-Julia benchmark, JET, and DifferentiationInterface coverage.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Prepare fixed-grid Reactant B-spline plans as a single dense interpolation
operator instead of silently falling back to the affine scan. This cuts
matrix runtime and compilation substantially while retaining the scan for
direct coefficient solves and guarding excessive operator storage.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Derive the not-a-knot basis exclusively from interpolation sites and make
endpoint clamping the default extrapolation behavior. Remove unsupported
custom-knot API branches, tests, and obsolete reference fixtures while
retaining explicit strict and zero extrapolation policies.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Keep host B-spline plans lean by constructing dense interpolation operators
only during Reactant adaptation. Remove the obsolete threshold and sentinel
state, and require dense-plan Enzyme gradients to pass without the old
failure fallback.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Advance the minor version for the new cubic B-spline interpolation API and
its Julia, AD, and Reactant support.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Ensure exported spline and plan helpers propagate site and query derivatives consistently across ChainRules, Mooncake, and Reactant while keeping dense-plan preparation bounded and tested.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Preserve scalar behavior, expose explicit thermal models and typed growth sources, and include solver and cross-language fixtures with forward/reverse AD checks.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Use a pre-1.0 minor release to signal the new prescriptions and changed explicit three-mass convention.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
@codecov

codecov Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.18151% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.38%. Comparing base (d02354d) to head (7d26f73).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
ext/MooncakeExt/MooncakeExt.jl 93.79% 8 Missing ⚠️
src/cubic_b_spline.jl 99.27% 4 Missing ⚠️
ext/BackgroundCosmologyExt/growth_queries.jl 97.50% 2 Missing ⚠️
ext/ExtReactant/reactant_splines.jl 99.52% 2 Missing ⚠️
ext/MooncakeExt/lux_mlp.jl 98.92% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
+ Coverage   99.13%   99.38%   +0.24%     
==========================================
  Files          13       21       +8     
  Lines        1852     3716    +1864     
==========================================
+ Hits         1836     3693    +1857     
- Misses         16       23       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Benchmark Results (Julia v1.10)

Time benchmarks
a90fa44... 7d26f73... a90fa44... / 7d26f73...
akima/components/coefficients_large 8.39 ± 1.9 μs 10.2 ± 0.93 μs 0.819 ± 0.2
akima/components/coefficients_medium 2.55 ± 4.5 μs 6.69 ± 1.7 μs 0.381 ± 0.68
akima/components/coefficients_small 0.912 ± 0.3 μs 2.11 ± 1.6 μs 0.433 ± 0.37
akima/components/slopes_large 6.37 ± 4.6 μs 2.41 ± 0.37 μs 2.65 ± 1.9
akima/components/slopes_medium 1.68 ± 0.24 μs 1.66 ± 0.24 μs 1.01 ± 0.2
akima/components/slopes_small 0.167 ± 0.047 μs 0.166 ± 0.063 μs 1.01 ± 0.48
akima/forward/matrix_medium 24.2 ± 1.5 μs 26.4 ± 12 μs 0.914 ± 0.4
akima/forward/matrix_small 6.17 ± 0.88 μs 11.2 ± 3.2 μs 0.55 ± 0.17
akima/forward/vector_large 0.0349 ± 0.0017 ms 0.0343 ± 0.0015 ms 1.02 ± 0.066
akima/forward/vector_medium 7.56 ± 5.5 μs 12.5 ± 5.4 μs 0.604 ± 0.51
akima/forward/vector_small 2.78 ± 1.6 μs 3.01 ± 2.1 μs 0.922 ± 0.83
akima/gradients/comparison/di_forwarddiff_medium 0.267 ± 0.027 ms 0.291 ± 0.018 ms 0.92 ± 0.11
akima/gradients/comparison/di_mooncake_medium 19.6 ± 17 μs 0.0338 ± 0.015 ms 0.581 ± 0.55
akima/gradients/comparison/di_zygote_medium 19.9 ± 16 μs 0.0356 ± 0.0053 ms 0.559 ± 0.47
akima/gradients/comparison/forward_pass 12.7 ± 5.8 μs 12.7 ± 2.2 μs 1 ± 0.49
akima/gradients/comparison/forwarddiff_medium 0.265 ± 0.028 ms 0.284 ± 0.018 ms 0.931 ± 0.12
akima/gradients/comparison/zygote_medium 20.4 ± 17 μs 0.0358 ± 0.014 ms 0.569 ± 0.51
akima/gradients/di_forwarddiff/vector_medium 0.274 ± 0.02 ms 0.286 ± 0.017 ms 0.958 ± 0.089
akima/gradients/di_zygote/matrix_medium 0.0893 ± 0.0042 ms 0.113 ± 0.041 ms 0.789 ± 0.29
akima/gradients/di_zygote/vector_medium 0.0327 ± 0.017 ms 0.0357 ± 0.0037 ms 0.916 ± 0.48
akima/gradients/forwarddiff/matrix_medium 16.8 ± 1.5 ms 17.9 ± 2.9 ms 0.941 ± 0.17
akima/gradients/forwarddiff/matrix_small 0.674 ± 0.094 ms 0.757 ± 0.03 ms 0.89 ± 0.13
akima/gradients/forwarddiff/vector_large 6.35 ± 1.3 ms 6.03 ± 0.39 ms 1.05 ± 0.23
akima/gradients/forwarddiff/vector_medium 0.257 ± 0.026 ms 0.283 ± 0.018 ms 0.911 ± 0.11
akima/gradients/forwarddiff/vector_small 14.6 ± 21 μs 0.0339 ± 0.021 ms 0.432 ± 0.67
akima/gradients/mooncake/matrix_medium 0.0917 ± 0.0041 ms 0.103 ± 0.04 ms 0.891 ± 0.35
akima/gradients/mooncake/matrix_small 23.2 ± 21 μs 0.0411 ± 0.01 ms 0.564 ± 0.52
akima/gradients/mooncake/vector_large 0.117 ± 0.0054 ms 0.126 ± 0.0053 ms 0.928 ± 0.058
akima/gradients/mooncake/vector_medium 19.6 ± 16 μs 0.0337 ± 0.014 ms 0.58 ± 0.54
akima/gradients/mooncake/vector_small 5.4 ± 5.4 μs 8.77 ± 5.5 μs 0.616 ± 0.73
akima/gradients/zygote/matrix_medium 0.0896 ± 0.0035 ms 0.11 ± 0.043 ms 0.818 ± 0.32
akima/gradients/zygote/matrix_small 25.4 ± 19 μs 0.0464 ± 0.01 ms 0.548 ± 0.43
akima/gradients/zygote/vector_large 0.0842 ± 0.0042 ms 0.106 ± 0.0069 ms 0.792 ± 0.065
akima/gradients/zygote/vector_medium 0.0329 ± 0.017 ms 0.0359 ± 0.0039 ms 0.917 ± 0.49
akima/gradients/zygote/vector_small 5.23 ± 4.5 μs 11.2 ± 2.5 μs 0.468 ± 0.41
akima/scaling/eval_10 7.66 ± 6 μs 8.38 ± 2.1 μs 0.915 ± 0.75
akima/scaling/eval_100 4.99 ± 6.1 μs 10.2 ± 0.9 μs 0.488 ± 0.59
akima/scaling/eval_1000 20.5 ± 6 μs 25.5 ± 2.9 μs 0.804 ± 0.25
akima/scaling/eval_250 12 ± 6.1 μs 12.5 ± 5.5 μs 0.954 ± 0.64
akima/scaling/eval_50 8.66 ± 6 μs 9.14 ± 2.2 μs 0.947 ± 0.7
akima/scaling/eval_500 12.2 ± 6.1 μs 17 ± 2.2 μs 0.716 ± 0.37
akima/scaling/nodes_10 3.31 ± 1.7 μs 2.38 ± 1.6 μs 1.39 ± 1.2
akima/scaling/nodes_100 10.1 ± 6 μs 10.2 ± 0.78 μs 0.995 ± 0.6
akima/scaling/nodes_200 7.8 ± 12 μs 17.6 ± 2.8 μs 0.444 ± 0.68
akima/scaling/nodes_25 4.95 ± 1.6 μs 2.77 ± 1.5 μs 1.79 ± 1.1
akima/scaling/nodes_50 5.65 ± 3.8 μs 5.16 ± 3.4 μs 1.1 ± 1
akima/scaling/nodes_500 14.1 ± 1.4 μs 14.8 ± 1 μs 0.953 ± 0.11
akima_spline/plan_512_to_8999 0.0674 ± 0.0037 ms 0.068 ± 0.0036 ms 0.991 ± 0.075
akima_spline/plan_construct_512_to_8999 0.244 ± 0.011 ms 0.242 ± 0.01 ms 1.01 ± 0.061
akima_spline/pure_512_to_8999 0.248 ± 0.0092 ms 0.246 ± 0.009 ms 1.01 ± 0.053
chebyshev/forward/matrix_medium 8.11 ± 0.5 μs 8.15 ± 2.1 μs 0.995 ± 0.26
chebyshev/forward/matrix_small 2.39 ± 0.23 μs 2.4 ± 0.23 μs 0.994 ± 0.13
chebyshev/forward/polynomials_medium 0.0629 ± 0.0067 ms 0.0457 ± 0.0093 ms 1.38 ± 0.32
chebyshev/forward/polynomials_small 4.84 ± 3.2 μs 2.64 ± 0.59 μs 1.84 ± 1.3
chebyshev/forward/vector_large 31.6 ± 1.8 μs 0.0321 ± 0.0023 ms 0.984 ± 0.091
chebyshev/forward/vector_medium 1.32 ± 0.3 μs 0.946 ± 1.4 μs 1.4 ± 2.2
chebyshev/forward/vector_small 0.334 ± 0.008 μs 0.334 ± 0.023 μs 1 ± 0.073
chebyshev/gradients/forwarddiff/vector_medium 5.04 ± 0.18 ms 4.99 ± 0.11 ms 1.01 ± 0.041
chebyshev/gradients/forwarddiff/vector_small 0.201 ± 0.011 ms 0.2 ± 0.0069 ms 1 ± 0.065
chebyshev/gradients/mooncake/vector_medium 3.22 ± 1.2 μs 2.78 ± 0.52 μs 1.16 ± 0.49
chebyshev/gradients/mooncake/vector_small 1.1 ± 1.5 μs 1.02 ± 0.13 μs 1.08 ± 1.4
chebyshev/gradients/zygote/vector_medium 3.5 ± 1.2 μs 3 ± 0.45 μs 1.17 ± 0.43
chebyshev/gradients/zygote/vector_small 0.773 ± 1.4 μs 1.39 ± 0.22 μs 0.555 ± 1
chebyshev/multidim/forward_2d 3.85 ± 0.98 μs 3.69 ± 0.85 μs 1.04 ± 0.36
chebyshev/multidim/zygote_2d 13.3 ± 1.7 μs 8.53 ± 1.2 μs 1.56 ± 0.3
cubic/components/coefficients_large 19.9 ± 2.4 μs 20.3 ± 1.2 μs 0.98 ± 0.13
cubic/components/coefficients_medium 4.38 ± 0.71 μs 5.02 ± 4.3 μs 0.872 ± 0.76
cubic/components/coefficients_small 1.23 ± 0.33 μs 1.3 ± 0.51 μs 0.941 ± 0.45
cubic/components/eval_large 25.6 ± 1 μs 22.9 ± 0.83 μs 1.12 ± 0.06
cubic/components/eval_medium 4.71 ± 1.4 μs 4.68 ± 0.28 μs 1.01 ± 0.31
cubic/components/eval_small 0.739 ± 0.015 μs 0.719 ± 0.033 μs 1.03 ± 0.052
cubic/forward/matrix_medium 0.0369 ± 0.0019 ms 0.037 ± 0.0014 ms 0.997 ± 0.064
cubic/forward/matrix_small 7.02 ± 1.6 μs 7.61 ± 2.4 μs 0.923 ± 0.36
cubic/forward/vector_large 0.0439 ± 0.0071 ms 0.0442 ± 0.0018 ms 0.992 ± 0.17
cubic/forward/vector_medium 9.35 ± 1 μs 9.47 ± 3.7 μs 0.987 ± 0.4
cubic/forward/vector_small 3.09 ± 1.6 μs 3.15 ± 2.5 μs 0.983 ± 0.93
cubic/gradients/comparison/forward_pass 9.25 ± 1.2 μs 9.75 ± 4 μs 0.949 ± 0.41
cubic/gradients/comparison/forwarddiff_medium 0.27 ± 0.017 ms 0.276 ± 0.015 ms 0.977 ± 0.084
cubic/gradients/comparison/mooncake_medium 22.3 ± 1.3 μs 22.6 ± 12 μs 0.987 ± 0.51
cubic/gradients/comparison/zygote_medium 24.9 ± 2.4 μs 26.1 ± 13 μs 0.953 ± 0.48
cubic/gradients/forwarddiff/matrix_medium 23 ± 1.1 ms 23.2 ± 0.83 ms 0.99 ± 0.06
cubic/gradients/forwarddiff/matrix_small 0.902 ± 0.038 ms 0.913 ± 0.029 ms 0.989 ± 0.052
cubic/gradients/forwarddiff/vector_large 6.42 ± 0.9 ms 6.55 ± 0.95 ms 0.98 ± 0.2
cubic/gradients/forwarddiff/vector_medium 0.27 ± 0.017 ms 0.276 ± 0.016 ms 0.978 ± 0.085
cubic/gradients/forwarddiff/vector_small 12.5 ± 1.2 μs 12.9 ± 6.8 μs 0.97 ± 0.52
cubic/gradients/mooncake/matrix_medium 0.0961 ± 0.0038 ms 0.0889 ± 0.0035 ms 1.08 ± 0.06
cubic/gradients/mooncake/matrix_small 19.8 ± 1 μs 17.6 ± 2.7 μs 1.12 ± 0.18
cubic/gradients/mooncake/vector_large 0.141 ± 0.0064 ms 0.139 ± 0.0064 ms 1.01 ± 0.065
cubic/gradients/mooncake/vector_medium 22.1 ± 1.5 μs 22.6 ± 13 μs 0.975 ± 0.54
cubic/gradients/mooncake/vector_small 5.2 ± 3.2 μs 5.21 ± 3.1 μs 0.999 ± 0.86
cubic/gradients/zygote/matrix_medium 0.099 ± 0.0047 ms 0.0911 ± 0.0034 ms 1.09 ± 0.066
cubic/gradients/zygote/matrix_small 22.5 ± 1.7 μs 21.5 ± 6.9 μs 1.05 ± 0.34
cubic/gradients/zygote/vector_large 0.148 ± 0.0071 ms 0.128 ± 0.0073 ms 1.15 ± 0.086
cubic/gradients/zygote/vector_medium 24.9 ± 7.8 μs 26.5 ± 14 μs 0.936 ± 0.57
cubic/gradients/zygote/vector_small 8.48 ± 4.2 μs 11.3 ± 5.6 μs 0.75 ± 0.52
cubic/scaling/eval_10 4.45 ± 0.41 μs 4.85 ± 3.7 μs 0.918 ± 0.71
cubic/scaling/eval_100 6.26 ± 4.3 μs 9.12 ± 4.6 μs 0.686 ± 0.59
cubic/scaling/eval_1000 25 ± 2.7 μs 23.3 ± 3.5 μs 1.07 ± 0.2
cubic/scaling/eval_250 9.03 ± 0.55 μs 9.39 ± 3.5 μs 0.961 ± 0.37
cubic/scaling/eval_50 5.3 ± 0.45 μs 5.58 ± 4.3 μs 0.949 ± 0.73
cubic/scaling/eval_500 14.1 ± 1.8 μs 13.9 ± 2.9 μs 1.02 ± 0.24
cubic/scaling/nodes_10 3.24 ± 1.7 μs 3.22 ± 1.5 μs 1.01 ± 0.72
cubic/scaling/nodes_100 6.34 ± 3.8 μs 8.98 ± 4.6 μs 0.706 ± 0.56
cubic/scaling/nodes_200 10.5 ± 0.75 μs 10.7 ± 7.5 μs 0.977 ± 0.69
cubic/scaling/nodes_25 2.96 ± 1.3 μs 4.05 ± 1.5 μs 0.731 ± 0.42
cubic/scaling/nodes_50 3.83 ± 0.36 μs 4.1 ± 2.6 μs 0.933 ± 0.59
cubic/scaling/nodes_500 21.7 ± 2.1 μs 23.3 ± 1.2 μs 0.932 ± 0.1
cubic_spline/construct_512 21.6 ± 1.9 μs 20.7 ± 1.4 μs 1.04 ± 0.11
cubic_spline/plan_512_to_8999 0.161 ± 0.012 ms 0.16 ± 0.0094 ms 1 ± 0.095
cubic_spline/plan_construct_512_to_8999 5.07 ± 0.069 ms 5.02 ± 0.11 ms 1.01 ± 0.026
cubic_spline/prepared_512_to_8999 0.241 ± 0.0088 ms 0.243 ± 0.0081 ms 0.992 ± 0.049
cubic_spline/pure_512_to_8999 0.265 ± 0.0085 ms 0.265 ± 0.0089 ms 1 ± 0.046
normalization/matrix 25.9 ± 3.3 μs 20.5 ± 1.1 μs 1.26 ± 0.17
normalization/vector 0.14 ± 0.017 μs 0.132 ± 0.007 μs 1.06 ± 0.14
running/lux 3.27 ± 0.35 μs 3.52 ± 0.97 μs 0.928 ± 0.27
running/simplechains 2.47 ± 0.091 μs 2.39 ± 0.16 μs 1.03 ± 0.079
gradients/single_z/forward_D_z 0.0604 ± 0.0044 ms
background/dA_z_struct 1.98 ± 0.12 μs
vectorization/E_z_comprehension 6.24 ± 0.23 μs
background/E_z_lowz 0.249 ± 0.006 μs
vectorization/dM_z_scalar_loop 0.0726 ± 0.0064 ms
cubic_b_spline/basis_row_preselected 0.059 ± 0.003 μs
vectorization/dL_z_vectorized 0.0449 ± 0.0024 ms
vectorization/f_z_comprehension 2.05 ± 0.063 ms
gradients/forward_D_z 0.0804 ± 0.0081 ms
vectorization/dA_z_scalar_loop 0.0725 ± 0.0061 ms
vectorization/dL_z_comprehension 0.0727 ± 0.0063 ms
vectorization/r_z_vectorized 0.0443 ± 0.0024 ms
vectorization/r_z_scalar_loop 0.0704 ± 0.0061 ms
cubic_b_spline/factorization_512 25 ± 0.72 μs
vectorization/dL_z_scalar_loop 0.0721 ± 0.014 ms
gradients/di_zygote_f_z 0.942 ± 0.06 ms
gradients/single_z/forward_r_z 1.9 ± 0.14 μs
gradients/zygote_f_z 0.974 ± 0.077 ms
cubic_b_spline/solve_vector_512 7.54 ± 0.29 μs
gradients/scaling/forwarddiff_D_z_small 0.0975 ± 0.0058 ms
gradients/single_z/di_mooncake_r_z 17 ± 1.3 μs
vectorization/E_z_vectorized 3.51 ± 0.1 μs
vectorization/dM_z_comprehension 0.0732 ± 0.0071 ms
cubic_b_spline/basis_stencil_512_to_8999 0.29 ± 0.013 ms
gradients/di_zygote_D_z 0.955 ± 0.076 ms
vectorization/D_z_vectorized 0.0746 ± 0.0049 ms
background/D_f_z_struct 0.0679 ± 0.004 ms
vectorization/f_z_scalar_loop 2.07 ± 0.063 ms
background/E_z_struct 0.254 ± 0.006 μs
gradients/forward_r_z 0.235 ± 0.028 ms
cubic_b_spline/plan_apply_128 18.3 ± 0.92 μs
background/E_z_highz 0.249 ± 0.008 μs
gradients/forward_f_z 0.0821 ± 0.0087 ms
vectorization/D_z_comprehension 2.07 ± 0.064 ms
vectorization/S_of_K_vectorized 0.239 ± 0.003 μs
gradients/single_z/forwarddiff_f_z 0.0945 ± 0.0053 ms
vectorization/f_z_vectorized 0.0753 ± 0.0046 ms
vectorization/S_of_K_scalar_loop 0.243 ± 0.009 μs
gradients/di_mooncake_f_z 0.61 ± 0.02 ms
vectorization/D_f_z_comprehension 2.06 ± 0.065 ms
gradients/single_z/forward_f_z 0.0606 ± 0.0048 ms
gradients/parameter_sensitivity/lcdm_D_z 0.124 ± 0.006 ms
vectorization/D_z_scalar_loop 2.07 ± 0.059 ms
background/E_z_construct_struct 0.262 ± 0.008 μs
background/dL_z_lowz 1.99 ± 0.14 μs
gradients/zygote_D_z 0.921 ± 0.049 ms
vectorization/D_f_z_scalar_loop 2.06 ± 0.061 ms
background/dL_z_struct 1.99 ± 0.13 μs
gradients/parameter_sensitivity/w0wa_D_z 0.132 ± 0.0072 ms
gradients/forwarddiff_D_z 0.124 ± 0.0072 ms
gradients/zygote_r_z 0.12 ± 0.0041 s
gradients/single_z/di_mooncake_f_z 0.339 ± 0.016 ms
gradients/single_z/forwarddiff_D_z 0.0923 ± 0.0044 ms
vectorization/dM_z_vectorized 0.0449 ± 0.003 ms
background/r_z_struct 1.91 ± 0.12 μs
cubic_b_spline/construct_512 0.0359 ± 0.0013 ms
cubic_b_spline/plan_construct_3000 0.756 ± 0.031 ms
vectorization/D_f_z_vectorized 0.0752 ± 0.0049 ms
background/dL_z_vector 0.073 ± 0.0064 ms
gradients/scaling/di_mooncake_D_z_small 0.397 ± 0.02 ms
gradients/scaling/zygote_D_z_large 1.72 ± 0.079 ms
gradients/parameter_sensitivity/curved_D_z 0.125 ± 0.007 ms
gradients/scaling/forward_D_z_large 0.146 ± 0.012 ms
vectorization/r_z_comprehension 0.0707 ± 0.0064 ms
background/dL_z_construct_struct 2.03 ± 0.17 μs
gradients/single_z/zygote_f_z 0.658 ± 0.025 ms
cubic_b_spline/eval_vector_8999 0.304 ± 0.014 ms
gradients/di_zygote_r_z 0.121 ± 0.0072 s
cubic_b_spline/plan_construct_512_to_8999 0.335 ± 0.016 ms
gradients/forwarddiff_f_z 0.125 ± 0.006 ms
cubic_b_spline/plan_512_to_8999 24.2 ± 1.1 μs
cubic_b_spline/plan_construct_128 0.257 ± 0.012 ms
gradients/di_mooncake_r_z 1.22 ± 0.032 ms
gradients/single_z/zygote_D_z 0.658 ± 0.027 ms
background/D_z_struct 0.0677 ± 0.0038 ms
cubic_b_spline/basis_row_search 0.07 ± 0.003 μs
vectorization/E_z_scalar_loop 6.22 ± 0.11 μs
cubic_b_spline/plan_apply_3000 0.0596 ± 0.0023 ms
gradients/di_forwarddiff_f_z 0.125 ± 0.0061 ms
gradients/scaling/di_mooncake_D_z_large 1.42 ± 0.064 ms
gradients/single_z/zygote_r_z 1.3 ± 0.043 ms
gradients/di_forwarddiff_r_z 0.336 ± 0.058 ms
background/E_z_vector 6.5 ± 0.22 μs
background/Ωma_struct 0.267 ± 0.013 μs
cubic_b_spline/eval_scalar 0.078 ± 0.005 μs
background/E_a_struct 0.25 ± 0.009 μs
cubic_b_spline/reactant_stencil 0.226 ± 0.0091 ms
gradients/scaling/forwarddiff_D_z_large 0.251 ± 0.022 ms
background/D_z_construct_struct 0.0678 ± 0.004 ms
gradients/single_z/forwarddiff_r_z 2.87 ± 0.24 μs
gradients/single_z/di_mooncake_D_z 0.338 ± 0.016 ms
vectorization/dA_z_comprehension 0.0722 ± 0.014 ms
vectorization/dA_z_vectorized 0.045 ± 0.0027 ms
background/f_z_struct 0.068 ± 0.004 ms
gradients/scaling/forward_D_z_small 0.0633 ± 0.0039 ms
gradients/di_mooncake_D_z 0.608 ± 0.041 ms
background/dL_z_highz 1.99 ± 0.1 μs
vectorization/S_of_K_comprehension 0.237 ± 0.007 μs
gradients/di_forwarddiff_D_z 0.125 ± 0.01 ms
gradients/forwarddiff_r_z 0.335 ± 0.061 ms
cubic_b_spline/solve_matrix_512x10 0.0623 ± 0.00096 ms
gradients/scaling/zygote_D_z_small 0.694 ± 0.027 ms
time_to_load 3 ± 0.0047 s 2.87 ± 0.021 s 1.05 ± 0.0078
Memory benchmarks
a90fa44... 7d26f73... a90fa44... / 7d26f73...
akima/components/coefficients_large 19 allocs: 0.0675 MB 19 allocs: 0.0675 MB 1
akima/components/coefficients_medium 19 allocs: 14.9 kB 19 allocs: 14.9 kB 1
akima/components/coefficients_small 19 allocs: 3.62 kB 19 allocs: 3.62 kB 1
akima/components/slopes_large 4 allocs: 16.2 kB 4 allocs: 16.2 kB 1
akima/components/slopes_medium 4 allocs: 3.5 kB 4 allocs: 3.5 kB 1
akima/components/slopes_small 4 allocs: 0.844 kB 4 allocs: 0.844 kB 1
akima/forward/matrix_medium 0.048 k allocs: 0.0862 MB 0.048 k allocs: 0.0862 MB 1
akima/forward/matrix_small 0.047 k allocs: 20.3 kB 0.047 k allocs: 20.3 kB 1
akima/forward/vector_large 25 allocs: 0.095 MB 24 allocs: 0.0911 MB 1.04
akima/forward/vector_medium 25 allocs: 21.3 kB 24 allocs: 20.5 kB 1.04
akima/forward/vector_small 25 allocs: 5.16 kB 24 allocs: 4.95 kB 1.04
akima/gradients/comparison/di_forwarddiff_medium 0.235 k allocs: 1.96 MB 0.226 k allocs: 1.96 MB 1
akima/gradients/comparison/di_mooncake_medium 0.07 k allocs: 0.0545 MB 0.07 k allocs: 0.0545 MB 1
akima/gradients/comparison/di_zygote_medium 0.071 k allocs: 0.0542 MB 0.087 k allocs: 0.0561 MB 0.966
akima/gradients/comparison/forward_pass 25 allocs: 21.3 kB 24 allocs: 20.5 kB 1.04
akima/gradients/comparison/forwarddiff_medium 0.235 k allocs: 1.96 MB 0.226 k allocs: 1.96 MB 1
akima/gradients/comparison/zygote_medium 0.071 k allocs: 0.0542 MB 0.087 k allocs: 0.0561 MB 0.966
akima/gradients/di_forwarddiff/vector_medium 0.235 k allocs: 1.96 MB 0.226 k allocs: 1.96 MB 1
akima/gradients/di_zygote/matrix_medium 0.203 k allocs: 0.251 MB 0.224 k allocs: 0.278 MB 0.904
akima/gradients/di_zygote/vector_medium 0.071 k allocs: 0.0542 MB 0.087 k allocs: 0.0561 MB 0.966
akima/gradients/forwarddiff/matrix_medium 4.45 k allocs: 0.0864 GB 4.45 k allocs: 0.0864 GB 1
akima/gradients/forwarddiff/matrix_small 0.902 k allocs: 3.7 MB 0.902 k allocs: 3.7 MB 1
akima/gradients/forwarddiff/vector_large 1.89 k allocs: 0.0432 GB 1.85 k allocs: 0.0431 GB 1
akima/gradients/forwarddiff/vector_medium 0.235 k allocs: 1.96 MB 0.226 k allocs: 1.96 MB 1
akima/gradients/forwarddiff/vector_small 0.051 k allocs: 0.0796 MB 0.049 k allocs: 0.0792 MB 1.01
akima/gradients/mooncake/matrix_medium 0.186 k allocs: 0.274 MB 0.186 k allocs: 0.274 MB 1
akima/gradients/mooncake/matrix_small 0.184 k allocs: 0.0644 MB 0.184 k allocs: 0.0644 MB 1
akima/gradients/mooncake/vector_large 0.071 k allocs: 0.25 MB 0.071 k allocs: 0.25 MB 1
akima/gradients/mooncake/vector_medium 0.07 k allocs: 0.0545 MB 0.07 k allocs: 0.0545 MB 1
akima/gradients/mooncake/vector_small 0.07 k allocs: 14 kB 0.07 k allocs: 14 kB 1
akima/gradients/zygote/matrix_medium 0.203 k allocs: 0.251 MB 0.224 k allocs: 0.278 MB 0.904
akima/gradients/zygote/matrix_small 0.201 k allocs: 0.0594 MB 0.222 k allocs: 0.0679 MB 0.876
akima/gradients/zygote/vector_large 0.072 k allocs: 0.25 MB 0.088 k allocs: 0.252 MB 0.992
akima/gradients/zygote/vector_medium 0.071 k allocs: 0.0542 MB 0.087 k allocs: 0.0561 MB 0.966
akima/gradients/zygote/vector_small 0.071 k allocs: 13.6 kB 0.087 k allocs: 15.5 kB 0.874
akima/scaling/eval_10 25 allocs: 19.4 kB 24 allocs: 18.5 kB 1.05
akima/scaling/eval_100 25 allocs: 20.1 kB 24 allocs: 19.3 kB 1.05
akima/scaling/eval_1000 25 allocs: 27.2 kB 24 allocs: 26.3 kB 1.03
akima/scaling/eval_250 25 allocs: 21.3 kB 24 allocs: 20.5 kB 1.04
akima/scaling/eval_50 25 allocs: 19.8 kB 24 allocs: 18.9 kB 1.05
akima/scaling/eval_500 25 allocs: 23.3 kB 24 allocs: 22.5 kB 1.04
akima/scaling/nodes_10 25 allocs: 3.83 kB 24 allocs: 3.7 kB 1.03
akima/scaling/nodes_100 25 allocs: 20.1 kB 24 allocs: 19.3 kB 1.05
akima/scaling/nodes_200 25 allocs: 0.0388 MB 24 allocs: 0.0371 MB 1.05
akima/scaling/nodes_25 25 allocs: 6.45 kB 24 allocs: 6.2 kB 1.04
akima/scaling/nodes_50 25 allocs: 10.9 kB 24 allocs: 10.5 kB 1.04
akima/scaling/nodes_500 25 allocs: 0.0882 MB 24 allocs: 0.0842 MB 1.05
akima_spline/plan_512_to_8999 0.033 k allocs: 0.428 MB 0.033 k allocs: 0.428 MB 1
akima_spline/plan_construct_512_to_8999 6 allocs: 0.206 MB 6 allocs: 0.206 MB 1
akima_spline/pure_512_to_8999 26 allocs: 0.158 MB 25 allocs: 0.154 MB 1.03
chebyshev/forward/matrix_medium 4 allocs: 8.91 kB 4 allocs: 8.91 kB 1
chebyshev/forward/matrix_small 4 allocs: 2.08 kB 4 allocs: 2.08 kB 1
chebyshev/forward/polynomials_medium 0.103 k allocs: 0.393 MB 0.103 k allocs: 0.393 MB 1
chebyshev/forward/polynomials_small 22 allocs: 17.8 kB 22 allocs: 17.8 kB 1
chebyshev/forward/vector_large 2 allocs: 8.12 kB 2 allocs: 8.12 kB 1
chebyshev/forward/vector_medium 2 allocs: 1.75 kB 2 allocs: 1.75 kB 1
chebyshev/forward/vector_small 2 allocs: 0.438 kB 2 allocs: 0.438 kB 1
chebyshev/gradients/forwarddiff/vector_medium 0.0372 M allocs: 1.85 MB 0.0372 M allocs: 1.85 MB 1
chebyshev/gradients/forwarddiff/vector_small 1.19 k allocs: 0.0681 MB 1.19 k allocs: 0.0681 MB 1
chebyshev/gradients/mooncake/vector_medium 14 allocs: 4.98 kB 14 allocs: 4.98 kB 1
chebyshev/gradients/mooncake/vector_small 11 allocs: 1.66 kB 11 allocs: 1.66 kB 1
chebyshev/gradients/zygote/vector_medium 7 allocs: 4.41 kB 25 allocs: 5.8 kB 0.76
chebyshev/gradients/zygote/vector_small 7 allocs: 1.12 kB 25 allocs: 2.52 kB 0.447
chebyshev/multidim/forward_2d 7 allocs: 2.69 kB 7 allocs: 2.69 kB 1
chebyshev/multidim/zygote_2d 16 allocs: 7.52 kB 0.035 k allocs: 9.64 kB 0.78
cubic/components/coefficients_large 19 allocs: 0.0636 MB 19 allocs: 0.0636 MB 1
cubic/components/coefficients_medium 19 allocs: 14.1 kB 19 allocs: 14.1 kB 1
cubic/components/coefficients_small 19 allocs: 3.52 kB 19 allocs: 3.52 kB 1
cubic/components/eval_large 1 allocs: 7.94 kB 1 allocs: 7.94 kB 1
cubic/components/eval_medium 1 allocs: 2.06 kB 1 allocs: 2.06 kB 1
cubic/components/eval_small 1 allocs: 0.484 kB 1 allocs: 0.484 kB 1
cubic/forward/matrix_medium 21 allocs: 0.0468 MB 21 allocs: 0.0468 MB 1
cubic/forward/matrix_small 20 allocs: 10.7 kB 20 allocs: 10.7 kB 1
cubic/forward/vector_large 20 allocs: 0.0714 MB 20 allocs: 0.0714 MB 1
cubic/forward/vector_medium 20 allocs: 16.2 kB 20 allocs: 16.2 kB 1
cubic/forward/vector_small 20 allocs: 4 kB 20 allocs: 4 kB 1
cubic/gradients/comparison/forward_pass 20 allocs: 16.2 kB 20 allocs: 16.2 kB 1
cubic/gradients/comparison/forwarddiff_medium 0.235 k allocs: 0.873 MB 0.235 k allocs: 0.873 MB 1
cubic/gradients/comparison/mooncake_medium 0.063 k allocs: 0.0473 MB 0.063 k allocs: 0.0473 MB 1
cubic/gradients/comparison/zygote_medium 0.084 k allocs: 0.0474 MB 0.102 k allocs: 0.0499 MB 0.95
cubic/gradients/forwarddiff/matrix_medium 2.44 k allocs: 0.0409 GB 2.44 k allocs: 0.0409 GB 1
cubic/gradients/forwarddiff/matrix_small 0.494 k allocs: 1.71 MB 0.494 k allocs: 1.71 MB 1
cubic/gradients/forwarddiff/vector_large 1.34 k allocs: 19 MB 1.34 k allocs: 19 MB 1
cubic/gradients/forwarddiff/vector_medium 0.235 k allocs: 0.873 MB 0.235 k allocs: 0.873 MB 1
cubic/gradients/forwarddiff/vector_small 0.051 k allocs: 0.0368 MB 0.051 k allocs: 0.0368 MB 1
cubic/gradients/mooncake/matrix_medium 0.121 k allocs: 0.178 MB 0.061 k allocs: 0.126 MB 1.41
cubic/gradients/mooncake/matrix_small 0.119 k allocs: 0.0412 MB 0.059 k allocs: 29.6 kB 1.42
cubic/gradients/mooncake/vector_large 0.063 k allocs: 0.211 MB 0.063 k allocs: 0.211 MB 1
cubic/gradients/mooncake/vector_medium 0.063 k allocs: 0.0473 MB 0.063 k allocs: 0.0473 MB 1
cubic/gradients/mooncake/vector_small 0.063 k allocs: 12.5 kB 0.063 k allocs: 12.5 kB 1
cubic/gradients/zygote/matrix_medium 0.141 k allocs: 0.178 MB 0.1 k allocs: 0.129 MB 1.38
cubic/gradients/zygote/matrix_small 0.139 k allocs: 0.0413 MB 0.098 k allocs: 0.0318 MB 1.3
cubic/gradients/zygote/vector_large 0.084 k allocs: 0.211 MB 0.102 k allocs: 0.213 MB 0.988
cubic/gradients/zygote/vector_medium 0.084 k allocs: 0.0474 MB 0.102 k allocs: 0.0499 MB 0.95
cubic/gradients/zygote/vector_small 0.084 k allocs: 12.6 kB 0.102 k allocs: 15.2 kB 0.831
cubic/scaling/eval_10 20 allocs: 14.3 kB 20 allocs: 14.3 kB 1
cubic/scaling/eval_100 20 allocs: 15 kB 20 allocs: 15 kB 1
cubic/scaling/eval_1000 20 allocs: 22.1 kB 20 allocs: 22.1 kB 1
cubic/scaling/eval_250 20 allocs: 16.2 kB 20 allocs: 16.2 kB 1
cubic/scaling/eval_50 20 allocs: 14.6 kB 20 allocs: 14.6 kB 1
cubic/scaling/eval_500 20 allocs: 18.2 kB 20 allocs: 18.2 kB 1
cubic/scaling/nodes_10 20 allocs: 3.14 kB 20 allocs: 3.14 kB 1
cubic/scaling/nodes_100 20 allocs: 15 kB 20 allocs: 15 kB 1
cubic/scaling/nodes_200 20 allocs: 29.3 kB 20 allocs: 29.3 kB 1
cubic/scaling/nodes_25 20 allocs: 4.98 kB 20 allocs: 4.98 kB 1
cubic/scaling/nodes_50 20 allocs: 8.39 kB 20 allocs: 8.39 kB 1
cubic/scaling/nodes_500 20 allocs: 0.0645 MB 20 allocs: 0.0645 MB 1
cubic_spline/construct_512 19 allocs: 0.0647 MB 19 allocs: 0.0647 MB 1
cubic_spline/plan_512_to_8999 15 allocs: 0.485 MB 15 allocs: 0.485 MB 1
cubic_spline/plan_construct_512_to_8999 0.058 k allocs: 7.09 MB 0.058 k allocs: 7.09 MB 1
cubic_spline/prepared_512_to_8999 2 allocs: 0.0687 MB 2 allocs: 0.0687 MB 1
cubic_spline/pure_512_to_8999 21 allocs: 0.133 MB 21 allocs: 0.133 MB 1
normalization/matrix 2 allocs: 0.229 MB 2 allocs: 0.229 MB 1
normalization/vector 1 allocs: 0.875 kB 1 allocs: 0.875 kB 1
running/lux 0.05 k allocs: 5.17 kB 0.05 k allocs: 5.17 kB 1
running/simplechains 0 allocs: 0 B 0 allocs: 0 B
gradients/single_z/forward_D_z 0.067 k allocs: 4.9 kB
background/dA_z_struct 13 allocs: 1.3 kB
vectorization/E_z_comprehension 1 allocs: 0.297 kB
background/E_z_lowz 0 allocs: 0 B
vectorization/dM_z_scalar_loop 0.391 k allocs: 0.0383 MB
cubic_b_spline/basis_row_preselected 0 allocs: 0 B
vectorization/dL_z_vectorized 0.192 k allocs: 22.3 kB
vectorization/f_z_comprehension 2.01 k allocs: 0.144 MB
gradients/forward_D_z 0.171 k allocs: 26.9 kB
vectorization/dA_z_scalar_loop 0.391 k allocs: 0.0383 MB
vectorization/dL_z_comprehension 0.391 k allocs: 0.0383 MB
vectorization/r_z_vectorized 0.19 k allocs: 21.7 kB
vectorization/r_z_scalar_loop 0.391 k allocs: 0.0383 MB
cubic_b_spline/factorization_512 2 allocs: 28 kB
vectorization/dL_z_scalar_loop 0.391 k allocs: 0.0383 MB
gradients/di_zygote_f_z 3.67 k allocs: 0.326 MB
gradients/single_z/forward_r_z 13 allocs: 1.3 kB
gradients/zygote_f_z 3.67 k allocs: 0.326 MB
cubic_b_spline/solve_vector_512 6 allocs: 4.34 kB
gradients/scaling/forwarddiff_D_z_small 0.081 k allocs: 18.3 kB
gradients/single_z/di_mooncake_r_z 0.051 k allocs: 6.11 kB
vectorization/E_z_vectorized 3 allocs: 0.641 kB
vectorization/dM_z_comprehension 0.391 k allocs: 0.0383 MB
cubic_b_spline/basis_stencil_512_to_8999 16 allocs: 0.55 MB
gradients/di_zygote_D_z 3.63 k allocs: 0.316 MB
vectorization/D_z_vectorized 0.099 k allocs: 11 kB
background/D_f_z_struct 0.067 k allocs: 4.9 kB
vectorization/f_z_scalar_loop 2.01 k allocs: 0.144 MB
background/E_z_struct 0 allocs: 0 B
gradients/forward_r_z 0.611 k allocs: 0.0689 MB
cubic_b_spline/plan_apply_128 8 allocs: 0.07 MB
background/E_z_highz 0 allocs: 0 B
gradients/forward_f_z 0.173 k allocs: 28.6 kB
vectorization/D_z_comprehension 2.01 k allocs: 0.144 MB
vectorization/S_of_K_vectorized 1 allocs: 0.219 kB
gradients/single_z/forwarddiff_f_z 0.068 k allocs: 9.96 kB
vectorization/f_z_vectorized 0.101 k allocs: 11.6 kB
vectorization/S_of_K_scalar_loop 1 allocs: 0.219 kB
gradients/di_mooncake_f_z 2.67 k allocs: 0.263 MB
vectorization/D_f_z_comprehension 2.01 k allocs: 0.144 MB
gradients/single_z/forward_f_z 0.067 k allocs: 4.9 kB
gradients/parameter_sensitivity/lcdm_D_z 0.172 k allocs: 0.086 MB
vectorization/D_z_scalar_loop 2.01 k allocs: 0.144 MB
background/E_z_construct_struct 1 allocs: 0.109 kB
background/dL_z_lowz 13 allocs: 1.3 kB
gradients/zygote_D_z 3.63 k allocs: 0.316 MB
vectorization/D_f_z_scalar_loop 2.01 k allocs: 0.144 MB
background/dL_z_struct 13 allocs: 1.3 kB
gradients/parameter_sensitivity/w0wa_D_z 0.172 k allocs: 0.086 MB
gradients/forwarddiff_D_z 0.172 k allocs: 0.086 MB
gradients/zygote_r_z 0.422 M allocs: 0.439 GB
gradients/single_z/di_mooncake_f_z 0.416 k allocs: 0.0352 MB
gradients/single_z/forwarddiff_D_z 0.068 k allocs: 9.96 kB
vectorization/dM_z_vectorized 0.191 k allocs: 22 kB
background/r_z_struct 13 allocs: 1.3 kB
cubic_b_spline/construct_512 14 allocs: 0.044 MB
cubic_b_spline/plan_construct_3000 29 allocs: 0.848 MB
vectorization/D_f_z_vectorized 0.101 k allocs: 11.6 kB
background/dL_z_vector 0.391 k allocs: 0.0383 MB
gradients/scaling/di_mooncake_D_z_small 0.948 k allocs: 0.0735 MB
gradients/scaling/zygote_D_z_large 11.2 k allocs: 1.13 MB
gradients/parameter_sensitivity/curved_D_z 0.172 k allocs: 0.086 MB
gradients/scaling/forward_D_z_large 0.572 k allocs: 0.108 MB
vectorization/r_z_comprehension 0.391 k allocs: 0.0383 MB
background/dL_z_construct_struct 14 allocs: 1.41 kB
gradients/single_z/zygote_f_z 1.7 k allocs: 0.107 MB
cubic_b_spline/eval_vector_8999 18 allocs: 0.618 MB
gradients/di_zygote_r_z 0.422 M allocs: 0.439 GB
cubic_b_spline/plan_construct_512_to_8999 26 allocs: 0.658 MB
gradients/forwarddiff_f_z 0.174 k allocs: 0.0969 MB
cubic_b_spline/plan_512_to_8999 8 allocs: 0.073 MB
cubic_b_spline/plan_construct_128 25 allocs: 0.629 MB
gradients/di_mooncake_r_z 3.04 k allocs: 0.34 MB
gradients/single_z/zygote_D_z 1.7 k allocs: 0.106 MB
background/D_z_struct 0.067 k allocs: 4.9 kB
cubic_b_spline/basis_row_search 0 allocs: 0 B
vectorization/E_z_scalar_loop 1 allocs: 0.297 kB
cubic_b_spline/plan_apply_3000 9 allocs: 0.0919 MB
gradients/di_forwarddiff_f_z 0.174 k allocs: 0.0969 MB
gradients/scaling/di_mooncake_D_z_large 10.3 k allocs: 1.08 MB
gradients/single_z/zygote_r_z 5.44 k allocs: 4.89 MB
gradients/di_forwarddiff_r_z 0.612 k allocs: 0.182 MB
background/E_z_vector 1 allocs: 0.297 kB
background/Ωma_struct 0 allocs: 0 B
cubic_b_spline/eval_scalar 0 allocs: 0 B
background/E_a_struct 0 allocs: 0 B
cubic_b_spline/reactant_stencil 19 allocs: 0.828 kB
gradients/scaling/forwarddiff_D_z_large 0.577 k allocs: 0.383 MB
background/D_z_construct_struct 0.067 k allocs: 4.9 kB
gradients/single_z/forwarddiff_r_z 14 allocs: 2.84 kB
gradients/single_z/di_mooncake_D_z 0.416 k allocs: 0.0352 MB
vectorization/dA_z_comprehension 0.391 k allocs: 0.0383 MB
vectorization/dA_z_vectorized 0.192 k allocs: 22.3 kB
background/f_z_struct 0.067 k allocs: 4.9 kB
gradients/scaling/forward_D_z_small 0.08 k allocs: 7.21 kB
gradients/di_mooncake_D_z 2.66 k allocs: 0.259 MB
background/dL_z_highz 13 allocs: 1.3 kB
vectorization/S_of_K_comprehension 1 allocs: 0.219 kB
gradients/di_forwarddiff_D_z 0.172 k allocs: 0.086 MB
gradients/forwarddiff_r_z 0.612 k allocs: 0.182 MB
cubic_b_spline/solve_matrix_512x10 3 allocs: 0.0391 MB
gradients/scaling/zygote_D_z_small 1.92 k allocs: 0.131 MB
time_to_load 0.153 k allocs: 14.5 kB 0.153 k allocs: 14.5 kB 1

@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Benchmark Results (Julia v1.11)

Time benchmarks
a90fa44... 7d26f73... a90fa44... / 7d26f73...
akima/components/coefficients_large 8.34 ± 0.73 μs 8 ± 1 μs 1.04 ± 0.16
akima/components/coefficients_medium 7.2 ± 1.8 μs 7.51 ± 1.8 μs 0.959 ± 0.33
akima/components/coefficients_small 2.28 ± 1.9 μs 0.702 ± 1.8 μs 3.25 ± 8.7
akima/components/slopes_large 7.81 ± 0.37 μs 1.79 ± 0.69 μs 4.35 ± 1.7
akima/components/slopes_medium 1.9 ± 1.8 μs 1.86 ± 1.8 μs 1.02 ± 1.4
akima/components/slopes_small 0.15 ± 0.02 μs 0.15 ± 0.019 μs 1 ± 0.19
akima/forward/matrix_medium 23.3 ± 16 μs 0.0413 ± 0.02 ms 0.564 ± 0.48
akima/forward/matrix_small 13 ± 3 μs 11.4 ± 6.2 μs 1.13 ± 0.67
akima/forward/vector_large 29.1 ± 2.4 μs 29.8 ± 35 μs 0.978 ± 1.2
akima/forward/vector_medium 12.8 ± 8.6 μs 13.4 ± 2.9 μs 0.957 ± 0.67
akima/forward/vector_small 3.16 ± 2.2 μs 1.36 ± 0.25 μs 2.32 ± 1.7
akima/gradients/comparison/di_forwarddiff_medium 0.217 ± 0.019 ms 0.253 ± 0.02 ms 0.859 ± 0.1
akima/gradients/comparison/di_mooncake_medium 0.0345 ± 0.023 ms 0.0357 ± 0.0046 ms 0.966 ± 0.66
akima/gradients/comparison/di_zygote_medium 0.0343 ± 0.0046 ms 0.0366 ± 0.0046 ms 0.936 ± 0.17
akima/gradients/comparison/forward_pass 13.3 ± 3.3 μs 13.4 ± 3 μs 0.988 ± 0.33
akima/gradients/comparison/forwarddiff_medium 0.209 ± 0.025 ms 0.267 ± 0.027 ms 0.78 ± 0.12
akima/gradients/comparison/zygote_medium 0.034 ± 0.021 ms 0.0363 ± 0.0046 ms 0.935 ± 0.6
akima/gradients/di_forwarddiff/vector_medium 0.21 ± 0.02 ms 0.256 ± 0.021 ms 0.82 ± 0.1
akima/gradients/di_zygote/matrix_medium 0.0992 ± 0.05 ms 0.152 ± 0.051 ms 0.653 ± 0.39
akima/gradients/di_zygote/vector_medium 0.0344 ± 0.0047 ms 0.0363 ± 0.0045 ms 0.946 ± 0.17
akima/gradients/forwarddiff/matrix_medium 14.7 ± 0.89 ms 22.3 ± 1.2 ms 0.656 ± 0.053
akima/gradients/forwarddiff/matrix_small 0.592 ± 0.049 ms 0.689 ± 0.067 ms 0.859 ± 0.11
akima/gradients/forwarddiff/vector_large 5.7 ± 0.73 ms 9.21 ± 1.1 ms 0.619 ± 0.11
akima/gradients/forwarddiff/vector_medium 0.213 ± 0.025 ms 0.255 ± 0.021 ms 0.836 ± 0.12
akima/gradients/forwarddiff/vector_small 0.0362 ± 0.027 ms 0.0364 ± 0.0046 ms 0.995 ± 0.75
akima/gradients/mooncake/matrix_medium 0.096 ± 0.0077 ms 0.101 ± 0.048 ms 0.952 ± 0.46
akima/gradients/mooncake/matrix_small 0.0477 ± 0.022 ms 0.0474 ± 0.0047 ms 1.01 ± 0.47
akima/gradients/mooncake/vector_large 0.063 ± 0.0055 ms 0.068 ± 0.006 ms 0.925 ± 0.11
akima/gradients/mooncake/vector_medium 0.0346 ± 0.0055 ms 0.0352 ± 0.0041 ms 0.984 ± 0.2
akima/gradients/mooncake/vector_small 7.91 ± 5.4 μs 8.4 ± 4.7 μs 0.942 ± 0.83
akima/gradients/zygote/matrix_medium 0.0986 ± 0.019 ms 0.151 ± 0.051 ms 0.654 ± 0.25
akima/gradients/zygote/matrix_small 0.0485 ± 0.0051 ms 0.0511 ± 0.0052 ms 0.948 ± 0.14
akima/gradients/zygote/vector_large 0.0648 ± 0.0048 ms 0.0686 ± 0.0071 ms 0.945 ± 0.12
akima/gradients/zygote/vector_medium 0.0342 ± 0.0046 ms 0.0363 ± 0.0044 ms 0.943 ± 0.17
akima/gradients/zygote/vector_small 7.19 ± 5.1 μs 8.54 ± 5.6 μs 0.843 ± 0.82
akima/scaling/eval_10 8.51 ± 7.1 μs 8.54 ± 2 μs 0.996 ± 0.86
akima/scaling/eval_100 10.8 ± 2.2 μs 10.8 ± 2.2 μs 0.994 ± 0.29
akima/scaling/eval_1000 25.3 ± 8.1 μs 24 ± 2.1 μs 1.06 ± 0.35
akima/scaling/eval_250 13.4 ± 9.1 μs 13.2 ± 2.8 μs 1.01 ± 0.73
akima/scaling/eval_50 9.79 ± 2.1 μs 9.12 ± 2 μs 1.07 ± 0.33
akima/scaling/eval_500 16.8 ± 4.2 μs 16.2 ± 2 μs 1.03 ± 0.29
akima/scaling/nodes_10 1.94 ± 1.8 μs 1.8 ± 0.33 μs 1.08 ± 1
akima/scaling/nodes_100 10.9 ± 2.4 μs 10.7 ± 2.3 μs 1.02 ± 0.31
akima/scaling/nodes_200 18.3 ± 4 μs 18 ± 3.2 μs 1.02 ± 0.29
akima/scaling/nodes_25 2.09 ± 0.43 μs 3.84 ± 0.43 μs 0.546 ± 0.13
akima/scaling/nodes_50 5.74 ± 4.7 μs 6.17 ± 1.8 μs 0.93 ± 0.81
akima/scaling/nodes_500 12.7 ± 1.9 μs 11.5 ± 1.9 μs 1.1 ± 0.24
akima_spline/plan_512_to_8999 0.0493 ± 0.0081 ms 0.0598 ± 0.0048 ms 0.823 ± 0.15
akima_spline/plan_construct_512_to_8999 0.14 ± 0.0038 ms 0.147 ± 0.011 ms 0.95 ± 0.073
akima_spline/pure_512_to_8999 0.18 ± 0.0075 ms 0.18 ± 0.0083 ms 1 ± 0.062
chebyshev/forward/matrix_medium 8.07 ± 0.7 μs 7.48 ± 0.33 μs 1.08 ± 0.11
chebyshev/forward/matrix_small 2.27 ± 0.05 μs 2.37 ± 1.8 μs 0.962 ± 0.72
chebyshev/forward/polynomials_medium 25 ± 9.2 μs 31 ± 5.5 μs 0.807 ± 0.33
chebyshev/forward/polynomials_small 5.17 ± 0.98 μs 5.01 ± 1.5 μs 1.03 ± 0.37
chebyshev/forward/vector_large 24.9 ± 2.8 μs 23.8 ± 0.52 μs 1.05 ± 0.12
chebyshev/forward/vector_medium 0.952 ± 0.12 μs 0.952 ± 1.7 μs 1 ± 1.8
chebyshev/forward/vector_small 0.331 ± 0.001 μs 0.341 ± 0.01 μs 0.971 ± 0.029
chebyshev/gradients/forwarddiff/vector_medium 6.34 ± 0.67 ms 7.13 ± 0.66 ms 0.888 ± 0.13
chebyshev/gradients/forwarddiff/vector_small 0.247 ± 0.022 ms 0.61 ± 0.048 ms 0.405 ± 0.048
chebyshev/gradients/mooncake/vector_medium 4.2 ± 1.9 μs 4.25 ± 0.47 μs 0.988 ± 0.47
chebyshev/gradients/mooncake/vector_small 1.27 ± 0.32 μs 1.07 ± 1.8 μs 1.19 ± 2
chebyshev/gradients/zygote/vector_medium 3.86 ± 0.79 μs 5.07 ± 1.8 μs 0.761 ± 0.31
chebyshev/gradients/zygote/vector_small 0.721 ± 0.21 μs 1.72 ± 1.9 μs 0.418 ± 0.47
chebyshev/multidim/forward_2d 3.63 ± 0.25 μs 3.63 ± 0.28 μs 1 ± 0.1
chebyshev/multidim/zygote_2d 7.73 ± 0.46 μs 9.12 ± 0.6 μs 0.847 ± 0.075
cubic/components/coefficients_large 17.6 ± 0.86 μs 18 ± 1.3 μs 0.98 ± 0.084
cubic/components/coefficients_medium 9.03 ± 7.2 μs 9.02 ± 1.8 μs 1 ± 0.83
cubic/components/coefficients_small 1.15 ± 1.8 μs 2.58 ± 1.8 μs 0.446 ± 0.77
cubic/components/eval_large 20.3 ± 0.19 μs 20.6 ± 0.19 μs 0.985 ± 0.013
cubic/components/eval_medium 4.33 ± 1.7 μs 4.49 ± 1.7 μs 0.964 ± 0.52
cubic/components/eval_small 0.721 ± 0.021 μs 0.742 ± 0.02 μs 0.972 ± 0.039
cubic/forward/matrix_medium 0.0368 ± 0.0095 ms 0.0384 ± 0.0046 ms 0.958 ± 0.27
cubic/forward/matrix_small 8.57 ± 1.5 μs 9.2 ± 1.8 μs 0.931 ± 0.24
cubic/forward/vector_large 0.0381 ± 0.0066 ms 0.039 ± 0.0016 ms 0.976 ± 0.17
cubic/forward/vector_medium 7.86 ± 6 μs 13.9 ± 2.8 μs 0.566 ± 0.44
cubic/forward/vector_small 1.55 ± 0.12 μs 1.62 ± 0.28 μs 0.957 ± 0.18
cubic/gradients/comparison/forward_pass 8.33 ± 6.1 μs 13.5 ± 4.2 μs 0.616 ± 0.49
cubic/gradients/comparison/forwarddiff_medium 0.182 ± 0.014 ms 0.2 ± 0.013 ms 0.911 ± 0.093
cubic/gradients/comparison/mooncake_medium 19 ± 19 μs 0.0367 ± 0.02 ms 0.517 ± 0.6
cubic/gradients/comparison/zygote_medium 0.0396 ± 0.018 ms 0.0423 ± 0.0052 ms 0.936 ± 0.43
cubic/gradients/forwarddiff/matrix_medium 13.5 ± 0.7 ms 15.9 ± 1.5 ms 0.848 ± 0.094
cubic/gradients/forwarddiff/matrix_small 0.503 ± 0.025 ms 0.552 ± 0.028 ms 0.912 ± 0.064
cubic/gradients/forwarddiff/vector_large 4.42 ± 0.17 ms 4.86 ± 1.3 ms 0.91 ± 0.24
cubic/gradients/forwarddiff/vector_medium 0.18 ± 0.014 ms 0.201 ± 0.011 ms 0.898 ± 0.086
cubic/gradients/forwarddiff/vector_small 18.1 ± 12 μs 19.3 ± 4.1 μs 0.936 ± 0.63
cubic/gradients/mooncake/matrix_medium 0.103 ± 0.0064 ms 0.103 ± 0.0034 ms 1 ± 0.07
cubic/gradients/mooncake/matrix_small 0.0336 ± 0.013 ms 29 ± 3.9 μs 1.16 ± 0.46
cubic/gradients/mooncake/vector_large 0.0877 ± 0.0064 ms 0.0955 ± 0.0067 ms 0.919 ± 0.093
cubic/gradients/mooncake/vector_medium 0.0352 ± 0.019 ms 0.0374 ± 0.0046 ms 0.942 ± 0.53
cubic/gradients/mooncake/vector_small 8.27 ± 5.1 μs 8.26 ± 5.1 μs 1 ± 0.87
cubic/gradients/zygote/matrix_medium 0.108 ± 0.014 ms 0.107 ± 0.013 ms 1.01 ± 0.18
cubic/gradients/zygote/matrix_small 0.0373 ± 0.0041 ms 0.034 ± 0.0041 ms 1.1 ± 0.18
cubic/gradients/zygote/vector_large 0.0913 ± 0.0063 ms 0.0995 ± 0.008 ms 0.918 ± 0.098
cubic/gradients/zygote/vector_medium 0.0401 ± 0.0053 ms 0.0428 ± 0.0044 ms 0.937 ± 0.16
cubic/gradients/zygote/vector_small 11.5 ± 4.4 μs 13.3 ± 5.6 μs 0.868 ± 0.49
cubic/scaling/eval_10 8.05 ± 5.9 μs 9.43 ± 1.8 μs 0.854 ± 0.64
cubic/scaling/eval_100 9.76 ± 6.1 μs 9.92 ± 5.8 μs 0.984 ± 0.84
cubic/scaling/eval_1000 25 ± 5.9 μs 26 ± 3.1 μs 0.959 ± 0.25
cubic/scaling/eval_250 12.6 ± 6.2 μs 13.9 ± 2.9 μs 0.902 ± 0.48
cubic/scaling/eval_50 8.72 ± 5.9 μs 10.2 ± 1.8 μs 0.852 ± 0.6
cubic/scaling/eval_500 16.5 ± 5.8 μs 17.2 ± 2.1 μs 0.96 ± 0.36
cubic/scaling/nodes_10 1.98 ± 1.8 μs 1.96 ± 1.8 μs 1.01 ± 1.3
cubic/scaling/nodes_100 9.65 ± 6.1 μs 11 ± 1.7 μs 0.877 ± 0.57
cubic/scaling/nodes_200 17.9 ± 2.4 μs 18.2 ± 2.8 μs 0.984 ± 0.2
cubic/scaling/nodes_25 2.4 ± 0.15 μs 4.25 ± 2.2 μs 0.564 ± 0.3
cubic/scaling/nodes_50 6.54 ± 2.7 μs 6.72 ± 1.3 μs 0.973 ± 0.44
cubic/scaling/nodes_500 19.4 ± 1.1 μs 20.1 ± 1.3 μs 0.966 ± 0.083
cubic_spline/construct_512 19.2 ± 24 μs 18.3 ± 2.7 μs 1.05 ± 1.3
cubic_spline/plan_512_to_8999 0.101 ± 0.016 ms 0.152 ± 0.025 ms 0.662 ± 0.15
cubic_spline/plan_construct_512_to_8999 5.65 ± 0.91 ms 5.84 ± 1.2 ms 0.968 ± 0.25
cubic_spline/prepared_512_to_8999 0.183 ± 0.0097 ms 0.188 ± 0.0094 ms 0.973 ± 0.071
cubic_spline/pure_512_to_8999 0.203 ± 0.01 ms 0.21 ± 0.0094 ms 0.965 ± 0.066
normalization/matrix 15.9 ± 0.98 μs 16.5 ± 0.96 μs 0.963 ± 0.082
normalization/vector 0.13 ± 0.02 μs 0.13 ± 0.02 μs 1 ± 0.22
running/lux 6.65 ± 0.21 μs 8.29 ± 1.9 μs 0.803 ± 0.18
running/simplechains 2.69 ± 0.02 μs 2.71 ± 0.04 μs 0.993 ± 0.016
gradients/single_z/forward_D_z 0.0509 ± 0.00044 ms
background/dA_z_struct 2.11 ± 0.19 μs
vectorization/E_z_comprehension 7.02 ± 0.09 μs
background/E_z_lowz 0.24 ± 0.001 μs
vectorization/dM_z_scalar_loop 0.075 ± 0.0037 ms
cubic_b_spline/basis_row_preselected 0.06 ± 0.001 μs
vectorization/dL_z_vectorized 0.044 ± 0.0062 ms
vectorization/f_z_comprehension 1.67 ± 0.027 ms
gradients/forward_D_z 0.0685 ± 0.0074 ms
vectorization/dA_z_scalar_loop 0.0755 ± 0.0039 ms
vectorization/dL_z_comprehension 0.0757 ± 0.004 ms
vectorization/r_z_vectorized 0.0432 ± 0.0066 ms
vectorization/r_z_scalar_loop 0.0734 ± 0.0048 ms
cubic_b_spline/factorization_512 0.0407 ± 0.0091 ms
vectorization/dL_z_scalar_loop 0.0755 ± 0.005 ms
gradients/di_zygote_f_z 1.06 ± 0.15 ms
gradients/single_z/forward_r_z 1.98 ± 0.04 μs
gradients/zygote_f_z 1.05 ± 0.15 ms
cubic_b_spline/solve_vector_512 5.27 ± 0.22 μs
gradients/scaling/forwarddiff_D_z_small 0.121 ± 0.0049 ms
gradients/single_z/di_mooncake_r_z 18.9 ± 1.1 μs
vectorization/E_z_vectorized 3.54 ± 0.03 μs
vectorization/dM_z_comprehension 0.0753 ± 0.0045 ms
cubic_b_spline/basis_stencil_512_to_8999 0.385 ± 0.017 ms
gradients/di_zygote_D_z 1.05 ± 0.13 ms
vectorization/D_z_vectorized 0.0595 ± 0.0036 ms
background/D_f_z_struct 0.054 ± 0.00052 ms
vectorization/f_z_scalar_loop 1.66 ± 0.026 ms
background/E_z_struct 0.241 ± 0.01 μs
gradients/forward_r_z 0.149 ± 0.0064 ms
cubic_b_spline/plan_apply_128 17.1 ± 0.54 μs
background/E_z_highz 0.24 ± 0.001 μs
gradients/forward_f_z 0.0683 ± 0.0076 ms
vectorization/D_z_comprehension 1.67 ± 0.026 ms
vectorization/S_of_K_vectorized 0.33 ± 0.01 μs
gradients/single_z/forwarddiff_f_z 0.111 ± 0.0015 ms
vectorization/f_z_vectorized 0.0595 ± 0.0022 ms
vectorization/S_of_K_scalar_loop 0.471 ± 0.18 μs
gradients/di_mooncake_f_z 0.508 ± 0.025 ms
vectorization/D_f_z_comprehension 1.67 ± 0.026 ms
gradients/single_z/forward_f_z 0.0509 ± 0.00041 ms
gradients/parameter_sensitivity/lcdm_D_z 0.153 ± 0.014 ms
vectorization/D_z_scalar_loop 1.67 ± 0.026 ms
background/E_z_construct_struct 0.26 ± 0.01 μs
background/dL_z_lowz 2.1 ± 0.17 μs
gradients/zygote_D_z 1.04 ± 0.14 ms
vectorization/D_f_z_scalar_loop 1.66 ± 0.029 ms
background/dL_z_struct 2.11 ± 0.19 μs
gradients/parameter_sensitivity/w0wa_D_z 0.16 ± 0.014 ms
gradients/forwarddiff_D_z 0.154 ± 0.013 ms
gradients/zygote_r_z 0.09 ± 0.022 s
gradients/single_z/di_mooncake_f_z 0.324 ± 0.018 ms
gradients/single_z/forwarddiff_D_z 0.115 ± 0.0046 ms
vectorization/dM_z_vectorized 0.0388 ± 0.0071 ms
background/r_z_struct 2.01 ± 0.15 μs
cubic_b_spline/construct_512 0.0496 ± 0.00066 ms
cubic_b_spline/plan_construct_3000 0.822 ± 0.021 ms
vectorization/D_f_z_vectorized 0.0598 ± 0.002 ms
background/dL_z_vector 0.0745 ± 0.013 ms
gradients/scaling/di_mooncake_D_z_small 0.369 ± 0.021 ms
gradients/scaling/zygote_D_z_large 1.62 ± 0.32 ms
gradients/parameter_sensitivity/curved_D_z 0.156 ± 0.03 ms
gradients/scaling/forward_D_z_large 0.106 ± 0.0089 ms
vectorization/r_z_comprehension 0.0735 ± 0.0049 ms
background/dL_z_construct_struct 2.12 ± 0.19 μs
gradients/single_z/zygote_f_z 0.807 ± 0.031 ms
cubic_b_spline/eval_vector_8999 0.402 ± 0.012 ms
gradients/di_zygote_r_z 0.0838 ± 0.026 s
cubic_b_spline/plan_construct_512_to_8999 0.43 ± 0.02 ms
gradients/forwarddiff_f_z 0.155 ± 0.015 ms
cubic_b_spline/plan_512_to_8999 22 ± 1.7 μs
cubic_b_spline/plan_construct_128 0.321 ± 0.024 ms
gradients/di_mooncake_r_z 1.18 ± 0.022 ms
gradients/single_z/zygote_D_z 0.801 ± 0.075 ms
background/D_z_struct 0.054 ± 0.00052 ms
cubic_b_spline/basis_row_search 0.071 ± 0.01 μs
vectorization/E_z_scalar_loop 7.04 ± 0.06 μs
cubic_b_spline/plan_apply_3000 0.046 ± 0.0025 ms
gradients/di_forwarddiff_f_z 0.145 ± 0.012 ms
gradients/scaling/di_mooncake_D_z_large 1.17 ± 0.16 ms
gradients/single_z/zygote_r_z 0.867 ± 0.058 ms
gradients/di_forwarddiff_r_z 0.292 ± 0.018 ms
background/E_z_vector 7.22 ± 0.05 μs
background/Ωma_struct 0.25 ± 0.01 μs
cubic_b_spline/eval_scalar 0.08 ± 0 μs
background/E_a_struct 0.241 ± 0.01 μs
cubic_b_spline/reactant_stencil 0.193 ± 0.034 ms
gradients/scaling/forwarddiff_D_z_large 0.267 ± 0.015 ms
background/D_z_construct_struct 0.0542 ± 0.00056 ms
gradients/single_z/forwarddiff_r_z 3.39 ± 0.34 μs
gradients/single_z/di_mooncake_D_z 0.325 ± 0.017 ms
vectorization/dA_z_comprehension 0.0755 ± 0.0046 ms
vectorization/dA_z_vectorized 0.0439 ± 0.0061 ms
background/f_z_struct 0.0541 ± 0.00055 ms
gradients/scaling/forward_D_z_small 0.0526 ± 0.00058 ms
gradients/di_mooncake_D_z 0.566 ± 0.09 ms
background/dL_z_highz 2.11 ± 0.18 μs
vectorization/S_of_K_comprehension 0.331 ± 0.01 μs
gradients/di_forwarddiff_D_z 0.144 ± 0.015 ms
gradients/forwarddiff_r_z 0.288 ± 0.052 ms
cubic_b_spline/solve_matrix_512x10 0.0496 ± 0.00048 ms
gradients/scaling/zygote_D_z_small 0.845 ± 0.088 ms
time_to_load 4.23 ± 0.11 s 4.13 ± 0.13 s 1.02 ± 0.042
Memory benchmarks
a90fa44... 7d26f73... a90fa44... / 7d26f73...
akima/components/coefficients_large 0.051 k allocs: 0.0665 MB 0.051 k allocs: 0.0665 MB 1
akima/components/coefficients_medium 0.034 k allocs: 14.7 kB 0.034 k allocs: 14.7 kB 1
akima/components/coefficients_small 0.034 k allocs: 3.61 kB 0.034 k allocs: 3.61 kB 1
akima/components/slopes_large 12 allocs: 16 kB 12 allocs: 16 kB 1
akima/components/slopes_medium 8 allocs: 3.39 kB 8 allocs: 3.39 kB 1
akima/components/slopes_small 8 allocs: 0.844 kB 8 allocs: 0.844 kB 1
akima/forward/matrix_medium 0.099 k allocs: 0.0864 MB 0.099 k allocs: 0.0864 MB 1
akima/forward/matrix_small 0.095 k allocs: 20.3 kB 0.095 k allocs: 20.3 kB 1
akima/forward/vector_large 0.069 k allocs: 0.0938 MB 0.066 k allocs: 0.0899 MB 1.04
akima/forward/vector_medium 0.046 k allocs: 20.9 kB 0.044 k allocs: 20.1 kB 1.04
akima/forward/vector_small 0.046 k allocs: 5.12 kB 0.044 k allocs: 4.92 kB 1.04
akima/gradients/comparison/di_forwarddiff_medium 0.595 k allocs: 1.95 MB 0.577 k allocs: 1.95 MB 1
akima/gradients/comparison/di_mooncake_medium 0.126 k allocs: 0.0535 MB 0.126 k allocs: 0.0535 MB 1
akima/gradients/comparison/di_zygote_medium 0.122 k allocs: 0.0531 MB 0.141 k allocs: 0.055 MB 0.964
akima/gradients/comparison/forward_pass 0.046 k allocs: 20.9 kB 0.044 k allocs: 20.1 kB 1.04
akima/gradients/comparison/forwarddiff_medium 0.595 k allocs: 1.95 MB 0.577 k allocs: 1.95 MB 1
akima/gradients/comparison/zygote_medium 0.122 k allocs: 0.0531 MB 0.141 k allocs: 0.055 MB 0.964
akima/gradients/di_forwarddiff/vector_medium 0.595 k allocs: 1.95 MB 0.577 k allocs: 1.95 MB 1
akima/gradients/di_zygote/matrix_medium 0.337 k allocs: 0.251 MB 0.346 k allocs: 0.274 MB 0.916
akima/gradients/di_zygote/vector_medium 0.122 k allocs: 0.0531 MB 0.141 k allocs: 0.055 MB 0.964
akima/gradients/forwarddiff/matrix_medium 11.8 k allocs: 0.0862 GB 11.8 k allocs: 0.0862 GB 1
akima/gradients/forwarddiff/matrix_small 2.21 k allocs: 3.68 MB 2.21 k allocs: 3.68 MB 1
akima/gradients/forwarddiff/vector_large 2.9 k allocs: 0.0433 GB 2.77 k allocs: 0.0431 GB 1
akima/gradients/forwarddiff/vector_medium 0.595 k allocs: 1.95 MB 0.577 k allocs: 1.95 MB 1
akima/gradients/forwarddiff/vector_small 0.097 k allocs: 0.0779 MB 0.093 k allocs: 0.0775 MB 1.01
akima/gradients/mooncake/matrix_medium 0.325 k allocs: 0.274 MB 0.325 k allocs: 0.274 MB 1
akima/gradients/mooncake/matrix_small 0.31 k allocs: 0.0635 MB 0.31 k allocs: 0.0635 MB 1
akima/gradients/mooncake/vector_large 0.185 k allocs: 0.243 MB 0.185 k allocs: 0.243 MB 1
akima/gradients/mooncake/vector_medium 0.126 k allocs: 0.0535 MB 0.126 k allocs: 0.0535 MB 1
akima/gradients/mooncake/vector_small 0.126 k allocs: 13.8 kB 0.126 k allocs: 13.8 kB 1
akima/gradients/zygote/matrix_medium 0.337 k allocs: 0.251 MB 0.346 k allocs: 0.274 MB 0.916
akima/gradients/zygote/matrix_small 0.325 k allocs: 0.0584 MB 0.331 k allocs: 0.0632 MB 0.924
akima/gradients/zygote/vector_large 0.181 k allocs: 0.242 MB 0.2 k allocs: 0.244 MB 0.992
akima/gradients/zygote/vector_medium 0.122 k allocs: 0.0531 MB 0.141 k allocs: 0.055 MB 0.964
akima/gradients/zygote/vector_small 0.122 k allocs: 13.4 kB 0.141 k allocs: 15.4 kB 0.869
akima/scaling/eval_10 0.046 k allocs: 19.1 kB 0.044 k allocs: 18.2 kB 1.05
akima/scaling/eval_100 0.046 k allocs: 19.8 kB 0.044 k allocs: 19 kB 1.04
akima/scaling/eval_1000 0.047 k allocs: 26.8 kB 0.045 k allocs: 26 kB 1.03
akima/scaling/eval_250 0.046 k allocs: 20.9 kB 0.044 k allocs: 20.1 kB 1.04
akima/scaling/eval_50 0.046 k allocs: 19.4 kB 0.044 k allocs: 18.6 kB 1.04
akima/scaling/eval_500 0.047 k allocs: 22.9 kB 0.045 k allocs: 22.1 kB 1.04
akima/scaling/nodes_10 0.046 k allocs: 3.84 kB 0.044 k allocs: 3.72 kB 1.03
akima/scaling/nodes_100 0.046 k allocs: 19.8 kB 0.044 k allocs: 19 kB 1.04
akima/scaling/nodes_200 0.046 k allocs: 0.0363 MB 0.044 k allocs: 0.0347 MB 1.05
akima/scaling/nodes_25 0.046 k allocs: 6.47 kB 0.044 k allocs: 6.22 kB 1.04
akima/scaling/nodes_50 0.046 k allocs: 11.2 kB 0.044 k allocs: 10.8 kB 1.04
akima/scaling/nodes_500 0.068 k allocs: 0.087 MB 0.065 k allocs: 0.0831 MB 1.05
akima_spline/plan_512_to_8999 0.078 k allocs: 0.427 MB 0.078 k allocs: 0.427 MB 1
akima_spline/plan_construct_512_to_8999 9 allocs: 0.206 MB 9 allocs: 0.206 MB 1
akima_spline/pure_512_to_8999 0.069 k allocs: 0.156 MB 0.066 k allocs: 0.152 MB 1.03
chebyshev/forward/matrix_medium 6 allocs: 8.85 kB 6 allocs: 8.85 kB 1
chebyshev/forward/matrix_small 5 allocs: 1.91 kB 5 allocs: 1.91 kB 1
chebyshev/forward/polynomials_medium 0.205 k allocs: 0.389 MB 0.205 k allocs: 0.389 MB 1
chebyshev/forward/polynomials_small 0.045 k allocs: 17.5 kB 0.045 k allocs: 17.5 kB 1
chebyshev/forward/vector_large 6 allocs: 8.02 kB 6 allocs: 8.02 kB 1
chebyshev/forward/vector_medium 4 allocs: 1.81 kB 4 allocs: 1.81 kB 1
chebyshev/forward/vector_small 4 allocs: 0.438 kB 4 allocs: 0.438 kB 1
chebyshev/gradients/forwarddiff/vector_medium 0.0384 M allocs: 1.86 MB 0.0384 M allocs: 1.86 MB 1
chebyshev/gradients/forwarddiff/vector_small 1.24 k allocs: 0.0673 MB 1.24 k allocs: 0.0673 MB 1
chebyshev/gradients/mooncake/vector_medium 16 allocs: 5.06 kB 16 allocs: 5.06 kB 1
chebyshev/gradients/mooncake/vector_small 16 allocs: 1.62 kB 16 allocs: 1.62 kB 1
chebyshev/gradients/zygote/vector_medium 12 allocs: 4.56 kB 30 allocs: 5.95 kB 0.766
chebyshev/gradients/zygote/vector_small 12 allocs: 1.12 kB 30 allocs: 2.52 kB 0.447
chebyshev/multidim/forward_2d 9 allocs: 2.55 kB 9 allocs: 2.55 kB 1
chebyshev/multidim/zygote_2d 23 allocs: 7.23 kB 0.041 k allocs: 9.34 kB 0.774
cubic/components/coefficients_large 0.051 k allocs: 0.0628 MB 0.051 k allocs: 0.0628 MB 1
cubic/components/coefficients_medium 0.035 k allocs: 14 kB 0.035 k allocs: 14 kB 1
cubic/components/coefficients_small 0.035 k allocs: 3.52 kB 0.035 k allocs: 3.52 kB 1
cubic/components/eval_large 3 allocs: 7.88 kB 3 allocs: 7.88 kB 1
cubic/components/eval_medium 2 allocs: 2.02 kB 2 allocs: 2.02 kB 1
cubic/components/eval_small 2 allocs: 0.469 kB 2 allocs: 0.469 kB 1
cubic/forward/matrix_medium 0.04 k allocs: 0.0465 MB 0.04 k allocs: 0.0465 MB 1
cubic/forward/matrix_small 0.038 k allocs: 10.4 kB 0.038 k allocs: 10.4 kB 1
cubic/forward/vector_large 0.054 k allocs: 0.0705 MB 0.054 k allocs: 0.0705 MB 1
cubic/forward/vector_medium 0.037 k allocs: 16 kB 0.037 k allocs: 16 kB 1
cubic/forward/vector_small 0.037 k allocs: 3.98 kB 0.037 k allocs: 3.98 kB 1
cubic/gradients/comparison/forward_pass 0.037 k allocs: 16 kB 0.037 k allocs: 16 kB 1
cubic/gradients/comparison/forwarddiff_medium 0.478 k allocs: 0.869 MB 0.478 k allocs: 0.869 MB 1
cubic/gradients/comparison/mooncake_medium 0.113 k allocs: 0.0467 MB 0.113 k allocs: 0.0467 MB 1
cubic/gradients/comparison/zygote_medium 0.134 k allocs: 0.0469 MB 0.152 k allocs: 0.0494 MB 0.949
cubic/gradients/forwarddiff/matrix_medium 4.54 k allocs: 0.0409 GB 4.54 k allocs: 0.0409 GB 1
cubic/gradients/forwarddiff/matrix_small 0.868 k allocs: 1.71 MB 0.868 k allocs: 1.71 MB 1
cubic/gradients/forwarddiff/vector_large 2.81 k allocs: 19 MB 2.81 k allocs: 19 MB 1
cubic/gradients/forwarddiff/vector_medium 0.478 k allocs: 0.869 MB 0.478 k allocs: 0.869 MB 1
cubic/gradients/forwarddiff/vector_small 0.095 k allocs: 0.0354 MB 0.095 k allocs: 0.0354 MB 1
cubic/gradients/mooncake/matrix_medium 0.234 k allocs: 0.176 MB 0.114 k allocs: 0.126 MB 1.4
cubic/gradients/mooncake/matrix_small 0.227 k allocs: 0.0402 MB 0.107 k allocs: 28.6 kB 1.44
cubic/gradients/mooncake/vector_large 0.163 k allocs: 0.208 MB 0.163 k allocs: 0.208 MB 1
cubic/gradients/mooncake/vector_medium 0.113 k allocs: 0.0467 MB 0.113 k allocs: 0.0467 MB 1
cubic/gradients/mooncake/vector_small 0.113 k allocs: 12.4 kB 0.113 k allocs: 12.4 kB 1
cubic/gradients/zygote/matrix_medium 0.255 k allocs: 0.176 MB 0.153 k allocs: 0.129 MB 1.37
cubic/gradients/zygote/matrix_small 0.248 k allocs: 0.0403 MB 0.146 k allocs: 31.6 kB 1.31
cubic/gradients/zygote/vector_large 0.184 k allocs: 0.208 MB 0.202 k allocs: 0.211 MB 0.988
cubic/gradients/zygote/vector_medium 0.134 k allocs: 0.0469 MB 0.152 k allocs: 0.0494 MB 0.949
cubic/gradients/zygote/vector_small 0.134 k allocs: 12.6 kB 0.152 k allocs: 15.1 kB 0.831
cubic/scaling/eval_10 0.037 k allocs: 14.2 kB 0.037 k allocs: 14.2 kB 1
cubic/scaling/eval_100 0.037 k allocs: 14.9 kB 0.037 k allocs: 14.9 kB 1
cubic/scaling/eval_1000 0.038 k allocs: 21.9 kB 0.038 k allocs: 21.9 kB 1
cubic/scaling/eval_250 0.037 k allocs: 16 kB 0.037 k allocs: 16 kB 1
cubic/scaling/eval_50 0.037 k allocs: 14.5 kB 0.037 k allocs: 14.5 kB 1
cubic/scaling/eval_500 0.038 k allocs: 18 kB 0.038 k allocs: 18 kB 1
cubic/scaling/nodes_10 0.037 k allocs: 3.17 kB 0.037 k allocs: 3.17 kB 1
cubic/scaling/nodes_100 0.037 k allocs: 14.9 kB 0.037 k allocs: 14.9 kB 1
cubic/scaling/nodes_200 0.037 k allocs: 27 kB 0.037 k allocs: 27 kB 1
cubic/scaling/nodes_25 0.037 k allocs: 5.02 kB 0.037 k allocs: 5.02 kB 1
cubic/scaling/nodes_50 0.037 k allocs: 8.55 kB 0.037 k allocs: 8.55 kB 1
cubic/scaling/nodes_500 0.053 k allocs: 0.0636 MB 0.053 k allocs: 0.0636 MB 1
cubic_spline/construct_512 0.051 k allocs: 0.0638 MB 0.051 k allocs: 0.0638 MB 1
cubic_spline/plan_512_to_8999 24 allocs: 0.485 MB 24 allocs: 0.485 MB 1
cubic_spline/plan_construct_512_to_8999 0.102 k allocs: 7.09 MB 0.102 k allocs: 7.09 MB 1
cubic_spline/prepared_512_to_8999 3 allocs: 0.0687 MB 3 allocs: 0.0687 MB 1
cubic_spline/pure_512_to_8999 0.054 k allocs: 0.133 MB 0.054 k allocs: 0.133 MB 1
normalization/matrix 3 allocs: 0.229 MB 3 allocs: 0.229 MB 1
normalization/vector 2 allocs: 0.906 kB 2 allocs: 0.906 kB 1
running/lux 0.034 k allocs: 4.23 kB 0.034 k allocs: 4.23 kB 1
running/simplechains 0 allocs: 0 B 0 allocs: 0 B
gradients/single_z/forward_D_z 0.086 k allocs: 4.62 kB
background/dA_z_struct 21 allocs: 1.25 kB
vectorization/E_z_comprehension 2 allocs: 0.297 kB
background/E_z_lowz 0 allocs: 0 B
vectorization/dM_z_scalar_loop 0.632 k allocs: 0.0369 MB
cubic_b_spline/basis_row_preselected 0 allocs: 0 B
vectorization/dL_z_vectorized 0.321 k allocs: 20.9 kB
vectorization/f_z_comprehension 2.58 k allocs: 0.136 MB
gradients/forward_D_z 0.294 k allocs: 26.6 kB
vectorization/dA_z_scalar_loop 0.632 k allocs: 0.0369 MB
vectorization/dL_z_comprehension 0.632 k allocs: 0.0369 MB
vectorization/r_z_vectorized 0.317 k allocs: 20.3 kB
vectorization/r_z_scalar_loop 0.632 k allocs: 0.0369 MB
cubic_b_spline/factorization_512 3 allocs: 28.1 kB
vectorization/dL_z_scalar_loop 0.632 k allocs: 0.0369 MB
gradients/di_zygote_f_z 7.51 k allocs: 0.473 MB
gradients/single_z/forward_r_z 21 allocs: 1.25 kB
gradients/zygote_f_z 7.51 k allocs: 0.473 MB
cubic_b_spline/solve_vector_512 6 allocs: 4.2 kB
gradients/scaling/forwarddiff_D_z_small 0.118 k allocs: 18.1 kB
gradients/single_z/di_mooncake_r_z 0.058 k allocs: 3.22 kB
vectorization/E_z_vectorized 4 allocs: 0.594 kB
vectorization/dM_z_comprehension 0.632 k allocs: 0.0369 MB
cubic_b_spline/basis_stencil_512_to_8999 24 allocs: 0.55 MB
gradients/di_zygote_D_z 7.47 k allocs: 0.463 MB
vectorization/D_z_vectorized 0.152 k allocs: 10.9 kB
background/D_f_z_struct 0.086 k allocs: 4.62 kB
vectorization/f_z_scalar_loop 2.58 k allocs: 0.136 MB
background/E_z_struct 0 allocs: 0 B
gradients/forward_r_z 1.02 k allocs: 0.0644 MB
cubic_b_spline/plan_apply_128 8 allocs: 0.0699 MB
background/E_z_highz 0 allocs: 0 B
gradients/forward_f_z 0.298 k allocs: 28.4 kB
vectorization/D_z_comprehension 2.58 k allocs: 0.136 MB
vectorization/S_of_K_vectorized 2 allocs: 0.219 kB
gradients/single_z/forwarddiff_f_z 0.09 k allocs: 9.84 kB
vectorization/f_z_vectorized 0.156 k allocs: 11.4 kB
vectorization/S_of_K_scalar_loop 2 allocs: 0.219 kB
gradients/di_mooncake_f_z 4.04 k allocs: 0.263 MB
vectorization/D_f_z_comprehension 2.58 k allocs: 0.136 MB
gradients/single_z/forward_f_z 0.086 k allocs: 4.62 kB
gradients/parameter_sensitivity/lcdm_D_z 0.305 k allocs: 0.0858 MB
vectorization/D_z_scalar_loop 2.58 k allocs: 0.136 MB
background/E_z_construct_struct 1 allocs: 0.109 kB
background/dL_z_lowz 21 allocs: 1.25 kB
gradients/zygote_D_z 7.47 k allocs: 0.463 MB
vectorization/D_f_z_scalar_loop 2.58 k allocs: 0.136 MB
background/dL_z_struct 21 allocs: 1.25 kB
gradients/parameter_sensitivity/w0wa_D_z 0.305 k allocs: 0.0858 MB
gradients/forwarddiff_D_z 0.305 k allocs: 0.0858 MB
gradients/zygote_r_z 0.348 M allocs: 0.402 GB
gradients/single_z/di_mooncake_f_z 0.81 k allocs: 0.0489 MB
gradients/single_z/forwarddiff_D_z 0.09 k allocs: 9.84 kB
vectorization/dM_z_vectorized 0.319 k allocs: 20.6 kB
background/r_z_struct 21 allocs: 1.25 kB
cubic_b_spline/construct_512 23 allocs: 0.0437 MB
cubic_b_spline/plan_construct_3000 0.044 k allocs: 0.848 MB
vectorization/D_f_z_vectorized 0.156 k allocs: 11.4 kB
background/dL_z_vector 0.632 k allocs: 0.0369 MB
gradients/scaling/di_mooncake_D_z_small 1.15 k allocs: 0.0693 MB
gradients/scaling/zygote_D_z_large 20.3 k allocs: 1.28 MB
gradients/parameter_sensitivity/curved_D_z 0.305 k allocs: 0.0858 MB
gradients/scaling/forward_D_z_large 1.11 k allocs: 0.108 MB
vectorization/r_z_comprehension 0.632 k allocs: 0.0369 MB
background/dL_z_construct_struct 22 allocs: 1.36 kB
gradients/single_z/zygote_f_z 4.24 k allocs: 0.25 MB
cubic_b_spline/eval_vector_8999 27 allocs: 0.619 MB
gradients/di_zygote_r_z 0.348 M allocs: 0.402 GB
cubic_b_spline/plan_construct_512_to_8999 0.044 k allocs: 0.658 MB
gradients/forwarddiff_f_z 0.311 k allocs: 0.0967 MB
cubic_b_spline/plan_512_to_8999 9 allocs: 0.0728 MB
cubic_b_spline/plan_construct_128 0.041 k allocs: 0.629 MB
gradients/di_mooncake_r_z 3.37 k allocs: 0.18 MB
gradients/single_z/zygote_D_z 4.24 k allocs: 0.249 MB
background/D_z_struct 0.086 k allocs: 4.62 kB
cubic_b_spline/basis_row_search 0 allocs: 0 B
vectorization/E_z_scalar_loop 2 allocs: 0.297 kB
cubic_b_spline/plan_apply_3000 9 allocs: 0.0918 MB
gradients/di_forwarddiff_f_z 0.311 k allocs: 0.0967 MB
gradients/scaling/di_mooncake_D_z_large 16.9 k allocs: 1.1 MB
gradients/single_z/zygote_r_z 5.94 k allocs: 4.55 MB
gradients/di_forwarddiff_r_z 1.02 k allocs: 0.164 MB
background/E_z_vector 2 allocs: 0.297 kB
background/Ωma_struct 0 allocs: 0 B
cubic_b_spline/eval_scalar 0 allocs: 0 B
background/E_a_struct 0 allocs: 0 B
cubic_b_spline/reactant_stencil 17 allocs: 0.531 kB
gradients/scaling/forwarddiff_D_z_large 1.11 k allocs: 0.383 MB
background/D_z_construct_struct 0.086 k allocs: 4.62 kB
gradients/single_z/forwarddiff_r_z 22 allocs: 2.66 kB
gradients/single_z/di_mooncake_D_z 0.81 k allocs: 0.0489 MB
vectorization/dA_z_comprehension 0.632 k allocs: 0.0369 MB
vectorization/dA_z_vectorized 0.321 k allocs: 20.9 kB
background/f_z_struct 0.086 k allocs: 4.62 kB
gradients/scaling/forward_D_z_small 0.113 k allocs: 6.96 kB
gradients/di_mooncake_D_z 4.03 k allocs: 0.26 MB
background/dL_z_highz 21 allocs: 1.25 kB
vectorization/S_of_K_comprehension 2 allocs: 0.219 kB
gradients/di_forwarddiff_D_z 0.305 k allocs: 0.0858 MB
gradients/forwarddiff_r_z 1.02 k allocs: 0.164 MB
cubic_b_spline/solve_matrix_512x10 4 allocs: 0.0392 MB
gradients/scaling/zygote_D_z_small 4.59 k allocs: 0.275 MB
time_to_load 0.159 k allocs: 11.2 kB 0.159 k allocs: 11.2 kB 1

@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Benchmark Results (Julia v1.12)

Time benchmarks
a90fa44... 7d26f73... a90fa44... / 7d26f73...
akima/components/coefficients_large 10.4 ± 3.6 μs 11.9 ± 19 μs 0.879 ± 1.4
akima/components/coefficients_medium 5.43 ± 4.4 μs 5 ± 4 μs 1.09 ± 1.2
akima/components/coefficients_small 0.747 ± 0.36 μs 0.756 ± 0.38 μs 0.988 ± 0.69
akima/components/slopes_large 2.42 ± 0.4 μs 2.58 ± 0.5 μs 0.938 ± 0.24
akima/components/slopes_medium 0.472 ± 0.2 μs 0.477 ± 0.21 μs 0.991 ± 0.6
akima/components/slopes_small 0.127 ± 0.027 μs 0.133 ± 0.13 μs 0.955 ± 0.95
akima/forward/matrix_medium 0.0384 ± 0.012 ms 0.0382 ± 0.011 ms 1.01 ± 0.42
akima/forward/matrix_small 10.1 ± 5.2 μs 8.4 ± 4.9 μs 1.2 ± 0.94
akima/forward/vector_large 0.032 ± 0.0034 ms 0.0408 ± 0.027 ms 0.785 ± 0.52
akima/forward/vector_medium 11.6 ± 6.3 μs 11.1 ± 5.4 μs 1.05 ± 0.76
akima/forward/vector_small 1.49 ± 0.38 μs 1.53 ± 0.41 μs 0.973 ± 0.36
akima/gradients/comparison/di_forwarddiff_medium 0.272 ± 0.04 ms 0.345 ± 0.026 ms 0.79 ± 0.13
akima/gradients/comparison/di_mooncake_medium 31.6 ± 4.1 μs 31.4 ± 3.3 μs 1.01 ± 0.17
akima/gradients/comparison/di_zygote_medium 0.0342 ± 0.0048 ms 0.0351 ± 0.0035 ms 0.973 ± 0.17
akima/gradients/comparison/forward_pass 11.4 ± 6 μs 11.3 ± 5.5 μs 1.02 ± 0.73
akima/gradients/comparison/forwarddiff_medium 0.28 ± 0.04 ms 0.343 ± 0.026 ms 0.815 ± 0.13
akima/gradients/comparison/zygote_medium 0.0339 ± 0.0046 ms 0.0352 ± 0.0037 ms 0.963 ± 0.17
akima/gradients/di_forwarddiff/vector_medium 0.276 ± 0.042 ms 0.337 ± 0.024 ms 0.82 ± 0.14
akima/gradients/di_zygote/matrix_medium 0.102 ± 0.035 ms 0.135 ± 0.0065 ms 0.751 ± 0.26
akima/gradients/di_zygote/vector_medium 0.0341 ± 0.0043 ms 0.0352 ± 0.0036 ms 0.971 ± 0.16
akima/gradients/forwarddiff/matrix_medium 21.1 ± 2.6 ms 28.5 ± 7.1 ms 0.739 ± 0.21
akima/gradients/forwarddiff/matrix_small 0.796 ± 0.091 ms 0.919 ± 0.061 ms 0.867 ± 0.11
akima/gradients/forwarddiff/vector_large 8.75 ± 2 ms 14.4 ± 6.9 ms 0.606 ± 0.32
akima/gradients/forwarddiff/vector_medium 0.277 ± 0.042 ms 0.343 ± 0.026 ms 0.807 ± 0.14
akima/gradients/forwarddiff/vector_small 0.0332 ± 0.0044 ms 0.0327 ± 0.0034 ms 1.02 ± 0.17
akima/gradients/mooncake/matrix_medium 0.0986 ± 0.0092 ms 0.12 ± 0.033 ms 0.819 ± 0.23
akima/gradients/mooncake/matrix_small 0.0385 ± 0.014 ms 0.0379 ± 0.0036 ms 1.01 ± 0.38
akima/gradients/mooncake/vector_large 0.094 ± 0.0086 ms 0.0978 ± 0.01 ms 0.961 ± 0.13
akima/gradients/mooncake/vector_medium 0.0318 ± 0.004 ms 31.1 ± 3.3 μs 1.02 ± 0.17
akima/gradients/mooncake/vector_small 6.27 ± 4.5 μs 6.45 ± 3.7 μs 0.973 ± 0.9
akima/gradients/zygote/matrix_medium 0.101 ± 0.034 ms 0.136 ± 0.008 ms 0.743 ± 0.26
akima/gradients/zygote/matrix_small 0.0392 ± 0.017 ms 0.0435 ± 0.0042 ms 0.901 ± 0.4
akima/gradients/zygote/vector_large 0.106 ± 0.01 ms 0.0815 ± 0.0054 ms 1.3 ± 0.15
akima/gradients/zygote/vector_medium 0.0341 ± 0.0045 ms 0.0351 ± 0.0036 ms 0.972 ± 0.16
akima/gradients/zygote/vector_small 8.67 ± 4.6 μs 8.22 ± 4.1 μs 1.06 ± 0.77
akima/scaling/eval_10 7.66 ± 5.3 μs 6.91 ± 5.1 μs 1.11 ± 1.1
akima/scaling/eval_100 9.37 ± 5.5 μs 8.15 ± 5.1 μs 1.15 ± 0.99
akima/scaling/eval_1000 19.4 ± 5.6 μs 22.1 ± 5 μs 0.88 ± 0.32
akima/scaling/eval_250 11.9 ± 6.7 μs 11.2 ± 5.5 μs 1.06 ± 0.8
akima/scaling/eval_50 8.29 ± 5.3 μs 7.42 ± 5.1 μs 1.12 ± 1.1
akima/scaling/eval_500 14.5 ± 5.8 μs 14.2 ± 4.8 μs 1.02 ± 0.53
akima/scaling/nodes_10 1.51 ± 0.31 μs 1.57 ± 0.36 μs 0.962 ± 0.3
akima/scaling/nodes_100 9.16 ± 5.2 μs 8.21 ± 5.2 μs 1.12 ± 0.95
akima/scaling/nodes_200 16.6 ± 11 μs 15.3 ± 2.6 μs 1.08 ± 0.73
akima/scaling/nodes_25 2.04 ± 0.31 μs 2.01 ± 0.25 μs 1.01 ± 0.2
akima/scaling/nodes_50 4.69 ± 3.1 μs 3.05 ± 2.1 μs 1.54 ± 1.5
akima/scaling/nodes_500 15.1 ± 3 μs 16.4 ± 23 μs 0.919 ± 1.3
akima_spline/plan_512_to_8999 0.075 ± 0.0081 ms 0.0762 ± 0.0084 ms 0.984 ± 0.15
akima_spline/plan_construct_512_to_8999 0.205 ± 0.01 ms 0.203 ± 0.0081 ms 1.01 ± 0.064
akima_spline/pure_512_to_8999 0.216 ± 0.0092 ms 0.223 ± 0.0082 ms 0.968 ± 0.055
chebyshev/forward/matrix_medium 8.21 ± 0.49 μs 8.15 ± 0.43 μs 1.01 ± 0.08
chebyshev/forward/matrix_small 2.21 ± 0.13 μs 2.28 ± 0.15 μs 0.97 ± 0.088
chebyshev/forward/polynomials_medium 0.0516 ± 0.054 ms 0.0528 ± 0.06 ms 0.977 ± 1.5
chebyshev/forward/polynomials_small 3.11 ± 2.3 μs 3.31 ± 2.1 μs 0.94 ± 0.91
chebyshev/forward/vector_large 0.0321 ± 0.0011 ms 31.5 ± 1.8 μs 1.02 ± 0.067
chebyshev/forward/vector_medium 0.997 ± 0.11 μs 0.983 ± 0.11 μs 1.01 ± 0.16
chebyshev/forward/vector_small 0.284 ± 0.011 μs 0.29 ± 0.007 μs 0.979 ± 0.045
chebyshev/gradients/forwarddiff/vector_medium 5.16 ± 0.4 ms 5.15 ± 0.37 ms 1 ± 0.11
chebyshev/gradients/forwarddiff/vector_small 0.197 ± 0.015 ms 0.207 ± 0.014 ms 0.949 ± 0.097
chebyshev/gradients/mooncake/vector_medium 3.64 ± 1.1 μs 3.62 ± 2.2 μs 1.01 ± 0.7
chebyshev/gradients/mooncake/vector_small 0.921 ± 0.13 μs 0.895 ± 0.16 μs 1.03 ± 0.24
chebyshev/gradients/zygote/vector_medium 2.35 ± 1.2 μs 3.21 ± 1.2 μs 0.731 ± 0.45
chebyshev/gradients/zygote/vector_small 0.603 ± 0.12 μs 1.71 ± 0.19 μs 0.353 ± 0.082
chebyshev/multidim/forward_2d 3.95 ± 0.92 μs 3.84 ± 0.92 μs 1.03 ± 0.34
chebyshev/multidim/zygote_2d 8.07 ± 1.4 μs 9.32 ± 1.5 μs 0.866 ± 0.2
cubic/components/coefficients_large 20.1 ± 1.4 μs 20.8 ± 3.4 μs 0.963 ± 0.17
cubic/components/coefficients_medium 4.17 ± 4.2 μs 6.97 ± 4.4 μs 0.598 ± 0.71
cubic/components/coefficients_small 1.02 ± 0.36 μs 1.02 ± 0.37 μs 1 ± 0.51
cubic/components/eval_large 19.5 ± 0.41 μs 19.8 ± 0.41 μs 0.989 ± 0.029
cubic/components/eval_medium 3.96 ± 0.083 μs 4 ± 0.14 μs 0.988 ± 0.04
cubic/components/eval_small 0.643 ± 0.024 μs 0.645 ± 0.028 μs 0.997 ± 0.057
cubic/forward/matrix_medium 30.4 ± 11 μs 30.5 ± 2 μs 0.996 ± 0.36
cubic/forward/matrix_small 5.98 ± 1.4 μs 5.65 ± 0.7 μs 1.06 ± 0.28
cubic/forward/vector_large 0.0404 ± 0.0018 ms 0.0407 ± 0.0037 ms 0.992 ± 0.1
cubic/forward/vector_medium 8.2 ± 4.5 μs 11.8 ± 5 μs 0.696 ± 0.48
cubic/forward/vector_small 1.67 ± 0.36 μs 1.64 ± 0.34 μs 1.02 ± 0.31
cubic/gradients/comparison/forward_pass 11.8 ± 4.8 μs 12 ± 5 μs 0.979 ± 0.57
cubic/gradients/comparison/forwarddiff_medium 0.284 ± 0.02 ms 0.286 ± 0.02 ms 0.992 ± 0.098
cubic/gradients/comparison/mooncake_medium 19.6 ± 14 μs 0.033 ± 0.0042 ms 0.594 ± 0.44
cubic/gradients/comparison/zygote_medium 0.0357 ± 0.014 ms 0.0374 ± 0.0044 ms 0.954 ± 0.4
cubic/gradients/forwarddiff/matrix_medium 23.7 ± 1.5 ms 26.4 ± 2.3 ms 0.897 ± 0.097
cubic/gradients/forwarddiff/matrix_small 0.884 ± 0.063 ms 0.969 ± 0.046 ms 0.913 ± 0.078
cubic/gradients/forwarddiff/vector_large 7.61 ± 0.73 ms 8.23 ± 1.8 ms 0.925 ± 0.22
cubic/gradients/forwarddiff/vector_medium 0.273 ± 0.023 ms 0.296 ± 0.017 ms 0.922 ± 0.094
cubic/gradients/forwarddiff/vector_small 19.5 ± 8.5 μs 20 ± 9 μs 0.973 ± 0.61
cubic/gradients/mooncake/matrix_medium 0.0914 ± 0.0096 ms 0.0845 ± 0.006 ms 1.08 ± 0.14
cubic/gradients/mooncake/matrix_small 27.4 ± 10 μs 21.8 ± 5.6 μs 1.26 ± 0.58
cubic/gradients/mooncake/vector_large 0.113 ± 0.009 ms 0.111 ± 0.0089 ms 1.02 ± 0.11
cubic/gradients/mooncake/vector_medium 0.0331 ± 0.0055 ms 0.0327 ± 0.0041 ms 1.01 ± 0.21
cubic/gradients/mooncake/vector_small 6.85 ± 3.9 μs 6.95 ± 3.9 μs 0.985 ± 0.79
cubic/gradients/zygote/matrix_medium 0.0996 ± 0.025 ms 0.0882 ± 0.011 ms 1.13 ± 0.31
cubic/gradients/zygote/matrix_small 31.1 ± 12 μs 25.7 ± 7.8 μs 1.21 ± 0.59
cubic/gradients/zygote/vector_large 0.114 ± 0.0094 ms 0.14 ± 0.0087 ms 0.813 ± 0.084
cubic/gradients/zygote/vector_medium 0.0362 ± 0.0046 ms 0.0374 ± 0.0049 ms 0.968 ± 0.18
cubic/gradients/zygote/vector_small 9.22 ± 4.2 μs 10.4 ± 5.1 μs 0.889 ± 0.6
cubic/scaling/eval_10 4.3 ± 3.5 μs 7.34 ± 4.6 μs 0.586 ± 0.61
cubic/scaling/eval_100 5.76 ± 3.5 μs 9.11 ± 4.8 μs 0.632 ± 0.51
cubic/scaling/eval_1000 20.4 ± 3.4 μs 23.4 ± 4.6 μs 0.869 ± 0.22
cubic/scaling/eval_250 8.14 ± 4.6 μs 11.9 ± 5.2 μs 0.684 ± 0.49
cubic/scaling/eval_50 4.9 ± 3.4 μs 7.93 ± 4.6 μs 0.618 ± 0.56
cubic/scaling/eval_500 12.4 ± 3.5 μs 15.5 ± 4.7 μs 0.8 ± 0.33
cubic/scaling/nodes_10 1.62 ± 0.22 μs 1.68 ± 0.23 μs 0.963 ± 0.19
cubic/scaling/nodes_100 5.69 ± 3.7 μs 8.85 ± 4.5 μs 0.643 ± 0.53
cubic/scaling/nodes_200 15.4 ± 7.1 μs 15.8 ± 7.4 μs 0.979 ± 0.64
cubic/scaling/nodes_25 2.51 ± 0.33 μs 2.49 ± 0.37 μs 1.01 ± 0.2
cubic/scaling/nodes_50 3.79 ± 2.4 μs 3.71 ± 2.3 μs 1.02 ± 0.9
cubic/scaling/nodes_500 22 ± 1.6 μs 22.9 ± 3.6 μs 0.962 ± 0.17
cubic_spline/construct_512 21.3 ± 9.4 μs 22 ± 15 μs 0.966 ± 0.8
cubic_spline/plan_512_to_8999 0.168 ± 0.022 ms 0.183 ± 0.032 ms 0.92 ± 0.2
cubic_spline/plan_construct_512_to_8999 4.52 ± 0.13 ms 4.56 ± 1.6 ms 0.991 ± 0.35
cubic_spline/prepared_512_to_8999 0.206 ± 0.0094 ms 0.221 ± 0.01 ms 0.932 ± 0.06
cubic_spline/pure_512_to_8999 0.229 ± 0.01 ms 0.245 ± 0.011 ms 0.934 ± 0.06
normalization/matrix 29.1 ± 10 μs 28 ± 10 μs 1.04 ± 0.53
normalization/vector 0.112 ± 0.004 μs 0.113 ± 0.002 μs 0.991 ± 0.04
running/lux 5.92 ± 0.3 μs 5.88 ± 0.32 μs 1.01 ± 0.075
running/simplechains 2.5 ± 0.015 μs 2.42 ± 0.089 μs 1.03 ± 0.038
gradients/single_z/forward_D_z 0.0625 ± 0.0041 ms
background/dA_z_struct 1.71 ± 0.074 μs
vectorization/E_z_comprehension 6.09 ± 0.096 μs
background/E_z_lowz 0.233 ± 0.005 μs
vectorization/dM_z_scalar_loop 0.0614 ± 0.011 ms
cubic_b_spline/basis_row_preselected 0.059 ± 0.002 μs
vectorization/dL_z_vectorized 0.0362 ± 0.006 ms
vectorization/f_z_comprehension 2.05 ± 0.054 ms
gradients/forward_D_z 0.0764 ± 0.0061 ms
vectorization/dA_z_scalar_loop 0.0614 ± 0.011 ms
vectorization/dL_z_comprehension 0.0615 ± 0.011 ms
vectorization/r_z_vectorized 0.0356 ± 0.0058 ms
vectorization/r_z_scalar_loop 0.0598 ± 0.011 ms
cubic_b_spline/factorization_512 30.7 ± 9 μs
vectorization/dL_z_scalar_loop 0.0607 ± 0.011 ms
gradients/di_zygote_f_z 1.35 ± 0.066 ms
gradients/single_z/forward_r_z 1.63 ± 0.075 μs
gradients/zygote_f_z 1.37 ± 0.065 ms
cubic_b_spline/solve_vector_512 7.09 ± 0.45 μs
gradients/scaling/forwarddiff_D_z_small 0.112 ± 0.0053 ms
gradients/single_z/di_mooncake_r_z 17.2 ± 1.2 μs
vectorization/E_z_vectorized 3.09 ± 0.038 μs
vectorization/dM_z_comprehension 0.0611 ± 0.011 ms
cubic_b_spline/basis_stencil_512_to_8999 0.281 ± 0.018 ms
gradients/di_zygote_D_z 1.36 ± 0.078 ms
vectorization/D_z_vectorized 0.0712 ± 0.004 ms
background/D_f_z_struct 0.0676 ± 0.0037 ms
vectorization/f_z_scalar_loop 2.05 ± 0.047 ms
background/E_z_struct 0.232 ± 0.005 μs
gradients/forward_r_z 0.231 ± 0.012 ms
cubic_b_spline/plan_apply_128 18 ± 1.3 μs
background/E_z_highz 0.231 ± 0.013 μs
gradients/forward_f_z 0.0771 ± 0.0067 ms
vectorization/D_z_comprehension 2.05 ± 0.055 ms
vectorization/S_of_K_vectorized 0.222 ± 0.004 μs
gradients/single_z/forwarddiff_f_z 0.107 ± 0.0051 ms
vectorization/f_z_vectorized 0.0713 ± 0.004 ms
vectorization/S_of_K_scalar_loop 0.221 ± 0.007 μs
gradients/di_mooncake_f_z 0.736 ± 0.057 ms
vectorization/D_f_z_comprehension 2.05 ± 0.051 ms
gradients/single_z/forward_f_z 0.0621 ± 0.0037 ms
gradients/parameter_sensitivity/lcdm_D_z 0.141 ± 0.0082 ms
vectorization/D_z_scalar_loop 2.05 ± 0.051 ms
background/E_z_construct_struct 0.239 ± 0.008 μs
background/dL_z_lowz 1.69 ± 0.08 μs
gradients/zygote_D_z 1.34 ± 0.074 ms
vectorization/D_f_z_scalar_loop 2.05 ± 0.055 ms
background/dL_z_struct 1.7 ± 0.057 μs
gradients/parameter_sensitivity/w0wa_D_z 0.15 ± 0.0091 ms
gradients/forwarddiff_D_z 0.141 ± 0.0086 ms
gradients/zygote_r_z 0.186 ± 0.018 s
gradients/single_z/di_mooncake_f_z 0.389 ± 0.018 ms
gradients/single_z/forwarddiff_D_z 0.107 ± 0.0041 ms
vectorization/dM_z_vectorized 0.0356 ± 0.0063 ms
background/r_z_struct 1.63 ± 0.062 μs
cubic_b_spline/construct_512 0.0409 ± 0.0014 ms
cubic_b_spline/plan_construct_3000 0.809 ± 0.029 ms
vectorization/D_f_z_vectorized 0.0714 ± 0.004 ms
background/dL_z_vector 0.0614 ± 0.012 ms
gradients/scaling/di_mooncake_D_z_small 0.436 ± 0.023 ms
gradients/scaling/zygote_D_z_large 2.26 ± 0.15 ms
gradients/parameter_sensitivity/curved_D_z 0.143 ± 0.011 ms
gradients/scaling/forward_D_z_large 0.12 ± 0.0085 ms
vectorization/r_z_comprehension 0.0589 ± 0.011 ms
background/dL_z_construct_struct 1.71 ± 0.059 μs
gradients/single_z/zygote_f_z 1.05 ± 0.042 ms
cubic_b_spline/eval_vector_8999 0.299 ± 0.017 ms
gradients/di_zygote_r_z 0.168 ± 0.0099 s
cubic_b_spline/plan_construct_512_to_8999 0.338 ± 0.021 ms
gradients/forwarddiff_f_z 0.16 ± 0.0097 ms
cubic_b_spline/plan_512_to_8999 24.1 ± 1.6 μs
cubic_b_spline/plan_construct_128 0.262 ± 0.018 ms
gradients/di_mooncake_r_z 1.36 ± 0.041 ms
gradients/single_z/zygote_D_z 1.03 ± 0.05 ms
background/D_z_struct 0.0678 ± 0.0037 ms
cubic_b_spline/basis_row_search 0.07 ± 0.002 μs
vectorization/E_z_scalar_loop 5.66 ± 0.19 μs
cubic_b_spline/plan_apply_3000 0.0578 ± 0.0036 ms
gradients/di_forwarddiff_f_z 0.142 ± 0.0083 ms
gradients/scaling/di_mooncake_D_z_large 1.62 ± 0.12 ms
gradients/single_z/zygote_r_z 1.87 ± 0.14 ms
gradients/di_forwarddiff_r_z 0.349 ± 0.016 ms
background/E_z_vector 5.88 ± 0.18 μs
background/Ωma_struct 0.236 ± 0.01 μs
cubic_b_spline/eval_scalar 0.079 ± 0.003 μs
background/E_a_struct 0.232 ± 0.006 μs
cubic_b_spline/reactant_stencil 0.297 ± 0.052 ms
gradients/scaling/forwarddiff_D_z_large 0.282 ± 0.032 ms
background/D_z_construct_struct 0.0677 ± 0.0037 ms
gradients/single_z/forwarddiff_r_z 3.11 ± 0.28 μs
gradients/single_z/di_mooncake_D_z 0.39 ± 0.018 ms
vectorization/dA_z_comprehension 0.0609 ± 0.012 ms
vectorization/dA_z_vectorized 0.0356 ± 0.0062 ms
background/f_z_struct 0.0677 ± 0.0036 ms
gradients/scaling/forward_D_z_small 0.0639 ± 0.0037 ms
gradients/di_mooncake_D_z 0.677 ± 0.039 ms
background/dL_z_highz 1.71 ± 0.081 μs
vectorization/S_of_K_comprehension 0.224 ± 0.003 μs
gradients/di_forwarddiff_D_z 0.143 ± 0.012 ms
gradients/forwarddiff_r_z 0.353 ± 0.019 ms
cubic_b_spline/solve_matrix_512x10 0.054 ± 0.0011 ms
gradients/scaling/zygote_D_z_small 1.09 ± 0.065 ms
time_to_load 3.74 ± 0.038 s 3.54 ± 0.052 s 1.06 ± 0.019
Memory benchmarks
a90fa44... 7d26f73... a90fa44... / 7d26f73...
akima/components/coefficients_large 0.051 k allocs: 0.0665 MB 0.051 k allocs: 0.0665 MB 1
akima/components/coefficients_medium 0.034 k allocs: 14.7 kB 0.034 k allocs: 14.7 kB 1
akima/components/coefficients_small 0.034 k allocs: 3.61 kB 0.034 k allocs: 3.61 kB 1
akima/components/slopes_large 12 allocs: 16 kB 12 allocs: 16 kB 1
akima/components/slopes_medium 8 allocs: 3.39 kB 8 allocs: 3.39 kB 1
akima/components/slopes_small 8 allocs: 0.844 kB 8 allocs: 0.844 kB 1
akima/forward/matrix_medium 0.099 k allocs: 0.0864 MB 0.099 k allocs: 0.0864 MB 1
akima/forward/matrix_small 0.095 k allocs: 20.3 kB 0.095 k allocs: 20.3 kB 1
akima/forward/vector_large 0.069 k allocs: 0.0938 MB 0.066 k allocs: 0.0899 MB 1.04
akima/forward/vector_medium 0.046 k allocs: 20.9 kB 0.044 k allocs: 20.1 kB 1.04
akima/forward/vector_small 0.046 k allocs: 5.12 kB 0.044 k allocs: 4.92 kB 1.04
akima/gradients/comparison/di_forwarddiff_medium 0.595 k allocs: 1.95 MB 0.577 k allocs: 1.95 MB 1
akima/gradients/comparison/di_mooncake_medium 0.126 k allocs: 0.0535 MB 0.126 k allocs: 0.0535 MB 1
akima/gradients/comparison/di_zygote_medium 0.149 k allocs: 0.0553 MB 0.158 k allocs: 0.0566 MB 0.977
akima/gradients/comparison/forward_pass 0.046 k allocs: 20.9 kB 0.044 k allocs: 20.1 kB 1.04
akima/gradients/comparison/forwarddiff_medium 0.595 k allocs: 1.95 MB 0.577 k allocs: 1.95 MB 1
akima/gradients/comparison/zygote_medium 0.149 k allocs: 0.0553 MB 0.158 k allocs: 0.0566 MB 0.977
akima/gradients/di_forwarddiff/vector_medium 0.595 k allocs: 1.95 MB 0.577 k allocs: 1.95 MB 1
akima/gradients/di_zygote/matrix_medium 0.337 k allocs: 0.254 MB 0.355 k allocs: 0.28 MB 0.909
akima/gradients/di_zygote/vector_medium 0.149 k allocs: 0.0553 MB 0.158 k allocs: 0.0566 MB 0.977
akima/gradients/forwarddiff/matrix_medium 11.8 k allocs: 0.0862 GB 11.8 k allocs: 0.0862 GB 1
akima/gradients/forwarddiff/matrix_small 2.21 k allocs: 3.68 MB 2.21 k allocs: 3.68 MB 1
akima/gradients/forwarddiff/vector_large 2.9 k allocs: 0.0433 GB 2.77 k allocs: 0.0431 GB 1
akima/gradients/forwarddiff/vector_medium 0.595 k allocs: 1.95 MB 0.577 k allocs: 1.95 MB 1
akima/gradients/forwarddiff/vector_small 0.097 k allocs: 0.0779 MB 0.093 k allocs: 0.0775 MB 1.01
akima/gradients/mooncake/matrix_medium 0.325 k allocs: 0.274 MB 0.325 k allocs: 0.274 MB 1
akima/gradients/mooncake/matrix_small 0.31 k allocs: 0.0635 MB 0.31 k allocs: 0.0635 MB 1
akima/gradients/mooncake/vector_large 0.185 k allocs: 0.243 MB 0.185 k allocs: 0.243 MB 1
akima/gradients/mooncake/vector_medium 0.126 k allocs: 0.0535 MB 0.126 k allocs: 0.0535 MB 1
akima/gradients/mooncake/vector_small 0.126 k allocs: 13.8 kB 0.126 k allocs: 13.8 kB 1
akima/gradients/zygote/matrix_medium 0.337 k allocs: 0.254 MB 0.355 k allocs: 0.28 MB 0.909
akima/gradients/zygote/matrix_small 0.325 k allocs: 0.0616 MB 0.34 k allocs: 0.0688 MB 0.896
akima/gradients/zygote/vector_large 0.208 k allocs: 0.245 MB 0.217 k allocs: 0.246 MB 0.995
akima/gradients/zygote/vector_medium 0.149 k allocs: 0.0553 MB 0.158 k allocs: 0.0566 MB 0.977
akima/gradients/zygote/vector_small 0.149 k allocs: 15.6 kB 0.158 k allocs: 17 kB 0.921
akima/scaling/eval_10 0.046 k allocs: 19.1 kB 0.044 k allocs: 18.2 kB 1.05
akima/scaling/eval_100 0.046 k allocs: 19.8 kB 0.044 k allocs: 19 kB 1.04
akima/scaling/eval_1000 0.047 k allocs: 26.8 kB 0.045 k allocs: 26 kB 1.03
akima/scaling/eval_250 0.046 k allocs: 20.9 kB 0.044 k allocs: 20.1 kB 1.04
akima/scaling/eval_50 0.046 k allocs: 19.4 kB 0.044 k allocs: 18.6 kB 1.04
akima/scaling/eval_500 0.047 k allocs: 22.9 kB 0.045 k allocs: 22.1 kB 1.04
akima/scaling/nodes_10 0.046 k allocs: 3.84 kB 0.044 k allocs: 3.72 kB 1.03
akima/scaling/nodes_100 0.046 k allocs: 19.8 kB 0.044 k allocs: 19 kB 1.04
akima/scaling/nodes_200 0.046 k allocs: 0.0363 MB 0.044 k allocs: 0.0347 MB 1.05
akima/scaling/nodes_25 0.046 k allocs: 6.47 kB 0.044 k allocs: 6.22 kB 1.04
akima/scaling/nodes_50 0.046 k allocs: 11.2 kB 0.044 k allocs: 10.8 kB 1.04
akima/scaling/nodes_500 0.068 k allocs: 0.087 MB 0.065 k allocs: 0.0831 MB 1.05
akima_spline/plan_512_to_8999 0.078 k allocs: 0.427 MB 0.078 k allocs: 0.427 MB 1
akima_spline/plan_construct_512_to_8999 9 allocs: 0.206 MB 9 allocs: 0.206 MB 1
akima_spline/pure_512_to_8999 0.069 k allocs: 0.156 MB 0.066 k allocs: 0.152 MB 1.03
chebyshev/forward/matrix_medium 6 allocs: 8.85 kB 6 allocs: 8.85 kB 1
chebyshev/forward/matrix_small 5 allocs: 1.91 kB 5 allocs: 1.91 kB 1
chebyshev/forward/polynomials_medium 0.205 k allocs: 0.389 MB 0.205 k allocs: 0.389 MB 1
chebyshev/forward/polynomials_small 0.045 k allocs: 17.5 kB 0.045 k allocs: 17.5 kB 1
chebyshev/forward/vector_large 7 allocs: 8.05 kB 7 allocs: 8.05 kB 1
chebyshev/forward/vector_medium 5 allocs: 1.84 kB 5 allocs: 1.84 kB 1
chebyshev/forward/vector_small 5 allocs: 0.469 kB 5 allocs: 0.469 kB 1
chebyshev/gradients/forwarddiff/vector_medium 0.0348 M allocs: 1.71 MB 0.0348 M allocs: 1.71 MB 1
chebyshev/gradients/forwarddiff/vector_small 1.08 k allocs: 0.0607 MB 1.08 k allocs: 0.0607 MB 1
chebyshev/gradients/mooncake/vector_medium 18 allocs: 5.08 kB 18 allocs: 5.08 kB 1
chebyshev/gradients/mooncake/vector_small 18 allocs: 1.64 kB 18 allocs: 1.64 kB 1
chebyshev/gradients/zygote/vector_medium 14 allocs: 4.62 kB 0.032 k allocs: 6.02 kB 0.769
chebyshev/gradients/zygote/vector_small 14 allocs: 1.19 kB 0.032 k allocs: 2.58 kB 0.461
chebyshev/multidim/forward_2d 9 allocs: 2.55 kB 9 allocs: 2.55 kB 1
chebyshev/multidim/zygote_2d 23 allocs: 7.23 kB 0.041 k allocs: 9.34 kB 0.774
cubic/components/coefficients_large 0.051 k allocs: 0.0628 MB 0.051 k allocs: 0.0628 MB 1
cubic/components/coefficients_medium 0.035 k allocs: 14 kB 0.035 k allocs: 14 kB 1
cubic/components/coefficients_small 0.035 k allocs: 3.52 kB 0.035 k allocs: 3.52 kB 1
cubic/components/eval_large 3 allocs: 7.88 kB 3 allocs: 7.88 kB 1
cubic/components/eval_medium 2 allocs: 2.02 kB 2 allocs: 2.02 kB 1
cubic/components/eval_small 2 allocs: 0.469 kB 2 allocs: 0.469 kB 1
cubic/forward/matrix_medium 0.04 k allocs: 0.0465 MB 0.04 k allocs: 0.0465 MB 1
cubic/forward/matrix_small 0.038 k allocs: 10.4 kB 0.038 k allocs: 10.4 kB 1
cubic/forward/vector_large 0.054 k allocs: 0.0705 MB 0.054 k allocs: 0.0705 MB 1
cubic/forward/vector_medium 0.037 k allocs: 16 kB 0.037 k allocs: 16 kB 1
cubic/forward/vector_small 0.037 k allocs: 3.98 kB 0.037 k allocs: 3.98 kB 1
cubic/gradients/comparison/forward_pass 0.037 k allocs: 16 kB 0.037 k allocs: 16 kB 1
cubic/gradients/comparison/forwarddiff_medium 0.478 k allocs: 0.869 MB 0.478 k allocs: 0.869 MB 1
cubic/gradients/comparison/mooncake_medium 0.113 k allocs: 0.0467 MB 0.113 k allocs: 0.0467 MB 1
cubic/gradients/comparison/zygote_medium 0.134 k allocs: 0.0488 MB 0.143 k allocs: 0.0505 MB 0.967
cubic/gradients/forwarddiff/matrix_medium 4.54 k allocs: 0.0409 GB 4.54 k allocs: 0.0409 GB 1
cubic/gradients/forwarddiff/matrix_small 0.868 k allocs: 1.71 MB 0.868 k allocs: 1.71 MB 1
cubic/gradients/forwarddiff/vector_large 2.81 k allocs: 19 MB 2.81 k allocs: 19 MB 1
cubic/gradients/forwarddiff/vector_medium 0.478 k allocs: 0.869 MB 0.478 k allocs: 0.869 MB 1
cubic/gradients/forwarddiff/vector_small 0.095 k allocs: 0.0354 MB 0.095 k allocs: 0.0354 MB 1
cubic/gradients/mooncake/matrix_medium 0.234 k allocs: 0.176 MB 0.114 k allocs: 0.126 MB 1.4
cubic/gradients/mooncake/matrix_small 0.227 k allocs: 0.0401 MB 0.107 k allocs: 28.6 kB 1.44
cubic/gradients/mooncake/vector_large 0.163 k allocs: 0.208 MB 0.163 k allocs: 0.208 MB 1
cubic/gradients/mooncake/vector_medium 0.113 k allocs: 0.0467 MB 0.113 k allocs: 0.0467 MB 1
cubic/gradients/mooncake/vector_small 0.113 k allocs: 12.3 kB 0.113 k allocs: 12.3 kB 1
cubic/gradients/zygote/matrix_medium 0.255 k allocs: 0.178 MB 0.144 k allocs: 0.13 MB 1.37
cubic/gradients/zygote/matrix_small 0.248 k allocs: 0.0426 MB 0.137 k allocs: 0.0322 MB 1.32
cubic/gradients/zygote/vector_large 0.184 k allocs: 0.21 MB 0.193 k allocs: 0.212 MB 0.992
cubic/gradients/zygote/vector_medium 0.134 k allocs: 0.0488 MB 0.143 k allocs: 0.0505 MB 0.967
cubic/gradients/zygote/vector_small 0.134 k allocs: 14.5 kB 0.143 k allocs: 16.3 kB 0.894
cubic/scaling/eval_10 0.037 k allocs: 14.2 kB 0.037 k allocs: 14.2 kB 1
cubic/scaling/eval_100 0.037 k allocs: 14.9 kB 0.037 k allocs: 14.9 kB 1
cubic/scaling/eval_1000 0.038 k allocs: 21.9 kB 0.038 k allocs: 21.9 kB 1
cubic/scaling/eval_250 0.037 k allocs: 16 kB 0.037 k allocs: 16 kB 1
cubic/scaling/eval_50 0.037 k allocs: 14.5 kB 0.037 k allocs: 14.5 kB 1
cubic/scaling/eval_500 0.038 k allocs: 18 kB 0.038 k allocs: 18 kB 1
cubic/scaling/nodes_10 0.037 k allocs: 3.17 kB 0.037 k allocs: 3.17 kB 1
cubic/scaling/nodes_100 0.037 k allocs: 14.9 kB 0.037 k allocs: 14.9 kB 1
cubic/scaling/nodes_200 0.037 k allocs: 27 kB 0.037 k allocs: 27 kB 1
cubic/scaling/nodes_25 0.037 k allocs: 5.02 kB 0.037 k allocs: 5.02 kB 1
cubic/scaling/nodes_50 0.037 k allocs: 8.55 kB 0.037 k allocs: 8.55 kB 1
cubic/scaling/nodes_500 0.053 k allocs: 0.0636 MB 0.053 k allocs: 0.0636 MB 1
cubic_spline/construct_512 0.051 k allocs: 0.0638 MB 0.051 k allocs: 0.0638 MB 1
cubic_spline/plan_512_to_8999 24 allocs: 0.485 MB 24 allocs: 0.485 MB 1
cubic_spline/plan_construct_512_to_8999 0.102 k allocs: 7.09 MB 0.102 k allocs: 7.09 MB 1
cubic_spline/prepared_512_to_8999 3 allocs: 0.0687 MB 3 allocs: 0.0687 MB 1
cubic_spline/pure_512_to_8999 0.054 k allocs: 0.133 MB 0.054 k allocs: 0.133 MB 1
normalization/matrix 3 allocs: 0.229 MB 3 allocs: 0.229 MB 1
normalization/vector 2 allocs: 0.906 kB 2 allocs: 0.906 kB 1
running/lux 30 allocs: 4.11 kB 30 allocs: 4.11 kB 1
running/simplechains 0 allocs: 0 B 0 allocs: 0 B
gradients/single_z/forward_D_z 0.092 k allocs: 4.74 kB
background/dA_z_struct 21 allocs: 1.38 kB
vectorization/E_z_comprehension 2 allocs: 0.297 kB
background/E_z_lowz 0 allocs: 0 B
vectorization/dM_z_scalar_loop 0.632 k allocs: 0.0406 MB
cubic_b_spline/basis_row_preselected 0 allocs: 0 B
vectorization/dL_z_vectorized 0.321 k allocs: 21 kB
vectorization/f_z_comprehension 2.76 k allocs: 0.139 MB
gradients/forward_D_z 0.301 k allocs: 26.5 kB
vectorization/dA_z_scalar_loop 0.632 k allocs: 0.0406 MB
vectorization/dL_z_comprehension 0.632 k allocs: 0.0406 MB
vectorization/r_z_vectorized 0.317 k allocs: 20.4 kB
vectorization/r_z_scalar_loop 0.632 k allocs: 0.0406 MB
cubic_b_spline/factorization_512 3 allocs: 28.1 kB
vectorization/dL_z_scalar_loop 0.632 k allocs: 0.0406 MB
gradients/di_zygote_f_z 7.94 k allocs: 0.457 MB
gradients/single_z/forward_r_z 21 allocs: 1.38 kB
gradients/zygote_f_z 7.94 k allocs: 0.457 MB
cubic_b_spline/solve_vector_512 6 allocs: 4.2 kB
gradients/scaling/forwarddiff_D_z_small 0.122 k allocs: 17.9 kB
gradients/single_z/di_mooncake_r_z 0.058 k allocs: 3.47 kB
vectorization/E_z_vectorized 4 allocs: 0.594 kB
vectorization/dM_z_comprehension 0.632 k allocs: 0.0406 MB
cubic_b_spline/basis_stencil_512_to_8999 24 allocs: 0.55 MB
gradients/di_zygote_D_z 7.91 k allocs: 0.447 MB
vectorization/D_z_vectorized 0.159 k allocs: 11.1 kB
background/D_f_z_struct 0.092 k allocs: 4.74 kB
vectorization/f_z_scalar_loop 2.76 k allocs: 0.139 MB
background/E_z_struct 0 allocs: 0 B
gradients/forward_r_z 1.02 k allocs: 0.0645 MB
cubic_b_spline/plan_apply_128 8 allocs: 0.0699 MB
background/E_z_highz 0 allocs: 0 B
gradients/forward_f_z 0.305 k allocs: 28.4 kB
vectorization/D_z_comprehension 2.76 k allocs: 0.139 MB
vectorization/S_of_K_vectorized 2 allocs: 0.219 kB
gradients/single_z/forwarddiff_f_z 0.094 k allocs: 9.01 kB
vectorization/f_z_vectorized 0.163 k allocs: 11.7 kB
vectorization/S_of_K_scalar_loop 2 allocs: 0.219 kB
gradients/di_mooncake_f_z 4.16 k allocs: 0.271 MB
vectorization/D_f_z_comprehension 2.76 k allocs: 0.139 MB
gradients/single_z/forward_f_z 0.092 k allocs: 4.74 kB
gradients/parameter_sensitivity/lcdm_D_z 0.309 k allocs: 0.0835 MB
vectorization/D_z_scalar_loop 2.76 k allocs: 0.139 MB
background/E_z_construct_struct 1 allocs: 0.109 kB
background/dL_z_lowz 21 allocs: 1.38 kB
gradients/zygote_D_z 7.91 k allocs: 0.447 MB
vectorization/D_f_z_scalar_loop 2.76 k allocs: 0.14 MB
background/dL_z_struct 21 allocs: 1.38 kB
gradients/parameter_sensitivity/w0wa_D_z 0.309 k allocs: 0.0835 MB
gradients/forwarddiff_D_z 0.309 k allocs: 0.0835 MB
gradients/zygote_r_z 0.484 M allocs: 0.456 GB
gradients/single_z/di_mooncake_f_z 0.934 k allocs: 0.0533 MB
gradients/single_z/forwarddiff_D_z 0.094 k allocs: 9.01 kB
vectorization/dM_z_vectorized 0.319 k allocs: 20.7 kB
background/r_z_struct 21 allocs: 1.38 kB
cubic_b_spline/construct_512 23 allocs: 0.0437 MB
cubic_b_spline/plan_construct_3000 0.044 k allocs: 0.848 MB
vectorization/D_f_z_vectorized 0.163 k allocs: 11.7 kB
background/dL_z_vector 0.632 k allocs: 0.0406 MB
gradients/scaling/di_mooncake_D_z_small 1.27 k allocs: 0.0744 MB
gradients/scaling/zygote_D_z_large 20.8 k allocs: 1.28 MB
gradients/parameter_sensitivity/curved_D_z 0.309 k allocs: 0.0835 MB
gradients/scaling/forward_D_z_large 1.11 k allocs: 0.106 MB
vectorization/r_z_comprehension 0.632 k allocs: 0.0406 MB
background/dL_z_construct_struct 22 allocs: 1.48 kB
gradients/single_z/zygote_f_z 4.68 k allocs: 0.231 MB
cubic_b_spline/eval_vector_8999 27 allocs: 0.619 MB
gradients/di_zygote_r_z 0.484 M allocs: 0.456 GB
cubic_b_spline/plan_construct_512_to_8999 0.044 k allocs: 0.658 MB
gradients/forwarddiff_f_z 0.315 k allocs: 0.0944 MB
cubic_b_spline/plan_512_to_8999 9 allocs: 0.0728 MB
cubic_b_spline/plan_construct_128 0.041 k allocs: 0.629 MB
gradients/di_mooncake_r_z 3.37 k allocs: 0.18 MB
gradients/single_z/zygote_D_z 4.68 k allocs: 0.232 MB
background/D_z_struct 0.092 k allocs: 4.74 kB
cubic_b_spline/basis_row_search 0 allocs: 0 B
vectorization/E_z_scalar_loop 2 allocs: 0.297 kB
cubic_b_spline/plan_apply_3000 9 allocs: 0.0918 MB
gradients/di_forwarddiff_f_z 0.315 k allocs: 0.0944 MB
gradients/scaling/di_mooncake_D_z_large 17 k allocs: 1.11 MB
gradients/single_z/zygote_r_z 7.56 k allocs: 5.14 MB
gradients/di_forwarddiff_r_z 1.02 k allocs: 0.164 MB
background/E_z_vector 2 allocs: 0.297 kB
background/Ωma_struct 0 allocs: 0 B
cubic_b_spline/eval_scalar 0 allocs: 0 B
background/E_a_struct 0 allocs: 0 B
cubic_b_spline/reactant_stencil 16 allocs: 0.5 kB
gradients/scaling/forwarddiff_D_z_large 1.12 k allocs: 0.371 MB
background/D_z_construct_struct 0.092 k allocs: 4.74 kB
gradients/single_z/forwarddiff_r_z 22 allocs: 2.78 kB
gradients/single_z/di_mooncake_D_z 0.934 k allocs: 0.0533 MB
vectorization/dA_z_comprehension 0.632 k allocs: 0.0406 MB
vectorization/dA_z_vectorized 0.321 k allocs: 21 kB
background/f_z_struct 0.092 k allocs: 4.74 kB
gradients/scaling/forward_D_z_small 0.12 k allocs: 7.26 kB
gradients/di_mooncake_D_z 4.16 k allocs: 0.267 MB
background/dL_z_highz 21 allocs: 1.38 kB
vectorization/S_of_K_comprehension 2 allocs: 0.219 kB
gradients/di_forwarddiff_D_z 0.309 k allocs: 0.0835 MB
gradients/forwarddiff_r_z 1.02 k allocs: 0.164 MB
cubic_b_spline/solve_matrix_512x10 4 allocs: 0.0392 MB
gradients/scaling/zygote_D_z_small 5.03 k allocs: 0.257 MB
time_to_load 0.149 k allocs: 11.2 kB 0.149 k allocs: 11.2 kB 1

marcobonici and others added 2 commits October 4, 2026 12:32
Restore the historical positional constructor and enforce the supported growth interval, with reusable-cache and mass-sensitivity regressions.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Verify changed and zero-mass inputs with reused preparations and record componentwise forward/reverse convergence without changing the public API.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Distinguish the static Julia interpolation table from the JAX runtime quadrature without changing any numerical report values or production code.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
@marcobonici

Copy link
Copy Markdown
Member Author

Review follow-up published as 8633d82: correct the AD evidence report and its generator to identify Julia's static Akima F_three_mass_interpolant, not the JAX kernel's 128-node runtime quadrature.

All 54 numerical rows are preserved; only the six E-setting labels and explanatory text changed. Generator syntax and formatting checks passed. No production code, test-suite logic, dependency, or numerical fixture changed.

The Computer Scientist independently completed 3330/3330 tests on a pristine archive of parent 1ece493 using normal Pkg.test() resolution (DataInterpolations 9.5.0, Mooncake 0.5.63, DifferentiationInterface 0.7.21, ForwardDiff 1.4.6). That code/test tree is unchanged by this documentation-only follow-up. Current-head GitHub matrices are now running, and the reviewer has the exact new SHA for its final assessment.

The pre-existing local distance-performance candidate remains uncommitted and unaccepted. Its timings are not evidence about this PR, and this update makes no performance-regression acceptance claim. All unrelated local edits were preserved. PR remains open and unmerged.

@marcobonici

Copy link
Copy Markdown
Member Author

Independent Computer Scientist follow-up: correctness approved at 8633d82. Reviewer verified the label-only diff and independently passed 3330 tests on the identical production/test-suite parent tree. No newly introduced correctness blocker remains. Performance acceptance remains an explicit maintainer decision: existing prepared-Zygote CI evidence includes vector r_z 32.7→50.5 ms, D_z 1.43→1.70 ms, and f_z 1.50→1.73 ms on Julia 1.12. The local distance optimization candidate is uncommitted and not certified; no hidden performance acceptance is being made. New-head CI and required GitHub reviews remain separate gates. PR stays open and unmerged.

marcobonici and others added 4 commits October 12, 2026 23:36
AirspeedVelocity creates a separate environment and does not inherit benchmark/Project.toml, so its extra packages must include the imported Reactant dependency.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Restore complete plan cotangents, handle structured inputs and scalar activity, and correct affine scan composition. Add public-path regressions and repair benchmark baseline handling.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Remove temporary focused dispatch branches that conflict with develop while preserving every unconditional full-suite include.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
…owth.

Remove the scalar model and its lookup tables while preserving emulator total-mass inputs and historical labels. Validate the new API, constructor AD, and converged ODE gradients against unchanged scientific references.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
@marcobonici

Copy link
Copy Markdown
Member Author

Pushed 32a7f62 for Marco’s approved breaking analytic API change. Background/growth functions and cosmology constructors now require exactly three physical masses; scalar values (including zero) produce migration errors, with no implicit split. Omitted masses use the explicit massless triple. Emulator total-mass inputs and weights are unchanged.

Removed the historical scalar formulas and lookup tables. Existing three-mass CLASS/CAMB numerical fixtures are retained. Compatibility of the unchanged 300303 emulator labels is checked against a text reference frozen from the pre-retirement implementation, NOT against a newly chosen mass splitting; the old trained growth label and new three-species ODE differ by about 0.4% at the test point.

Independent validation: full normal Pkg.test passed 3167/3167; three-mass focused 1341/1341; Neff focused 802/802; artifact compatibility 16/16. Original strict gradient thresholds remain unchanged: a prepared-AD convergence sweep justified tightening ONLY the test solver tolerances, not production defaults. Fresh CI is running. Laptop timing measurements were rejected at 97–101 C, so no performance claim.

The coordinated JAX implementation is pushed at 368596b, with 326 local tests and fresh push/PR CI successful. Original unrelated working-tree edits were restored separately and are not part of this commit. No merge, tag, or release performed. The separate B-spline buffer-ownership finding in #97 remains outstanding.

…ase.

Retain common baseline benchmarks without executing the new physical model against scalar-only revisions. Keep all three-mass cases enabled on the head.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
@marcobonici

Copy link
Copy Markdown
Member Author

Benchmark-only follow-up pushed at 5c6f20a. AirspeedVelocity runs the head script against legacy main too; that implementation cannot execute the new explicit-three-mass cases, and the differing physical models are not like-for-like timing baselines. The script now retains all common interpolation benchmarks on legacy main and all background/gradient cases on the current head. Both baseline and head smoke checks executed successfully. No production or unit-test changes in this follow-up; the 3167-test validation remains applicable. Final-head CI is monitored; no merge performed.

Comment thread .github/workflows/ci.yml Outdated
# Artifacts alone do not avoid the 20–36 minute dependency precompile
# seen on macOS. Preserve compiled packages separately; include the
# matrix and architecture, and leave cache deletion permissions off.
- uses: julia-actions/cache@d10a6fd8f31b12404a54613ebad242900567f2b9 # v2

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Why this specific cache version..?

Comment thread benchmark/OPTIMIZATION_REPORT.md Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe this file should be removed...?

`w(a) = w0 + wa*(1-a)`; its present density is fixed by Friedmann closure.
`ln10Aₛ` and `nₛ` are stored parameters, not inputs to the background equations.

`mν` is a tuple or vector of exactly three individual masses in eV. Masses must

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Are we sure the choice of a tuple here is not causing some slowdowns and overhead?

const _NEFF_PER_FD_SPECIES = (_T_NCDM_OVER_T_CMB / (4 / 11)^(1 / 3))^4
const _N_UR_THREE_MASS = _NEFF_THREE_MASS - 3 * _NEFF_PER_FD_SPECIES

const _SCALAR_MASS_MESSAGE = "A scalar neutrino mass `mν` is no longer supported by the analytic " *

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

When does this message show up?

Neutrinos enter the expansion separately; dark energy closes the density sum.
See [`w0waCDMCosmology`](@ref) for masses, units and Neff prescriptions.
"""
function E_a(a, Ωcb0, h; mν=(0.0, 0.0, 0.0), w0=-1.0, wa=0.0, Ωk0=0.0, Neff=3.044, neutrino_prescription=:temperature)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think it might be better to remove these methods, the ones with MANY arguments here that have a corrsponding method that gets as an input a struct. In this way, we can likely avoid some issues I presume!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The same applies to other similar methods...tell me which ones you would modify according to these new guidellines :)

Ωk0=0.0, order=9, Neff=3.044, neutrino_prescription=:temperature)

Line-of-sight comoving distance χ(z), in Mpc (not Mpc/h):
`χ(z) = c/H₀ * ∫₀ᶻ dz′/E(z′)`. Scalar input returns a scalar; use a redshift

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Rather than the integral symbol here, I would rpefer the docstring to use latex :)

Comment thread ext/MooncakeExt/lux_mlp.jl Outdated
# Prepared frozen-inference rules reuse them instead; see `_FrozenMLPWeights`.
_reverse_weight(::Nothing, ::Int, weight, ::Type{T}) where {T} = T.(weight)

_linearize_mlp(::Tuple{}, ::Tuple{}, ::Tuple{}, input, frozen, i) = (input, ())

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Why the "linearize" name?

Comment thread test/Artifacts.toml
@@ -0,0 +1,7 @@
[reference_fixtures]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe, in general: can we move all of the "fixutres" files we are introducing into a new object on zenodo? In this manner,w e can keep the repo clean.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This would be true as well for the files to generate the fixtures! Could we put them there as well?

Comment thread Project.toml
OrdinaryDiffEqTsit5 = "b1df2697-797e-41e3-8120-5422d3b24e4a"
Reactant = "3c362404-f566-11ee-1572-e11a4b42c853"
SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wait! We sure we want a dependency on Zygote? What is this necessary for? SHould that be in an extension?

@marcobonici marcobonici left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There are some comments I have left that are worth addressing before going ahead!

marcobonici and others added 7 commits November 13, 2026 14:56
… fixtures.

Remove duplicate public parameter-list interfaces while preserving numerical kernels, and restore frozen reference data from a verified Zenodo archive containing its generators and provenance. Address review naming, documentation, cache-version and pullback-coverage requests.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
…ntation.

Restore figure and network fixtures through separate checksum-verified manifests instead of tracking payloads, and explicitly attach the raw radial-distance docstring. Cover restoration boundaries, existing fixture consumers and public documentation bindings.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Preserve curvature dependence through the flat limit and differentiate fixed neutrino lookup queries without repeatedly clearing table cotangents. Add frozen-reference, public-gradient and import-order regressions.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
…ata.

Add explicit query-time pullbacks while retaining SciML parameter sensitivities, with endpoint and duplicate-query coverage and calibrated pre-repair references. Export the trained-emulator loader and retain empty metadata when a description is absent.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
…tives.

Preserve fixed masses and existing defaults while selecting cooling below Neff=3.044 and radiation at or above it. Cover prepared Mooncake reuse, ForwardDiff and Zygote agreement, one-sided derivatives, and independent CLASS background fixtures in the normal test suite.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Archive the independent CLASS references and generator alongside preserved historical fixtures, and validate their restoration through the normal Pkg.test bootstrap. Keep immutable archive and per-file checksums rather than tracked generated payloads.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Reuse gradient references and Reactant executables, remove tautological checks, and retain both curvature cases. Fingerprint the resolved test environment and bound cache saves so completed precompilation survives test timeouts.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Comment thread test/curvature_reference.tsv Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Why is the tsv here? Shouldn't that be on zenodo?

Comment thread test/growth_query_reference.tsv Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Same as above.

marcobonici and others added 11 commits November 19, 2026 13:38
Pin the v4 reference artifact and verify automatic restoration of the unchanged TSVs without tracking duplicate copies in git.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Retain the vector, matrix, plateau and replay cases. Time each full-suite file and give Julia 1.12 on macOS a longer test window. Run its PR edge regression in an isolated process while retaining the integrated push run.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Record the child exit as a test result so subsequent files still run. Restore the explicit forward finiteness check. Remove an unused print-only JET script, point fixture provenance at the archive, and document the existing Julia 1.11 Reactant spline limitation.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Use the shared physics-based dictionary keys, expose the thermal prescription in model metadata, and document registry lookup. Pin the published Zenodo archives and test the eleven-output contract.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Select temperature rescaling below Neff=3.044 and the radiation branch at and above the switch. Retain both explicit prescriptions and test the omitted setting on both sides and at equality.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
…ut precision.

Document the changed input ordering and eleven outputs, and cover the radiation-side derivative at the represented threshold in both float precisions.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Keep the ArgumentError contract for every scalar case and check the actionable three-mass guidance instead of requiring an unrelated emulator reference. Drop unused weight-index and stencil-size calculations.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Use read-only views when accumulating the three matrix bands. This preserves the accumulation order and saves 12.69 MB per prepared Mooncake gradient at 1024 knots and 256 curves.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Use split Gauss–Legendre quadrature only at table initialization. Keep the existing Akima grid and runtime lookup unchanged. Remove the Integrals extension trigger and update the associated tests and examples.

Handle offset-indexed queries in matrix Akima evaluation and its pullback. Clarify loader exports, background examples, and automatic postprocessing.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
The lowest supported dependency set produced a relative norm difference
of about 1.1e-10 between Mooncake and ForwardDiff. Relax only this test
assertion; leave solver settings and independent references unchanged.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Preserve endpoint and extrapolation semantics, exercise matrix-valued cubic
interpolation and dynamic gradients, and benchmark vector and matrix calls.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>

This branch has not been deployed

No deployments
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