aztec-packages icon indicating copy to clipboard operation
aztec-packages copied to clipboard

fix: Add DEBUG and LOG_LEVEL to valid env vars

Open spalladino opened this issue 1 year ago • 2 comments

Otherwise they don't get forwarded to the container if run with the aztec script.

spalladino avatar Aug 21 '24 01:08 spalladino

Changes to circuit sizes

Generated at commit: 4ad1ff450ec472b742c0ed9aeb7f52c423b6a619, compared to commit: f0f9c73dc3212fa8d986b7c827b6b4f0cbe85494

🧾 Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
public_kernel_tail +47,633 ❌ +5.03% +56,568 ❌ +0.61%
rollup_base +501 ❌ +0.14% +15,418 ❌ +0.17%

Full diff report 👇
Program ACIR opcodes (+/-) % Circuit size (+/-) %
public_kernel_tail 995,023 (+47,633) +5.03% 9,373,298 (+56,568) +0.61%
rollup_base 348,231 (+501) +0.14% 9,076,546 (+15,418) +0.17%

github-actions[bot] avatar Aug 21 '24 02:08 github-actions[bot]

Benchmark results

Metrics with a significant change:

  • app_circuit_witness_generation_time_in_ms (SchnorrAccount:constructor): 105 (+39%)
  • app_circuit_witness_generation_time_in_ms (Token:privately_mint_private_note): 142 (+37%)
  • app_circuit_witness_generation_time_in_ms (Token:transfer): 268 (+17%)
  • protocol_circuit_simulation_time_in_ms (private-kernel-tail-to-public): 1,038 (+59%)
  • avm_simulation_time_ms (Token:transfer_public): 21.3 (-37%)
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,760 (+1%) 1,558 (+1%) 706 (+1%) 758 771 (+1%)
proof_construction_time_sha256_30_ms 11,817 (+1%) 3,172 (+2%) 1,406 (+1%) 1,445 (+1%) 1,476 (+1%)
proof_construction_time_sha256_100_ms 45,290 (+2%) 11,947 5,443 (+1%) 5,406 (+1%) 5,374 (+1%)
proof_construction_time_poseidon_hash_ms 78.0 34.0 44.0 (+29%) 65.0 (+10%) 93.0 (+6%)
proof_construction_time_poseidon_hash_30_ms 1,532 (+1%) 423 (+1%) 202 231 (-1%) 269 (+1%)
proof_construction_time_poseidon_hash_100_ms 5,632 (+1%) 1,512 (+1%) 677 (+1%) 737 (+4%) 746

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,636 92,440 177,620
l1_rollup_execution_gas 1,383,130 (+1%) 2,130,902 (+1%) 3,958,121 (+2%)
l2_block_processing_time_in_ms 246 (-6%) 451 (+1%) 820 (+1%)
l2_block_building_time_in_ms 8,970 (+1%) 17,463 34,923
l2_block_rollup_simulation_time_in_ms 8,970 (+1%) 17,463 34,923
l2_block_public_tx_process_time_in_ms 7,583 (+1%) 15,962 33,390

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 3,049 (+4%) 3,923 (+1%)
node_database_size_in_bytes 12,664,912 16,728,144
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 89.3 (+7%) 396 21,502 44,858 N/A
private-kernel-inner 155 (-3%) 711 72,180 45,005 N/A
private-kernel-reset-tiny 473 (+2%) 898 (+4%) 65,502 44,844 N/A
private-kernel-tail 198 (-2%) 162 (+3%) 50,606 52,256 N/A
base-parity 5.63 (+1%) N/A 160 96.0 N/A
root-parity 33.1 (-2%) N/A 69,084 96.0 N/A
base-rollup 2,740 N/A 187,817 664 N/A
root-rollup 38.7 N/A 54,525 716 N/A
public-kernel-setup 83.5 N/A 103,760 71,222 N/A
public-kernel-app-logic 95.3 (+1%) N/A 103,599 71,222 N/A
public-kernel-tail 552 N/A 409,190 16,414 N/A
private-kernel-reset-small 464 (+2%) N/A 66,085 45,629 N/A
private-kernel-tail-to-public :warning: 1,038 (+59%) 656 (+1%) 473,529 (+3%) 1,697 N/A
public-kernel-teardown 82.5 N/A 104,005 71,222 N/A
merge-rollup 19.1 N/A 35,742 664 N/A
undefined N/A N/A N/A N/A 64,960

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.2 (-1%)
MultiCallEntrypoint:entrypoint 1,920 11,731 421 (+4%)
FeeJuice:deploy 1,376 11,731 390
SchnorrAccount:constructor 1,312 11,731 :warning: 105 (+39%)
SchnorrAccount:entrypoint 2,304 11,731 429 (+4%)
Token:privately_mint_private_note 1,280 11,731 :warning: 142 (+37%)
FPC:fee_entrypoint_public 1,344 11,731 30.4 (+9%)
Token:transfer 1,312 11,731 :warning: 268 (+17%)
Benchmarking:create_note 1,344 11,731 103 (+18%)
SchnorrAccount:verify_private_authwit 1,280 11,731 27.3 (-1%)
Token:unshield 1,376 11,731 549 (+4%)
FPC:fee_entrypoint_private 1,376 11,731 747 (+6%)

AVM Simulation

Time to simulate various public functions in the AVM.

Function time_ms bytecode_size_in_bytes
FeeJuice:_increase_public_balance 52.3 (-1%) 7,739
FeeJuice:set_portal 10.2 (+10%) 2,354
Token:constructor 92.4 (+7%) 26,525 (+2%)
FPC:constructor 51.7 (+1%) 18,383 (+2%)
FeeJuice:mint_public 38.3 5,877
Token:mint_public 68.9 (+1%) 10,917
Token:assert_minter_and_mint 39.4 (-2%) 7,512
AuthRegistry:set_authorized 37.7 (-16%) 4,391
FPC:prepare_fee 240 (+4%) 7,712 (+9%)
Token:transfer_public :warning: 21.3 (-37%) 39,946 (+1%)
FPC:pay_refund 52.8 (-8%) 10,811 (+6%)
Benchmarking:increment_balance 934 6,929 (+6%)
Token:_increase_public_balance 39.4 8,433
FPC:pay_refund_with_shielded_rebate 65.3 (+2%) 11,360 (+5%)

Public DB Access

Time to access various public DBs.

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

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.22 3.92 (-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.115 0.111 (+1%) N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 11.7 18.2 (+1%) 31.3 (-1%) 60.3 (+1%) 117 (+2%)
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.112 0.105 (+1%) 0.102 0.104 (+2%) 0.105 (+3%)
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 14.7 (+1%) 26.1 (-1%) 44.1 (-2%) 83.6 166 (+2%)
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.112 (+1%) 0.106 0.107 (-1%) 0.104 0.105 (+2%)
batch_insert_into_indexed_tree_40_depth_ms N/A N/A 16.7 (+1%) 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.107 (+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 avatar Aug 21 '24 03:08 AztecBot