Repository navigation
Conversation
Freezing used to rebuild a map over all the registered summaries at every freeze, which happens several times per command. We now cache a tag-sorted array view of the declarations, and frozen states are a value array sharing the tag array of that view. Note that a Not_found exception raised by an unfreeze function is not caught anymore to be turned into a summary reinitialization.
Member
Author
|
@coqbot bench |
Contributor
|
🏁 Bench results: INFO: failed to install coq-compcert (dependency coq-flocq failed) 🐢 Top 25 slow downs┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SLOW DOWNS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 45.2 45.6 0.4019 0.89% 4 coq-fiat-crypto-with-bedrock/src/ExtractionJsOfOCaml/bedrock2_fiat_crypto.v.html │ │ 24.2 24.5 0.3583 1.48% 68 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/VerifyDecode.v.html │ │ 9.66 10.0 0.3414 3.53% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/Ltac2/_0_SuperFast.v.html │ │ 25.9 26.2 0.2900 1.12% 223 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 18.0 18.3 0.2871 1.59% 272 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 7.76 8.01 0.2527 3.26% 976 coq-category-theory/Instance/Grp/Colimit/Presentation.v.html │ │ 4.55 4.80 0.2457 5.40% 785 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialEqs.v.html │ │ 0.645 0.887 0.2419 37.50% 2054 rocq-metarocq-common/_build/default/theories/Common/LoopChecking/UnivLoopChecking.v.html │ │ 18.4 18.6 0.2338 1.27% 32 coq-performance-tests-lite/src/pattern.v.html │ │ 26.5 26.7 0.2185 0.83% 310 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/Addchain.v.html │ │ 30.5 30.7 0.2136 0.70% 222 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 2.68 2.89 0.2068 7.71% 498 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialPER.v.html │ │ 8.14 8.35 0.2065 2.54% 30 coq-engine-bench-lite/coq/PerformanceDemos/pattern.v.html │ │ 65.6 65.8 0.2006 0.31% 279 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 35.1 35.3 0.1964 0.56% 221 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 21.2 21.4 0.1895 0.90% 13 coq-fourcolor/theories/proof/job219to222.v.html │ │ 9.58 9.76 0.1820 1.90% 25 coq-fiat-crypto-with-bedrock/src/Curves/EdwardsMontgomery25519.v.html │ │ 0.886 1.07 0.1814 20.48% 1302 rocq-metarocq-pcuic/_build/default/theories/PCUIC/PCUICConversion.v.html │ │ 19.8 20.0 0.1802 0.91% 560 coq-mathcomp-odd-order/theories/PFsection9.v.html │ │ 1.29 1.47 0.1741 13.48% 1262 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/PERSubobjectClassifier.v.html │ │ 20.8 21.0 0.1719 0.82% 229 coq-unimath/UniMath/CategoryTheory/Presheaves/Sheafification.v.html │ │ 13.0 13.2 0.1708 1.32% 3 coq-performance-tests-lite/PerformanceExperiments/sieve_of_eratosthenes/_1_SuperFast.v.html │ │ 3.89 4.06 0.1705 4.39% 129 coq-fiat-parsers/src/Parsers/Refinement/SharpenedJSON.v.html │ │ 19.6 19.8 0.1680 0.85% 85 coq-fiat-crypto-with-bedrock/src/Curves/Montgomery/AffineProofs.v.html │ │ 26.2 26.4 0.1661 0.63% 334 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord.v.html │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 🐇 Top 25 speed ups┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SPEED UPS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 44.0 41.7 -2.3439 -5.33% 371 coq-fiat-crypto-with-bedrock/src/Stringification/Zig.v.html │ │ 60.4 58.2 -2.1644 -3.58% 3 coq-performance-tests-lite/PerformanceExperiments/typeclass_reification_let_in_HOAS/_0_SuperFast.v.html │ │ 288 286 -2.0890 -0.73% 3 coq-rewriter-perf-SuperFast/src/Rewriter/Rewriter/Examples/PerfTesting/LiftLetsMap/_10_SuperFast.v.html │ │ 216 214 -1.6022 -0.74% 8 coq-neural-net-interp-computed-lite/theories/MaxOfTwoNumbersSimpler/Computed/AllLogits.v.html │ │ 45.4 43.9 -1.4864 -3.28% 3 coq-fiat-crypto-with-bedrock/src/ExtractionOCaml/fiat_crypto.v.html │ │ 55.3 54.6 -0.7120 -1.29% 564 rocq-metarocq-erasure/_build/default/theories/Erasure/EConstantsToValues.v.html │ │ 44.2 43.6 -0.5093 -1.15% 3 coq-fiat-crypto-with-bedrock/src/ExtractionJsOfOCaml/fiat_crypto.v.html │ │ 38.9 38.5 -0.4146 -1.07% 116 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/bedrock2/src/bedrock2Examples/full_mul.v.html │ │ 35.8 35.4 -0.3704 -1.04% 27 coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/ToFancyWithCasts.v.html │ │ 51.0 50.6 -0.3600 -0.71% 968 coq-performance-tests-lite/src/fiat_crypto_via_setoid_rewrite_standalone.v.html │ │ 13.0 12.7 -0.3568 -2.74% 512 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/Logic/Universal.v.html │ │ 38.7 38.4 -0.3053 -0.79% 116 coq-bedrock2/bedrock2/src/bedrock2Examples/full_mul.v.html │ │ 7.26 6.96 -0.2995 -4.13% 820 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/NNORecursiveMap.v.html │ │ 36.0 35.7 -0.2991 -0.83% 573 coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/EdwardsXYZT.v.html │ │ 29.0 28.7 -0.2757 -0.95% 13 coq-fourcolor/theories/proof/job107to164.v.html │ │ 13.5 13.3 -0.2469 -1.82% 391 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/Logic/Existential.v.html │ │ 1.96 1.72 -0.2400 -12.27% 1647 rocq-metarocq-erasure/_build/default/theories/ErasurePlugin/ErasureCorrectness.v.html │ │ 73.7 73.4 -0.2394 -0.33% 663 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JacobianCoZ.v.html │ │ 1.06 0.823 -0.2386 -22.49% 1293 rocq-metarocq-pcuic/_build/default/theories/PCUIC/PCUICConversion.v.html │ │ 51.0 50.7 -0.2370 -0.46% 999 coq-performance-tests-lite/src/fiat_crypto_via_setoid_rewrite_standalone.v.html │ │ 2.17 1.93 -0.2315 -10.69% 990 rocq-metarocq-erasure/_build/default/theories/Erasure/ErasureFunction.v.html │ │ 25.7 25.4 -0.2234 -0.87% 13 coq-fourcolor/theories/proof/job291to294.v.html │ │ 70.9 70.7 -0.2102 -0.30% 22 coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/ArithWithCasts.v.html │ │ 42.6 42.3 -0.2074 -0.49% 52 coq-fiat-crypto-with-bedrock/src/Bedrock/Field/Synthesis/Examples/p224_64_new.v.html │ │ 1.05 0.844 -0.2041 -19.48% 1637 rocq-metarocq-common/_build/default/theories/Common/LoopChecking/UnivLoopChecking.v.html │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
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.
Freezing used to rebuild a map over all the registered summaries at every freeze, which happens several times per command. We now cache a tag-sorted array view of the declarations, and frozen states are a value array sharing the tag array of that view.
Note that a Not_found exception raised by an unfreeze function is not caught anymore to be turned into a summary reinitialization.