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

fix: Revert ClientIVC mock sizes #6693

Closed
wants to merge 5 commits into from
Closed

Conversation

codygunton
Copy link
Contributor

@codygunton codygunton commented May 26, 2024

The pull request #6391 coarsely adjusted the ClientIVC benchmarks to account for more expensive biggroup operations, leading to an artificial improvment in the bencmark. This PR fine tunes the mock circuits to more-or-less revert that change.

MockKernelTest.PinFoldingKernelSizes

before #6391 (7fbe7a0)

circuit data
num_gates: 107632
Gate blocks summary: (actual gates / fixed capacity)
goblin ecc op : 0/1024
pub inputs    : 0/128
arithmetic    : 41707/65536
delta range   : 0/32768
elliptic      : 8260/16384
auxiliary     : 21512/65536
lookups       : 16949/32768
busread       : 0/128
poseidon ext  : 0/2048
poseidon int  : 0/16384

#6391 (bd72db5)

circuit data
num_gates: 74187
Gate blocks summary: (actual gates / fixed capacity)
goblin ecc op : 0/1024
pub inputs    : 0/128
arithmetic    : 29366/65536
delta range   : 0/32768
elliptic      : 8260/16384
auxiliary     : 11482/65536
lookups       : 13944/32768
busread       : 0/128
poseidon ext  : 0/2048
poseidon int  : 0/16384

This PR

num gates: 106010
Gate blocks summary: (actual gates / fixed capacity)
goblin ecc op : 0/1024
pub inputs    : 0/128
arithmetic    : 41726/65536
delta range   : 0/32768
elliptic      : 6195/16384
auxiliary     : 22964/65536
lookups       : 14919/32768
busread       : 0/128
poseidon ext  : 0/2048
poseidon int  : 0/16384

MegaMockCircuitsPinning

before #6391 (7fbe7a0)

circuit data
num_gates: 498817
Gate blocks summary: (actual gates / fixed capacity)
goblin ecc op : 6/1024
pub inputs    : 0/128
arithmetic    : 184555/65536
delta range   : 0/32768
elliptic      : 4956/16384
auxiliary     : 129072/65536
lookups       : 74760/32768
busread       : 0/128
poseidon ext  : 0/2048
poseidon int  : 0/16384

circuit data
num_gates: 108602
Gate blocks summary: (actual gates / fixed capacity)
goblin ecc op : 6/1024
pub inputs    : 0/128
arithmetic    : 39501/65536
delta range   : 0/32768
elliptic      : 4130/16384
auxiliary     : 21512/65536
lookups       : 24165/32768
busread       : 0/128
poseidon ext  : 0/2048

#6391 (bd72db5)

circuit data
num_gates: 298151
Gate blocks summary: (actual gates / fixed capacity)
goblin ecc op : 6/1024
pub inputs    : 0/128
arithmetic    : 110509/65536
delta range   : 0/32768
elliptic      : 4956/16384
auxiliary     : 68892/65536
lookups       : 56730/32768
busread       : 0/128
poseidon ext  : 0/2048
poseidon int  : 0/16384

circuit data
num_gates: 75158
Gate blocks summary: (actual gates / fixed capacity)
goblin ecc op : 6/1024
pub inputs    : 0/128
arithmetic    : 27160/65536
delta range   : 0/32768
elliptic      : 4130/16384
auxiliary     : 11482/65536
lookups       : 21160/32768
busread       : 0/128
poseidon ext  : 0/2048
poseidon int  : 0/16384

this PR

num gates: 492201
Gate blocks summary: (actual gates / fixed capacity)
goblin ecc op : 6/1024
pub inputs    : 0/128
arithmetic    : 186584/65536
delta range   : 0/32768
elliptic      : 4956/16384
auxiliary     : 126302/65536
lookups       : 71755/32768
busread       : 0/128
poseidon ext  : 0/2048
poseidon int  : 0/16384

num gates: 113969
Gate blocks summary: (actual gates / fixed capacity)
goblin ecc op : 6/1024
pub inputs    : 0/128
arithmetic    : 42375/65536
delta range   : 0/32768
elliptic      : 4130/16384
auxiliary     : 22964/65536
lookups       : 24165/32768
busread       : 0/128
poseidon ext  : 0/2048
poseidon int  : 0/16384

ClientIVCBenchmarks

Benchmark on master before this PR (bd72db5):

Benchmarking lock created at ~/BENCHMARK_IN_PROGRESS.
client_ivc_bench                                                                                   100%   18MB  50.6MB/s   00:00    
2024-05-26T16:11:15+00:00
Running ./client_ivc_bench
Run on (16 X 3000 MHz CPU s)
CPU Caches:
  L1 Data 32 KiB (x8)
  L1 Instruction 32 KiB (x8)
  L2 Unified 1024 KiB (x8)
  L3 Unified 36608 KiB (x1)
Load Average: 0.00, 0.10, 0.08
--------------------------------------------------------------------------------
Benchmark                      Time             CPU   Iterations UserCounters...
--------------------------------------------------------------------------------
ClientIVCBench/Full/6      16098 ms        11253 ms            1 Arithmetic::accumulate=783.089k Arithmetic::accumulate(t)=1.48573G Auxiliary::accumulate=570.914k Auxiliary::accumulate(t)=3.78998G DatabusRead::accumulate=544 DatabusRead::accumulate(t)=1.47932M Decider::construct_proof=1 Decider::construct_proof(t)=515.882M DeltaRange::accumulate=446.369k DeltaRange::accumulate(t)=948.428M ECCVMProver(CircuitBuilder&)=1 ECCVMProver(CircuitBuilder&)(t)=175.867M ECCVMProver::construct_proof=1 ECCVMProver::construct_proof(t)=1.76492G Elliptic::accumulate=277.663k Elliptic::accumulate(t)=616.53M Goblin::merge=11 Goblin::merge(t)=152.122M Lookup::accumulate=2.62144M Lookup::accumulate(t)=11.7042G Permutation::accumulate=1.80147M Permutation::accumulate(t)=6.73614G PoseidonExt::accumulate=46.504k PoseidonExt::accumulate(t)=111.553M PoseidonInt::accumulate=181.69k PoseidonInt::accumulate(t)=323.834M ProtoGalaxyProver_::accumulator_update_round=10 ProtoGalaxyProver_::accumulator_update_round(t)=284.214M ProtoGalaxyProver_::combiner_quotient_round=10 ProtoGalaxyProver_::combiner_quotient_round(t)=2.8386G ProtoGalaxyProver_::perturbator_round=10 ProtoGalaxyProver_::perturbator_round(t)=780.351M ProtoGalaxyProver_::preparation_round=10 ProtoGalaxyProver_::preparation_round(t)=3.72711G ProtogalaxyProver::fold_instances=10 ProtogalaxyProver::fold_instances(t)=7.63031G ProverInstance(Circuit&)=11 ProverInstance(Circuit&)(t)=1.64895G TranslatorCircuitBuilder::constructor=1 TranslatorCircuitBuilder::constructor(t)=62.491M TranslatorProver=1 TranslatorProver(t)=56.1089M TranslatorProver::construct_proof=1 TranslatorProver::construct_proof(t)=837.18M batch_mul_with_endomorphism=30 batch_mul_with_endomorphism(t)=563.741M commit=459 commit(t)=4.08189G compute_combiner=10 compute_combiner(t)=2.83654G compute_perturbator=9 compute_perturbator(t)=779.993M compute_univariate=48 compute_univariate(t)=1.05971G construct_circuits=15 construct_circuits(t)=3.24129G
Benchmarking lock deleted.
client_ivc_bench.json                                                                              100% 4570   137.0KB/s   00:00    
function                                  ms     % sum
construct_circuits(t)                   3241    20.30%
ProverInstance(Circuit&)(t)             1649    10.33%
ProtogalaxyProver::fold_instances(t)    7630    47.79%
Decider::construct_proof(t)              516     3.23%
ECCVMProver(CircuitBuilder&)(t)          176     1.10%
ECCVMProver::construct_proof(t)         1765    11.05%
TranslatorProver::construct_proof(t)     837     5.24%
Goblin::merge(t)                         152     0.95%

Total time accounted for: 15967ms/16098ms = 99.19%

Major contributors:
function                                  ms    % sum
commit(t)                               4082   25.57%
compute_combiner(t)                     2837   17.77%
compute_perturbator(t)                   780    4.89%
compute_univariate(t)                   1060    6.64%

Breakdown of ProtogalaxyProver::fold_instances:
ProtoGalaxyProver_::preparation_round(t)           3727    48.85%
ProtoGalaxyProver_::perturbator_round(t)            780    10.23%
ProtoGalaxyProver_::combiner_quotient_round(t)     2839    37.20%
ProtoGalaxyProver_::accumulator_update_round(t)     284     3.72%

Relation contributions (times to be interpreted relatively):
function                        ms     % sum
Arithmetic::accumulate(t)     1486     5.78%
Permutation::accumulate(t)    6736    26.19%
Lookup::accumulate(t)        11704    45.51%
DeltaRange::accumulate(t)      948     3.69%
Elliptic::accumulate(t)        617     2.40%
Auxiliary::accumulate(t)      3790    14.74%
EccOp::accumulate(t)             0     0.00%
DatabusRead::accumulate(t)       1     0.01%
PoseidonExt::accumulate(t)     112     0.43%
PoseidonInt::accumulate(t)     324     1.26%

Benchmark on this PR

The PR that artificially improved the benchmark went took the circuit construction time from 4400ms to 3400ms. This PR takes that number to 4500ms.

Benchmarking lock created at ~/BENCHMARK_IN_PROGRESS.
client_ivc_bench                                                                                                                                            100%   18MB  51.7MB/s   00:00    
2024-05-27T13:51:54+00:00
Running ./client_ivc_bench
Run on (16 X 3000 MHz CPU s)
CPU Caches:
  L1 Data 32 KiB (x8)
  L1 Instruction 32 KiB (x8)
  L2 Unified 1024 KiB (x8)
  L3 Unified 36608 KiB (x1)
Load Average: 0.00, 0.00, 0.00
--------------------------------------------------------------------------------
Benchmark                      Time             CPU   Iterations UserCounters...
--------------------------------------------------------------------------------
ClientIVCBench/Full/6      19620 ms        14051 ms            1 Arithmetic::accumulate=1.10225M Arithmetic::accumulate(t)=2.16983G Auxiliary::accumulate=760.72k Auxiliary::accumulate(t)=5.26527G DatabusRead::accumulate=542 DatabusRead::accumulate(t)=1.57021M Decider::construct_proof=1 Decider::construct_proof(t)=512.364M DeltaRange::accumulate=566.102k DeltaRange::accumulate(t)=1.28457G ECCVMProver(CircuitBuilder&)=1 ECCVMProver(CircuitBuilder&)(t)=175.825M ECCVMProver::construct_proof=1 ECCVMProver::construct_proof(t)=1.76851G Elliptic::accumulate=217.583k Elliptic::accumulate(t)=508.565M Goblin::merge=11 Goblin::merge(t)=152.763M Lookup::accumulate=2.62144M Lookup::accumulate(t)=12.1177G Permutation::accumulate=2.54884M Permutation::accumulate(t)=10.1937G PoseidonExt::accumulate=46.514k PoseidonExt::accumulate(t)=119.85M PoseidonInt::accumulate=188.687k PoseidonInt::accumulate(t)=338.52M ProtoGalaxyProver_::accumulator_update_round=10 ProtoGalaxyProver_::accumulator_update_round(t)=284.938M ProtoGalaxyProver_::combiner_quotient_round=10 ProtoGalaxyProver_::combiner_quotient_round(t)=2.92944G ProtoGalaxyProver_::perturbator_round=10 ProtoGalaxyProver_::perturbator_round(t)=792.841M ProtoGalaxyProver_::preparation_round=10 ProtoGalaxyProver_::preparation_round(t)=5.36942G ProtogalaxyProver::fold_instances=10 ProtogalaxyProver::fold_instances(t)=9.37667G ProverInstance(Circuit&)=11 ProverInstance(Circuit&)(t)=2.17416G TranslatorCircuitBuilder::constructor=1 TranslatorCircuitBuilder::constructor(t)=61.8063M TranslatorProver=1 TranslatorProver(t)=56.0205M TranslatorProver::construct_proof=1 TranslatorProver::construct_proof(t)=813.301M batch_mul_with_endomorphism=30 batch_mul_with_endomorphism(t)=562.311M commit=459 commit(t)=5.48195G compute_combiner=10 compute_combiner(t)=2.92734G compute_perturbator=9 compute_perturbator(t)=792.462M compute_univariate=48 compute_univariate(t)=1.0607G construct_circuits=15 construct_circuits(t)=4.5168G
Benchmarking lock deleted.
client_ivc_bench.json                                                                                                                                       100% 4554   130.9KB/s   00:00    
function                                  ms     % sum
construct_circuits(t)                   4517    23.17%
ProverInstance(Circuit&)(t)             2174    11.16%
ProtogalaxyProver::fold_instances(t)    9377    48.11%
Decider::construct_proof(t)              512     2.63%
ECCVMProver(CircuitBuilder&)(t)          176     0.90%
ECCVMProver::construct_proof(t)         1769     9.07%
TranslatorProver::construct_proof(t)     813     4.17%
Goblin::merge(t)                         153     0.78%

Total time accounted for: 19490ms/19620ms = 99.34%

Major contributors:
function                                  ms    % sum
commit(t)                               5482   28.13%
compute_combiner(t)                     2927   15.02%
compute_perturbator(t)                   792    4.07%
compute_univariate(t)                   1061    5.44%

Breakdown of ProtogalaxyProver::fold_instances:
ProtoGalaxyProver_::preparation_round(t)           5369    57.26%
ProtoGalaxyProver_::perturbator_round(t)            793     8.46%
ProtoGalaxyProver_::combiner_quotient_round(t)     2929    31.24%
ProtoGalaxyProver_::accumulator_update_round(t)     285     3.04%

Relation contributions (times to be interpreted relatively):
function                        ms     % sum
Arithmetic::accumulate(t)     2170     6.78%
Permutation::accumulate(t)   10194    31.86%
Lookup::accumulate(t)        12118    37.87%
DeltaRange::accumulate(t)     1285     4.01%
Elliptic::accumulate(t)        509     1.59%
Auxiliary::accumulate(t)      5265    16.45%
EccOp::accumulate(t)             0     0.00%
DatabusRead::accumulate(t)       2     0.00%
PoseidonExt::accumulate(t)     120     0.37%
PoseidonInt::accumulate(t)     339     1.06%

Benchmark on the commit (7fbe7a0) prior to the PR that disturbed the benchmarks

2024-05-26T22:58:28+00:00
Running ./client_ivc_bench
Run on (16 X 3600.3 MHz CPU s)
CPU Caches:
  L1 Data 32 KiB (x8)
  L1 Instruction 32 KiB (x8)
  L2 Unified 1024 KiB (x8)
  L3 Unified 36608 KiB (x1)
Load Average: 0.00, 0.00, 0.00
--------------------------------------------------------------------------------
Benchmark                      Time             CPU   Iterations UserCounters...
--------------------------------------------------------------------------------
ClientIVCBench/Full/6      17859 ms        12827 ms            1 Arithmetic::accumulate=1.03621M Arithmetic::accumulate(t)=2.03077G Auxiliary::accumulate=779.801k Auxiliary::accumulate(t)=5.27886G DatabusRead::accumulate=542 DatabusRead::accumulate(t)=1.43288M Decider::construct_proof=1 Decider::construct_proof(t)=516.866M DeltaRange::accumulate=539.673k DeltaRange::accumulate(t)=1.23846G ECCVMProver(CircuitBuilder&)=1 ECCVMProver(CircuitBuilder&)(t)=176.863M ECCVMProver::construct_proof=1 ECCVMProver::construct_proof(t)=1.76739G Elliptic::accumulate=275.563k Elliptic::accumulate(t)=664.916M Goblin::merge=11 Goblin::merge(t)=152.036M Lookup::accumulate=2.62144M Lookup::accumulate(t)=11.9246G Permutation::accumulate=2.42012M Permutation::accumulate(t)=9.47718G PoseidonExt::accumulate=42.106k PoseidonExt::accumulate(t)=107.683M PoseidonInt::accumulate=181.685k PoseidonInt::accumulate(t)=325.077M ProtoGalaxyProver_::accumulator_update_round=10 ProtoGalaxyProver_::accumulator_update_round(t)=284.302M ProtoGalaxyProver_::combiner_quotient_round=10 ProtoGalaxyProver_::combiner_quotient_round(t)=2.88754G ProtoGalaxyProver_::perturbator_round=10 ProtoGalaxyProver_::perturbator_round(t)=791.532M ProtoGalaxyProver_::preparation_round=10 ProtoGalaxyProver_::preparation_round(t)=3.91166G ProtogalaxyProver::fold_instances=10 ProtogalaxyProver::fold_instances(t)=7.87505G ProverInstance(Circuit&)=11 ProverInstance(Circuit&)(t)=1.89327G TranslatorCircuitBuilder::constructor=1 TranslatorCircuitBuilder::constructor(t)=62.2296M TranslatorProver=1 TranslatorProver(t)=55.7149M TranslatorProver::construct_proof=1 TranslatorProver::construct_proof(t)=806.894M batch_mul_with_endomorphism=30 batch_mul_with_endomorphism(t)=563.951M commit=459 commit(t)=4.25699G compute_combiner=10 compute_combiner(t)=2.88548G compute_perturbator=9 compute_perturbator(t)=791.131M compute_univariate=48 compute_univariate(t)=1.0672G construct_circuits=15 construct_circuits(t)=4.53813G
Benchmarking lock deleted.
client_ivc_bench.json                                                                                                                                       100% 4554   140.8KB/s   00:00    
function                                  ms     % sum
construct_circuits(t)                   4538    25.60%
ProverInstance(Circuit&)(t)             1893    10.68%
ProtogalaxyProver::fold_instances(t)    7875    44.43%
Decider::construct_proof(t)              517     2.92%
ECCVMProver(CircuitBuilder&)(t)          177     1.00%
ECCVMProver::construct_proof(t)         1767     9.97%
TranslatorProver::construct_proof(t)     807     4.55%
Goblin::merge(t)                         152     0.86%

Total time accounted for: 17726ms/17859ms = 99.26%

Major contributors:
function                                  ms    % sum
commit(t)                               4257   24.01%
compute_combiner(t)                     2885   16.28%
compute_perturbator(t)                   791    4.46%
compute_univariate(t)                   1067    6.02%

Breakdown of ProtogalaxyProver::fold_instances:
ProtoGalaxyProver_::preparation_round(t)           3912    49.67%
ProtoGalaxyProver_::perturbator_round(t)            792    10.05%
ProtoGalaxyProver_::combiner_quotient_round(t)     2888    36.67%
ProtoGalaxyProver_::accumulator_update_round(t)     284     3.61%

Relation contributions (times to be interpreted relatively):
function                        ms     % sum
Arithmetic::accumulate(t)     2031     6.54%
Permutation::accumulate(t)    9477    30.52%
Lookup::accumulate(t)        11925    38.41%
DeltaRange::accumulate(t)     1238     3.99%
Elliptic::accumulate(t)        665     2.14%
Auxiliary::accumulate(t)      5279    17.00%
EccOp::accumulate(t)             0     0.00%
DatabusRead::accumulate(t)       1     0.00%
PoseidonExt::accumulate(t)     108     0.35%
PoseidonInt::accumulate(t)     325     1.05%

WASM benches

On 9f0827f

----------------------------------------------------------------
Benchmark                      Time             CPU   Iterations
----------------------------------------------------------------
ClientIVCBench/Full/6      60088 ms   6.0088e+10 ms            1

On bd72db5

----------------------------------------------------------------
Benchmark                      Time             CPU   Iterations
----------------------------------------------------------------
ClientIVCBench/Full/6      52957 ms   5.2957e+10 ms            

Currently

----------------------------------------------------------------
Benchmark                      Time             CPU   Iterations
----------------------------------------------------------------
ClientIVCBench/Full/6      65291 ms   6.5291e+10 ms            1

@codygunton codygunton requested a review from ledwards2225 May 26, 2024 16:09
@codygunton codygunton self-assigned this May 26, 2024
@codygunton codygunton marked this pull request as draft May 26, 2024 16:12
@AztecBot
Copy link
Collaborator

AztecBot commented May 26, 2024

Benchmark results

No metrics with a significant change found.

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,729 1,547 699 745 (-3%) 772
proof_construction_time_sha256_30_ms 11,788 3,142 1,408 1,424 1,458 (-1%)
proof_construction_time_sha256_100_ms 43,739 11,708 5,412 5,401 (-1%) 5,330 (-1%)
proof_construction_time_poseidon_hash_ms 79.0 (+1%) 34.0 35.0 (+3%) 58.0 88.0 (-1%)
proof_construction_time_poseidon_hash_30_ms 1,521 419 203 226 (+1%) 267 (+1%)
proof_construction_time_poseidon_hash_100_ms 5,755 1,561 726 (+1%) 795 (+4%) 798

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,464 9,464 9,452
l1_rollup_execution_gas 616,105 616,105 616,093
l2_block_processing_time_in_ms 1,277 (-2%) 4,784 (-1%) 9,530 (-1%)
l2_block_building_time_in_ms 45,709 (+1%) 181,096 361,451
l2_block_rollup_simulation_time_in_ms 45,539 (+1%) 180,454 359,982
l2_block_public_tx_process_time_in_ms 25,185 (+3%) 102,664 (+1%) 209,155

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,495 (+1%) 14,508 (+1%)
node_database_size_in_bytes 14,483,536 21,389,392
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 134 (+1%) 496 (-1%) 13,066 (-1%) 20,630 64,614 89,536 2,731 524,288
private-kernel-inner 409 (+1%) 1,000 (-1%) 42,862 92,318 64,614 89,536 2,731 2,097,152
private-kernel-tail 588 (+2%) 2,806 (-1%) 35,828 96,541 77,732 11,648 297 2,097,152
base-parity 6.55 (-1%) 1,266 (+9%) 2,885 128 64.0 2,208 2.00 131,072
root-parity 49.5 (-1%) 61.9 (+10%) 43,851 (-1%) 27,084 64.0 2,720 18.0 2,097,152
base-rollup 727 (+1%) 2,292 (+1%) 74,884 (+1%) 119,734 756 3,648 47.0 4,194,304
root-rollup 112 64.0 (+2%) 19,381 (+1%) 25,297 620 3,456 41.0 1,048,576
public-kernel-app-logic 536 (+1%) 3,114 47,902 105,253 86,550 116,768 3,582 2,097,152
public-kernel-tail 1,121 23,145 (-2%) 152,959 (-1%) 401,002 7,646 11,648 297 8,388,608
private-kernel-reset-small 594 (+2%) 2,055 (-4%) 44,893 (-1%) 120,733 64,614 89,536 2,731 2,097,152
merge-rollup 28.5 (-1%) N/A N/A 16,534 756 N/A N/A N/A
public-kernel-setup 642 N/A N/A 105,253 86,550 N/A N/A N/A
public-kernel-teardown 544 (+1%) N/A N/A 105,253 86,550 N/A N/A N/A
private-kernel-tail-to-public N/A 8,752 (-1%) 92,162 N/A N/A 116,768 3,582 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 469 N/A N/A N/A N/A
ContractInstanceDeployer:deploy 1,408 9,944 42.7 (+1%) N/A N/A N/A N/A
MultiCallEntrypoint:entrypoint 1,920 9,944 1,720 N/A N/A N/A N/A
SchnorrAccount:constructor 1,312 9,944 1,481 (+2%) N/A N/A N/A N/A
SchnorrAccount:entrypoint 2,304 9,944 2,609 16,768 48,999 2,097,152 457
Token:privately_mint_private_note 1,280 9,944 1,647 N/A N/A N/A N/A
Token:transfer 1,376 9,944 5,038 (+1%) 16,768 54,246 2,097,152 457
Benchmarking:create_note 1,344 9,944 1,402 N/A N/A N/A N/A
FPC:fee_entrypoint_public 1,344 9,944 228 (+2%) N/A N/A N/A N/A
SchnorrAccount:spend_private_authwit 1,280 9,944 84.2 (+9%) N/A N/A N/A N/A
Token:unshield 1,376 9,944 3,752 (+1%) N/A N/A N/A N/A
FPC:fee_entrypoint_private 1,376 9,944 4,604 (+1%) 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.5 17.0 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.608 0.521 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.6 75.9 245 (-1%) 478 (+1%) 927 (-1%) 1,840 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.497 0.468 0.446 0.446 (+1%) 0.440 0.439 N/A
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 58.2 112 (-1%) 355 (-1%) 703 (+1%) 1,380 (-1%) 2,755 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 0.504 0.482 0.482 (+1%) 0.478 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.7
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.555

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 84,050 665,267

Transaction size based on fee payment method

| Metric | |
| - | |

@codygunton codygunton closed this Oct 1, 2024
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