Skip to content

devrel looking at boxes, please ignore#4139

Closed
signorecello wants to merge 4 commits intomasterfrom
zpedro/blank_box
Closed

devrel looking at boxes, please ignore#4139
signorecello wants to merge 4 commits intomasterfrom
zpedro/blank_box

Conversation

@signorecello
Copy link
Contributor

No description provided.

@socket-security
Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@aztec/accounts 0.19.0 None +44 35.7 MB charlielye
@aztec/aztec.js 0.19.0 network +17 11.6 MB charlielye
@aztec/aztec.js 0.16.9 network +28 65.8 MB charlielye
sass-loader 13.3.3 None +0 59 kB evilebottnawi
style-loader 3.3.3...3.3.4 None +0/-0 83.5 kB evilebottnawi
classnames 2.3.2...2.5.1 None +0/-0 23.6 kB jedwatson

🚮 Removed packages: @types/node@20.10.5, @types/react@18.2.45, @typescript-eslint/parser@6.15.0

@jzaki jzaki mentioned this pull request Jan 18, 2024
@AztecBot
Copy link
Collaborator

Benchmark results

Metrics with a significant change:

  • batch_insert_into_indexed_tree_20_depth_ms (512): 383 (-32%)
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 2bbf7a91 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,380 179,492 716,036
l1_rollup_calldata_gas 221,168 866,360 3,447,764
l1_rollup_execution_gas 934,695 (+1%) 3,969,953 (+2%) 24,795,367 (+3%)
l2_block_processing_time_in_ms 1,434 (-11%) 5,334 21,965
note_successful_decrypting_time_in_ms 315 (-1%) 945 (+1%) 3,399 (+1%)
note_trial_decrypting_time_in_ms 24.4 (-5%) 73.6 (+20%) 146 (+4%)
l2_block_building_time_in_ms 16,158 64,084 256,547
l2_block_rollup_simulation_time_in_ms 11,748 46,664 187,216
l2_block_public_tx_process_time_in_ms 4,371 17,332 69,045

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,878 (-1%) 30,243 (-2%)
note_history_successful_decrypting_time_in_ms 2,153 4,236 (-7%)
note_history_trial_decrypting_time_in_ms 113 (-4%) 178 (-14%)
node_database_size_in_bytes 3,582,172 3,642,234
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 213 44,681 25,561
private-kernel-ordering 165 43,753 14,809
base-rollup 1,193 128,338 881
root-rollup 78.9 (-5%) 4,088 677
private-kernel-inner 292 71,208 25,561
public-kernel-private-input 206 31,863 25,561
public-kernel-non-first-iteration 204 31,905 25,561
merge-rollup 7.61 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 128 leaves 64 leaves 512 leaves 1024 leaves 2048 leaves 8192 leaves
batch_insert_into_append_only_tree_16_depth_ms 12.5 21.8 (+12%) 13.9 (+2%) 19.8 (+1%) 26.6 (+2%) 65.9 (-4%) 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.631 (+1%) 0.690 (+6%) 0.551 0.549 (+1%) 0.488 (+1%) 0.442 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 104 (+22%) 52.1 (+1%) 258 (+2%) 479 922 3,593
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.551 (+15%) 0.500 0.447 0.436 0.430 0.429
batch_insert_into_indexed_tree_20_depth_ms N/A N/A N/A N/A N/A 135 (+13%) 63.0 ⚠️ 383 (-32%) 765 (-2%) 1,457 (+1%) 5,949
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.545 (+9%) 0.505 0.489 (-17%) 0.484 (-1%) 0.477 (+1%) 0.486
batch_insert_into_indexed_tree_40_depth_ms N/A N/A N/A 68.3 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 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 15,455 32,219

Transaction processing duration by data writes.

Metric 0 new commitments 1 new commitments
tx_pxe_processing_time_ms 375 (-1%) 1,085
Metric 1 public data writes
tx_sequencer_processing_time_ms 536

@signorecello
Copy link
Contributor Author

superseded by some actual work in #4183

@signorecello signorecello deleted the zpedro/blank_box branch February 12, 2024 18:01
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.

2 participants