Skip to content

BN254 assembly optimisations stand alone multiplier - #529

Open
xrvdg wants to merge 5 commits into
mainfrom
xr/bn254-asm-opt
Open

xrvdg wants to merge 5 commits into
mainfrom
xr/bn254-asm-opt

Conversation

@xrvdg

@xrvdg xrvdg commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Optimised stand alone multipliers for BN254.

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-provekit-org Ready Ready Preview Nov 25, 2026 7:31am UTC

Request Review

@xrvdg
xrvdg marked this pull request as draft November 25, 2026 07:10
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

CSP benchmarks

Metric Value
Workflow status [PASS] success
Commit 6182f192848e
Run #45568763043
Circuits benchmarked 21
Iterations averaged per circuit 3

Prover time, peak RSS, peak heap, and verifier time are arithmetic means across the iterations. Peak heap comes from the largest peak memory entry in provekit-cli prove's tracing output; peak RSS is reported by /usr/bin/time -v (max-resident-set-size).

No baseline available yet — deltas will appear once this workflow has produced at least one successful main run.

Results
Circuit Constraints Witnesses Prover time Peak RSS Peak heap Verifier time Proof size PKP size
ecdsa_p256 143,321 258,215 1.43 s 265 MB 232 MB 110 ms 448 KB 831 KB
keccak_1024 788,814 1,490,812 3.97 s 1.05 GB 1.05 GB 483 ms 493 KB 6.01 MB
keccak_128 157,522 304,529 970 ms 279 MB 248 MB 130 ms 453 KB 1.24 MB
keccak_2048 1,507,374 2,840,532 7.78 s 1.98 GB 2.07 GB 913 ms 547 KB 12.15 MB
keccak_256 247,782 474,010 1.17 s 332 MB 304 MB 170 ms 445 KB 1.89 MB
keccak_512 428,126 812,944 2.10 s 584 MB 558 MB 277 ms 471 KB 3.25 MB
poseidon2_12 479 563 43 ms 13.31 MB 4.17 MB 10 ms 226 KB 437 KB
poseidon2_16 556 719 50 ms 14.08 MB 4.33 MB 10 ms 228 KB 530 KB
poseidon2_2 231 278 40 ms 12.69 MB 3.44 MB 10 ms 226 KB 108 KB
poseidon2_4 529 535 30 ms 13.16 MB 3.63 MB 10 ms 227 KB 31.93 KB
poseidon2_8 363 423 40 ms 13.23 MB 4.08 MB 10 ms 227 KB 365 KB
poseidon_12 504 524 43 ms 13.79 MB 4.27 MB 10 ms 226 KB 569 KB
poseidon_16 609 633 50 ms 14.63 MB 4.94 MB 20 ms 230 KB 717 KB
poseidon_2 240 249 40 ms 12.41 MB 3.40 MB 10 ms 226 KB 59.38 KB
poseidon_4 297 309 40 ms 13.53 MB 4.02 MB 10 ms 227 KB 333 KB
poseidon_8 402 418 40 ms 13.61 MB 4.15 MB 10 ms 228 KB 448 KB
sha256_1024 196,913 339,721 1.08 s 319 MB 286 MB 180 ms 450 KB 1.85 MB
sha256_128 46,371 80,931 277 ms 85.47 MB 67.81 MB 50 ms 415 KB 501 KB
sha256_2048 345,372 612,681 2.09 s 567 MB 535 MB 330 ms 474 KB 3.06 MB
sha256_256 67,877 117,901 453 ms 140 MB 120 MB 70 ms 403 KB 702 KB
sha256_512 110,889 191,841 583 ms 175 MB 153 MB 110 ms 403 KB 1.06 MB

@xrvdg xrvdg changed the title BN254 assembly optimisations BN254 assembly optimisations stand alone multiplier Nov 25, 2026
@xrvdg
xrvdg marked this pull request as ready for review November 25, 2026 09:03

This branch was successfully deployed

1 active deployment
Preview — 5680c335 Deployed Nov 25, 2026 by vercel[bot]
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.

1 participant