Skip to content

--detailed-resources are incorrectly higher than reality. #3413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
feltroidprime opened this issue May 27, 2025 · 0 comments
Open

--detailed-resources are incorrectly higher than reality. #3413

feltroidprime opened this issue May 27, 2025 · 0 comments
Assignees
Labels

Comments

@feltroidprime
Copy link

feltroidprime commented May 27, 2025

Select Tool

snforge

Foundry Version

0.44.0

What operating system are you using?

Linux

What system architecture are you using?

x86

Issue Description

VM resources and gas are much higher than reality. Also confirmed by xp on transactions.

https://github.com/feltroidprime/sp1-starknet-template

Checkout this repo, go into contracts.
Simply update snforge_std to latest 0.44, use latest cairo profiler as well.



snforge test --detailed resources 
[PASS] sp1_app_integrationtest::test_contract::test_verify_sp1_proof (l1_gas: ~0, l1_data_gas: ~96, l2_gas: ~266600000)
        steps: 518573
        memory holes: 23957
        builtins: (range_check96: 166615, range_check: 23091, mul_mod: 20868, add_mod: 14463, bitwise: 4460, poseidon: 1362, pedersen: 7)
        syscalls: (LibraryCall: 2, Sha256ProcessBlock: 2, Deploy: 1, CallContract: 1)

On the other hand, see the cairo profiler output for steps which is much smaller (all other builtins are similarly impacted and higher than the ones shown in the profiler, for example bitwise is actually 2 times less in the profiler, etc):

Image

Command Line Output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: TODO
Development

No branches or pull requests

2 participants