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.45.1 #7292

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Jul 2, 2024

🤖 I have created a release beep boop

aztec-package: 0.45.1

0.45.1 (2024-07-04)

Miscellaneous

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

0.45.1 (2024-07-04)

Miscellaneous

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

0.45.1 (2024-07-04)

Features

Bug Fixes

Miscellaneous

barretenberg: 0.45.1

0.45.1 (2024-07-04)

Features

Miscellaneous


This PR was generated with Release Please. See documentation.

Copy link
Collaborator Author

@AztecBot AztecBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'C++ Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.05.

Benchmark suite Current: 3689574 Previous: 05d8fd2 Ratio
nativeClientIVCBench/Full/6 17045.65281800001 ms/iter 14098.441694000001 ms/iter 1.21
nativeconstruct_proof_ultrahonk_power_of_2/20 7566.184621000005 ms/iter 4757.506540999998 ms/iter 1.59
wasmClientIVCBench/Full/6 47773.05057300001 ms/iter 42646.394834 ms/iter 1.12
wasmconstruct_proof_ultrahonk_power_of_2/20 17553.41573 ms/iter 14536.980706 ms/iter 1.21

This comment was automatically generated by workflow using github-action-benchmark.

CC: @ludamad @codygunton

@AztecBot
Copy link
Collaborator Author

AztecBot commented Jul 2, 2024

Benchmark results

Metrics with a significant change:

  • avm_simulation_time_ms (Token:mint_public): 69.1 (-85%)
  • avm_simulation_time_ms (Token:assert_minter_and_mint): 179 (+243%)
  • protocol_circuit_witness_generation_time_in_ms (private-kernel-init): 367 (-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,768 (+1%) 1,562 (+1%) 725 (+3%) 779 (+5%) 791 (+2%)
proof_construction_time_sha256_30_ms 11,995 (+2%) 3,214 (+3%) 1,467 (+5%) 1,482 (+4%) 1,489 (+2%)
proof_construction_time_sha256_100_ms 43,703 11,762 5,429 5,336 (-1%) 5,386 (+1%)
proof_construction_time_poseidon_hash_ms 78.0 34.0 34.0 56.0 (-3%) 86.0 (-2%)
proof_construction_time_poseidon_hash_30_ms 1,517 418 (+1%) 201 (+1%) 226 274 (+2%)
proof_construction_time_poseidon_hash_100_ms 5,764 1,582 (+1%) 740 (+3%) 791 (+1%) 801 (+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,464 9,470 9,476
l1_rollup_execution_gas 611,203 611,360 611,517
l2_block_processing_time_in_ms 759 1,420 (+1%) 2,731 (+1%)
l2_block_building_time_in_ms 20,907 42,052 (+1%) 82,562 (+1%)
l2_block_rollup_simulation_time_in_ms 20,907 42,052 (+1%) 82,562 (+1%)
l2_block_public_tx_process_time_in_ms 17,884 38,818 (+1%) 79,303 (+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,089 9,905 (+1%)
node_database_size_in_bytes 12,415,056 16,195,664
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 100 ⚠️ 367 (-19%) 12,712 (-2%) 19,418 53,878 71,872 2,179 524,288
private-kernel-inner 304 749 (+1%) 49,921 (+2%) 80,374 53,878 71,872 2,179 2,097,152
private-kernel-tail 1,044 (+1%) 2,403 (-6%) 49,431 (+8%) 61,201 62,057 14,912 399 2,097,152
base-parity 6.15 1,484 2,625 128 64.0 2,208 2.00 131,072
root-parity 49.6 (+2%) 65.4 (-5%) 42,804 (+2%) 27,100 64.0 2,720 18.0 2,097,152
base-rollup 6,600 (+1%) 4,869 (+1%) 88,570 (-2%) 170,330 728 3,648 47.0 4,194,304
root-rollup 109 79.5 (-2%) 23,675 25,253 620 3,456 41.0 1,048,576
public-kernel-setup 535 2,333 (-2%) 43,132 (+2%) 102,121 80,278 106,912 3,274 2,097,152
public-kernel-app-logic 503 (+1%) 3,265 (-1%) 43,473 (-1%) 102,121 80,278 106,912 3,274 2,097,152
public-kernel-tail 1,151 (+1%) 25,956 (+7%) 177,437 (-3%) 399,014 10,014 14,912 399 8,388,608
private-kernel-reset-small 287 1,068 (-1%) 30,190 (+15%) 78,065 53,878 71,872 2,179 1,048,576
public-kernel-teardown 486 (-1%) 3,286 (-1%) 43,229 (+1%) 102,121 80,278 106,912 3,274 2,097,152
merge-rollup 30.1 (+3%) N/A N/A 16,486 728 N/A N/A N/A
private-kernel-tail-to-public N/A 8,443 (+2%) 52,720 (+6%) N/A N/A 106,912 3,274 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,344 8,792 392 N/A N/A N/A N/A
ContractInstanceDeployer:deploy 1,408 8,792 23.9 N/A N/A N/A N/A
MultiCallEntrypoint:entrypoint 1,920 8,792 1,148 N/A N/A N/A N/A
GasToken:deploy 1,376 8,792 825 (+2%) N/A N/A N/A N/A
SchnorrAccount:constructor 1,312 8,792 477 (+1%) N/A N/A N/A N/A
SchnorrAccount:entrypoint 2,304 8,792 1,619 (+1%) 14,720 54,729 2,097,152 393
Token:privately_mint_private_note 1,280 8,792 595 (-3%) N/A N/A N/A N/A
FPC:fee_entrypoint_public 1,344 8,792 232 14,720 11,240 (-2%) 524,288 393
Token:transfer 1,312 8,792 1,743 (-1%) 14,720 13,091 (+5%) 524,288 393
AuthRegistry:set_authorized (avm) 19,226 N/A N/A 91,264 1,350 N/A N/A
FPC:prepare_fee (avm) 26,668 N/A N/A 91,328 2,797 (-3%) N/A N/A
Token:transfer_public (avm) 42,918 N/A N/A 91,328 3,762 (-1%) N/A N/A
AuthRegistry:consume (avm) 33,104 N/A N/A 91,264 2,828 (+2%) N/A N/A
FPC:pay_refund (avm) 36,833 N/A N/A 91,296 23,678 (+4%) N/A N/A
Benchmarking:create_note 1,344 8,792 466 N/A N/A N/A N/A
SchnorrAccount:verify_private_authwit 1,280 8,792 40.7 N/A N/A N/A N/A
Token:unshield 1,376 8,792 1,455 (-1%) N/A N/A N/A N/A
FPC:fee_entrypoint_private 1,376 8,792 1,997 (-1%) 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 66.8 (-3%) 13,790
GasToken:set_portal 16.2 (-5%) 3,339
Token:constructor 90.9 23,692
FPC:constructor 61.9 13,592
GasToken:mint_public 49.6 10,158
Token:mint_public ⚠️ 69.1 (-85%) 19,034
Token:assert_minter_and_mint ⚠️ 179 (+243%) 12,925
AuthRegistry:set_authorized 29.0 (+1%) 7,812
FPC:prepare_fee 101 (-5%) 15,062
Token:transfer_public 40.1 (-8%) 31,218
FPC:pay_refund 123 (-1%) 25,260
Benchmarking:increment_balance 2,215 (+1%) 15,267
Token:_increase_public_balance 54.0 (-1%) 15,006
FPC:pay_refund_with_shielded_rebate 116 (-1%) 26,347

Public DB Access

Time to access various public DBs.

Function time_ms
get-nullifier-index 0.158 (+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.3 16.7 (+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.596 (-1%) 0.513 (+1%) N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 47.8 (-1%) 75.6 (-1%) 131 (-1%) 244 475 (+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.488 (-1%) 0.465 (-1%) 0.450 0.443 (-1%) 0.443 (+1%)
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 59.0 112 (+1%) 182 352 699 (+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.499 0.501 0.481 0.476 0.479 (+1%)
batch_insert_into_indexed_tree_40_depth_ms N/A N/A 72.6 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.517 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,057 667,841

Transaction size based on fee payment method

| Metric | |
| - | |

@AztecBot AztecBot force-pushed the release-please--branches--master branch 23 times, most recently from 4651b7c to d0afc2b Compare July 4, 2024 13:20
@rahul-kothari rahul-kothari enabled auto-merge (squash) July 4, 2024 13:27
@AztecBot AztecBot force-pushed the release-please--branches--master branch from d0afc2b to a430e27 Compare July 4, 2024 13:47
Copy link
Contributor

github-actions bot commented Jul 4, 2024

Changes to circuit sizes

Generated at commit: 600b6a00b4a5cfd1ab288b9b853e43e41702b07f, compared to commit: 56fe4febc179aa6b329f2a2f3a2d8675d039909f

🧾 Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
private_kernel_reset_small -5,579 ✅ -8.23% -86,305 ✅ -9.56%
private_kernel_reset_medium -11,157 ✅ -13.38% -172,689 ✅ -15.52%
private_kernel_reset_big -22,312 ✅ -19.48% -345,376 ✅ -22.53%

Full diff report 👇
Program ACIR opcodes (+/-) % Circuit size (+/-) %
private_kernel_reset_small 62,215 (-5,579) -8.23% 816,059 (-86,305) -9.56%
private_kernel_reset_medium 72,210 (-11,157) -13.38% 939,878 (-172,689) -15.52%
private_kernel_reset_big 92,199 (-22,312) -19.48% 1,187,595 (-345,376) -22.53%

@rahul-kothari rahul-kothari merged commit 00cca6c into master Jul 4, 2024
91 of 92 checks passed
@rahul-kothari rahul-kothari deleted the release-please--branches--master branch July 4, 2024 14:12
@AztecBot
Copy link
Collaborator Author

AztecBot commented Jul 4, 2024

@AztecBot
Copy link
Collaborator Author

AztecBot commented Jul 4, 2024

@AztecBot
Copy link
Collaborator Author

AztecBot commented Jul 4, 2024

@AztecBot
Copy link
Collaborator Author

AztecBot commented Jul 4, 2024

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.

feat(AztecMacro): Event Interface
2 participants