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

refactor: cleanup deneb types and use max blob commitments per block for deneb containers #5929

Merged
merged 2 commits into from
Sep 4, 2023

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented Sep 2, 2023

@g11tech g11tech requested a review from a team as a code owner September 2, 2023 09:22
@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 3968172 Previous: 3b5941a Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 663.35 us/op 912.58 us/op 0.73
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 80.279 us/op 79.769 us/op 1.01
BLS verify - blst-native 1.2521 ms/op 1.3270 ms/op 0.94
BLS verifyMultipleSignatures 3 - blst-native 2.6307 ms/op 2.8263 ms/op 0.93
BLS verifyMultipleSignatures 8 - blst-native 5.7675 ms/op 6.4779 ms/op 0.89
BLS verifyMultipleSignatures 32 - blst-native 21.102 ms/op 23.397 ms/op 0.90
BLS verifyMultipleSignatures 64 - blst-native 42.352 ms/op 45.842 ms/op 0.92
BLS verifyMultipleSignatures 128 - blst-native 82.467 ms/op 89.521 ms/op 0.92
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2751 ms/op 1.4431 ms/op 0.88
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.4398 ms/op 1.5194 ms/op 0.95
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.2169 ms/op 2.3623 ms/op 0.94
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.2538 ms/op 3.4711 ms/op 0.94
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.0525 ms/op 5.6978 ms/op 1.06
BLS aggregatePubkeys 32 - blst-native 24.608 us/op 26.397 us/op 0.93
BLS aggregatePubkeys 128 - blst-native 97.473 us/op 103.23 us/op 0.94
getAttestationsForBlock 35.197 ms/op 35.947 ms/op 0.98
isKnown best case - 1 super set check 275.00 ns/op 278.00 ns/op 0.99
isKnown normal case - 2 super set checks 270.00 ns/op 273.00 ns/op 0.99
isKnown worse case - 16 super set checks 273.00 ns/op 260.00 ns/op 1.05
CheckpointStateCache - add get delete 5.0670 us/op 5.1900 us/op 0.98
validate api signedAggregateAndProof - struct 2.7045 ms/op 2.8277 ms/op 0.96
validate gossip signedAggregateAndProof - struct 2.7026 ms/op 2.7947 ms/op 0.97
validate gossip attestation - vc 640000 1.3073 ms/op 1.3577 ms/op 0.96
batch validate gossip attestation - vc 640000 - chunk 32 143.25 us/op 154.01 us/op 0.93
batch validate gossip attestation - vc 640000 - chunk 64 124.13 us/op 137.79 us/op 0.90
batch validate gossip attestation - vc 640000 - chunk 128 114.77 us/op 123.34 us/op 0.93
batch validate gossip attestation - vc 640000 - chunk 256 109.92 us/op 116.77 us/op 0.94
pickEth1Vote - no votes 1.2123 ms/op 1.2473 ms/op 0.97
pickEth1Vote - max votes 10.464 ms/op 8.5080 ms/op 1.23
pickEth1Vote - Eth1Data hashTreeRoot value x2048 8.4127 ms/op 8.5377 ms/op 0.99
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 14.385 ms/op 16.158 ms/op 0.89
pickEth1Vote - Eth1Data fastSerialize value x2048 561.38 us/op 636.33 us/op 0.88
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.4834 ms/op 7.5802 ms/op 0.86
bytes32 toHexString 456.00 ns/op 479.00 ns/op 0.95
bytes32 Buffer.toString(hex) 289.00 ns/op 296.00 ns/op 0.98
bytes32 Buffer.toString(hex) from Uint8Array 410.00 ns/op 439.00 ns/op 0.93
bytes32 Buffer.toString(hex) + 0x 287.00 ns/op 282.00 ns/op 1.02
Object access 1 prop 0.15400 ns/op 0.14700 ns/op 1.05
Map access 1 prop 0.14000 ns/op 0.14600 ns/op 0.96
Object get x1000 7.1680 ns/op 7.3610 ns/op 0.97
Map get x1000 0.59300 ns/op 0.62100 ns/op 0.95
Object set x1000 47.350 ns/op 51.627 ns/op 0.92
Map set x1000 37.518 ns/op 40.825 ns/op 0.92
Return object 10000 times 0.23040 ns/op 0.23900 ns/op 0.96
Throw Error 10000 times 3.7344 us/op 4.0255 us/op 0.93
fastMsgIdFn sha256 / 200 bytes 3.1960 us/op 3.2570 us/op 0.98
fastMsgIdFn h32 xxhash / 200 bytes 259.00 ns/op 284.00 ns/op 0.91
fastMsgIdFn h64 xxhash / 200 bytes 329.00 ns/op 352.00 ns/op 0.93
fastMsgIdFn sha256 / 1000 bytes 11.165 us/op 11.438 us/op 0.98
fastMsgIdFn h32 xxhash / 1000 bytes 380.00 ns/op 431.00 ns/op 0.88
fastMsgIdFn h64 xxhash / 1000 bytes 398.00 ns/op 429.00 ns/op 0.93
fastMsgIdFn sha256 / 10000 bytes 102.24 us/op 103.40 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 1.8590 us/op 1.9200 us/op 0.97
fastMsgIdFn h64 xxhash / 10000 bytes 1.2660 us/op 1.2950 us/op 0.98
enrSubnets - fastDeserialize 64 bits 1.1700 us/op 1.1840 us/op 0.99
enrSubnets - ssz BitVector 64 bits 401.00 ns/op 437.00 ns/op 0.92
enrSubnets - fastDeserialize 4 bits 155.00 ns/op 159.00 ns/op 0.97
enrSubnets - ssz BitVector 4 bits 406.00 ns/op 412.00 ns/op 0.99
prioritizePeers score -10:0 att 32-0.1 sync 2-0 93.895 us/op 95.952 us/op 0.98
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 115.80 us/op 122.22 us/op 0.95
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 155.10 us/op 151.64 us/op 1.02
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 278.53 us/op 281.02 us/op 0.99
prioritizePeers score 0:0 att 64-1 sync 4-1 329.44 us/op 329.94 us/op 1.00
array of 16000 items push then shift 1.5847 us/op 1.6006 us/op 0.99
LinkedList of 16000 items push then shift 8.8060 ns/op 8.8260 ns/op 1.00
array of 16000 items push then pop 67.476 ns/op 79.188 ns/op 0.85
LinkedList of 16000 items push then pop 8.4610 ns/op 8.7180 ns/op 0.97
array of 24000 items push then shift 2.3024 us/op 2.3607 us/op 0.98
LinkedList of 24000 items push then shift 8.5510 ns/op 8.8590 ns/op 0.97
array of 24000 items push then pop 83.805 ns/op 105.98 ns/op 0.79
LinkedList of 24000 items push then pop 8.6170 ns/op 8.5000 ns/op 1.01
intersect bitArray bitLen 8 6.7040 ns/op 6.6720 ns/op 1.00
intersect array and set length 8 53.053 ns/op 53.850 ns/op 0.99
intersect bitArray bitLen 128 31.511 ns/op 31.132 ns/op 1.01
intersect array and set length 128 733.66 ns/op 729.58 ns/op 1.01
bitArray.getTrueBitIndexes() bitLen 128 1.3820 us/op 1.3210 us/op 1.05
bitArray.getTrueBitIndexes() bitLen 248 2.3150 us/op 2.2820 us/op 1.01
bitArray.getTrueBitIndexes() bitLen 512 4.4990 us/op 4.5440 us/op 0.99
Buffer.concat 32 items 896.00 ns/op 920.00 ns/op 0.97
Uint8Array.set 32 items 2.1740 us/op 1.7520 us/op 1.24
Set add up to 64 items then delete first 4.1776 us/op 4.1743 us/op 1.00
OrderedSet add up to 64 items then delete first 5.2232 us/op 5.3188 us/op 0.98
Set add up to 64 items then delete last 4.4389 us/op 4.6057 us/op 0.96
OrderedSet add up to 64 items then delete last 5.5417 us/op 5.8926 us/op 0.94
Set add up to 64 items then delete middle 4.4128 us/op 4.8123 us/op 0.92
OrderedSet add up to 64 items then delete middle 6.8839 us/op 7.0244 us/op 0.98
Set add up to 128 items then delete first 9.0182 us/op 9.2158 us/op 0.98
OrderedSet add up to 128 items then delete first 11.947 us/op 13.313 us/op 0.90
Set add up to 128 items then delete last 8.8329 us/op 9.7959 us/op 0.90
OrderedSet add up to 128 items then delete last 11.218 us/op 11.636 us/op 0.96
Set add up to 128 items then delete middle 8.7532 us/op 9.1874 us/op 0.95
OrderedSet add up to 128 items then delete middle 16.388 us/op 17.113 us/op 0.96
Set add up to 256 items then delete first 18.305 us/op 19.723 us/op 0.93
OrderedSet add up to 256 items then delete first 24.207 us/op 26.244 us/op 0.92
Set add up to 256 items then delete last 17.678 us/op 19.670 us/op 0.90
OrderedSet add up to 256 items then delete last 22.473 us/op 24.612 us/op 0.91
Set add up to 256 items then delete middle 17.569 us/op 18.805 us/op 0.93
OrderedSet add up to 256 items then delete middle 43.652 us/op 47.192 us/op 0.92
transfer serialized Status (84 B) 1.7910 us/op 1.8320 us/op 0.98
copy serialized Status (84 B) 1.4530 us/op 1.5850 us/op 0.92
transfer serialized SignedVoluntaryExit (112 B) 1.8360 us/op 2.0810 us/op 0.88
copy serialized SignedVoluntaryExit (112 B) 1.4810 us/op 1.6270 us/op 0.91
transfer serialized ProposerSlashing (416 B) 2.8980 us/op 2.0920 us/op 1.39
copy serialized ProposerSlashing (416 B) 2.8910 us/op 1.9380 us/op 1.49
transfer serialized Attestation (485 B) 3.0850 us/op 2.7510 us/op 1.12
copy serialized Attestation (485 B) 2.8880 us/op 2.7420 us/op 1.05
transfer serialized AttesterSlashing (33232 B) 2.9480 us/op 2.7180 us/op 1.08
copy serialized AttesterSlashing (33232 B) 5.4210 us/op 6.0490 us/op 0.90
transfer serialized Small SignedBeaconBlock (128000 B) 2.7600 us/op 2.4450 us/op 1.13
copy serialized Small SignedBeaconBlock (128000 B) 12.112 us/op 12.698 us/op 0.95
transfer serialized Avg SignedBeaconBlock (200000 B) 3.0700 us/op 2.6790 us/op 1.15
copy serialized Avg SignedBeaconBlock (200000 B) 17.412 us/op 18.490 us/op 0.94
transfer serialized BlobsSidecar (524380 B) 2.9060 us/op 2.8440 us/op 1.02
copy serialized BlobsSidecar (524380 B) 80.412 us/op 90.536 us/op 0.89
transfer serialized Big SignedBeaconBlock (1000000 B) 3.0920 us/op 3.0980 us/op 1.00
copy serialized Big SignedBeaconBlock (1000000 B) 167.79 us/op 160.86 us/op 1.04
pass gossip attestations to forkchoice per slot 3.6895 ms/op 3.8394 ms/op 0.96
forkChoice updateHead vc 100000 bc 64 eq 0 653.11 us/op 711.32 us/op 0.92
forkChoice updateHead vc 600000 bc 64 eq 0 5.0352 ms/op 5.5618 ms/op 0.91
forkChoice updateHead vc 1000000 bc 64 eq 0 6.7689 ms/op 8.0563 ms/op 0.84
forkChoice updateHead vc 600000 bc 320 eq 0 4.0420 ms/op 4.2637 ms/op 0.95
forkChoice updateHead vc 600000 bc 1200 eq 0 4.1934 ms/op 4.3665 ms/op 0.96
forkChoice updateHead vc 600000 bc 7200 eq 0 5.4290 ms/op 5.2152 ms/op 1.04
forkChoice updateHead vc 600000 bc 64 eq 1000 11.162 ms/op 11.585 ms/op 0.96
forkChoice updateHead vc 600000 bc 64 eq 10000 12.135 ms/op 12.373 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 300000 15.439 ms/op 17.013 ms/op 0.91
computeDeltas 500000 validators 300 proto nodes 6.1825 ms/op 6.4292 ms/op 0.96
computeDeltas 500000 validators 1200 proto nodes 6.0255 ms/op 6.2698 ms/op 0.96
computeDeltas 500000 validators 7200 proto nodes 6.0525 ms/op 6.2328 ms/op 0.97
computeDeltas 750000 validators 300 proto nodes 9.1708 ms/op 9.5423 ms/op 0.96
computeDeltas 750000 validators 1200 proto nodes 9.0901 ms/op 9.4905 ms/op 0.96
computeDeltas 750000 validators 7200 proto nodes 9.1304 ms/op 9.4577 ms/op 0.97
computeDeltas 1400000 validators 300 proto nodes 17.342 ms/op 18.344 ms/op 0.95
computeDeltas 1400000 validators 1200 proto nodes 17.147 ms/op 18.133 ms/op 0.95
computeDeltas 1400000 validators 7200 proto nodes 17.141 ms/op 18.014 ms/op 0.95
computeDeltas 2100000 validators 300 proto nodes 26.153 ms/op 26.668 ms/op 0.98
computeDeltas 2100000 validators 1200 proto nodes 25.701 ms/op 26.808 ms/op 0.96
computeDeltas 2100000 validators 7200 proto nodes 26.072 ms/op 26.901 ms/op 0.97
computeProposerBoostScoreFromBalances 500000 validators 3.1310 ms/op 3.2688 ms/op 0.96
computeProposerBoostScoreFromBalances 750000 validators 3.1180 ms/op 3.2542 ms/op 0.96
computeProposerBoostScoreFromBalances 1400000 validators 3.1155 ms/op 3.2646 ms/op 0.95
computeProposerBoostScoreFromBalances 2100000 validators 3.1087 ms/op 3.2634 ms/op 0.95
altair processAttestation - 250000 vs - 7PWei normalcase 2.1830 ms/op 2.3925 ms/op 0.91
altair processAttestation - 250000 vs - 7PWei worstcase 3.2110 ms/op 3.4463 ms/op 0.93
altair processAttestation - setStatus - 1/6 committees join 170.93 us/op 184.52 us/op 0.93
altair processAttestation - setStatus - 1/3 committees join 331.37 us/op 380.84 us/op 0.87
altair processAttestation - setStatus - 1/2 committees join 450.93 us/op 492.22 us/op 0.92
altair processAttestation - setStatus - 2/3 committees join 579.70 us/op 614.53 us/op 0.94
altair processAttestation - setStatus - 4/5 committees join 756.90 us/op 849.90 us/op 0.89
altair processAttestation - setStatus - 100% committees join 902.55 us/op 1.0299 ms/op 0.88
altair processBlock - 250000 vs - 7PWei normalcase 9.1911 ms/op 10.456 ms/op 0.88
altair processBlock - 250000 vs - 7PWei normalcase hashState 16.770 ms/op 17.248 ms/op 0.97
altair processBlock - 250000 vs - 7PWei worstcase 37.913 ms/op 39.654 ms/op 0.96
altair processBlock - 250000 vs - 7PWei worstcase hashState 58.898 ms/op 60.656 ms/op 0.97
phase0 processBlock - 250000 vs - 7PWei normalcase 2.3489 ms/op 2.6697 ms/op 0.88
phase0 processBlock - 250000 vs - 7PWei worstcase 28.755 ms/op 31.440 ms/op 0.91
altair processEth1Data - 250000 vs - 7PWei normalcase 453.37 us/op 572.96 us/op 0.79
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 8.7580 us/op 11.470 us/op 0.76
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 60.564 us/op 63.453 us/op 0.95
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 16.288 us/op 23.514 us/op 0.69
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 10.468 us/op 13.234 us/op 0.79
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 113.42 us/op 150.56 us/op 0.75
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1092 ms/op 1.3434 ms/op 0.83
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.4638 ms/op 1.5671 ms/op 0.93
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.4794 ms/op 1.5812 ms/op 0.94
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.8180 ms/op 3.6675 ms/op 0.77
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.2343 ms/op 2.4690 ms/op 0.90
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.5271 ms/op 4.8511 ms/op 0.93
Tree 40 250000 create 300.84 ms/op 346.05 ms/op 0.87
Tree 40 250000 get(125000) 188.83 ns/op 199.34 ns/op 0.95
Tree 40 250000 set(125000) 833.41 ns/op 946.66 ns/op 0.88
Tree 40 250000 toArray() 17.140 ms/op 19.946 ms/op 0.86
Tree 40 250000 iterate all - toArray() + loop 17.321 ms/op 20.699 ms/op 0.84
Tree 40 250000 iterate all - get(i) 64.037 ms/op 71.618 ms/op 0.89
MutableVector 250000 create 12.484 ms/op 10.755 ms/op 1.16
MutableVector 250000 get(125000) 6.2770 ns/op 6.6620 ns/op 0.94
MutableVector 250000 set(125000) 238.00 ns/op 263.79 ns/op 0.90
MutableVector 250000 toArray() 2.8080 ms/op 3.3974 ms/op 0.83
MutableVector 250000 iterate all - toArray() + loop 2.9042 ms/op 3.2514 ms/op 0.89
MutableVector 250000 iterate all - get(i) 1.4880 ms/op 1.5375 ms/op 0.97
Array 250000 create 2.5845 ms/op 3.1239 ms/op 0.83
Array 250000 clone - spread 1.0835 ms/op 1.2131 ms/op 0.89
Array 250000 get(125000) 0.53200 ns/op 0.61000 ns/op 0.87
Array 250000 set(125000) 0.60700 ns/op 0.65900 ns/op 0.92
Array 250000 iterate all - loop 79.357 us/op 84.418 us/op 0.94
effectiveBalanceIncrements clone Uint8Array 300000 25.291 us/op 35.634 us/op 0.71
effectiveBalanceIncrements clone MutableVector 300000 317.00 ns/op 341.00 ns/op 0.93
effectiveBalanceIncrements rw all Uint8Array 300000 172.21 us/op 178.68 us/op 0.96
effectiveBalanceIncrements rw all MutableVector 300000 76.453 ms/op 86.259 ms/op 0.89
phase0 afterProcessEpoch - 250000 vs - 7PWei 108.94 ms/op 115.75 ms/op 0.94
phase0 beforeProcessEpoch - 250000 vs - 7PWei 36.809 ms/op 32.568 ms/op 1.13
altair processEpoch - mainnet_e81889 308.75 ms/op 324.47 ms/op 0.95
mainnet_e81889 - altair beforeProcessEpoch 59.916 ms/op 61.136 ms/op 0.98
mainnet_e81889 - altair processJustificationAndFinalization 15.412 us/op 14.833 us/op 1.04
mainnet_e81889 - altair processInactivityUpdates 4.9510 ms/op 6.3907 ms/op 0.77
mainnet_e81889 - altair processRewardsAndPenalties 65.211 ms/op 67.545 ms/op 0.97
mainnet_e81889 - altair processRegistryUpdates 2.7630 us/op 2.1870 us/op 1.26
mainnet_e81889 - altair processSlashings 433.00 ns/op 462.00 ns/op 0.94
mainnet_e81889 - altair processEth1DataReset 530.00 ns/op 528.00 ns/op 1.00
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2131 ms/op 1.2609 ms/op 0.96
mainnet_e81889 - altair processSlashingsReset 2.5460 us/op 3.0360 us/op 0.84
mainnet_e81889 - altair processRandaoMixesReset 4.8160 us/op 5.4120 us/op 0.89
mainnet_e81889 - altair processHistoricalRootsUpdate 653.00 ns/op 780.00 ns/op 0.84
mainnet_e81889 - altair processParticipationFlagUpdates 2.1890 us/op 1.9490 us/op 1.12
mainnet_e81889 - altair processSyncCommitteeUpdates 542.00 ns/op 619.00 ns/op 0.88
mainnet_e81889 - altair afterProcessEpoch 124.28 ms/op 122.26 ms/op 1.02
capella processEpoch - mainnet_e217614 988.31 ms/op 1.0279 s/op 0.96
mainnet_e217614 - capella beforeProcessEpoch 228.87 ms/op 237.85 ms/op 0.96
mainnet_e217614 - capella processJustificationAndFinalization 13.278 us/op 12.596 us/op 1.05
mainnet_e217614 - capella processInactivityUpdates 14.794 ms/op 16.519 ms/op 0.90
mainnet_e217614 - capella processRewardsAndPenalties 275.51 ms/op 279.49 ms/op 0.99
mainnet_e217614 - capella processRegistryUpdates 21.379 us/op 19.413 us/op 1.10
mainnet_e217614 - capella processSlashings 478.00 ns/op 1.1730 us/op 0.41
mainnet_e217614 - capella processEth1DataReset 473.00 ns/op 445.00 ns/op 1.06
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.9332 ms/op 4.0276 ms/op 0.98
mainnet_e217614 - capella processSlashingsReset 2.9690 us/op 2.1160 us/op 1.40
mainnet_e217614 - capella processRandaoMixesReset 6.0500 us/op 4.1690 us/op 1.45
mainnet_e217614 - capella processHistoricalRootsUpdate 663.00 ns/op 614.00 ns/op 1.08
mainnet_e217614 - capella processParticipationFlagUpdates 2.1120 us/op 1.4210 us/op 1.49
mainnet_e217614 - capella afterProcessEpoch 300.62 ms/op 294.78 ms/op 1.02
phase0 processEpoch - mainnet_e58758 325.93 ms/op 329.52 ms/op 0.99
mainnet_e58758 - phase0 beforeProcessEpoch 103.14 ms/op 117.35 ms/op 0.88
mainnet_e58758 - phase0 processJustificationAndFinalization 13.636 us/op 15.546 us/op 0.88
mainnet_e58758 - phase0 processRewardsAndPenalties 53.318 ms/op 44.295 ms/op 1.20
mainnet_e58758 - phase0 processRegistryUpdates 10.900 us/op 8.8420 us/op 1.23
mainnet_e58758 - phase0 processSlashings 498.00 ns/op 504.00 ns/op 0.99
mainnet_e58758 - phase0 processEth1DataReset 426.00 ns/op 412.00 ns/op 1.03
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 939.98 us/op 1.0003 ms/op 0.94
mainnet_e58758 - phase0 processSlashingsReset 2.0340 us/op 2.1770 us/op 0.93
mainnet_e58758 - phase0 processRandaoMixesReset 4.0070 us/op 3.6030 us/op 1.11
mainnet_e58758 - phase0 processHistoricalRootsUpdate 418.00 ns/op 445.00 ns/op 0.94
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.5570 us/op 3.5090 us/op 1.01
mainnet_e58758 - phase0 afterProcessEpoch 95.421 ms/op 96.970 ms/op 0.98
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2868 ms/op 1.2456 ms/op 1.03
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4827 ms/op 1.4439 ms/op 1.03
altair processInactivityUpdates - 250000 normalcase 17.955 ms/op 18.784 ms/op 0.96
altair processInactivityUpdates - 250000 worstcase 18.421 ms/op 19.187 ms/op 0.96
phase0 processRegistryUpdates - 250000 normalcase 9.9430 us/op 8.0590 us/op 1.23
phase0 processRegistryUpdates - 250000 badcase_full_deposits 270.13 us/op 455.42 us/op 0.59
phase0 processRegistryUpdates - 250000 worstcase 0.5 115.52 ms/op 118.95 ms/op 0.97
altair processRewardsAndPenalties - 250000 normalcase 46.081 ms/op 40.341 ms/op 1.14
altair processRewardsAndPenalties - 250000 worstcase 46.339 ms/op 41.054 ms/op 1.13
phase0 getAttestationDeltas - 250000 normalcase 7.7688 ms/op 7.8998 ms/op 0.98
phase0 getAttestationDeltas - 250000 worstcase 7.6804 ms/op 7.9426 ms/op 0.97
phase0 processSlashings - 250000 worstcase 2.4189 ms/op 2.2825 ms/op 1.06
altair processSyncCommitteeUpdates - 250000 146.36 ms/op 153.46 ms/op 0.95
BeaconState.hashTreeRoot - No change 251.00 ns/op 258.00 ns/op 0.97
BeaconState.hashTreeRoot - 1 full validator 49.743 us/op 50.571 us/op 0.98
BeaconState.hashTreeRoot - 32 full validator 501.23 us/op 538.37 us/op 0.93
BeaconState.hashTreeRoot - 512 full validator 5.1763 ms/op 5.7188 ms/op 0.91
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 63.225 us/op 62.600 us/op 1.01
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 861.73 us/op 857.57 us/op 1.00
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 10.884 ms/op 11.000 ms/op 0.99
BeaconState.hashTreeRoot - 1 balances 49.723 us/op 48.274 us/op 1.03
BeaconState.hashTreeRoot - 32 balances 438.32 us/op 449.58 us/op 0.97
BeaconState.hashTreeRoot - 512 balances 4.3042 ms/op 4.3149 ms/op 1.00
BeaconState.hashTreeRoot - 250000 balances 72.966 ms/op 71.491 ms/op 1.02
aggregationBits - 2048 els - zipIndexesInBitList 14.150 us/op 16.076 us/op 0.88
regular array get 100000 times 43.116 us/op 33.062 us/op 1.30
wrappedArray get 100000 times 32.776 us/op 32.970 us/op 0.99
arrayWithProxy get 100000 times 14.351 ms/op 13.963 ms/op 1.03
ssz.Root.equals 203.00 ns/op 221.00 ns/op 0.92
byteArrayEquals 196.00 ns/op 216.00 ns/op 0.91
shuffle list - 16384 els 7.0084 ms/op 6.9384 ms/op 1.01
shuffle list - 250000 els 102.69 ms/op 101.87 ms/op 1.01
processSlot - 1 slots 8.0950 us/op 8.1220 us/op 1.00
processSlot - 32 slots 1.3079 ms/op 1.3257 ms/op 0.99
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 50.392 ms/op 46.756 ms/op 1.08
getCommitteeAssignments - req 1 vs - 250000 vc 2.4639 ms/op 2.5073 ms/op 0.98
getCommitteeAssignments - req 100 vs - 250000 vc 3.6762 ms/op 3.7915 ms/op 0.97
getCommitteeAssignments - req 1000 vs - 250000 vc 4.0099 ms/op 4.0525 ms/op 0.99
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.5600 ns/op 5.0700 ns/op 0.90
state getBlockRootAtSlot - 250000 vs - 7PWei 479.99 ns/op 759.84 ns/op 0.63
computeProposers - vc 250000 8.7188 ms/op 9.1426 ms/op 0.95
computeEpochShuffling - vc 250000 101.58 ms/op 103.79 ms/op 0.98
getNextSyncCommittee - vc 250000 144.46 ms/op 148.42 ms/op 0.97
computeSigningRoot for AttestationData 12.592 us/op 12.584 us/op 1.00
hash AttestationData serialized data then Buffer.toString(base64) 2.2700 us/op 2.3054 us/op 0.98
toHexString serialized data 1.0613 us/op 1.0481 us/op 1.01
Buffer.toString(base64) 210.03 ns/op 216.96 ns/op 0.97

by benchmarkbot/action

dapplion
dapplion previously approved these changes Sep 2, 2023
@wemeetagain wemeetagain merged commit 6646e23 into unstable Sep 4, 2023
10 of 11 checks passed
@wemeetagain wemeetagain deleted the deneb-types-cleanup branch September 4, 2023 02:26
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.12.0 🎉

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.

4 participants