Skip to content

Conversation

@AayushSabharwal
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2025

Benchmark Results (Julia vlts)

Time benchmarks
master 5a9700d... master / 5a9700d...
ODEProblem 0.0925 ± 0.0072 s 0.0931 ± 0.0059 s 0.994 ± 0.099
init 0.0585 ± 0.0022 ms 0.0579 ± 0.0018 ms 1.01 ± 0.048
large_parameter_init/ODEProblem 0.989 ± 0.013 s 0.986 ± 0.0037 s 1 ± 0.014
large_parameter_init/init 0.109 ± 0.003 ms 0.108 ± 0.0024 ms 1.01 ± 0.035
mtkcompile 0.0341 ± 0.0016 s 0.0333 ± 0.0011 s 1.02 ± 0.058
time_to_load 5.09 ± 0.088 s 5.03 ± 0.015 s 1.01 ± 0.018
Memory benchmarks
master 5a9700d... master / 5a9700d...
ODEProblem 0.659 M allocs: 22.1 MB 0.655 M allocs: 22 MB 1
init 0.892 k allocs: 0.0461 MB 0.892 k allocs: 0.046 MB 1
large_parameter_init/ODEProblem 4.21 M allocs: 0.163 GB 4.17 M allocs: 0.163 GB 1
large_parameter_init/init 1.74 k allocs: 0.0857 MB 1.74 k allocs: 0.0856 MB 1
mtkcompile 0.229 M allocs: 8.46 MB 0.225 M allocs: 8.35 MB 1.01
time_to_load 0.153 k allocs: 14.5 kB 0.153 k allocs: 14.5 kB 1

@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2025

Benchmark Results (Julia v1)

Time benchmarks
master 5a9700d... master / 5a9700d...
ODEProblem 0.089 ± 0.0036 s 0.092 ± 0.0029 s 0.968 ± 0.049
init 0.0399 ± 0.0079 ms 0.0399 ± 0.0078 ms 1 ± 0.28
large_parameter_init/ODEProblem 1.06 ± 0.034 s 1.11 ± 0.038 s 0.952 ± 0.044
large_parameter_init/init 0.0757 ± 0.012 ms 0.076 ± 0.012 ms 0.997 ± 0.22
mtkcompile 0.0317 ± 0.00092 s 0.0321 ± 0.0012 s 0.988 ± 0.046
time_to_load 4.69 ± 0.018 s 4.75 ± 0.07 s 0.986 ± 0.015
Memory benchmarks
master 5a9700d... master / 5a9700d...
ODEProblem 0.673 M allocs: 22.2 MB 0.668 M allocs: 22 MB 1.01
init 0.797 k allocs: 30.6 kB 0.797 k allocs: 30.5 kB 1
large_parameter_init/ODEProblem 4.46 M allocs: 0.164 GB 4.39 M allocs: 0.161 GB 1.02
large_parameter_init/init 1.64 k allocs: 0.0596 MB 1.64 k allocs: 0.0594 MB 1
mtkcompile 0.234 M allocs: 8 MB 0.231 M allocs: 7.89 MB 1.01
time_to_load 0.149 k allocs: 11.1 kB 0.149 k allocs: 11.1 kB 1

@ChrisRackauckas
Copy link
Member

Add a test for isbitstype?

@AayushSabharwal
Copy link
Member Author

Yeah I'm working on it. It's astonishing how many tests break if I change the SizedVector to an SVector

Comment on lines +15 to +16
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}

Comment on lines +24 to +25
discrete, constant,
nonnumeric, caches)
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
discrete, constant,
nonnumeric, caches)
discrete, constant,
nonnumeric, caches)

Comment on lines +28 to +29
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}

constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
return MTKParameters{T, I, D, C, N, H}(tunables, initials, discrete, constant,
nonnumeric, caches)
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
nonnumeric, caches)
nonnumeric, caches)

buffer, repack, _ = SciMLStructures.canonicalize(SciMLStructures.Initials(), initp)
initp = repack(floatT.(buffer))
if !(initp.initials isa StaticVector{0})
buffer, repack, _ = SciMLStructures.canonicalize(SciMLStructures.Initials(), initp)
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
buffer, repack, _ = SciMLStructures.canonicalize(SciMLStructures.Initials(), initp)
buffer, repack,
_ = SciMLStructures.canonicalize(SciMLStructures.Initials(), initp)

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.

3 participants