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: Devnet setup for p2p bootstrap node #6660

Merged
merged 3 commits into from
May 24, 2024
Merged

Conversation

spypsy
Copy link
Member

@spypsy spypsy commented May 24, 2024

Fixes #6513

@spypsy spypsy marked this pull request as ready for review May 24, 2024 12:54
@AztecBot
Copy link
Collaborator

AztecBot commented May 24, 2024

Benchmark results

Metrics with a significant change:

  • protocol_circuit_witness_generation_time_in_ms (private-kernel-reset-small): 2,844 (+29%)
  • protocol_circuit_proving_time_in_ms (private-kernel-reset-small): 48,377 (+16%)
  • protocol_circuit_proving_time_in_ms (private-kernel-tail-to-public): 95,933 (+17%)
  • protocol_circuit_proving_time_in_ms (private-kernel-tail): 44,497 (+23%)
  • protocol_circuit_proving_time_in_ms (public-kernel-tail): 184,438 (+19%)
  • protocol_circuit_proving_time_in_ms (root-rollup): 22,598 (+18%)
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.

Proof generation

Each column represents the number of threads used in proof generation.

Metric 1 threads 4 threads 16 threads 32 threads 64 threads
proof_construction_time_sha256 5,701 (-2%) 1,561 (-1%) 711 780 (+2%) 781 (+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 64 txs
l1_rollup_calldata_size_in_bytes 1,412 1,412 1,412
l1_rollup_calldata_gas 9,464 9,464 9,476
l1_rollup_execution_gas 616,105 616,105 616,117
l2_block_processing_time_in_ms 1,370 (-2%) 5,115 (-2%) 10,135 (-1%)
l2_block_building_time_in_ms 47,907 194,219 (+2%) 388,188 (+2%)
l2_block_rollup_simulation_time_in_ms 47,733 193,576 (+2%) 386,930 (+2%)
l2_block_public_tx_process_time_in_ms 25,501 (-3%) 110,445 (+1%) 224,914 (+2%)

L2 chain processing

Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric 3 blocks 5 blocks
node_history_sync_time_in_ms 9,953 15,258 (+1%)
node_database_size_in_bytes 14,491,728 21,356,624
pxe_database_size_in_bytes 18,071 29,868

Circuits stats

Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Circuit simulation_time_in_ms witness_generation_time_in_ms proving_time_in_ms input_size_in_bytes output_size_in_bytes proof_size_in_bytes num_public_inputs size_in_gates
private-kernel-init 166 (+1%) 3,456 (-7%) 24,183 (+8%) 20,630 64,614 89,536 2,731 1,048,576
private-kernel-inner 633 3,977 (-8%) 53,232 (+10%) 92,318 64,614 89,536 2,731 2,097,152
private-kernel-tail 556 2,679 (-9%) ⚠️ 44,497 (+23%) 90,237 77,498 10,656 266 2,097,152
base-parity 6.41 (-1%) 1,155 (-13%) 2,817 (-4%) 128 64.0 2,208 2.00 131,072
root-parity 51.9 (+3%) 63.9 (-1%) 50,368 (+15%) 27,084 64.0 2,720 18.0 2,097,152
base-rollup 762 (-5%) 2,333 85,442 (+15%) 119,610 756 3,648 47.0 4,194,304
root-rollup 118 (+3%) 77.6 (+19%) ⚠️ 22,598 (+18%) 25,297 620 3,456 41.0 1,048,576
public-kernel-app-logic 544 (+2%) 2,833 (-2%) 52,539 (+11%) 104,941 86,302 114,784 3,520 2,097,152
public-kernel-tail 1,216 (+1%) 24,191 (+2%) ⚠️ 184,438 (+19%) 395,386 7,522 10,656 266 8,388,608
private-kernel-reset-small 604 (+1%) ⚠️ 2,844 (+29%) ⚠️ 48,377 (+16%) 120,733 64,614 89,536 2,731 2,097,152
merge-rollup 28.8 N/A N/A 16,534 756 N/A N/A N/A
public-kernel-setup 629 (+1%) N/A N/A 104,941 86,302 N/A N/A N/A
public-kernel-teardown 533 (+1%) N/A N/A 104,941 86,302 N/A N/A N/A
private-kernel-tail-to-public N/A 8,134 (-6%) ⚠️ 95,933 (+17%) N/A N/A 114,784 3,520 4,194,304

Stats on running time collected for app circuits

Function input_size_in_bytes output_size_in_bytes witness_generation_time_in_ms proof_size_in_bytes proving_time_in_ms size_in_gates num_public_inputs
ContractClassRegisterer:register 1,344 9,944 463 (-3%) N/A N/A N/A N/A
ContractInstanceDeployer:deploy 1,408 9,944 41.1 (-4%) N/A N/A N/A N/A
MultiCallEntrypoint:entrypoint 1,920 9,944 1,455 (-1%) N/A N/A N/A N/A
SchnorrAccount:constructor 1,312 9,944 1,022 N/A N/A N/A N/A
SchnorrAccount:entrypoint 2,304 9,944 2,122 16,768 49,274 (+7%) 2,097,152 457
Token:privately_mint_private_note 1,280 9,944 1,105 (-5%) N/A N/A N/A N/A
Token:transfer 1,376 9,944 4,032 (-2%) 16,768 56,981 (+9%) 2,097,152 457
Benchmarking:create_note 1,312 9,944 984 N/A N/A N/A N/A
FPC:fee_entrypoint_public 1,344 9,944 229 N/A N/A N/A N/A
SchnorrAccount:spend_private_authwit 1,280 9,944 79.3 (+2%) N/A N/A N/A N/A
Token:unshield 1,376 9,944 3,311 (+1%) N/A N/A N/A N/A
FPC:fee_entrypoint_private 1,376 9,944 4,089 (+1%) N/A N/A N/A N/A

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 11.3 (-2%) 18.3 (-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.656 (-2%) 0.562 (-2%) 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 52.3 (-1%) 82.9 (+1%) 267 507 1,006 2,017 (+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.535 0.511 (+1%) 0.486 0.473 0.477 0.482 (+2%) N/A
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 62.6 (-1%) 120 (-1%) 380 (-2%) 743 1,478 (-2%) 2,932 (-1%) N/A
batch_insert_into_indexed_tree_20_depth_hash_count N/A N/A 106 208 692 1,363 2,707 5,395 N/A
batch_insert_into_indexed_tree_20_depth_hash_ms N/A N/A 0.543 (-1%) 0.537 (-1%) 0.515 (-2%) 0.512 0.512 (-2%) 0.510 (-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.7 (-1%)
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 107
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.592 (-1%)

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 83,794 665,117

Transaction size based on fee payment method

| Metric | |
| - | |

@spypsy spypsy enabled auto-merge (squash) May 24, 2024 13:55
@spypsy spypsy merged commit e0bb743 into master May 24, 2024
84 checks passed
@spypsy spypsy deleted the spy/devnet-bootnode branch May 24, 2024 14: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.

[devnet] Configure DiscV5 P2P Bootstrap for AWS
3 participants