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

feat: Add fees to CLI #6713

Merged
merged 3 commits into from
May 28, 2024
Merged

feat: Add fees to CLI #6713

merged 3 commits into from
May 28, 2024

Conversation

spalladino
Copy link
Collaborator

No description provided.

@spalladino spalladino closed this May 28, 2024
@spalladino spalladino deleted the palla/fees-in-cli branch May 28, 2024 14:05
@spalladino spalladino restored the palla/fees-in-cli branch May 28, 2024 14:05
@spalladino spalladino reopened this May 28, 2024
@spalladino spalladino marked this pull request as draft May 28, 2024 14:05
@spalladino spalladino marked this pull request as ready for review May 28, 2024 14:53
@spalladino spalladino merged commit 1e19a9b into pw/cli May 28, 2024
93 of 116 checks passed
@spalladino spalladino deleted the palla/fees-in-cli branch May 28, 2024 14:53
@AztecBot
Copy link
Collaborator

Benchmark results

Metrics with a significant change:

  • protocol_circuit_proving_time_in_ms (private-kernel-inner): 49,613 (+17%)
  • protocol_circuit_proving_time_in_ms (base-rollup): 86,405 (+16%)
  • protocol_circuit_proving_time_in_ms (public-kernel-tail): 181,977 (+17%)
  • protocol_circuit_proving_time_in_ms (root-rollup): 22,651 (+16%)
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 | |
| - | |

L2 block published to L1

Each column represents the number of txs on an L2 block published to L1.

Metric 8 txs 32 txs 64 txs
l1_rollup_calldata_size_in_bytes 1,412 1,412 1,412
l1_rollup_calldata_gas 9,452 9,452 9,464
l1_rollup_execution_gas 616,093 616,093 616,105
l2_block_processing_time_in_ms 1,294 4,810 9,511
l2_block_building_time_in_ms 44,647 (-1%) 176,898 (-1%) 353,545 (-1%)
l2_block_rollup_simulation_time_in_ms 44,480 (-1%) 176,272 (-1%) 352,321 (-1%)
l2_block_public_tx_process_time_in_ms 24,034 (-1%) 100,118 (-2%) 204,878 (-1%)

L2 chain processing

Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric 3 blocks 5 blocks
node_history_sync_time_in_ms 9,424 (-1%) 14,369 (-1%)
node_database_size_in_bytes 14,504,016 21,327,952
pxe_database_size_in_bytes 18,071 29,868

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 159 (-1%) 3,558 (-3%) 25,605 (+11%) 20,634 64,614 89,536 2,731 1,048,576
private-kernel-inner 623 (-1%) 4,145 (-5%) ⚠️ 49,613 (+17%) 92,326 64,614 89,536 2,731 2,097,152
private-kernel-tail 565 (-1%) 3,180 (+4%) 42,227 (+15%) 96,545 77,498 10,656 266 2,097,152
base-parity 6.45 (-2%) 1,134 (-7%) 2,859 (-2%) 128 64.0 2,208 2.00 131,072
root-parity 49.2 (-1%) 72.2 (-7%) 50,368 (+13%) 27,100 64.0 2,720 18.0 2,097,152
base-rollup 753 (+5%) 2,331 (+6%) ⚠️ 86,405 (+16%) 119,614 756 3,648 47.0 4,194,304
root-rollup 110 (-2%) 80.1 (+28%) ⚠️ 22,651 (+16%) 25,309 620 3,456 41.0 1,048,576
public-kernel-app-logic 522 2,961 52,811 (+11%) 104,945 86,302 114,784 3,520 2,097,152
public-kernel-tail 1,079 (-1%) 22,762 ⚠️ 181,977 (+17%) 395,390 7,522 10,656 266 8,388,608
private-kernel-reset-small 589 (-1%) 1,986 (-4%) 51,219 (+12%) 120,737 64,614 89,536 2,731 2,097,152
merge-rollup 28.7 (-1%) N/A N/A 16,542 756 N/A N/A N/A
public-kernel-setup 625 N/A N/A 104,945 86,302 N/A N/A N/A
public-kernel-teardown 527 N/A N/A 104,945 86,302 N/A N/A N/A
private-kernel-tail-to-public N/A 8,318 (-3%) 105,140 (+15%) N/A N/A 114,784 3,520 4,194,304

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 9,944 463 (-3%) N/A N/A N/A N/A
ContractInstanceDeployer:deploy 1,408 9,944 41.4 (-4%) N/A N/A N/A N/A
MultiCallEntrypoint:entrypoint 1,920 9,944 1,423 (-3%) N/A N/A N/A N/A
SchnorrAccount:constructor 1,312 9,944 977 (-3%) N/A N/A N/A N/A
SchnorrAccount:entrypoint 2,304 9,944 2,087 (-1%) 16,768 55,001 (+7%) 2,097,152 457
Token:privately_mint_private_note 1,280 9,944 1,086 (-5%) N/A N/A N/A N/A
Token:transfer 1,376 9,944 3,987 (-3%) 16,768 50,814 (+11%) 2,097,152 457
Benchmarking:create_note 1,312 9,944 951 N/A N/A N/A N/A
FPC:fee_entrypoint_public 1,344 9,944 218 (-7%) N/A N/A N/A N/A
SchnorrAccount:spend_private_authwit 1,280 9,944 77.3 (-4%) N/A N/A N/A N/A
Token:unshield 1,376 9,944 3,254 (-9%) N/A N/A N/A N/A
FPC:fee_entrypoint_private 1,376 9,944 4,041 (-8%) N/A N/A N/A N/A

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 512 leaves 1024 leaves 2048 leaves 4096 leaves 32 leaves
batch_insert_into_append_only_tree_16_depth_ms 10.4 (-1%) 16.9 N/A N/A N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_count 16.7 31.8 N/A N/A N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_ms 0.604 (-1%) 0.518 (-1%) N/A N/A N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 48.3 (-1%) 76.3 245 (-1%) 474 928 1,842 N/A
batch_insert_into_append_only_tree_32_depth_hash_count N/A N/A 95.9 159 543 1,055 2,079 4,127 N/A
batch_insert_into_append_only_tree_32_depth_hash_ms N/A N/A 0.494 (-1%) 0.470 0.445 0.443 0.440 0.439 N/A
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 58.3 (-1%) 112 (-2%) 356 696 (-1%) 1,386 2,761 N/A
batch_insert_into_indexed_tree_20_depth_hash_count N/A N/A 106 208 692 1,363 2,707 5,395 N/A
batch_insert_into_indexed_tree_20_depth_hash_ms N/A N/A 0.504 (-1%) 0.502 (-1%) 0.480 (-1%) 0.479 0.479 0.479 N/A
batch_insert_into_indexed_tree_40_depth_ms N/A N/A N/A N/A N/A N/A N/A N/A 62.2 (-1%)
batch_insert_into_indexed_tree_40_depth_hash_count N/A N/A N/A N/A N/A N/A N/A N/A 107
batch_insert_into_indexed_tree_40_depth_hash_ms N/A N/A N/A N/A N/A N/A N/A N/A 0.552

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 83,794 665,117

Transaction size based on fee payment method

| Metric | |
| - | |

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

Successfully merging this pull request may close these issues.

2 participants