perf: improve some instances in LinearMap#7554
Closed
ChrisHughes24 wants to merge 9 commits intomasterfrom
Closed
Conversation
Member
ChrisHughes24
commented
Oct 6, 2023
Member
Author
|
!bench |
Collaborator
|
Here are the benchmark results for commit d224570. Benchmark Metric Change
=============================================================================
- build wall-clock 16.1%
+ ~Mathlib.Algebra.Category.FGModuleCat.Basic instructions -76.3%
+ ~Mathlib.Algebra.Category.ModuleCat.Algebra instructions -9.4%
+ ~Mathlib.Algebra.Category.ModuleCat.Monoidal.Closed instructions -14.1%
+ ~Mathlib.Algebra.Category.ModuleCat.Presheaf instructions -6.5%
- ~Mathlib.Algebra.DirectSum.Module instructions 17.7%
+ ~Mathlib.Algebra.Lie.Engel instructions -5.3%
+ ~Mathlib.Algebra.Lie.Matrix instructions -30.1%
+ ~Mathlib.Algebra.Lie.TensorProduct instructions -10.9%
+ ~Mathlib.Algebra.RingQuot instructions -5.9%
+ ~Mathlib.FieldTheory.Tower instructions -8.0%
+ ~Mathlib.LinearAlgebra.CliffordAlgebra.EvenEquiv instructions -7.3%
+ ~Mathlib.LinearAlgebra.Dual instructions -28.0%
+ ~Mathlib.LinearAlgebra.Eigenspace.Minpoly instructions -11.7%
+ ~Mathlib.LinearAlgebra.FreeModule.PID instructions -19.9%
+ ~Mathlib.LinearAlgebra.FreeModule.StrongRankCondition instructions -70.2%
+ ~Mathlib.LinearAlgebra.Matrix.Charpoly.LinearMap instructions -9.4%
+ ~Mathlib.LinearAlgebra.Matrix.Charpoly.Minpoly instructions -42.9%
+ ~Mathlib.LinearAlgebra.Matrix.FiniteDimensional instructions -5.7%
+ ~Mathlib.LinearAlgebra.Trace instructions -14.4%
+ ~Mathlib.RepresentationTheory.Character instructions -20.0%
+ ~Mathlib.RepresentationTheory.FdRep instructions -37.2%
+ ~Mathlib.RepresentationTheory.Rep instructions -6.1%
+ ~Mathlib.RingTheory.Derivation.Lie instructions -9.1%
+ ~Mathlib.RingTheory.Kaehler instructions -5.6% |
eric-wieser
reviewed
Oct 7, 2023
Member
Author
|
!bench |
Collaborator
|
Here are the benchmark results for commit 38c3501. Benchmark Metric Change
=========================================================================================
+ ~Mathlib.Algebra.Category.FGModuleCat.Basic instructions -76.3%
+ ~Mathlib.Algebra.Category.ModuleCat.Algebra instructions -9.1%
+ ~Mathlib.Algebra.Category.ModuleCat.Monoidal.Closed instructions -14.1%
+ ~Mathlib.Algebra.Category.ModuleCat.Presheaf instructions -6.5%
- ~Mathlib.Algebra.DirectSum.Module instructions 10.5%
+ ~Mathlib.Algebra.Lie.Engel instructions -5.3%
+ ~Mathlib.Algebra.Lie.Matrix instructions -30.1%
+ ~Mathlib.Algebra.Lie.TensorProduct instructions -11.0%
- ~Mathlib.Algebra.Lie.Weights instructions 5.9%
+ ~Mathlib.Algebra.RingQuot instructions -5.9%
- ~Mathlib.CategoryTheory.Limits.FilteredColimitCommutesFiniteLimit instructions 5.2%
+ ~Mathlib.FieldTheory.Tower instructions -8.0%
+ ~Mathlib.LinearAlgebra.CliffordAlgebra.EvenEquiv instructions -7.2%
+ ~Mathlib.LinearAlgebra.DirectSum.TensorProduct instructions -10.0%
+ ~Mathlib.LinearAlgebra.Dual instructions -28.0%
+ ~Mathlib.LinearAlgebra.Eigenspace.Minpoly instructions -11.6%
+ ~Mathlib.LinearAlgebra.FreeModule.PID instructions -7.0%
+ ~Mathlib.LinearAlgebra.FreeModule.StrongRankCondition instructions -70.2%
+ ~Mathlib.LinearAlgebra.Matrix.Charpoly.LinearMap instructions -9.4%
+ ~Mathlib.LinearAlgebra.Matrix.Charpoly.Minpoly instructions -43.0%
+ ~Mathlib.LinearAlgebra.Matrix.FiniteDimensional instructions -5.6%
+ ~Mathlib.LinearAlgebra.Trace instructions -14.3%
+ ~Mathlib.RepresentationTheory.Character instructions -20.0%
+ ~Mathlib.RepresentationTheory.FdRep instructions -37.2%
+ ~Mathlib.RepresentationTheory.Rep instructions -6.2%
+ ~Mathlib.RingTheory.Derivation.Lie instructions -9.2%
+ ~Mathlib.RingTheory.Kaehler instructions -5.6% |
Member
Author
|
Speed diff for the last commit (changing the module instance) |
Member
Author
|
!bench |
Collaborator
|
Here are the benchmark results for commit 9b1b63b. Benchmark Metric Change
================================================================================
+ ~Mathlib.Algebra.Category.AlgebraCat.Monoidal instructions -3.7%
+ ~Mathlib.Algebra.Category.ModuleCat.ChangeOfRings instructions -3.4%
+ ~Mathlib.Algebra.Lie.TensorProduct instructions -14.4%
+ ~Mathlib.Analysis.NormedSpace.Multilinear instructions -2.0%
+ ~Mathlib.CategoryTheory.Abelian.InjectiveResolution instructions -2.2%
- ~Mathlib.FieldTheory.RatFunc instructions 2.2%
+ ~Mathlib.LinearAlgebra.Dual instructions -9.5%
+ ~Mathlib.RepresentationTheory.Character instructions -12.7%
- ~Mathlib.RepresentationTheory.GroupCohomology.Resolution instructions 6.9% |
Member
|
Note: I have pushed an update to the lean toolchain because this PR was on a buggy version of the toolchain. WARNING: checking out old commits of this PR using v4.2.0-rc2 or v4.2.0-rc3 can cause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.