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

feat: monke pay gas with bananas #4691

Closed
wants to merge 2 commits into from
Closed

feat: monke pay gas with bananas #4691

wants to merge 2 commits into from

Conversation

LHerskind
Copy link
Contributor

Please read contributing guidelines and remove this line.

Copy link
Contributor Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@AztecBot
Copy link
Collaborator

AztecBot commented Feb 21, 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.

Values are compared against data from master at commit 9cb6daff 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 54,212 214,436 855,332
l1_rollup_calldata_gas 259,844 1,019,708 4,059,836
l1_rollup_execution_gas 354,030 1,139,156 4,281,237
l2_block_processing_time_in_ms 1,268 (-1%) 4,776 18,968
note_successful_decrypting_time_in_ms 222 (-1%) 629 (+2%) 2,236 (-1%)
note_trial_decrypting_time_in_ms 35.6 (-18%) 65.0 (+11%) 194 (-2%)
l2_block_building_time_in_ms 21,325 84,701 344,652
l2_block_rollup_simulation_time_in_ms 15,957 (-1%) 63,370 259,362
l2_block_public_tx_process_time_in_ms 5,340 21,253 85,029 (+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 16,075 (-1%) 31,434 (-1%)
note_history_successful_decrypting_time_in_ms 1,413 2,731
note_history_trial_decrypting_time_in_ms 170 (-1%) 215 (-5%)
node_database_size_in_bytes 18,694,224 35,790,928
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 333 44,664 27,457
private-kernel-ordering 214 45,777 14,627
base-rollup 1,742 175,344 933
root-rollup 82.8 4,192 825
private-kernel-inner 443 73,099 27,457
public-kernel-app-logic 276 (+1%) 32,254 25,379
merge-rollup 7.82 (-1%) 2,712 933

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 128 leaves 64 leaves 512 leaves 1024 leaves 2048 leaves 8192 leaves
batch_insert_into_append_only_tree_16_depth_ms 10.3 (+1%) 11.3 13.1 (-18%) 17.3 (+2%) 26.2 (+13%) 63.8 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_count 16.9 17.5 23.0 31.6 47.0 143 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_ms 0.595 (+1%) 0.626 0.547 (-19%) 0.534 (+2%) 0.543 (+13%) 0.440 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A N/A N/A N/A 74.8 (-1%) 48.5 (+1%) 241 462 911 (+1%) 3,562
batch_insert_into_append_only_tree_32_depth_hash_count N/A N/A N/A N/A N/A 159 96.0 543 1,055 2,079 8,223
batch_insert_into_append_only_tree_32_depth_hash_ms N/A N/A N/A N/A N/A 0.461 (-1%) 0.496 (+1%) 0.438 0.432 0.432 (+1%) 0.428
batch_insert_into_indexed_tree_20_depth_ms N/A N/A N/A N/A N/A 105 57.2 (-1%) 356 (-1%) 688 (-1%) 1,373 5,457
batch_insert_into_indexed_tree_20_depth_hash_count N/A N/A N/A N/A N/A 197 104 691 1,363 2,707 10,771
batch_insert_into_indexed_tree_20_depth_hash_ms N/A N/A N/A N/A N/A 0.495 0.498 (-1%) 0.477 0.471 (-1%) 0.474 (-1%) 0.473
batch_insert_into_indexed_tree_40_depth_ms N/A N/A N/A N/A 64.4 (-1%) N/A N/A N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_count N/A N/A N/A N/A 110 N/A N/A N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_ms N/A N/A N/A N/A 0.555 (-1%) N/A N/A N/A N/A N/A N/A

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,388 36,001

Transaction processing duration by data writes.

Metric 0 new commitments 1 new commitments
tx_pxe_processing_time_ms 578 1,504
Metric 0 public data writes 1 public data writes
tx_sequencer_processing_time_ms 0.0288 (-11%) 657

@just-mitch
Copy link
Contributor

closing in favor of #4696

@just-mitch just-mitch closed this Feb 21, 2024
@ludamad ludamad deleted the lh/banana-fee branch August 22, 2024 15:25
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.

3 participants