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

test: Deallocate at the instruction level #4549

Closed
wants to merge 1 commit into from

Conversation

sirasistant
Copy link
Contributor

No description provided.

@sirasistant sirasistant marked this pull request as draft February 12, 2024 14:00
@AztecBot
Copy link
Collaborator

Benchmark results

Metrics with a significant change:

  • batch_insert_into_append_only_tree_32_depth_ms (2048): 1,052 (+17%)
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 acf5cf23 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,700 180,580 720,100
l1_rollup_calldata_gas 222,772 871,192 3,464,536
l1_rollup_execution_gas 315,963 989,640 3,684,914
l2_block_processing_time_in_ms 1,161 (+1%) 4,980 (+15%) 18,732 (+9%)
note_successful_decrypting_time_in_ms 326 (+4%) 1,035 (+6%) 4,062 (+11%)
note_trial_decrypting_time_in_ms 36.6 (+45%) 43.0 (-60%) 172 (+17%)
l2_block_building_time_in_ms 18,433 (+1%) 74,257 (+3%) 308,384 (+6%)
l2_block_rollup_simulation_time_in_ms 13,545 (+1%) 54,922 (+3%) 227,346 (+6%)
l2_block_public_tx_process_time_in_ms 4,861 19,252 (+1%) 80,704 (+5%)

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,898 28,721
note_history_successful_decrypting_time_in_ms 2,331 (-8%) 4,636 (-5%)
note_history_trial_decrypting_time_in_ms 86.8 (-3%) 179 (+13%)
node_database_size_in_bytes 17,297,488 32,985,168
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 313 (+2%) 44,528 25,825
private-kernel-ordering 201 (+2%) 44,145 16,193
base-rollup 1,491 (+3%) 130,286 933
root-rollup 84.4 4,192 729
private-kernel-inner 446 (+2%) 71,331 25,825
public-kernel-private-input 254 (+2%) 34,687 27,457
public-kernel-non-first-iteration 252 (+2%) 34,729 27,457
merge-rollup 8.06 (+3%) 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.5 (+3%) 12.1 (+14%) 12.7 (-1%) 17.2 (+3%) 22.9 77.2 (+21%) 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.612 (+3%) 0.675 (+14%) 0.542 (-1%) 0.534 (+3%) 0.480 0.527 (+19%) 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 79.8 (+8%) 49.1 (+3%) 239 (-1%) 462 ⚠️ 1,052 (+17%) 3,755 (+6%)
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.492 (+7%) 0.503 (+3%) 0.436 0.433 0.499 (+17%) 0.450 (+6%)
batch_insert_into_indexed_tree_20_depth_ms N/A N/A N/A N/A N/A 105 (+2%) 59.1 (+5%) 351 (+1%) 687 1,459 (+8%) 5,943 (+10%)
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.499 (+2%) 0.516 (+4%) 0.474 0.473 0.502 (+7%) 0.515 (+9%)
batch_insert_into_indexed_tree_40_depth_ms N/A N/A N/A 58.6 (+4%) N/A 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 94.1 N/A 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 0.598 (+3%) N/A 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 16,827 35,667 (-11%)

Transaction processing duration by data writes.

Metric 0 new commitments 1 new commitments
tx_pxe_processing_time_ms 566 (+2%) 1,340 (+2%)
Metric 0 public data writes 1 public data writes
tx_sequencer_processing_time_ms 0.522 (+7%) 606 (+2%)

@ludamad ludamad deleted the arv/test_deallocate_instruction branch August 22, 2024 14:18
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