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: redeploy devnet #7265

Merged
merged 1 commit into from
Jul 2, 2024
Merged

chore: redeploy devnet #7265

merged 1 commit into from
Jul 2, 2024

Conversation

spypsy
Copy link
Member

@spypsy spypsy commented Jul 2, 2024

No description provided.

@spypsy spypsy marked this pull request as ready for review July 2, 2024 09:58
@spypsy spypsy merged commit 7afe0d6 into devnet Jul 2, 2024
86 checks passed
@spypsy spypsy deleted the devnet-redeploy-3 branch July 2, 2024 09:58
@AztecBot
Copy link
Collaborator

AztecBot commented Jul 2, 2024

Benchmark results

Metrics with a significant change:

  • proof_construction_time_sha256_30_ms (16): 1,443 (-16%)
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_30_ms 12,246 (+3%) 3,446 (+8%) ⚠️ 1,443 (-16%) 1,481 (+2%) 1,509 (-3%)
proof_construction_time_sha256_100_ms 45,770 (+3%) 12,180 (+3%) 5,579 (+3%) 5,536 (+2%) 5,530 (+4%)
proof_construction_time_poseidon_hash_ms 80.0 (+1%) 35.0 (-24%) 35.0 59.0 89.0 (+1%)
proof_construction_time_poseidon_hash_30_ms 1,580 (+3%) 428 (+2%) 202 (+2%) 234 (+3%) 268
proof_construction_time_poseidon_hash_100_ms 5,984 (+3%) 1,636 (+3%) 739 (+2%) 798 (+1%) 810 (+2%)

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 1,412 1,412 1,412
l1_rollup_calldata_gas 9,476 9,462 9,452
l1_rollup_execution_gas 610,297 610,283 610,273
l2_block_processing_time_in_ms 762 1,405 (-1%) 2,712 (-1%)
l2_block_building_time_in_ms 25,413 (-1%) 51,092 99,909
l2_block_rollup_simulation_time_in_ms 25,413 (-1%) 51,092 99,908
l2_block_public_tx_process_time_in_ms 21,852 (-1%) 47,308 96,200

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 7,041 (-1%) 9,832 (-1%)
node_database_size_in_bytes 12,132,432 16,068,688
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 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 130 (-1%) 476 12,757 (-2%) 20,634 67,190 92,352 2,819 524,288
private-kernel-inner 394 (+1%) 961 (+2%) 49,746 94,902 67,190 92,352 2,819 2,097,152
private-kernel-tail 372 1,860 (+1%) 53,723 (+5%) 99,121 71,733 14,912 399 2,097,152
base-parity 6.45 (+5%) 1,955 (+1%) 2,864 (+5%) 128 64.0 2,208 2.00 131,072
root-parity 49.1 (+1%) 77.7 (+6%) 44,307 (+2%) 27,100 64.0 2,720 18.0 2,097,152
base-rollup 7,946 5,067 (+3%) 84,418 (-6%) 170,330 756 3,648 47.0 4,194,304
root-rollup 110 92.8 (+5%) 23,575 (+7%) 25,309 620 3,456 41.0 1,048,576
public-kernel-setup 722 (+1%) 3,731 45,761 (+1%) 116,905 93,334 125,344 3,850 2,097,152
public-kernel-app-logic 614 4,712 (-2%) 46,700 (-1%) 116,905 93,334 125,344 3,850 2,097,152
public-kernel-tail 1,414 35,883 (-5%) 188,162 (-4%) 511,910 10,014 14,912 399 8,388,608
private-kernel-reset-small 594 2,195 (+4%) 45,791 (-2%) 123,313 67,190 92,352 2,819 2,097,152
public-kernel-teardown 617 (+1%) 4,690 48,316 (+3%) 116,905 93,334 125,344 3,850 2,097,152
merge-rollup 28.9 (+1%) N/A N/A 16,542 756 N/A N/A N/A
private-kernel-tail-to-public N/A 7,101 (-8%) 97,028 (-3%) N/A N/A 125,344 3,850 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 425 N/A N/A N/A N/A
ContractInstanceDeployer:deploy 1,408 9,944 39.7 N/A N/A N/A N/A
MultiCallEntrypoint:entrypoint 1,920 9,944 1,782 N/A N/A N/A N/A
GasToken:deploy 1,376 9,944 982 (-1%) N/A N/A N/A N/A
SchnorrAccount:constructor 1,312 9,944 1,415 N/A N/A N/A N/A
SchnorrAccount:entrypoint 2,304 9,944 2,823 16,768 56,653 (+3%) 2,097,152 457
Token:privately_mint_private_note 1,280 9,944 1,658 (-1%) N/A N/A N/A N/A
FPC:fee_entrypoint_public 1,344 9,944 359 (+1%) 16,768 11,649 (+4%) 524,288 457
Token:transfer 1,312 9,944 4,523 16,768 47,676 2,097,152 457
AuthRegistry:set_authorized (avm) 21,043 N/A N/A 87,200 1,433 (+6%) N/A N/A
FPC:prepare_fee (avm) 28,521 N/A N/A 88,032 6,292 (+6%) N/A N/A
AuthRegistry:consume (avm) 34,973 N/A N/A 87,616 3,099 (+2%) N/A N/A
Token:transfer_public (avm) 44,849 N/A N/A 87,616 3,209 (+5%) N/A N/A
FPC:pay_refund (avm) 33,381 N/A N/A 88,448 11,205 (-3%) N/A N/A
Benchmarking:create_note 1,344 9,944 1,400 N/A N/A N/A N/A
SchnorrAccount:verify_private_authwit 1,280 9,944 73.4 (+1%) N/A N/A N/A N/A
Token:unshield 1,376 9,944 3,706 (+1%) N/A N/A N/A N/A
FPC:fee_entrypoint_private 1,376 9,944 4,654 N/A N/A N/A N/A

AVM Simulation

Time to simulate various public functions in the AVM.

Function time_ms bytecode_size_in_bytes
GasToken:_increase_public_balance 72.2 (-1%) 13,873
GasToken:set_portal 16.9 (+1%) 3,495
Token:constructor 95.3 (+3%) 24,207
FPC:constructor 64.4 (+1%) 13,893
GasToken:mint_public 52.3 (+2%) 10,241
Token:mint_public 623 (+1%) 19,216
Token:assert_minter_and_mint 61.0 (-15%) 13,034
AuthRegistry:set_authorized 31.4 (+1%) 7,869
FPC:prepare_fee 151 (-17%) 15,187
Token:transfer_public 52.2 (-13%) 31,425
FPC:pay_refund 151 (+22%) 20,080
Benchmarking:increment_balance 2,689 15,465
Token:_increase_public_balance 56.6 15,089
FPC:pay_refund_with_shielded_rebate 153 (+2%) 21,167

Public DB Access

Time to access various public DBs.

Function time_ms
get-nullifier-index 0.158 (+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 10.4 (+1%) 16.8 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.602 (+1%) 0.515 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 48.4 76.3 133 (+2%) 245 474
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.494 0.468 0.458 (+1%) 0.444 0.442
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 60.0 (+1%) 112 182 (-1%) 353 698
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.508 (+1%) 0.504 0.480 (-1%) 0.478 0.478
batch_insert_into_indexed_tree_40_depth_ms N/A N/A 73.0 N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_count N/A N/A 133 N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_ms N/A N/A 0.520 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 85,672 670,983

Transaction size based on fee payment method

| Metric | |
| - | |

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