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

test: Emulated overflow checks #4816

Closed
wants to merge 2 commits into from
Closed

Conversation

sirasistant
Copy link
Contributor

subrepo:
subdir: "noir"
merged: "d77d1e7cc5"
upstream:
origin: "https://github.com/noir-lang/noir"
branch: "arv/emulate_checked_arith_brillig"
commit: "d77d1e7cc5"
git-subrepo:
version: "0.4.6"
origin: "???"
commit: "???"

Please read contributing guidelines and remove this line.

subrepo:
  subdir:   "noir"
  merged:   "d77d1e7cc5"
upstream:
  origin:   "https://github.com/noir-lang/noir"
  branch:   "arv/emulate_checked_arith_brillig"
  commit:   "d77d1e7cc5"
git-subrepo:
  version:  "0.4.6"
  origin:   "???"
  commit:   "???"
@AztecBot
Copy link
Collaborator

AztecBot commented Feb 28, 2024

Benchmark results

Metrics with a significant change:

  • batch_insert_into_append_only_tree_16_depth_ms (8): 17.9 (+42%)
  • batch_insert_into_append_only_tree_16_depth_ms (32): 29.6 (+34%)
  • batch_insert_into_append_only_tree_16_depth_ms (128): 62.8 (-31%)
  • batch_insert_into_append_only_tree_16_depth_hash_ms (8): 0.753 (+41%)
  • batch_insert_into_append_only_tree_16_depth_hash_ms (32): 0.619 (+34%)
  • batch_insert_into_append_only_tree_16_depth_hash_ms (128): 0.431 (-31%)
  • note_history_successful_decrypting_time_in_ms (5): 1,266 (-17%)
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.

Values are compared against data from master at commit 20dc67b5 and shown if the difference exceeds 1%.

L2 block published to L1

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

Metric 8 txs 32 txs 128 txs
l1_rollup_calldata_size_in_bytes 54,212 214,436 855,332
l1_rollup_calldata_gas 259,904 1,019,792 4,060,412
l1_rollup_execution_gas 354,090 1,139,240 4,281,813
l2_block_processing_time_in_ms 1,224 (+2%) 4,997 (+11%) 18,127 (+1%)
note_successful_decrypting_time_in_ms 212 (+3%) 595 (+6%) 2,033 (+4%)
note_trial_decrypting_time_in_ms 28.6 (+48%) 136 (+40%) 172 (+2%)
l2_block_building_time_in_ms 16,569 (+3%) 65,425 (+2%) 264,702 (+2%)
l2_block_rollup_simulation_time_in_ms 12,687 (+3%) 50,064 (+2%) 203,715 (+2%)
l2_block_public_tx_process_time_in_ms 3,847 (+2%) 15,255 (+3%) 60,710 (+3%)

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 15,429 (+2%) 29,194 (-2%)
note_history_successful_decrypting_time_in_ms ⚠️ 1,266 (-17%) 2,603 (+1%)
note_history_trial_decrypting_time_in_ms 124 (+19%) 171 (-28%)
node_database_size_in_bytes 19,120,208 36,294,736 (-1%)
pxe_database_size_in_bytes 29,923 59,478

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
private-kernel-init 244 (+1%) 44,664 27,457
private-kernel-ordering 170 (+10%) 45,777 14,627
base-rollup 1,337 (+2%) 175,344 933
root-rollup 71.6 4,192 825
private-kernel-inner 313 (+3%) 73,099 27,457
public-kernel-app-logic 192 (+3%) 32,254 25,379
merge-rollup 5.79 (-1%) 2,712 933

Tree insertion stats

The duration to insert a fixed batch of leaves into each tree type.

Metric 1 leaves 2 leaves 8 leaves 16 leaves 32 leaves 128 leaves 64 leaves 512 leaves 1024 leaves 2048 leaves 8192 leaves
batch_insert_into_append_only_tree_16_depth_ms 9.93 (-1%) 11.8 (-11%) ⚠️ 17.9 (+42%) 16.5 (-3%) ⚠️ 29.6 (+34%) ⚠️ 62.8 (-31%) N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_count 16.9 17.5 23.0 31.6 47.0 143 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_ms 0.575 (-1%) 0.652 (-11%) ⚠️ 0.753 (+41%) 0.511 (-3%) ⚠️ 0.619 (+34%) ⚠️ 0.431 (-31%) N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A N/A N/A N/A 73.6 (-3%) 46.4 (-1%) 237 (+1%) 447 880 (+1%) 3,440
batch_insert_into_append_only_tree_32_depth_hash_count N/A N/A N/A N/A N/A 159 96.0 543 1,055 2,079 8,223
batch_insert_into_append_only_tree_32_depth_hash_ms N/A N/A N/A N/A N/A 0.454 (-3%) 0.474 (-1%) 0.431 (+1%) 0.418 0.418 (+1%) 0.412
batch_insert_into_indexed_tree_20_depth_ms N/A N/A N/A N/A N/A 100 (-8%) 55.0 343 (+2%) 664 (-1%) 1,324 (+1%) 5,290 (+1%)
batch_insert_into_indexed_tree_20_depth_hash_count N/A N/A N/A N/A N/A 197 104 691 1,363 2,707 10,771
batch_insert_into_indexed_tree_20_depth_hash_ms N/A N/A N/A N/A N/A 0.476 (-7%) 0.482 0.462 (+1%) 0.456 0.456 0.456
batch_insert_into_indexed_tree_40_depth_ms N/A N/A N/A N/A 62.2 N/A N/A N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_count N/A N/A N/A N/A 110 N/A N/A N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_ms N/A N/A N/A N/A 0.538 N/A N/A N/A N/A N/A N/A

Miscellaneous

Transaction sizes based on how many contracts are deployed in the tx.

Metric 0 deployed contracts
tx_size_in_bytes 18,431

Transaction processing duration by data writes.

Metric 0 new note hashes 1 new note hashes
tx_pxe_processing_time_ms 2,550 1,324 (+2%)
Metric 0 public data writes 1 public data writes
tx_sequencer_processing_time_ms 0.0364 (+16%) 471 (+2%)

@ludamad ludamad deleted the arv/test_overflow_checks branch August 22, 2024 15:19
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