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.1 #7409

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Jul 9, 2024

🤖 I have created a release beep boop

aztec-package: 0.46.1

0.46.1 (2024-07-10)

Miscellaneous

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

0.46.1 (2024-07-10)

Miscellaneous

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

0.46.1 (2024-07-10)

Features

Bug Fixes

Miscellaneous

  • Replace relative paths to noir-protocol-circuits (db45302)
  • Replace usage of GrumpkinPoint with EmbeddedCurvePoint (#7382) (5279695)
  • Replace usage of GrumpkinPrivateKey with EmbeddedCurveScalar (#7384) (a917198)
barretenberg: 0.46.1

0.46.1 (2024-07-10)

Miscellaneous

  • barretenberg: Synchronize aztec-packages versions

This PR was generated with Release Please. See documentation.

@AztecBot
Copy link
Collaborator Author

AztecBot commented Jul 9, 2024

Benchmark results

Metrics with a significant change:

  • avm_simulation_time_ms (Token:mint_public): 76.9 (-79%)
  • l2_block_building_time_in_ms (4): 15,047 (+16%)
  • l2_block_rollup_simulation_time_in_ms (4): 15,047 (+16%)
  • l2_block_public_tx_process_time_in_ms (4): 12,993 (+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,766 (+1%) 1,552 (+1%) 709 (+1%) 763 (+3%) 777 (+2%)
proof_construction_time_sha256_30_ms 11,860 (+1%) 3,185 (+1%) 1,412 1,455 (+2%) 1,468
proof_construction_time_sha256_100_ms 44,361 (+1%) 11,933 (+1%) 5,491 (+1%) 5,561 (+3%) 5,418 (+1%)
proof_construction_time_poseidon_hash_ms 78.0 34.0 34.0 59.0 88.0 (+1%)
proof_construction_time_poseidon_hash_30_ms 1,527 (+1%) 418 (+1%) 201 (+1%) 226 (+3%) 270 (+1%)
proof_construction_time_poseidon_hash_100_ms 5,660 (+1%) 1,532 (+1%) 679 722 (+2%) 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,464 9,470 9,440
l1_rollup_execution_gas 613,492 613,649 613,770
l2_block_processing_time_in_ms 801 (+7%) 1,419 2,686
l2_block_building_time_in_ms ⚠️ 15,047 (+16%) 25,720 50,618
l2_block_rollup_simulation_time_in_ms ⚠️ 15,047 (+16%) 25,719 50,617
l2_block_public_tx_process_time_in_ms ⚠️ 12,993 (+19%) 23,474 48,358

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,014 (-1%) 9,924
node_database_size_in_bytes 12,468,304 16,199,760
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 117 (+6%) 427 (-1%) 14,293 (+1%) 20,002 55,022 76,256 2,316 524,288
private-kernel-inner 240 (+6%) 767 (-1%) 46,977 (-1%) 82,134 55,022 76,256 2,316 2,097,152
private-kernel-tail 1,103 (+3%) 2,523 (-2%) 44,263 62,409 62,089 14,944 400 2,097,152
base-parity 6.43 896 (-1%) 2,411 (-1%) 160 96.0 2,240 3.00 131,072
root-parity 72.6 (+1%) 61.7 (-7%) 33,859 (-1%) 27,868 96.0 2,752 19.0 2,097,152
base-rollup 4,166 5,100 (+1%) 78,589 172,028 632 3,552 44.0 4,194,304
root-rollup 130 73.6 (-3%) 19,462 (-2%) 25,053 652 3,488 42.0 1,048,576
public-kernel-setup 194 (+1%) 2,344 36,401 (-1%) 103,911 80,310 108,992 3,339 2,097,152
public-kernel-app-logic 149 3,342 (+1%) 36,264 (-3%) 103,911 80,310 108,992 3,339 2,097,152
public-kernel-tail 908 (+1%) 25,324 (-2%) 160,066 (+1%) 400,808 10,046 14,944 400 8,388,608
private-kernel-reset-small 314 (+7%) 1,189 28,393 (-1%) 79,273 55,022 76,256 2,316 1,048,576
public-kernel-teardown 138 (+1%) 3,294 (-2%) 36,977 103,911 80,310 108,992 3,339 2,097,152
merge-rollup 41.0 (+2%) N/A N/A 16,094 632 N/A N/A N/A
private-kernel-tail-to-public N/A 8,808 (+1%) 48,524 (-2%) 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 415 (+5%) N/A N/A N/A N/A
ContractInstanceDeployer:deploy 1,376 9,344 26.1 (+3%) N/A N/A N/A N/A
MultiCallEntrypoint:entrypoint 1,888 9,344 700 (+5%) N/A N/A N/A N/A
GasToken:deploy 1,344 9,344 567 (-2%) N/A N/A N/A N/A
SchnorrAccount:constructor 1,280 9,344 549 (+8%) N/A N/A N/A N/A
SchnorrAccount:entrypoint 2,272 9,344 881 (+2%) 16,352 5,032 (-3%) 131,072 444
Token:privately_mint_private_note 1,248 9,344 596 (+1%) N/A N/A N/A N/A
FPC:fee_entrypoint_public 1,312 9,344 107 (+2%) 16,352 1,835 (-4%) 65,536 444
Token:transfer 1,280 9,344 1,748 16,352 10,737 524,288 444
AuthRegistry:set_authorized (avm) 19,222 N/A N/A 91,232 1,674 (-2%) N/A N/A
FPC:prepare_fee (avm) 26,664 N/A N/A 91,296 3,101 (+1%) N/A N/A
Token:transfer_public (avm) 42,914 N/A N/A 91,296 3,762 (-2%) N/A N/A
AuthRegistry:consume (avm) 33,100 N/A N/A 91,232 2,984 (-1%) N/A N/A
FPC:pay_refund (avm) 36,829 N/A N/A 91,264 18,629 (-3%) N/A N/A
Benchmarking:create_note 1,312 9,344 503 (+3%) N/A N/A N/A N/A
SchnorrAccount:verify_private_authwit 1,248 9,344 41.9 (+1%) N/A N/A N/A N/A
Token:unshield 1,344 9,344 1,400 (-1%) N/A N/A N/A N/A
FPC:fee_entrypoint_private 1,344 9,344 1,809 (-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 80.7 (-1%) 13,790
GasToken:set_portal 15.6 (+26%) 3,339
Token:constructor 103 (-7%) 23,692
FPC:constructor 75.0 (+3%) 13,592
GasToken:mint_public 61.6 (-7%) 10,158
Token:mint_public ⚠️ 76.9 (-79%) 19,034
Token:assert_minter_and_mint 70.2 (+7%) 12,925
AuthRegistry:set_authorized 34.5 (-6%) 7,812
FPC:prepare_fee 109 (+2%) 15,062
Token:transfer_public 33.6 (+13%) 31,218
FPC:pay_refund 126 (-8%) 25,260
Benchmarking:increment_balance 1,333 15,267
Token:_increase_public_balance 15.4 (-5%) 15,006
FPC:pay_refund_with_shielded_rebate 163 (-4%) 26,347

Public DB Access

Time to access various public DBs.

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

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.9 (+4%) 17.0 (+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.629 (+5%) 0.523 (+1%) N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 49.4 (+2%) 81.9 (+8%) 146 (+11%) 246 468
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.505 (+2%) 0.504 (+8%) 0.500 (+11%) 0.446 0.438
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 60.2 (+1%) 117 (+4%) 195 (+8%) 352 (-1%) 689
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.510 (+1%) 0.527 (+5%) 0.515 (+8%) 0.478 0.474
batch_insert_into_indexed_tree_40_depth_ms N/A N/A 74.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.529 (+2%) 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 | |
| - | |

@AztecBot AztecBot force-pushed the release-please--branches--master branch from 6ffcf49 to 6d04fec Compare July 9, 2024 20:22
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: 6d04fec Previous: 094626c Ratio
nativeClientIVCBench/Full/6 14999.035504000005 ms/iter 14108.613046999977 ms/iter 1.06
nativeconstruct_proof_ultrahonk_power_of_2/20 5459.668291 ms/iter 4747.595425000014 ms/iter 1.15
wasmconstruct_proof_ultrahonk_power_of_2/20 15437.028165000002 ms/iter 14495.564038 ms/iter 1.06

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

CC: @ludamad @codygunton

@AztecBot AztecBot force-pushed the release-please--branches--master branch from 6d04fec to c8fe3cc Compare July 10, 2024 08:35
@AztecBot AztecBot force-pushed the release-please--branches--master branch from c8fe3cc to 4adfde7 Compare July 10, 2024 09:00
Copy link
Contributor

Changes to circuit sizes

Generated at commit: 0d7557928979f043bc1e6b586af9a8b640f9e521, compared to commit: 6d3ed3a5269f1354c8c722232fd6f1d46ac7a245

🧾 Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
public_kernel_setup -16 ✅ -0.01% -12 ✅ -0.00%
private_kernel_inner -48 ✅ -0.10% -32 ✅ -0.00%
rollup_base -43 ✅ -0.01% -140 ✅ -0.00%
public_kernel_teardown -129 ✅ -0.05% -97 ✅ -0.01%
public_kernel_app_logic -129 ✅ -0.05% -97 ✅ -0.01%
private_kernel_init -60 ✅ -0.22% -47 ✅ -0.01%
public_kernel_tail -1,556 ✅ -0.16% -1,440 ✅ -0.03%
private_kernel_reset_small -3,368 ✅ -5.29% -15,906 ✅ -1.89%
private_kernel_reset_medium -6,736 ✅ -9.15% -31,812 ✅ -3.30%
private_kernel_reset_big -13,472 ✅ -14.37% -63,624 ✅ -5.25%
private_kernel_reset -26,944 ✅ -20.13% -127,248 ✅ -7.46%

Full diff report 👇
Program ACIR opcodes (+/-) % Circuit size (+/-) %
public_kernel_setup 182,861 (-16) -0.01% 1,330,269 (-12) -0.00%
private_kernel_inner 46,386 (-48) -0.10% 1,059,086 (-32) -0.00%
rollup_base 339,222 (-43) -0.01% 3,064,934 (-140) -0.00%
public_kernel_teardown 241,280 (-129) -0.05% 1,394,102 (-97) -0.01%
public_kernel_app_logic 241,084 (-129) -0.05% 1,393,863 (-97) -0.01%
private_kernel_init 26,657 (-60) -0.22% 383,215 (-47) -0.01%
public_kernel_tail 969,605 (-1,556) -0.16% 4,417,154 (-1,440) -0.03%
private_kernel_reset_small 60,250 (-3,368) -5.29% 824,084 (-15,906) -1.89%
private_kernel_reset_medium 66,917 (-6,736) -9.15% 931,835 (-31,812) -3.30%
private_kernel_reset_big 80,250 (-13,472) -14.37% 1,147,544 (-63,624) -5.25%
private_kernel_reset 106,914 (-26,944) -20.13% 1,578,960 (-127,248) -7.46%

@Thunkar Thunkar merged commit e44ef70 into master Jul 10, 2024
92 of 93 checks passed
@Thunkar Thunkar deleted the release-please--branches--master branch July 10, 2024 10:06
@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