-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance of main
(2024-08-17) is worse compared to v8.6.0
#827
Labels
question
Further information is requested
Comments
adtzlr
changed the title
Performance of
Performance of Aug 16, 2024
main
(2024-08-17) is worse compared to v8.8.0
main
(2024-08-17) is worse compared to v8.6.0
Try to use a minimal benchmark. import felupe as fem
mesh = fem.Cube(n=21)
region = fem.RegionHexahedron(mesh)
field = fem.FieldContainer([fem.Field(region, dim=3)])
umat = fem.NeoHooke(mu=1, bulk=2)
solid = fem.SolidBody(umat=umat, field=field) with
This gives 2.5 s (main) vs. 900 ms!! |
Let's use a more low-level benchmark. import felupe as fem
mesh = fem.Cube(n=21)
region = fem.RegionHexahedron(mesh)
field = fem.FieldContainer([fem.Field(region, dim=3)])
umat = fem.NeoHooke(mu=1, bulk=2)
fun = umat.hessian(field.extract())
form = fem.IntegralForm(fun, field, region.dV, u=field)
values = form.integrate()
matrix = form.assemble(values)
# %timeit form.integrate()
# %timeit form.assemble(values) 1.8 s (main) vs. 380 ms Something has changed in
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The benchmark runs faster on
v8.6.0
compared tomain
for the largest mesh. Try to figure out the reason(s) before creating a new release.The text was updated successfully, but these errors were encountered: