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(avm-simulator): sha256 -> sha256compression #6067

Merged
merged 3 commits into from
May 14, 2024

Conversation

dbanks12
Copy link
Collaborator

Please read contributing guidelines and remove this line.

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @dbanks12 and the rest of your teammates on Graphite Graphite

@dbanks12 dbanks12 force-pushed the db/avm-simulator-sha256compression branch from 10a8ba2 to dad0fbe Compare April 26, 2024 20:02
@AztecBot
Copy link
Collaborator

AztecBot commented Apr 26, 2024

Benchmark results

No metrics with a significant change found.

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.

L2 block published to L1

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

Metric 8 txs 32 txs 64 txs
l1_rollup_calldata_size_in_bytes 740 740 740
l1_rollup_calldata_gas 6,680 6,692 6,680
l1_rollup_execution_gas 586,812 586,824 586,812
l2_block_processing_time_in_ms 1,486 (-11%) 5,485 (-3%) 10,650 (-2%)
l2_block_building_time_in_ms 23,407 (+3%) 92,013 (+3%) 184,137 (+3%)
l2_block_rollup_simulation_time_in_ms 23,203 (+3%) 91,259 (+3%) 182,673 (+3%)
l2_block_public_tx_process_time_in_ms 9,033 35,310 (+1%) 70,789 (+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 15,582 (-10%) 31,409 (-2%)
node_database_size_in_bytes 20,742,224 37,400,656
pxe_database_size_in_bytes 29,868 59,425

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 175 (-1%) 46,819 28,822
private-kernel-inner 206 76,734 28,822
private-kernel-ordering 229 53,040 42,751
base-parity 86.9 (+27%) 128 64.0
base-rollup 17,432 (+5%) 111,062 925
root-parity 1,756 (+9%) 27,064 64.0
root-rollup 68.5 (+6%) 11,454 789
public-kernel-app-logic 1,983 54,321 22,677
public-kernel-tail 5,013 (+3%) 159,770 3,898
merge-rollup 7,035 (+8%) 2,696 925
public-kernel-teardown 160 (-1%) 54,321 30,042
public-kernel-setup 226 (+2%) 54,321 30,042

Tree insertion stats

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

Metric 1 leaves 16 leaves 64 leaves 128 leaves 512 leaves 1024 leaves 2048 leaves 4096 leaves 32 leaves
batch_insert_into_append_only_tree_16_depth_ms 10.8 (-2%) 17.5 (-2%) N/A N/A N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_count 16.7 31.8 N/A N/A N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_ms 0.632 (-1%) 0.541 (-1%) N/A N/A N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 51.0 (-1%) 79.9 260 499 978 (-1%) 1,942 (-1%) N/A
batch_insert_into_append_only_tree_32_depth_hash_count N/A N/A 95.9 159 543 1,055 2,079 4,127 N/A
batch_insert_into_append_only_tree_32_depth_hash_ms N/A N/A 0.522 (-1%) 0.494 0.474 0.467 0.465 (-1%) 0.465 (-1%) N/A
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 60.2 119 (-1%) 374 (-1%) 735 1,457 (-1%) 2,916 (-1%) N/A
batch_insert_into_indexed_tree_20_depth_hash_count N/A N/A 105 208 692 1,363 2,707 5,395 N/A
batch_insert_into_indexed_tree_20_depth_hash_ms N/A N/A 0.531 0.537 0.510 0.507 0.505 (-1%) 0.507 (-1%) N/A
batch_insert_into_indexed_tree_40_depth_ms N/A N/A N/A N/A N/A N/A N/A N/A 66.4
batch_insert_into_indexed_tree_40_depth_hash_count N/A N/A N/A N/A N/A N/A N/A N/A 108
batch_insert_into_indexed_tree_40_depth_hash_ms N/A N/A N/A N/A N/A N/A N/A N/A 0.585

Miscellaneous

Transaction sizes based on how many contract classes are registered in the tx.

Metric 0 registered classes 1 registered classes
tx_size_in_bytes 44,613 535,433

Transaction size based on fee payment method

Metric native fee payment method fpc_public fee payment method fpc_private fee payment method
tx_with_fee_size_in_bytes 897 1,145 1,345

Transaction processing duration by data writes.

Metric 0 new note hashes 1 new note hashes 2 new note hashes
tx_pxe_processing_time_ms 1,376 (-3%) 1,007 3,512 (-4%)
Metric 1 public data writes 2 public data writes 3 public data writes 4 public data writes 5 public data writes 8 public data writes
tx_sequencer_processing_time_ms 901 (+2%) 780 (-1%) 1,397 (-1%) 924 (-1%) 2,132 (-2%) 1,100 (-1%)

@dbanks12 dbanks12 force-pushed the db/avm-simulator-sha256compression branch 4 times, most recently from 7d176b6 to 95a1a21 Compare April 26, 2024 21:52
@TomAFrench TomAFrench merged commit fa8b34e into gd/noir_issue_4330 May 14, 2024
47 of 54 checks passed
@TomAFrench TomAFrench deleted the db/avm-simulator-sha256compression branch May 14, 2024 14:06
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.

5 participants