Skip to content

chore: implement benchmarking cli and action#85

Merged
0xmoebius merged 5 commits intodevfrom
feat/benchmark-action
May 12, 2025
Merged

chore: implement benchmarking cli and action#85
0xmoebius merged 5 commits intodevfrom
feat/benchmark-action

Conversation

@0xmoebius
Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions
Copy link
Copy Markdown

Benchmark Comparison

Contract: token

Function Gates DA Gas L2 Gas
Status Base PR Diff Base PR Diff Base PR Diff
burn_private 325,168 325,168 13,517 13,517 53,473 53,473
burn_public 208,476 208,476 2,253 2,253 71,090 71,090
mint_to_private 320,811 320,811 12,954 12,954 47,489 47,489
mint_to_public 208,476 208,476 2,253 2,253 71,866 71,866
transfer_private_to_private 331,983 331,983 24,218 24,218 20,909 20,909
transfer_private_to_public 325,248 325,248 13,517 13,517 70,435 70,435
transfer_private_to_public_with_commitment 350,224 350,224 24,781 24,781 104,237 104,237
transfer_public_to_private 316,576 316,576 12,954 12,954 64,609 64,609
transfer_public_to_public 208,476 208,476 2,253 2,253 88,498 88,498

xorsal
xorsal previously approved these changes Apr 30, 2025
Copy link
Copy Markdown
Collaborator

@xorsal xorsal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0xmoebius 0xmoebius marked this pull request as ready for review April 30, 2025 13:36
@github-actions
Copy link
Copy Markdown

Benchmark Comparison

Contract: token

Function Gates DA Gas L2 Gas
Status Base PR Diff Base PR Diff Base PR Diff
burn_private 325,168 325,168 13,517 13,517 53,473 53,473
burn_public 208,476 208,476 2,253 2,253 71,090 71,090
mint_to_private 320,811 320,811 12,954 12,954 47,489 47,489
mint_to_public 208,476 208,476 2,253 2,253 71,866 71,866
transfer_private_to_private 331,983 331,983 24,218 24,218 20,909 20,909
transfer_private_to_public 325,248 325,248 13,517 13,517 70,435 70,435
transfer_private_to_public_with_commitment 350,224 350,224 24,781 24,781 104,237 104,237
transfer_public_to_private 316,576 316,576 12,954 12,954 64,609 64,609
transfer_public_to_public 208,476 208,476 2,253 2,253 88,498 88,498

@github-actions
Copy link
Copy Markdown

Benchmark Comparison

Contract: token

Function Gates DA Gas L2 Gas
Status Base PR Diff Base PR Diff Base PR Diff
burn_private 325,168 323,321 -1,847 (-0.6%) 13,517 13,517 53,473 53,413 -60 (-0.1%)
🟢 burn_public 208,476 207,273 -1,203 (-0.6%) 2,253 2,253 71,090 67,335 -3,755 (-5.3%)
mint_to_private 320,811 318,964 -1,847 (-0.6%) 12,954 12,954 47,489 47,429 -60 (-0.1%)
🟢 mint_to_public 208,476 207,273 -1,203 (-0.6%) 2,253 2,253 71,866 68,110 -3,756 (-5.2%)
transfer_private_to_private 331,983 330,295 -1,688 (-0.5%) 24,218 24,218 20,909 20,909
🟢 transfer_private_to_public 325,248 323,401 -1,847 (-0.6%) 13,517 13,517 70,435 66,679 -3,756 (-5.3%)
🟢 transfer_private_to_public_with_commitment 350,224 348,535 -1,689 (-0.5%) 24,781 24,781 104,237 100,422 -3,815 (-3.7%)
🟢 transfer_public_to_private 316,576 314,729 -1,847 (-0.6%) 12,954 12,954 64,609 60,854 -3,755 (-5.8%)
🟢 transfer_public_to_public 208,476 207,273 -1,203 (-0.6%) 2,253 2,253 88,498 81,046 -7,452 (-8.4%)

@github-actions
Copy link
Copy Markdown

github-actions bot commented May 12, 2025

Benchmark Comparison

Contract: token

Function Gates DA Gas L2 Gas
Status Base PR Diff Base PR Diff Base PR Diff
burn_private 325,168 323,321 -1,847 (-0.6%) 13,517 13,517 53,473 53,413 -60 (-0.1%)
🔴 burn_public 208,476 212,273 +3,797 (+1.82%) 2,253 2,253 71,090 67,335 -3,755 (-5.3%)
mint_to_private 320,811 318,964 -1,847 (-0.6%) 12,954 12,954 47,489 47,429 -60 (-0.1%)
🟢 mint_to_public 208,476 207,273 -1,203 (-0.6%) 2,253 2,253 71,866 68,110 -3,756 (-5.2%)
transfer_private_to_private 331,983 330,295 -1,688 (-0.5%) 24,218 24,218 20,909 20,909
🟢 transfer_private_to_public 325,248 323,401 -1,847 (-0.6%) 13,517 13,517 70,435 66,679 -3,756 (-5.3%)
🟢 transfer_private_to_public_with_commitment 350,224 348,535 -1,689 (-0.5%) 24,781 24,781 104,237 100,422 -3,815 (-3.7%)
🟢 transfer_public_to_private 316,576 314,729 -1,847 (-0.6%) 12,954 12,954 64,609 60,854 -3,755 (-5.8%)
🟢 transfer_public_to_public 208,476 207,273 -1,203 (-0.6%) 2,253 2,253 88,498 81,046 -7,452 (-8.4%)

@0xmoebius 0xmoebius merged commit 9de26ab into dev May 12, 2025
3 checks passed
@0xmoebius 0xmoebius deleted the feat/benchmark-action branch May 12, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants