Experiment: unboxed ints in ltac2 runtime#22066
Closed
SkySkimmer wants to merge 1 commit into
Closed
Conversation
Contributor
Author
|
@coqbot bench |
Contributor
Author
|
cc @Janno @gmalecha-at-skylabs if you have some private bench you want to try this on |
This was referenced May 27, 2026
Closed
Contributor
|
+0.07%, possibly noise. (SkyLabsAI#13 (comment)) |
Contributor
Author
|
Ltac2 does not use many ints I guess |
Contributor
|
🏁 Bench results: INFO: failed to install rocq-mathcomp-solvable (dependency rocq-mathcomp-algebra failed) 🐢 Top 25 slow downs┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SLOW DOWNS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 17.9 18.7 0.8576 4.79% 32 coq-performance-tests-lite/src/pattern.v.html │ │ 21.7 22.4 0.6409 2.95% 49 coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/AffineProofs.v.html │ │ 34.6 35.2 0.5998 1.74% 194 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 80.2 80.8 0.5763 0.72% 48 coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/AffineProofs.v.html │ │ 0.274 0.782 0.5082 185.66% 682 rocq-stdlib/theories/Numbers/DecimalFacts.v.html │ │ 3.73 4.23 0.4914 13.16% 196 rocq-stdlib/theories/ZArith/ZModOffset.v.html │ │ 53.8 54.3 0.4724 0.88% 296 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/Addchain.v.html │ │ 201 201 0.4619 0.23% 8 coq-neural-net-interp-computed-lite/theories/MaxOfTwoNumbersSimpler/Computed/AllLogits.v.html │ │ 55.4 55.8 0.4252 0.77% 27 coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/ToFancyWithCasts.v.html │ │ 58.2 58.7 0.4181 0.72% 659 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JacobianCoZ.v.html │ │ 34.286 34.691 0.4050 1.18% 97 coq-vst/veric/binop_lemmas5.v.html │ │ 80.4 80.8 0.3769 0.47% 20 coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/NBE.v.html │ │ 40.6 41.0 0.3507 0.86% 539 coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/EdwardsXYZT.v.html │ │ 0.225 0.564 0.3399 151.31% 18 rocq-stdlib/theories/ZArith/Zeven.v.html │ │ 28.8 29.1 0.3102 1.08% 145 coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoorTop.v.html │ │ 0.308 0.613 0.3047 98.80% 19 rocq-stdlib/theories/ZArith/Int.v.html │ │ 18.8 19.1 0.2941 1.56% 23 coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/Arith.v.html │ │ 11.1 11.4 0.2894 2.60% 194 coq-fiat-crypto-with-bedrock/src/Fancy/Barrett256.v.html │ │ 20.3 20.6 0.2790 1.38% 6 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/DecodeEncodeI.v.html │ │ 11.1 11.4 0.2578 2.31% 159 coq-fiat-crypto-with-bedrock/src/Bedrock/P256.v.html │ │ 0.262 0.518 0.2563 97.90% 14 rocq-stdlib/theories/ZArith/auxiliary.v.html │ │ 11.496 11.751 0.2550 2.22% 126 coq-vst/veric/binop_lemmas6.v.html │ │ 24.9 25.1 0.2500 1.00% 788 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JoyeLadder.v.html │ │ 15.2 15.4 0.2446 1.61% 898 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JoyeLadder.v.html │ │ 0.149 0.386 0.2371 159.24% 820 rocq-stdlib/theories/micromega/EnvRing.v.html │ └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 🐇 Top 25 speed ups┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SPEED UPS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 66.1 62.9 -3.1529 -4.77% 608 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/bedrock2/src/bedrock2Examples/lightbulb.v.html │ │ 63.8 62.9 -0.8913 -1.40% 608 coq-bedrock2/bedrock2/src/bedrock2Examples/lightbulb.v.html │ │ 47.2 46.4 -0.8693 -1.84% 115 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/bedrock2/src/bedrock2Examples/full_mul.v.html │ │ 31.1 30.4 -0.6803 -2.19% 166 coq-fiat-crypto-with-bedrock/src/Bedrock/Field/Synthesis/Examples/p224_64_new.v.html │ │ 2.12 1.58 -0.5403 -25.54% 42 coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/ToFancyWithCasts.v.html │ │ 31.1 30.5 -0.5281 -1.70% 214 coq-fiat-crypto-with-bedrock/src/Bedrock/Field/Synthesis/Examples/p224_64_new.v.html │ │ 46.6 46.1 -0.5062 -1.09% 277 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 55.2 54.7 -0.4495 -0.81% 512 coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/EdwardsXYZT.v.html │ │ 37.1 36.7 -0.4220 -1.14% 244 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 45.2 44.8 -0.4157 -0.92% 3 coq-fiat-crypto-with-bedrock/src/ExtractionJsOfOCaml/bedrock2_fiat_crypto.v.html │ │ 31.2 30.8 -0.3842 -1.23% 180 coq-fiat-crypto-with-bedrock/src/Bedrock/Field/Synthesis/Examples/p224_64_new.v.html │ │ 21.6 21.2 -0.3812 -1.77% 651 rocq-stdlib/theories/Zmod/ZmodBase.v.html │ │ 13.3 12.9 -0.3697 -2.78% 286 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 0.722 0.366 -0.3566 -49.36% 596 rocq-stdlib/theories/Strings/Byte.v.html │ │ 23.9 23.6 -0.3116 -1.30% 782 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JoyeLadder.v.html │ │ 0.645 0.341 -0.3043 -47.17% 14 rocq-stdlib/theories/MSets/MSetToFiniteSet.v.html │ │ 31.5 31.2 -0.3030 -0.96% 331 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord.v.html │ │ 31.0 30.7 -0.3028 -0.98% 198 coq-fiat-crypto-with-bedrock/src/Bedrock/Field/Synthesis/Examples/p224_64_new.v.html │ │ 0.588 0.294 -0.2944 -50.04% 18 rocq-stdlib/theories/micromega/VarMap.v.html │ │ 0.587 0.297 -0.2900 -49.41% 16 rocq-stdlib/theories/extraction/ExtrOcamlIntConv.v.html │ │ 20.0 19.7 -0.2891 -1.45% 225 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 0.514 0.234 -0.2803 -54.50% 11 rocq-stdlib/theories/ZArith/Wf_Z.v.html │ │ 23.1 22.8 -0.2741 -1.19% 85 coq-fiat-crypto-with-bedrock/src/Curves/Montgomery/AffineProofs.v.html │ │ 31.2 31.0 -0.2732 -0.87% 255 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord.v.html │ │ 0.764 0.491 -0.2729 -35.71% 207 rocq-stdlib/theories/setoid_ring/Ncring_tac.v.html │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
Contributor
Author
|
as expected doesn't really do anything |
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.
No description provided.