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(master): Release 0.46.2 #7420

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Jul 10, 2024

🤖 I have created a release beep boop

aztec-package: 0.46.2

0.46.2 (2024-07-10)

Miscellaneous

  • aztec-package: Synchronize aztec-packages versions
barretenberg.js: 0.46.2

0.46.2 (2024-07-10)

Miscellaneous

  • barretenberg.js: Synchronize aztec-packages versions
aztec-packages: 0.46.2

0.46.2 (2024-07-10)

Features

  • Optimize assert_split_sorted_transformed_value_arrays (#7417) (4355b3f)

Bug Fixes

Miscellaneous

  • docs: Cleanup voting tutorial and deployment guide (#7406) (60cead2)
barretenberg: 0.46.2

0.46.2 (2024-07-10)

Miscellaneous

  • barretenberg: Synchronize aztec-packages versions

This PR was generated with Release Please. See documentation.

@AztecBot AztecBot force-pushed the release-please--branches--master branch from 6f3c70f to 24617c2 Compare July 10, 2024 12:42
@AztecBot AztecBot force-pushed the release-please--branches--master branch from 24617c2 to 0c53101 Compare July 10, 2024 12:54
Copy link
Contributor

Changes to circuit sizes

Generated at commit: 1b94b8847f0df920212f2e8cd98abaccd0ca7fe1, compared to commit: e44ef7042c87d3c78a14413ad7d54e4ed642ad89

🧾 Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
private_kernel_tail_to_public -372,578 ✅ -83.90% -535,828 ✅ -31.72%

Full diff report 👇
Program ACIR opcodes (+/-) % Circuit size (+/-) %
private_kernel_tail_to_public 71,489 (-372,578) -83.90% 1,153,525 (-535,828) -31.72%

@AztecBot
Copy link
Collaborator Author

Benchmark results

Metrics with a significant change:

  • avm_simulation_time_ms (Token:mint_public): 334 (+505%)
  • app_circuit_proving_time_in_ms (AuthRegistry:set_authorized (avm)): 1,355 (-23%)
  • app_circuit_proving_time_in_ms (FPC:pay_refund (avm)): 23,981 (+32%)
  • protocol_circuit_proving_time_in_ms (base-rollup): 93,326 (+19%)
  • protocol_circuit_proving_time_in_ms (root-parity): 40,812 (+20%)
  • protocol_circuit_proving_time_in_ms (public-kernel-setup): 42,251 (+16%)
  • protocol_circuit_proving_time_in_ms (public-kernel-app-logic): 44,626 (+19%)
  • protocol_circuit_proving_time_in_ms (public-kernel-teardown): 43,830 (+18%)
  • protocol_circuit_proving_time_in_ms (public-kernel-tail): 183,449 (+17%)
  • protocol_circuit_proving_time_in_ms (root-rollup): 23,462 (+20%)
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,574 (-3%) 1,539 705 730 (-1%) 766 (-1%)
proof_construction_time_sha256_30_ms 11,793 (+1%) 3,163 (+1%) 1,429 (+2%) 1,434 (+1%) 1,471 (+1%)
proof_construction_time_sha256_100_ms 43,700 11,793 (+1%) 6,097 (-8%) 5,375 (-1%) 5,395 (+1%)
proof_construction_time_poseidon_hash_ms 78.0 34.0 34.0 58.0 (-3%) 88.0
proof_construction_time_poseidon_hash_30_ms 1,470 (-3%) 412 (-1%) 200 221 (-3%) 263 (-1%)
proof_construction_time_poseidon_hash_100_ms 5,491 (-2%) 1,506 674 736 (+1%) 750 (+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 1,412 1,412 1,412
l1_rollup_calldata_gas 9,476 9,464 9,464
l1_rollup_execution_gas 613,504 613,643 613,794
l2_block_processing_time_in_ms 770 (+2%) 1,424 (+2%) 2,712
l2_block_building_time_in_ms 13,005 (+1%) 25,816 (+1%) 50,408 (+1%)
l2_block_rollup_simulation_time_in_ms 13,005 (+1%) 25,816 (+1%) 50,408 (+1%)
l2_block_public_tx_process_time_in_ms 10,931 (+1%) 23,565 (+1%) 48,170 (+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 7,062 (+1%) 9,992 (+2%)
node_database_size_in_bytes 12,451,920 16,121,936
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 111 (+2%) 421 (-2%) 14,361 (+3%) 20,002 55,022 76,256 2,316 524,288
private-kernel-inner 226 728 (-5%) 51,507 (+9%) 82,134 55,022 76,256 2,316 2,097,152
private-kernel-tail 1,061 2,443 (-4%) 49,097 (+6%) 62,409 62,089 14,944 400 2,097,152
base-parity 6.24 (-2%) 889 (-2%) 2,649 (+8%) 160 96.0 2,240 3.00 131,072
root-parity 72.4 (+2%) 78.5 (+27%) ⚠️ 40,812 (+20%) 27,868 96.0 2,752 19.0 2,097,152
base-rollup 4,164 4,877 (-3%) ⚠️ 93,326 (+19%) 172,028 632 3,552 44.0 4,194,304
root-rollup 126 (-2%) 89.4 (+19%) ⚠️ 23,462 (+20%) 25,053 652 3,488 42.0 1,048,576
public-kernel-setup 206 (+5%) 2,396 (+3%) ⚠️ 42,251 (+16%) 103,911 80,310 108,992 3,339 2,097,152
public-kernel-app-logic 148 3,338 (+1%) ⚠️ 44,626 (+19%) 103,911 80,310 108,992 3,339 2,097,152
public-kernel-tail 896 24,986 (-1%) ⚠️ 183,449 (+17%) 400,808 10,046 14,944 400 8,388,608
private-kernel-reset-small 293 1,299 (+6%) 25,306 (+4%) 79,273 55,022 76,256 2,316 1,048,576
public-kernel-teardown 141 (+2%) 3,287 ⚠️ 43,830 (+18%) 103,911 80,310 108,992 3,339 2,097,152
merge-rollup 40.4 (-1%) N/A N/A 16,094 632 N/A N/A N/A
private-kernel-tail-to-public N/A 3,535 (+15%) 47,911 (+7%) N/A N/A 108,992 3,339 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 396 N/A N/A N/A N/A
ContractInstanceDeployer:deploy 1,376 9,344 24.9 (-2%) N/A N/A N/A N/A
MultiCallEntrypoint:entrypoint 1,888 9,344 622 (-1%) N/A N/A N/A N/A
GasToken:deploy 1,344 9,344 561 (-1%) N/A N/A N/A N/A
SchnorrAccount:constructor 1,280 9,344 427 (-2%) N/A N/A N/A N/A
SchnorrAccount:entrypoint 2,272 9,344 772 (-1%) 16,352 4,673 (-2%) 131,072 444
Token:privately_mint_private_note 1,248 9,344 502 (-3%) N/A N/A N/A N/A
FPC:fee_entrypoint_public 1,312 9,344 98.3 (-7%) 16,352 1,715 (-10%) 65,536 444
Token:transfer 1,280 9,344 1,603 (-1%) 16,352 11,558 (+8%) 524,288 444
AuthRegistry:set_authorized (avm) 19,222 N/A N/A 91,232 ⚠️ 1,355 (-23%) N/A N/A
FPC:prepare_fee (avm) 26,664 N/A N/A 91,296 3,055 (-3%) N/A N/A
Token:transfer_public (avm) 42,914 N/A N/A 91,296 4,178 (+9%) N/A N/A
AuthRegistry:consume (avm) 33,100 N/A N/A 91,232 3,020 (+1%) N/A N/A
FPC:pay_refund (avm) 36,829 N/A N/A 91,264 ⚠️ 23,981 (+32%) N/A N/A
Benchmarking:create_note 1,312 9,344 424 (-2%) 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,313 (+1%) N/A N/A N/A N/A
FPC:fee_entrypoint_private 1,344 9,344 1,688 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 80.3 (+3%) 13,790
GasToken:set_portal 13.1 (-14%) 3,339
Token:constructor 101 23,692
FPC:constructor 74.9 (+3%) 13,592
GasToken:mint_public 60.0 (-2%) 10,158
Token:mint_public ⚠️ 334 (+505%) 19,034
Token:assert_minter_and_mint 63.6 (-8%) 12,925
AuthRegistry:set_authorized 35.8 (-13%) 7,812
FPC:prepare_fee 110 (+2%) 15,062
Token:transfer_public 40.5 (-23%) 31,218
FPC:pay_refund 139 (+9%) 25,260
Benchmarking:increment_balance 1,334 (+1%) 15,267
Token:_increase_public_balance 15.1 (+2%) 15,006
FPC:pay_refund_with_shielded_rebate 164 (+1%) 26,347

Public DB Access

Time to access various public DBs.

Function time_ms
get-nullifier-index 0.155 (+3%)

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 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.600 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.0 (-1%) 76.5 (+1%) 132 247 (+1%) 473
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 (-1%) 0.469 (+1%) 0.452 (-1%) 0.447 (+1%) 0.441 (+1%)
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 59.6 112 (+1%) 183 355 (+1%) 695
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.503 0.504 (+1%) 0.483 0.480 (+1%) 0.477
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.519 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,105 667,868

Transaction size based on fee payment method

| Metric | |
| - | |

@Thunkar Thunkar enabled auto-merge (squash) July 10, 2024 13:31
@Thunkar Thunkar merged commit d3ee63c into master Jul 10, 2024
93 checks passed
@Thunkar Thunkar deleted the release-please--branches--master branch July 10, 2024 13:32
@AztecBot
Copy link
Collaborator Author

@AztecBot
Copy link
Collaborator Author

@AztecBot
Copy link
Collaborator Author

@AztecBot
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants