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: syncing bootstrap-network w/ devnet branch #8039

Closed

Conversation

sklppy88
Copy link
Contributor

Please read contributing guidelines and remove this line.

Copy link
Contributor Author

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

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

@sklppy88 sklppy88 changed the title init chore: syncing bootstrap-network w/ devnet branch Aug 16, 2024
@AztecBot
Copy link
Collaborator

AztecBot commented Aug 16, 2024

Benchmark results

Metrics with a significant change:

  • avm_simulation_time_ms (Token:transfer_public): 44.2 (+65%)
  • avm_simulation_time_ms (Token:_increase_public_balance): 80.1 (+90%)
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_ms 5,774 1,566 708 (-1%) 760 772
proof_construction_time_sha256_30_ms 11,848 3,173 1,415 1,440 (-1%) 1,471
proof_construction_time_sha256_100_ms 45,513 12,192 (+1%) 5,489 5,413 5,366
proof_construction_time_poseidon_hash_ms 79.0 34.0 34.0 59.0 (+2%) 88.0 (-1%)
proof_construction_time_poseidon_hash_30_ms 1,534 423 205 (+1%) 233 (+3%) 270 (-3%)
proof_construction_time_poseidon_hash_100_ms 5,651 1,520 680 731 (-1%) 745 (+1%)

L2 block published to L1

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

Metric 4 txs 8 txs 16 txs
l1_rollup_calldata_size_in_bytes 4,324 7,844 14,852
l1_rollup_calldata_gas 49,720 92,410 177,524
l1_rollup_execution_gas 1,383,169 2,130,827 3,957,980
l2_block_processing_time_in_ms 256 (+4%) 447 (+1%) 819 (+2%)
l2_block_building_time_in_ms 9,249 (-1%) 18,177 (+1%) 35,917 (-1%)
l2_block_rollup_simulation_time_in_ms 9,248 (-1%) 18,177 (+1%) 35,917 (-1%)
l2_block_public_tx_process_time_in_ms 7,795 (-1%) 16,626 (+1%) 34,331 (-1%)

L2 chain processing

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

Metric 3 blocks 5 blocks
node_history_sync_time_in_ms 2,998 (-1%) 3,809 (+2%)
node_database_size_in_bytes 12,632,144 16,752,720
pxe_database_size_in_bytes 16,254 26,813

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 input_size_in_bytes output_size_in_bytes proving_time_in_ms
private-kernel-init 91.4 (-5%) 382 (-5%) 21,673 44,858 N/A
private-kernel-inner 167 (+3%) 682 (-6%) 72,309 45,005 N/A
private-kernel-reset-tiny 501 900 65,974 44,844 N/A
private-kernel-tail 207 160 (-5%) 50,728 52,256 N/A
base-parity 5.58 N/A 160 96.0 N/A
root-parity 33.6 (+1%) N/A 69,084 96.0 N/A
base-rollup 2,865 (+1%) N/A 187,817 664 N/A
root-rollup 38.5 (-1%) N/A 54,525 716 N/A
public-kernel-setup 97.3 N/A 103,760 71,222 N/A
public-kernel-app-logic 104 (+1%) N/A 103,599 71,222 N/A
public-kernel-tail 571 (-1%) N/A 409,190 16,414 N/A
private-kernel-reset-small 497 N/A 66,085 45,629 N/A
private-kernel-tail-to-public 992 (-7%) 631 (-5%) 492,960 1,697 N/A
public-kernel-teardown 91.5 (-1%) N/A 104,005 71,222 N/A
merge-rollup 19.2 N/A 35,742 664 N/A
undefined N/A N/A N/A N/A 68,500 (+4%)

Stats on running time collected for app circuits

Function input_size_in_bytes output_size_in_bytes witness_generation_time_in_ms
ContractClassRegisterer:register 1,344 11,731 344
ContractInstanceDeployer:deploy 1,408 11,731 18.0 (-1%)
MultiCallEntrypoint:entrypoint 1,920 11,731 424
FeeJuice:deploy 1,376 11,731 391 (+1%)
SchnorrAccount:constructor 1,312 11,731 104
SchnorrAccount:entrypoint 2,304 11,731 430 (-1%)
Token:privately_mint_private_note 1,280 11,731 142 (+1%)
FPC:fee_entrypoint_public 1,344 11,731 29.5 (+10%)
Token:transfer 1,312 11,731 267 (-1%)
Benchmarking:create_note 1,344 11,731 100 (-4%)
SchnorrAccount:verify_private_authwit 1,280 11,731 28.0 (+1%)
Token:unshield 1,376 11,731 565 (+1%)
FPC:fee_entrypoint_private 1,376 11,731 758

AVM Simulation

Time to simulate various public functions in the AVM.

Function time_ms bytecode_size_in_bytes
FeeJuice:_increase_public_balance 55.5 (+3%) 8,139
FeeJuice:set_portal 13.0 (+10%) 2,362
Token:constructor 86.9 (+9%) 31,107
FPC:constructor 56.2 (+7%) 22,380
FeeJuice:mint_public 38.2 (-1%) 6,150
Token:mint_public 44.4 (+1%) 11,720
Token:assert_minter_and_mint 66.5 (-3%) 8,028
AuthRegistry:set_authorized 45.6 (+25%) 4,537
FPC:prepare_fee 229 (-3%) 8,812
Token:transfer_public ⚠️ 44.2 (+65%) 47,374
FPC:pay_refund 64.1 (+11%) 12,114
Benchmarking:increment_balance 966 7,450
Token:_increase_public_balance ⚠️ 80.1 (+90%) 8,960
FPC:pay_refund_with_shielded_rebate 69.1 12,663

Public DB Access

Time to access various public DBs.

Function time_ms
get-nullifier-index 0.166 (+4%)

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 256 leaves 512 leaves 1024 leaves
batch_insert_into_append_only_tree_16_depth_ms 2.20 (+1%) 3.90 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_count 16.8 31.7 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_ms 0.113 0.110 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 11.6 18.2 (+1%) 30.8 (-2%) 60.1 (+3%) 115 (+1%)
batch_insert_into_append_only_tree_32_depth_hash_count N/A N/A 95.9 159 287 543 1,055
batch_insert_into_append_only_tree_32_depth_hash_ms N/A N/A 0.112 0.105 (+1%) 0.100 (-1%) 0.103 (+2%) 0.102
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 14.6 26.0 43.9 83.8 (+2%) 162 (-1%)
batch_insert_into_indexed_tree_20_depth_hash_count N/A N/A 109 207 355 691 1,363
batch_insert_into_indexed_tree_20_depth_hash_ms N/A N/A 0.110 0.105 0.106 0.104 (+2%) 0.102 (-1%)
batch_insert_into_indexed_tree_40_depth_ms N/A N/A 16.5 (+1%) N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_count N/A N/A 132 N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_ms N/A N/A 0.106 N/A N/A N/A N/A

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 64,779 668,997

Transaction size based on fee payment method

| Metric | |
| - | |

@sklppy88 sklppy88 force-pushed the ek/chore/sync-bootstrap-devnet-with-devnet-branch branch from e711847 to 962b94b Compare August 16, 2024 12:34
@sklppy88 sklppy88 marked this pull request as ready for review August 16, 2024 13:55
@sklppy88
Copy link
Contributor Author

Closed in favor of #8044.

@sklppy88 sklppy88 closed this Aug 16, 2024
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