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: acir benchmark use slim image #6456

Merged
merged 2 commits into from
May 16, 2024

Conversation

ludamad
Copy link
Collaborator

@ludamad ludamad commented May 16, 2024

No description provided.

@ludamad ludamad requested a review from TomAFrench May 16, 2024 11:47
@ludamad ludamad changed the title chore: wip chore: acir benchmark use slim image May 16, 2024
@AztecBot
Copy link
Collaborator

Benchmark results

Metrics with a significant change:

  • batch_insert_into_append_only_tree_32_depth_ms (512): 317 (+18%)
  • batch_insert_into_append_only_tree_32_depth_ms (1024): 608 (+21%)
  • batch_insert_into_append_only_tree_32_depth_ms (2048): 1,198 (+21%)
  • batch_insert_into_append_only_tree_32_depth_ms (4096): 2,366 (+21%)
  • batch_insert_into_indexed_tree_20_depth_ms (512): 456 (+21%)
  • batch_insert_into_indexed_tree_20_depth_ms (1024): 891 (+21%)
  • batch_insert_into_indexed_tree_20_depth_ms (2048): 1,781 (+21%)
  • batch_insert_into_indexed_tree_20_depth_ms (4096): 3,528 (+20%)
  • circuit_proving_time_in_ms (public-kernel-app-logic): 416 (-16%)
  • node_history_sync_time_in_ms (5): 18,188 (+18%)
  • node_history_sync_time_in_ms (10): 33,782 (+19%)
  • l2_block_processing_time_in_ms (8): 1,619 (+19%)
  • l2_block_processing_time_in_ms (32): 6,085 (+20%)
  • l2_block_processing_time_in_ms (64): 12,067 (+20%)
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 740 740 740
l1_rollup_calldata_gas 6,692 6,680 6,692
l1_rollup_execution_gas 586,877 586,865 586,877
l2_block_processing_time_in_ms ⚠️ 1,619 (+19%) ⚠️ 6,085 (+20%) ⚠️ 12,067 (+20%)
l2_block_building_time_in_ms 25,091 (+6%) 98,703 (+6%) 197,053 (+6%)
l2_block_rollup_simulation_time_in_ms 24,916 (+6%) 98,090 (+6%) 195,846 (+6%)
l2_block_public_tx_process_time_in_ms 10,131 (+7%) 39,881 (+8%) 79,672 (+8%)

L2 chain processing

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

Metric 5 blocks 10 blocks
node_history_sync_time_in_ms ⚠️ 18,188 (+18%) ⚠️ 33,782 (+19%)
node_database_size_in_bytes 22,917,200 39,481,424
pxe_database_size_in_bytes 29,868 59,425

Circuits stats

Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit circuit_simulation_time_in_ms circuit_input_size_in_bytes circuit_output_size_in_bytes circuit_witness_generation_time_in_ms circuit_proving_time_in_ms circuit_proof_size_in_bytes
private-kernel-init 130 (+4%) 18,212 41,446 N/A N/A N/A
private-kernel-inner 362 (+2%) 66,727 41,446 N/A N/A N/A
private-kernel-reset 619 (+4%) 210,456 41,446 N/A N/A N/A
private-kernel-ordering 358 (+2%) 61,368 55,522 N/A N/A N/A
base-parity 8.25 (+6%) 128 64.0 288 (+5%) 12,695 (-5%) 2,208
root-parity 51.2 (+6%) 27,064 64.0 209 (-8%) 154,262 (-15%) 2,720
base-rollup 715 (+8%) 111,094 925 8,236 (+8%) 138,594 (-14%) 3,104
root-rollup 72.7 (+13%) 11,454 789 199 (+5%) 15,599 (-6%) 3,424
public-kernel-app-logic 135 (+4%) 68,697 59,431 358 (+6%) ⚠️ 416 (-16%) 73,024
public-kernel-tail 467 (+4%) 174,138 7,691 471 (-3%) 404 (-5%) 10,112
public-kernel-setup 111 (+5%) 68,697 59,431 299 (+2%) 478 (-3%) 73,024
public-kernel-teardown 114 (+5%) 68,697 59,431 276 (-4%) 426 (+2%) 73,024
merge-rollup 6.82 (+6%) 2,696 925 152 (-3%) 3,389 (-8%) 3,104

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 13.2 (+19%) 21.4 (+19%) 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.772 (+20%) 0.659 (+20%) 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 62.1 (+20%) 97.3 (+19%) ⚠️ 317 (+18%) ⚠️ 608 (+21%) ⚠️ 1,198 (+21%) ⚠️ 2,366 (+21%) 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.636 (+20%) 0.602 (+19%) 0.576 (+19%) 0.569 (+21%) 0.568 (+21%) 0.565 (+21%) N/A
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 73.5 (+20%) 144 (+21%) ⚠️ 456 (+21%) ⚠️ 891 (+21%) ⚠️ 1,781 (+21%) ⚠️ 3,528 (+20%) 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.644 (+20%) 0.645 (+21%) 0.620 (+21%) 0.614 (+21%) 0.618 (+21%) 0.614 (+20%) 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 80.6 (+20%)
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 108
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.708 (+20%)

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 58,427 1,049,033

Transaction size based on fee payment method

| Metric | |
| - | |

Transaction processing duration by data writes.

Metric 0 new note hashes 1 new note hashes 2 new note hashes
tx_pxe_processing_time_ms 2,672 (+6%) 2,811 (+7%) 7,133 (+8%)
Metric 0 public data writes 1 public data writes 2 public data writes 4 public data writes 8 public data writes
tx_sequencer_processing_time_ms 721 (+6%) 988 (+5%) 1,061 (+7%) 1,989 (+9%) 1,259 (+8%)

Copy link
Member

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

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

Thanks!

@TomAFrench TomAFrench merged commit bfef604 into tf/benchmarking May 16, 2024
95 checks passed
@TomAFrench TomAFrench deleted the ad/tf/benchmarking-experiment branch May 16, 2024 13:23
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.

3 participants