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

fix: Added a comment to clarify how to launch TXE #7402

Merged
merged 6 commits into from
Jul 9, 2024

Conversation

Thunkar
Copy link
Contributor

@Thunkar Thunkar commented Jul 9, 2024

No description provided.

@Thunkar Thunkar requested review from rahul-kothari and a team July 9, 2024 13:36
@Thunkar Thunkar self-assigned this Jul 9, 2024
@AztecBot
Copy link
Collaborator

AztecBot commented Jul 9, 2024

Docs Preview

Hey there! 👋 You can check your preview at https://668d4aff3efc2c83da75ad64--aztec-docs-dev.netlify.app

@AztecBot
Copy link
Collaborator

AztecBot commented Jul 9, 2024

Benchmark results

Metrics with a significant change:

  • proof_construction_time_sha256_100_ms (16): 6,682 (+22%)
  • avm_simulation_time_ms (Token:assert_minter_and_mint): 40.5 (-38%)
  • avm_simulation_time_ms (Token:transfer_public): 27.3 (-32%)
  • avm_simulation_time_ms (Token:_increase_public_balance): 125 (+93%)
  • protocol_circuit_witness_generation_time_in_ms (private-kernel-reset-small): 1,388 (+19%)
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,729 1,541 704 (-1%) 749 767
proof_construction_time_sha256_30_ms 11,855 (+1%) 3,174 (+1%) 1,442 (+2%) 1,447 (+1%) 1,468 (-1%)
proof_construction_time_sha256_100_ms 44,072 11,970 (+1%) ⚠️ 6,682 (+22%) 5,500 (+2%) 5,502 (+2%)
proof_construction_time_poseidon_hash_ms 78.0 34.0 34.0 60.0 88.0 (-1%)
proof_construction_time_poseidon_hash_30_ms 1,515 415 200 228 (+1%) 270 (+1%)
proof_construction_time_poseidon_hash_100_ms 5,621 1,515 677 (-1%) 724 (-2%) 748

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,472 9,464
l1_rollup_execution_gas 613,504 613,651 613,794
l2_block_processing_time_in_ms 771 (+2%) 1,422 (+1%) 2,750 (+2%)
l2_block_building_time_in_ms 12,939 (-2%) 25,631 50,101 (-1%)
l2_block_rollup_simulation_time_in_ms 12,938 (-2%) 25,631 50,101 (-1%)
l2_block_public_tx_process_time_in_ms 10,892 (-2%) 23,394 47,855 (-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 6,994 (-1%) 10,127 (+2%)
node_database_size_in_bytes 12,415,056 (-1%) 16,183,376
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 109 399 (+2%) 14,398 (-3%) 20,002 55,022 74,208 2,252 524,288
private-kernel-inner 222 715 (+3%) 29,751 (+2%) 82,134 55,022 74,208 2,252 1,048,576
private-kernel-tail 1,049 (-2%) 2,439 (-1%) 53,677 (-1%) 62,409 62,089 14,944 400 2,097,152
base-parity 6.31 (+1%) 856 (-5%) 2,645 160 96.0 2,240 3.00 131,072
root-parity 69.9 73.9 (+1%) 41,771 (+3%) 27,868 96.0 2,752 19.0 2,097,152
base-rollup 4,146 4,817 (+1%) 92,776 172,028 632 3,552 44.0 4,194,304
root-rollup 127 (+1%) 87.9 (+1%) 23,186 (-2%) 25,053 652 3,488 42.0 1,048,576
public-kernel-setup 189 (+1%) 2,373 (-1%) 43,318 103,911 80,310 106,944 3,275 2,097,152
public-kernel-app-logic 145 (-1%) 3,440 (+6%) 46,025 (+4%) 103,911 80,310 106,944 3,275 2,097,152
public-kernel-tail 890 25,964 (-3%) 185,941 (-1%) 400,808 10,046 14,944 400 8,388,608
private-kernel-reset-small 291 (-1%) ⚠️ 1,388 (+19%) 27,994 (+8%) 79,273 55,022 74,208 2,252 1,048,576
public-kernel-teardown 135 (+1%) 3,266 (-1%) 43,503 (-1%) 103,911 80,310 106,944 3,275 2,097,152
merge-rollup 40.3 (-1%) N/A N/A 16,094 632 N/A N/A N/A
private-kernel-tail-to-public N/A 9,601 (+9%) 59,688 (-1%) N/A N/A 106,944 3,275 2,097,152

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,312 9,344 395 N/A N/A N/A N/A
ContractInstanceDeployer:deploy 1,376 9,344 24.6 N/A N/A N/A N/A
MultiCallEntrypoint:entrypoint 1,888 9,344 647 (+1%) N/A N/A N/A N/A
GasToken:deploy 1,344 9,344 557 (+1%) N/A N/A N/A N/A
SchnorrAccount:constructor 1,280 9,344 478 N/A N/A N/A N/A
SchnorrAccount:entrypoint 2,272 9,344 823 15,840 4,934 (+5%) 131,072 428
Token:privately_mint_private_note 1,248 9,344 538 N/A N/A N/A N/A
FPC:fee_entrypoint_public 1,312 9,344 100 15,840 1,753 (+2%) 65,536 428
Token:transfer 1,280 9,344 1,651 (+1%) 15,840 11,717 (+3%) 524,288 428
AuthRegistry:set_authorized (avm) 19,222 N/A N/A 91,232 1,353 (+11%) N/A N/A
FPC:prepare_fee (avm) 26,664 N/A N/A 91,296 2,775 (+3%) N/A N/A
Token:transfer_public (avm) 42,914 N/A N/A 91,296 3,931 (+4%) N/A N/A
AuthRegistry:consume (avm) 33,100 N/A N/A 91,232 2,878 (+7%) N/A N/A
FPC:pay_refund (avm) 36,829 N/A N/A 91,264 23,085 (-2%) N/A N/A
Benchmarking:create_note 1,312 9,344 469 (-1%) N/A N/A N/A N/A
SchnorrAccount:verify_private_authwit 1,248 9,344 41.5 N/A N/A N/A N/A
Token:unshield 1,344 9,344 1,346 N/A N/A N/A N/A
FPC:fee_entrypoint_private 1,344 9,344 1,745 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 78.7 (-1%) 13,790
GasToken:set_portal 13.8 (+10%) 3,339
Token:constructor 100 23,692
FPC:constructor 72.3 (+3%) 13,592
GasToken:mint_public 60.6 10,158
Token:mint_public 328 (+3%) 19,034
Token:assert_minter_and_mint ⚠️ 40.5 (-38%) 12,925
AuthRegistry:set_authorized 33.4 (+2%) 7,812
FPC:prepare_fee 100 (-3%) 15,062
Token:transfer_public ⚠️ 27.3 (-32%) 31,218
FPC:pay_refund 130 (+6%) 25,260
Benchmarking:increment_balance 1,321 (-1%) 15,267
Token:_increase_public_balance ⚠️ 125 (+93%) 15,006
FPC:pay_refund_with_shielded_rebate 118 26,347

Public DB Access

Time to access various public DBs.

Function time_ms
get-nullifier-index 0.155 (-2%)

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 (+1%) 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.600 (+1%) 0.515 (+1%) N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 48.0 76.3 (+1%) 132 (+1%) 245 476 (+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.490 0.469 (+1%) 0.455 (+1%) 0.445 0.444 (+1%)
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 59.6 (+1%) 112 (+1%) 185 (+1%) 353 702 (+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.504 (+1%) 0.503 (+1%) 0.489 (+1%) 0.477 0.481 (+1%)
batch_insert_into_indexed_tree_40_depth_ms N/A N/A 73.0 (+1%) 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 (+1%) 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 74,082 667,868

Transaction size based on fee payment method

| Metric | |
| - | |

@Thunkar Thunkar merged commit 1ca48a4 into master Jul 9, 2024
91 checks passed
@Thunkar Thunkar deleted the gj/clarify_txe_launch branch July 9, 2024 15:16
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.

5 participants