Skip to content

feat: Remove dangerous function#4007

Merged
Rumata888 merged 3 commits into
masterfrom
is/cleanup
Jan 16, 2024
Merged

feat: Remove dangerous function#4007
Rumata888 merged 3 commits into
masterfrom
is/cleanup

Conversation

@Rumata888

Copy link
Copy Markdown
Contributor

There is a method in the stdlib transcript that could easily confuse developers in the future if we end up reusing/updating the old plonk transcript. It's better to avoid this issue.

@kevaundray kevaundray left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tentative lgtm, if the method is unused

@AztecBot

AztecBot commented Jan 15, 2024

Copy link
Copy Markdown
Collaborator

Benchmark results

Metrics with a significant change:

  • note_trial_decrypting_time_in_ms (32): 91.3 (+85%)
Detailed 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 e28a6bf1 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 221,076 865,964 3,447,668
l1_rollup_execution_gas 934,220 3,968,438 24,791,204
l2_block_processing_time_in_ms 1,544 (+2%) 5,179 (+1%) 21,361
note_successful_decrypting_time_in_ms 314 (+1%) 965 (+4%) 3,509 (+3%)
note_trial_decrypting_time_in_ms 25.8 (+12%) ⚠️ 91.3 (+85%) 138 (+2%)
l2_block_building_time_in_ms 14,980 (+1%) 59,586 (+1%) 239,608 (+1%)
l2_block_rollup_simulation_time_in_ms 10,576 (+1%) 42,138 (+1%) 169,984 (+1%)
l2_block_public_tx_process_time_in_ms 4,371 (+1%) 17,354 (+1%) 69,343 (+1%)

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 14,940 (-1%) 28,765
note_history_successful_decrypting_time_in_ms 2,169 (-1%) 4,255 (-2%)
note_history_trial_decrypting_time_in_ms 104 (-10%) 164 (-4%)
node_database_size_in_bytes 3,625,643 3,729,823
pxe_database_size_in_bytes 29,923 59,478

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 214 44,681 25,561
private-kernel-ordering 166 (+1%) 43,753 14,809
base-rollup 1,070 (+1%) 128,338 881
root-rollup 78.9 (-2%) 4,088 677
private-kernel-inner 291 71,208 25,561
public-kernel-private-input 207 31,863 25,561
public-kernel-non-first-iteration 204 31,905 25,561
merge-rollup 7.65 (-8%) 2,608 881

Tree insertion stats

The duration to insert a fixed batch of leaves into each tree type.

Metric 1 leaves 2 leaves 8 leaves 16 leaves 32 leaves 64 leaves 128 leaves 512 leaves 1024 leaves 2048 leaves 8192 leaves
batch_insert_into_append_only_tree_ms 11.2 (-2%) 17.0 (-1%) 14.0 (-2%) 18.4 (+3%) 24.1 (+2%) 50.4 (-1%) 91.5 (+11%) 245 (+1%) 471 918 (+1%) 3,579
batch_insert_into_indexed_tree_ms N/A N/A N/A 64.9 (+1%) N/A 60.0 (+1%) 113 (+2%) 363 (+1%) 735 1,419 (+1%) 5,619 (+1%)

Miscellaneous

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

Metric 0 deployed contracts 1 deployed contracts
tx_size_in_bytes 15,455 32,224

Transaction processing duration by data writes.

Metric 0 new commitments 1 new commitments
tx_pxe_processing_time_ms 374 (-1%) 1,087
Metric 1 public data writes
tx_sequencer_processing_time_ms 538

@Rumata888 Rumata888 merged commit b3790eb into master Jan 16, 2024
@Rumata888 Rumata888 deleted the is/cleanup branch January 16, 2024 13:55
michaelelliot pushed a commit to Swoir/noir_rs that referenced this pull request Feb 28, 2024
There is a method in the stdlib transcript that could easily confuse
developers in the future if we end up reusing/updating the old plonk
transcript. It's better to avoid this issue.

Co-authored-by: kevaundray <kevtheappdev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants