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.49.1 #8015

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Conversation

AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Aug 15, 2024

🤖 I have created a release beep boop

aztec-package: 0.49.1

0.49.1 (2024-08-15)

Miscellaneous

barretenberg.js: 0.49.1

0.49.1 (2024-08-15)

Miscellaneous

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

0.49.1 (2024-08-15)

Features

  • Add pending reorg chain resistance in contracts (#7926) (f769f84)
  • avm: Base and dynamic gas in TS and CPP (part 2) (#8016) (5801732)

Bug Fixes

Miscellaneous

barretenberg: 0.49.1

0.49.1 (2024-08-15)

Features

  • avm: Base and dynamic gas in TS and CPP (part 2) (#8016) (5801732)

Miscellaneous

  • avm: Separate binary and bytes finalization (#8010) (3ad6dd9)

This PR was generated with Release Please. See documentation.

@AztecBot
Copy link
Collaborator Author

AztecBot commented Aug 15, 2024

Benchmark results

Metrics with a significant change:

  • proof_construction_time_sha256_100_ms (16): 6,649 (+23%)
  • protocol_circuit_simulation_time_in_ms (private-kernel-tail): 207 (-23%)
  • protocol_circuit_simulation_time_in_ms (private-kernel-tail-to-public): 1,097 (+41%)
  • avm_simulation_time_ms (Token:mint_public): 70.7 (+60%)
  • avm_simulation_time_ms (Token:assert_minter_and_mint): 40.2 (-40%)
  • avm_simulation_time_ms (Token:transfer_public): 29.3 (+42%)
  • protocol_circuit_witness_generation_time_in_ms (private-kernel-reset-tiny): 873 (-27%)
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,740 1,554 (-1%) 708 (+1%) 748 (+1%) 767
proof_construction_time_sha256_30_ms 11,810 3,175 1,412 1,458 (+2%) 1,470 (+1%)
proof_construction_time_sha256_100_ms 45,148 12,108 (+1%) ⚠️ 6,649 (+23%) 5,370 (-1%) 5,360
proof_construction_time_poseidon_hash_ms 79.0 (+1%) 44.0 (+29%) 34.0 58.0 (-2%) 87.0
proof_construction_time_poseidon_hash_30_ms 1,527 421 202 222 (-3%) 269
proof_construction_time_poseidon_hash_100_ms 5,635 1,510 679 744 (+2%) 755 (+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 4,324 7,844 14,852
l1_rollup_calldata_gas 49,588 92,452 177,656
l1_rollup_execution_gas 1,383,037 2,130,869 3,958,112
l2_block_processing_time_in_ms 248 (-6%) 446 809 (-2%)
l2_block_building_time_in_ms 9,311 (+1%) 18,071 (-1%) 36,285
l2_block_rollup_simulation_time_in_ms 9,311 (+1%) 18,070 (-1%) 36,285
l2_block_public_tx_process_time_in_ms 7,850 16,511 (-1%) 34,662

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 2,866 (-2%) 3,805 (-1%)
node_database_size_in_bytes 12,615,760 16,736,336
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 input_size_in_bytes output_size_in_bytes proving_time_in_ms
private-kernel-init 92.1 (-4%) 385 (-1%) 21,673 (-1%) 44,858 N/A
private-kernel-inner 164 (-2%) 716 (+3%) 72,309 45,005 N/A
private-kernel-reset-tiny 501 (-2%) ⚠️ 873 (-27%) 65,974 (-5%) 44,844 N/A
private-kernel-tail ⚠️ 207 (-23%) 161 (-18%) 50,728 52,256 N/A
base-parity 5.56 (+1%) N/A 160 96.0 N/A
root-parity 33.3 N/A 69,084 96.0 N/A
base-rollup 2,860 N/A 187,817 664 N/A
root-rollup 38.6 N/A 54,525 716 N/A
public-kernel-setup 96.6 (-2%) N/A 103,760 71,222 N/A
public-kernel-app-logic 103 (-3%) N/A 103,599 71,222 N/A
public-kernel-tail 573 (+1%) N/A 409,190 16,414 N/A
private-kernel-reset-small 484 N/A 66,085 (-1%) 45,629 N/A
private-kernel-tail-to-public ⚠️ 1,097 (+41%) 637 (-10%) 492,960 (-3%) 1,697 N/A
public-kernel-teardown 91.6 (-3%) N/A 104,005 71,222 N/A
merge-rollup 19.8 (+4%) N/A 35,742 664 N/A
undefined N/A N/A N/A N/A 67,979 (+2%)

Stats on running time collected for app circuits

Function input_size_in_bytes output_size_in_bytes witness_generation_time_in_ms
ContractClassRegisterer:register 1,344 11,731 343 (-1%)
ContractInstanceDeployer:deploy 1,408 11,731 18.1
MultiCallEntrypoint:entrypoint 1,920 11,731 423
FeeJuice:deploy 1,376 11,731 387 (-2%)
SchnorrAccount:constructor 1,312 11,731 104
SchnorrAccount:entrypoint 2,304 11,731 432
Token:privately_mint_private_note 1,280 11,731 143 (+1%)
FPC:fee_entrypoint_public 1,344 11,731 26.6 (+3%)
Token:transfer 1,312 11,731 281
Benchmarking:create_note 1,344 11,731 103
SchnorrAccount:verify_private_authwit 1,280 11,731 27.8 (+1%)
Token:unshield 1,376 11,731 554 (-1%)
FPC:fee_entrypoint_private 1,376 11,731 769 (+3%)

AVM Simulation

Time to simulate various public functions in the AVM.

Function time_ms bytecode_size_in_bytes
FeeJuice:_increase_public_balance 54.6 8,139
FeeJuice:set_portal 10.0 (-14%) 2,362
Token:constructor 84.7 (-9%) 31,107
FPC:constructor 53.4 (-4%) 22,380
FeeJuice:mint_public 38.3 (+1%) 6,150
Token:mint_public ⚠️ 70.7 (+60%) 11,720
Token:assert_minter_and_mint ⚠️ 40.2 (-40%) 8,028
AuthRegistry:set_authorized 45.5 (+21%) 4,537
FPC:prepare_fee 233 (-2%) 8,812
Token:transfer_public ⚠️ 29.3 (+42%) 47,374
FPC:pay_refund 63.3 (-5%) 12,114
Benchmarking:increment_balance 967 (-1%) 7,450
Token:_increase_public_balance 47.2 (+24%) 8,960
FPC:pay_refund_with_shielded_rebate 68.7 (+5%) 12,663

Public DB Access

Time to access various public DBs.

Function time_ms
get-nullifier-index 0.165 (-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 2.18 3.93 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.113 0.111 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 11.5 17.8 (-3%) 30.0 (-5%) 59.5 110 (-4%)
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.110 0.104 (-2%) 0.0988 (-4%) 0.102 0.0993 (-4%)
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 14.6 25.5 (-2%) 42.9 (-4%) 83.3 (+1%) 159 (-4%)
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.111 0.103 (-2%) 0.104 (-3%) 0.103 0.101 (-5%)
batch_insert_into_indexed_tree_40_depth_ms N/A N/A 16.4 N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_count N/A N/A 132 N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_ms N/A N/A 0.105 (-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 64,779 668,997

Transaction size based on fee payment method

| Metric | |
| - | |

@AztecBot AztecBot force-pushed the release-please--branches--master branch 5 times, most recently from 06832aa to f2634cf Compare August 15, 2024 16:42
@AztecBot AztecBot force-pushed the release-please--branches--master branch from f2634cf to 22f2e23 Compare August 15, 2024 17:00
@rahul-kothari rahul-kothari enabled auto-merge (squash) August 15, 2024 17:03
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: 22f2e23 Previous: 5801732 Ratio
nativeconstruct_proof_ultrahonk_power_of_2/20 5069.720168999993 ms/iter 4768.672358999993 ms/iter 1.06
wasmconstruct_proof_ultrahonk_power_of_2/20 15293.780575999997 ms/iter 14539.420003000003 ms/iter 1.05

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

CC: @ludamad @codygunton

@rahul-kothari rahul-kothari merged commit 3a58660 into master Aug 15, 2024
96 checks passed
@rahul-kothari rahul-kothari deleted the release-please--branches--master branch August 15, 2024 17:33
@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.

2 participants