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

chore: fixup refactor pedersen standard [DO NOT MERGE] #2882

Merged
merged 11 commits into from
Oct 22, 2023

Conversation

kevaundray
Copy link
Contributor

Please provide a paragraph or two giving a summary of the change, including relevant motivation and context.

Checklist:

Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge.

  • If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag.
  • I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code.
  • Every change is related to the PR description.
  • I have linked this pull request to relevant issues (if any exist).

@kevaundray kevaundray marked this pull request as ready for review October 16, 2023 18:12
@kevaundray kevaundray changed the title chore: fixup refactor pedersen standard chore: fixup refactor pedersen standard [DO NOT MERGE] Oct 16, 2023
@socket-security
Copy link

socket-security bot commented Oct 16, 2023

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@kevaundray/acvm_js 0.28.0-kw-branched-off-of-last-aztec-tag-168e69bed...0.28.0-kw-branched-off-of-last-aztec-tag-5b563c08c None +0/-0 5.76 MB

@kevaundray kevaundray force-pushed the kw/zw/use-new-pedersen branch from 15636d6 to 99dd65b Compare October 22, 2023 15:28
@kevaundray kevaundray merged commit a4205ab into zw/use-new-pedersen Oct 22, 2023
@kevaundray kevaundray deleted the kw/zw/use-new-pedersen branch October 22, 2023 20:07
@AztecBot
Copy link
Collaborator

Benchmark results

All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.

This benchmark source data is available in JSON format on S3 here.

Values are compared against data from master at commit ba2f671c and shown if the difference exceeds 1%.

L2 block published to L1

Each column represents the number of txs on an L2 block published to L1.

Metric 8 txs 32 txs 128 txs
l1_rollup_calldata_size_in_bytes 45,444 179,588 716,132
l1_rollup_calldata_gas 223,032 868,304 3,447,920
l1_rollup_execution_gas 842,119 3,595,412 22,203,289
l2_block_processing_time_in_ms ⚠️ 2,276 (+123%) ⚠️ 8,825 (+129%) ⚠️ 34,270 (+125%)
note_successful_decrypting_time_in_ms ⚠️ 709 (+113%) ⚠️ 2,523 (+146%) ⚠️ 9,721 (+149%)
note_trial_decrypting_time_in_ms ⚠️ 9.00 (-74%) 107 (-2%) 138 (+1%)
l2_block_building_time_in_ms ⚠️ 15,590 (+75%) ⚠️ 62,211 (+75%) ⚠️ 249,294 (+59%)
l2_block_rollup_simulation_time_in_ms ⚠️ 13,021 (+98%) ⚠️ 52,047 (+99%) ⚠️ 208,434 (+99%)
l2_block_public_tx_process_time_in_ms ⚠️ 2,527 (+11%) 10,034 (+9%) ⚠️ 40,406 (-21%)

L2 chain processing

Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric 5 blocks 10 blocks
node_history_sync_time_in_ms ⚠️ 24,696 (+112%) ⚠️ 48,268 (+115%)
note_history_successful_decrypting_time_in_ms ⚠️ 6,139 (+158%) ⚠️ 12,159 (+161%)
note_history_trial_decrypting_time_in_ms 122 (-1%) ⚠️ 148 (-27%)
node_database_size_in_bytes 1,662,268 1,199,329
pxe_database_size_in_bytes 27,188 54,187

Circuits stats

Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit circuit_simulation_time_in_ms circuit_input_size_in_bytes circuit_output_size_in_bytes
private-kernel-init ⚠️ 82.6 (+75%) 61,697 18,841
private-kernel-ordering ⚠️ 50.7 (+117%) 24,233 8,089
base-rollup ⚠️ 2,068 (+143%) 639,797 811
root-rollup ⚠️ 89.6 (+130%) 4,072 1,097
private-kernel-inner ⚠️ 59.1 (+41%) 81,504 18,841
public-kernel-private-input 46.6 (-2%) 41,455 18,841
public-kernel-non-first-iteration 29.1 (-6%) 41,497 18,841
merge-rollup 0.870 (+3%) 2,592 873

Miscellaneous

Transaction sizes based on how many contracts are deployed in the tx.

Metric 0 deployed contracts 1 deployed contracts
tx_size_in_bytes 8,723 29,391 (+7%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants