Skip to content
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

Experiment with a single public input for the light client circuit. #1265

Closed

Conversation

philippecamacho
Copy link
Contributor

@philippecamacho philippecamacho commented Mar 20, 2024

CAUTION: this PR is not meant to be merged. Its purpose is to evaluate how much gas is required when calling the state update function of the light client contract when the public input is of size 1, instead of 8.

Run the benchmark:

> cargo build --bin diff-test --release
> forge test --mt testCorrectUpdate

Running 1 test for contracts/test/LightClient.t.sol:LightClient_newFinalizedState_Test
[PASS] testCorrectUpdate() (gas: 851965)
Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 16.06s
 

So misfortunately the gas cost does not decrease that much: 851,965 instead of 939,380.

@sveitser sveitser marked this pull request as draft March 21, 2024 12:58
@jparr721 jparr721 closed this Feb 13, 2025
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.

2 participants