Skip to content

Commit 6c63ad6

Browse files
authored
docs: add poseidon2 hash benchmark (#20)
* feat: use poseidon2 hash * feat: add sorted_summary_attestation for poseidon2 hash * bench: add sorted_summary_attester_slashing.md * bench: add sorted_summary_block_header.md * bench: add sorted_summary_bls_to_execution_change.md * bench: add sorted_summary_proposer_slashing.md * bench: add sorted_summary_voluntary_exit.md * bench: add sorted_summary_sync_aggregate.md * chore: update config * chore: fmt * chore: fmt * chore: fmt * chore: fmt
1 parent b6adc79 commit 6c63ad6

7 files changed

+159
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
| Operation | Test Case | Read Pre-State SSZ | Deserialize Pre-State SSZ | Read Operation Input | Process | Merkleize | Commit | Total Cycles | Execution Time |
2+
|-----------|-----------|--------------------|---------------------------|----------------------|---------|-----------|--------|--------------|----------------|
3+
attestation | at_max_inclusion_slot | 264371 | 18697243 | 22183 | 3648596 | 32739084174 | 1111 | 32761721915 | 631.798504167s |
4+
attestation | correct_attestation_included_at_max_inclusion_slot | 264367 | 18696661 | 22183 | 3648425 | 32738020639 | 1111 | 32760657623 | 612.275611167s |
5+
attestation | correct_attestation_included_at_min_inclusion_delay | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 611.483242083s |
6+
attestation | correct_attestation_included_at_one_epoch_delay | 264367 | 18696661 | 22183 | 3648425 | 32737890577 | 1111 | 32760527561 | 588.461187167s |
7+
attestation | correct_attestation_included_at_sqrt_epoch_delay | 264367 | 18696661 | 22183 | 3648412 | 32737777940 | 1111 | 32760414911 | 607.240956709s |
8+
attestation | incorrect_head_and_target_included_at_epoch_delay | 264367 | 18696661 | 22183 | 3648425 | 32737890577 | 1111 | 32760527561 | 578.107013625s |
9+
attestation | incorrect_head_and_target_included_at_sqrt_epoch_delay | 264367 | 18696661 | 22183 | 3648412 | 32737777940 | 1111 | 32760414911 | 607.451708208s |
10+
attestation | incorrect_head_and_target_min_inclusion_delay | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 591.823616125s |
11+
attestation | incorrect_head_included_at_max_inclusion_slot | 264367 | 18696661 | 22183 | 3648425 | 32738020639 | 1111 | 32760657623 | 577.233768375s |
12+
attestation | incorrect_head_included_at_min_inclusion_delay | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 611.826420083s |
13+
attestation | incorrect_head_included_at_sqrt_epoch_delay | 264367 | 18696661 | 22183 | 3648412 | 32737777940 | 1111 | 32760414911 | 608.401733209s |
14+
attestation | incorrect_target_included_at_epoch_delay | 264367 | 18696661 | 22183 | 3648425 | 32737890577 | 1111 | 32760527561 | 588.880543375s |
15+
attestation | incorrect_target_included_at_min_inclusion_delay | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 606.405519167s |
16+
attestation | incorrect_target_included_at_sqrt_epoch_delay | 264367 | 18696661 | 22183 | 3648412 | 32737777940 | 1111 | 32760414911 | 592.873285416s |
17+
attestation | invalid_after_max_inclusion_slot | 264371 | 18697243 | 22183 | 2072487 | 32740682613 | 1111 | 32761744245 | 606.82099175s |
18+
attestation | invalid_attestation_signature | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 613.997255083s |
19+
attestation | invalid_bad_source_root | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 598.480499584s |
20+
attestation | invalid_before_inclusion_delay | 264367 | 18696661 | 22183 | 2072320 | 32739319588 | 1111 | 32760380467 | 595.265347916s |
21+
attestation | invalid_correct_attestation_included_after_max_inclusion_slot | 264367 | 18696661 | 22183 | 2072316 | 32739523973 | 1111 | 32760584848 | 605.541638917s |
22+
attestation | invalid_current_source_root | 264367 | 18696661 | 22183 | 3648414 | 32738451563 | 1111 | 32761088536 | 579.650509459s |
23+
attestation | invalid_empty_participants_seemingly_valid_sig | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 608.311342542s |
24+
attestation | invalid_empty_participants_zeroes_sig | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 602.733872333s |
25+
attestation | invalid_future_target_epoch | 264367 | 18696661 | 22183 | 2072316 | 32739332005 | 1111 | 32760392880 | 585.583398s |
26+
attestation | invalid_incorrect_head_and_target_included_after_max_inclusion_slot | 264367 | 18696661 | 22183 | 2072316 | 32739523973 | 1111 | 32760584848 | 599.848888708s |
27+
attestation | invalid_incorrect_head_included_after_max_inclusion_slot | 264367 | 18696661 | 22183 | 2072316 | 32739523973 | 1111 | 32760584848 | 611.190968875s |
28+
attestation | invalid_incorrect_target_included_after_max_inclusion_slot | 264367 | 18696661 | 22183 | 2072316 | 32739523973 | 1111 | 32760584848 | 577.655129375s |
29+
attestation | invalid_index | 264367 | 18696661 | 22183 | 2072381 | 32739332005 | 1111 | 32760392945 | 631.730382333s |
30+
attestation | invalid_mismatched_target_and_slot | 264376 | 18697769 | 22183 | 2072601 | 32741782412 | 1111 | 32762844689 | 615.628637167s |
31+
attestation | invalid_new_source_epoch | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 612.65372325s |
32+
attestation | invalid_old_source_epoch | 264367 | 18696661 | 22183 | 2072316 | 32739997576 | 1111 | 32761058451 | 607.560399792s |
33+
attestation | invalid_old_target_epoch | 264367 | 18696661 | 22183 | 2072316 | 32739523973 | 1111 | 32760584848 | 579.415662167s |
34+
attestation | invalid_previous_source_root | 264367 | 18696661 | 22183 | 3648427 | 32738451563 | 1111 | 32761088549 | 601.290302875s |
35+
attestation | invalid_source_root_is_target_root | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 576.331369458s |
36+
attestation | invalid_too_few_aggregation_bits | 264367 | 18696661 | 22091 | 3648408 | 32737761634 | 1111 | 32760398509 | 577.960886125s |
37+
attestation | invalid_too_many_aggregation_bits | 264367 | 18696661 | 22183 | 3648413 | 32737761634 | 1111 | 32760398606 | 594.426130375s |
38+
attestation | invalid_wrong_index_for_committee_signature | 264367 | 18696661 | 22183 | 2072381 | 32739332005 | 1111 | 32760392945 | 591.963447917s |
39+
attestation | invalid_wrong_index_for_slot_0 | 264367 | 18696661 | 22183 | 2072381 | 32739332005 | 1111 | 32760392945 | 597.479962s |
40+
attestation | invalid_wrong_index_for_slot_1 | 264367 | 18696661 | 22183 | 2072381 | 32739332005 | 1111 | 32760392945 | 584.909544166s |
41+
attestation | one_basic_attestation | 264367 | 18696661 | 22183 | 3648412 | 32737761634 | 1111 | 32760398605 | 582.931672083s |
42+
attestation | previous_epoch | 264371 | 18697243 | 22183 | 3648596 | 32738944848 | 1111 | 32761582589 | 567.032501541s |
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
| Operation | Test Case | Read Pre-State SSZ | Deserialize Pre-State SSZ | Read Operation Input | Process | Merkleize | Commit | Total Cycles | Execution Time |
2+
|-----------|-----------|--------------------|---------------------------|----------------------|---------|-----------|--------|--------------|----------------|
3+
attester_slashing | already_exited_long_ago | 264367 | 18696661 | 55488 | 25044368 | 32720038221 | 1111 | 32764104453 | 624.7672685s |
4+
attester_slashing | already_exited_recent | 264367 | 18696661 | 55488 | 25044368 | 32720033044 | 1111 | 32764099276 | 626.139532667s |
5+
attester_slashing | attestation_from_future | 264367 | 18696661 | 55488 | 25042149 | 32720049504 | 1111 | 32764113517 | 853.268777042s |
6+
attester_slashing | basic_double | 264367 | 18696661 | 55488 | 25044368 | 32720049504 | 1111 | 32764115736 | 611.84647925s |
7+
attester_slashing | basic_surround | 264371 | 18697243 | 55488 | 25042819 | 32721248185 | 1111 | 32765313454 | 617.362122042s |
8+
attester_slashing | invalid_all_empty_indices | 264367 | 18696661 | 43712 | 2079090 | 32739319588 | 1111 | 32760408766 | 609.830723792s |
9+
attester_slashing | invalid_att1_bad_extra_index | 264367 | 18696661 | 56224 | 25044435 | 32720049504 | 1111 | 32764116539 | 614.998460416s |
10+
attester_slashing | invalid_att1_bad_replaced_index | 264367 | 18696661 | 55488 | 25044368 | 32720049504 | 1111 | 32764115736 | 599.039825666s |
11+
attester_slashing | invalid_att1_duplicate_index_double_signed | 264367 | 18696661 | 55488 | 2080185 | 32739319588 | 1111 | 32760421637 | 598.85389175s |
12+
attester_slashing | invalid_att1_duplicate_index_normal_signed | 264367 | 18696661 | 55488 | 2080173 | 32739319588 | 1111 | 32760421625 | 602.147838958s |
13+
attester_slashing | invalid_att1_empty_indices | 264367 | 18696661 | 49600 | 2079583 | 32739319588 | 1111 | 32760415147 | 614.196216791s |
14+
attester_slashing | invalid_att1_high_index | 264367 | 18696661 | 56224 | 25044435 | 32720049504 | 1111 | 32764116539 | 586.967886167s |
15+
attester_slashing | invalid_att2_bad_extra_index | 264367 | 18696661 | 56224 | 25044423 | 32720049504 | 1111 | 32764116527 | 851.16894325s |
16+
attester_slashing | invalid_att2_bad_replaced_index | 264367 | 18696661 | 55488 | 25044368 | 32720049504 | 1111 | 32764115736 | 820.3311485s |
17+
attester_slashing | invalid_att2_duplicate_index_double_signed | 264367 | 18696661 | 55488 | 25044368 | 32720049504 | 1111 | 32764115736 | 964.835020209s |
18+
attester_slashing | invalid_att2_duplicate_index_normal_signed | 264367 | 18696661 | 55488 | 25044368 | 32720049504 | 1111 | 32764115736 | 586.645964667s |
19+
attester_slashing | invalid_att2_empty_indices | 264367 | 18696661 | 49600 | 25043875 | 32720049504 | 1111 | 32764109355 | 615.17443675s |
20+
attester_slashing | invalid_att2_high_index | 264367 | 18696661 | 56224 | 25044423 | 32720049504 | 1111 | 32764116527 | 592.467139042s |
21+
attester_slashing | invalid_incorrect_sig_1 | 264367 | 18696661 | 55488 | 25044368 | 32720049504 | 1111 | 32764115736 | 664.147633375s |
22+
attester_slashing | invalid_incorrect_sig_1_and_2 | 264367 | 18696661 | 55488 | 25044368 | 32720049504 | 1111 | 32764115736 | 601.236309042s |
23+
attester_slashing | invalid_incorrect_sig_2 | 264367 | 18696661 | 55488 | 25044368 | 32720049504 | 1111 | 32764115736 | 1051.833272583s |
24+
attester_slashing | invalid_no_double_or_surround | 264367 | 18696661 | 55488 | 2080030 | 32739319588 | 1111 | 32760421482 | 607.663589334s |
25+
attester_slashing | invalid_participants_already_slashed | 264367 | 18696677 | 55488 | 25044368 | 32720052273 | 1111 | 32764118521 | 657.577641542s |
26+
attester_slashing | invalid_same_data | 264367 | 18696661 | 55488 | 2080254 | 32739319588 | 1111 | 32760421706 | 1161.9404975s |
27+
attester_slashing | invalid_unsorted_att_1 | 264367 | 18696661 | 55488 | 2080179 | 32739319588 | 1111 | 32760421631 | 595.448144084s |
28+
attester_slashing | invalid_unsorted_att_2 | 264367 | 18696661 | 55488 | 25044368 | 32720049504 | 1111 | 32764115736 | 611.953790125s |
29+
attester_slashing | low_balances | 264367 | 18696661 | 55488 | 25039443 | 32720154633 | 1111 | 32764215940 | 591.847909625s |
30+
attester_slashing | misc_balances | 264367 | 18696661 | 52544 | 25042071 | 32720127386 | 1111 | 32764188377 | 594.360534125s |
31+
attester_slashing | proposer_index_slashed | 264371 | 18697243 | 45184 | 25043427 | 32721245135 | 1111 | 32765300708 | 592.609887916s |
32+
attester_slashing | with_effective_balance_disparity | 264367 | 18696661 | 52544 | 25042867 | 32720127939 | 1111 | 32764189726 | 1123.033968625s |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
| Operation | Test Case | Read Pre-State SSZ | Deserialize Pre-State SSZ | Read Operation Input | Process | Merkleize | Commit | Total Cycles | Execution Time |
2+
|-----------|-----------|--------------------|---------------------------|----------------------|---------|-----------|--------|--------------|----------------|
3+
block_header | basic_block_header | 264367 | 18696661 | 93392 | 3680183 | 32737761634 | 1111 | 32760501585 | 630.412062208s |
4+
block_header | invalid_multiple_blocks_single_slot | 264367 | 18696661 | 93392 | 2100295 | 32739334441 | 1111 | 32760494504 | 617.998534416s |
5+
block_header | invalid_parent_root | 264367 | 18696661 | 93392 | 3680183 | 32737761634 | 1111 | 32760501585 | 607.564563042s |
6+
block_header | invalid_proposer_index | 264367 | 18696661 | 93392 | 3680183 | 32737761634 | 1111 | 32760501585 | 604.85921825s |
7+
block_header | invalid_proposer_slashed | 264367 | 18696663 | 93392 | 3680183 | 32737757868 | 1111 | 32760497821 | 612.705429583s |
8+
block_header | invalid_slot_block_header | 264367 | 18696661 | 93392 | 2100290 | 32739332005 | 1111 | 32760492063 | 620.914332292s |
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
| Operation | Test Case | Read Pre-State SSZ | Deserialize Pre-State SSZ | Read Operation Input | Process | Merkleize | Commit | Total Cycles | Execution Time |
2+
|-----------|-----------|--------------------|---------------------------|----------------------|---------|-----------|--------|--------------|----------------|
3+
bls_to_execution_change | genesis_fork_version | 264367 | 18696661 | 16848 | 2072509 | 32739319588 | 1111 | 32760375321 | 661.39193975s |
4+
bls_to_execution_change | invalid_already_0x01 | 264367 | 18696661 | 16848 | 2072576 | 32739320143 | 1111 | 32760375943 | 606.920295667s |
5+
bls_to_execution_change | invalid_bad_signature | 264367 | 18696661 | 16848 | 2072509 | 32739319588 | 1111 | 32760375321 | 589.228854875s |
6+
bls_to_execution_change | invalid_current_fork_version | 264367 | 18696661 | 16848 | 2072509 | 32739319588 | 1111 | 32760375321 | 600.919943167s |
7+
bls_to_execution_change | invalid_genesis_validators_root | 264367 | 18696661 | 16848 | 2072509 | 32739319588 | 1111 | 32760375321 | 595.095485833s |
8+
bls_to_execution_change | invalid_incorrect_from_bls_pubkey | 264367 | 18696661 | 16848 | 2072509 | 32739319588 | 1111 | 32760375321 | 604.250683333s |
9+
bls_to_execution_change | invalid_previous_fork_version | 264367 | 18696661 | 16848 | 2072509 | 32739319588 | 1111 | 32760375321 | 608.282873583s |
10+
bls_to_execution_change | invalid_val_index_out_of_range | 264367 | 18696661 | 16848 | 2072576 | 32739319588 | 1111 | 32760375388 | 594.045838s |
11+
bls_to_execution_change | success | 264367 | 18696661 | 16848 | 2072509 | 32739319588 | 1111 | 32760375321 | 600.619021s |
12+
bls_to_execution_change | success_exited | 264367 | 18696661 | 16848 | 2072509 | 32739321563 | 1111 | 32760377296 | 610.932087333s |
13+
bls_to_execution_change | success_in_activation_queue | 264367 | 18696661 | 16848 | 2072509 | 32739327732 | 1111 | 32760383465 | 781.587731167s |
14+
bls_to_execution_change | success_in_exit_queue | 264367 | 18696661 | 16848 | 2072509 | 32739323871 | 1111 | 32760379604 | 606.902397333s |
15+
bls_to_execution_change | success_not_activated | 264367 | 18696661 | 16848 | 2072509 | 32739323111 | 1111 | 32760378844 | 610.300997417s |
16+
bls_to_execution_change | success_withdrawable | 264367 | 18696661 | 16848 | 2072509 | 32739318979 | 1111 | 32760374712 | 616.002639583s |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
| Operation | Test Case | Read Pre-State SSZ | Deserialize Pre-State SSZ | Read Operation Input | Process | Merkleize | Commit | Total Cycles | Execution Time |
2+
|-----------|-----------|--------------------|---------------------------|----------------------|---------|-----------|--------|--------------|----------------|
3+
proposer_slashing | basic | 264367 | 18696661 | 39296 | 2074834 | 32739319588 | 1111 | 32760400094 | 625.023075459s |
4+
proposer_slashing | block_header_from_future | 264367 | 18696661 | 39296 | 2074834 | 32739319588 | 1111 | 32760400094 | 621.262492459s |
5+
proposer_slashing | invalid_different_proposer_indices | 264367 | 18696661 | 39296 | 2074813 | 32739319588 | 1111 | 32760400073 | 632.243296666s |
6+
proposer_slashing | invalid_headers_are_same_sigs_are_different | 264367 | 18696661 | 39296 | 2075534 | 32739319588 | 1111 | 32760400794 | 619.750124292s |
7+
proposer_slashing | invalid_headers_are_same_sigs_are_same | 264367 | 18696661 | 39296 | 2075534 | 32739319588 | 1111 | 32760400794 | 629.831216833s |
8+
proposer_slashing | invalid_incorrect_proposer_index | 264367 | 18696661 | 39296 | 2074834 | 32739319588 | 1111 | 32760400094 | 644.338601834s |
9+
proposer_slashing | invalid_incorrect_sig_1 | 264367 | 18696661 | 39296 | 2074834 | 32739319588 | 1111 | 32760400094 | 645.197146917s |
10+
proposer_slashing | invalid_incorrect_sig_1_and_2 | 264367 | 18696661 | 39296 | 2074834 | 32739319588 | 1111 | 32760400094 | 617.346347333s |
11+
proposer_slashing | invalid_incorrect_sig_1_and_2_swap | 264367 | 18696661 | 39296 | 2074834 | 32739319588 | 1111 | 32760400094 | 654.626609834s |
12+
proposer_slashing | invalid_incorrect_sig_2 | 264367 | 18696661 | 39296 | 2074834 | 32739319588 | 1111 | 32760400094 | 615.081425625s |
13+
proposer_slashing | invalid_proposer_is_not_activated | 264367 | 18696661 | 39296 | 2074834 | 32739322013 | 1111 | 32760402519 | 663.917958208s |
14+
proposer_slashing | invalid_proposer_is_slashed | 264367 | 18696663 | 39296 | 2074834 | 32739324012 | 1111 | 32760404520 | 613.334733875s |
15+
proposer_slashing | invalid_proposer_is_withdrawn | 264367 | 18696661 | 39296 | 2074834 | 32739459732 | 1111 | 32760540238 | 608.999541125s |
16+
proposer_slashing | invalid_slots_of_different_epochs | 264367 | 18696661 | 39296 | 2074804 | 32739319588 | 1111 | 32760400064 | 606.896210875s |
17+
proposer_slashing | slashed_and_proposer_index_the_same | 264367 | 18696661 | 39296 | 2074834 | 32739319588 | 1111 | 32760400094 | 623.829820125s |

0 commit comments

Comments
 (0)