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

feat: update deneb types and spec to 1.4.0-alpha.1 #5605

Merged
merged 2 commits into from
Jun 5, 2023

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented Jun 3, 2023

update types and spec to 1.4.0-alpha.1 for devnet-6

Base automatically changed from ftb/payloadv3-rlp to unstable June 3, 2023 18:16
@g11tech g11tech force-pushed the ftb/datagasused-spec-1.4.1 branch from cfe18f3 to 7b4f44a Compare June 4, 2023 07:14
@g11tech g11tech marked this pull request as ready for review June 4, 2023 07:14
@g11tech g11tech requested a review from a team as a code owner June 4, 2023 07:14
@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 806537a Previous: dd11c95 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 803.50 us/op 840.99 us/op 0.96
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 46.099 us/op 43.895 us/op 1.05
BLS verify - blst-native 1.2215 ms/op 1.1747 ms/op 1.04
BLS verifyMultipleSignatures 3 - blst-native 2.4650 ms/op 2.3859 ms/op 1.03
BLS verifyMultipleSignatures 8 - blst-native 5.3112 ms/op 5.1204 ms/op 1.04
BLS verifyMultipleSignatures 32 - blst-native 19.225 ms/op 18.525 ms/op 1.04
BLS aggregatePubkeys 32 - blst-native 25.352 us/op 25.199 us/op 1.01
BLS aggregatePubkeys 128 - blst-native 97.900 us/op 98.999 us/op 0.99
getAttestationsForBlock 51.411 ms/op 52.096 ms/op 0.99
isKnown best case - 1 super set check 267.00 ns/op 251.00 ns/op 1.06
isKnown normal case - 2 super set checks 256.00 ns/op 250.00 ns/op 1.02
isKnown worse case - 16 super set checks 260.00 ns/op 249.00 ns/op 1.04
CheckpointStateCache - add get delete 4.9010 us/op 4.8020 us/op 1.02
validate gossip signedAggregateAndProof - struct 2.7532 ms/op 2.7375 ms/op 1.01
validate gossip attestation - struct 1.3133 ms/op 1.3035 ms/op 1.01
pickEth1Vote - no votes 1.2201 ms/op 1.2394 ms/op 0.98
pickEth1Vote - max votes 10.489 ms/op 10.294 ms/op 1.02
pickEth1Vote - Eth1Data hashTreeRoot value x2048 8.5410 ms/op 8.6386 ms/op 0.99
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 13.356 ms/op 13.413 ms/op 1.00
pickEth1Vote - Eth1Data fastSerialize value x2048 631.07 us/op 617.98 us/op 1.02
pickEth1Vote - Eth1Data fastSerialize tree x2048 8.1071 ms/op 7.9171 ms/op 1.02
bytes32 toHexString 496.00 ns/op 476.00 ns/op 1.04
bytes32 Buffer.toString(hex) 352.00 ns/op 345.00 ns/op 1.02
bytes32 Buffer.toString(hex) from Uint8Array 548.00 ns/op 536.00 ns/op 1.02
bytes32 Buffer.toString(hex) + 0x 342.00 ns/op 343.00 ns/op 1.00
Object access 1 prop 0.16500 ns/op 0.17000 ns/op 0.97
Map access 1 prop 0.16400 ns/op 0.16000 ns/op 1.02
Object get x1000 6.7760 ns/op 7.3520 ns/op 0.92
Map get x1000 0.60300 ns/op 0.61100 ns/op 0.99
Object set x1000 52.319 ns/op 50.800 ns/op 1.03
Map set x1000 43.850 ns/op 42.737 ns/op 1.03
Return object 10000 times 0.23480 ns/op 0.23290 ns/op 1.01
Throw Error 10000 times 4.1912 us/op 4.1343 us/op 1.01
fastMsgIdFn sha256 / 200 bytes 3.4210 us/op 3.4190 us/op 1.00
fastMsgIdFn h32 xxhash / 200 bytes 278.00 ns/op 274.00 ns/op 1.01
fastMsgIdFn h64 xxhash / 200 bytes 402.00 ns/op 384.00 ns/op 1.05
fastMsgIdFn sha256 / 1000 bytes 11.782 us/op 11.386 us/op 1.03
fastMsgIdFn h32 xxhash / 1000 bytes 416.00 ns/op 396.00 ns/op 1.05
fastMsgIdFn h64 xxhash / 1000 bytes 472.00 ns/op 468.00 ns/op 1.01
fastMsgIdFn sha256 / 10000 bytes 103.66 us/op 102.21 us/op 1.01
fastMsgIdFn h32 xxhash / 10000 bytes 1.8830 us/op 1.8910 us/op 1.00
fastMsgIdFn h64 xxhash / 10000 bytes 1.3330 us/op 1.3450 us/op 0.99
enrSubnets - fastDeserialize 64 bits 1.2810 us/op 1.2730 us/op 1.01
enrSubnets - ssz BitVector 64 bits 485.00 ns/op 475.00 ns/op 1.02
enrSubnets - fastDeserialize 4 bits 173.00 ns/op 164.00 ns/op 1.05
enrSubnets - ssz BitVector 4 bits 503.00 ns/op 479.00 ns/op 1.05
prioritizePeers score -10:0 att 32-0.1 sync 2-0 104.19 us/op 104.53 us/op 1.00
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 133.01 us/op 132.23 us/op 1.01
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 167.31 us/op 168.50 us/op 0.99
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 305.28 us/op 298.37 us/op 1.02
prioritizePeers score 0:0 att 64-1 sync 4-1 367.65 us/op 365.79 us/op 1.01
array of 16000 items push then shift 1.6295 us/op 1.6112 us/op 1.01
LinkedList of 16000 items push then shift 8.7980 ns/op 8.7430 ns/op 1.01
array of 16000 items push then pop 85.059 ns/op 82.366 ns/op 1.03
LinkedList of 16000 items push then pop 8.4270 ns/op 8.4200 ns/op 1.00
array of 24000 items push then shift 2.3325 us/op 2.3268 us/op 1.00
LinkedList of 24000 items push then shift 8.6540 ns/op 8.7440 ns/op 0.99
array of 24000 items push then pop 75.059 ns/op 76.647 ns/op 0.98
LinkedList of 24000 items push then pop 8.5520 ns/op 8.4350 ns/op 1.01
intersect bitArray bitLen 8 13.196 ns/op 13.125 ns/op 1.01
intersect array and set length 8 76.923 ns/op 77.164 ns/op 1.00
intersect bitArray bitLen 128 43.794 ns/op 43.520 ns/op 1.01
intersect array and set length 128 1.0480 us/op 1.0481 us/op 1.00
Buffer.concat 32 items 2.8410 us/op 2.8450 us/op 1.00
Uint8Array.set 32 items 2.8690 us/op 2.8320 us/op 1.01
transfer serialized Status (84 B) 2.1490 us/op 2.0910 us/op 1.03
copy serialized Status (84 B) 1.6750 us/op 1.7970 us/op 0.93
transfer serialized SignedVoluntaryExit (112 B) 2.1380 us/op 2.1880 us/op 0.98
copy serialized SignedVoluntaryExit (112 B) 1.8610 us/op 1.8780 us/op 0.99
transfer serialized ProposerSlashing (416 B) 3.0100 us/op 2.4530 us/op 1.23
copy serialized ProposerSlashing (416 B) 3.1370 us/op 2.2720 us/op 1.38
transfer serialized Attestation (485 B) 2.6710 us/op 2.6460 us/op 1.01
copy serialized Attestation (485 B) 2.7000 us/op 3.0290 us/op 0.89
transfer serialized AttesterSlashing (33232 B) 2.6450 us/op 3.1260 us/op 0.85
copy serialized AttesterSlashing (33232 B) 5.9600 us/op 7.1330 us/op 0.84
transfer serialized Small SignedBeaconBlock (128000 B) 3.3010 us/op 3.4410 us/op 0.96
copy serialized Small SignedBeaconBlock (128000 B) 13.383 us/op 13.711 us/op 0.98
transfer serialized Avg SignedBeaconBlock (200000 B) 3.4680 us/op 3.4810 us/op 1.00
copy serialized Avg SignedBeaconBlock (200000 B) 18.788 us/op 19.229 us/op 0.98
transfer serialized BlobsSidecar (524380 B) 3.3520 us/op 3.4660 us/op 0.97
copy serialized BlobsSidecar (524380 B) 145.99 us/op 169.17 us/op 0.86
transfer serialized Big SignedBeaconBlock (1000000 B) 3.2540 us/op 3.6230 us/op 0.90
copy serialized Big SignedBeaconBlock (1000000 B) 200.55 us/op 254.09 us/op 0.79
pass gossip attestations to forkchoice per slot 2.5591 ms/op 2.5905 ms/op 0.99
forkChoice updateHead vc 100000 bc 64 eq 0 2.0842 ms/op 2.0850 ms/op 1.00
forkChoice updateHead vc 600000 bc 64 eq 0 11.420 ms/op 11.472 ms/op 1.00
forkChoice updateHead vc 1000000 bc 64 eq 0 22.095 ms/op 21.419 ms/op 1.03
forkChoice updateHead vc 600000 bc 320 eq 0 16.488 ms/op 16.342 ms/op 1.01
forkChoice updateHead vc 600000 bc 1200 eq 0 78.903 ms/op 79.049 ms/op 1.00
forkChoice updateHead vc 600000 bc 64 eq 1000 20.136 ms/op 20.346 ms/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 10000 22.198 ms/op 23.419 ms/op 0.95
forkChoice updateHead vc 600000 bc 64 eq 300000 31.635 ms/op 30.673 ms/op 1.03
computeDeltas 3.9124 ms/op 3.8371 ms/op 1.02
computeProposerBoostScoreFromBalances 1.7636 ms/op 1.7697 ms/op 1.00
altair processAttestation - 250000 vs - 7PWei normalcase 2.1683 ms/op 2.0982 ms/op 1.03
altair processAttestation - 250000 vs - 7PWei worstcase 3.3087 ms/op 3.6094 ms/op 0.92
altair processAttestation - setStatus - 1/6 committees join 142.35 us/op 135.76 us/op 1.05
altair processAttestation - setStatus - 1/3 committees join 273.39 us/op 267.62 us/op 1.02
altair processAttestation - setStatus - 1/2 committees join 366.57 us/op 352.02 us/op 1.04
altair processAttestation - setStatus - 2/3 committees join 455.89 us/op 441.19 us/op 1.03
altair processAttestation - setStatus - 4/5 committees join 647.29 us/op 638.53 us/op 1.01
altair processAttestation - setStatus - 100% committees join 758.81 us/op 746.38 us/op 1.02
altair processBlock - 250000 vs - 7PWei normalcase 17.937 ms/op 18.753 ms/op 0.96
altair processBlock - 250000 vs - 7PWei normalcase hashState 26.676 ms/op 26.147 ms/op 1.02
altair processBlock - 250000 vs - 7PWei worstcase 49.438 ms/op 50.686 ms/op 0.98
altair processBlock - 250000 vs - 7PWei worstcase hashState 66.950 ms/op 69.138 ms/op 0.97
phase0 processBlock - 250000 vs - 7PWei normalcase 2.2906 ms/op 1.9149 ms/op 1.20
phase0 processBlock - 250000 vs - 7PWei worstcase 29.514 ms/op 27.787 ms/op 1.06
altair processEth1Data - 250000 vs - 7PWei normalcase 469.54 us/op 463.08 us/op 1.01
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 6.7260 us/op 6.6090 us/op 1.02
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 19.835 us/op 19.565 us/op 1.01
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.9890 us/op 8.6200 us/op 1.04
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.3440 us/op 6.7460 us/op 0.94
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 74.698 us/op 74.958 us/op 1.00
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 615.15 us/op 618.75 us/op 0.99
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 906.08 us/op 912.54 us/op 0.99
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 853.02 us/op 881.16 us/op 0.97
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.2221 ms/op 2.2375 ms/op 0.99
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.4952 ms/op 1.4596 ms/op 1.02
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.7747 ms/op 3.7106 ms/op 1.02
Tree 40 250000 create 305.41 ms/op 291.10 ms/op 1.05
Tree 40 250000 get(125000) 182.64 ns/op 174.78 ns/op 1.04
Tree 40 250000 set(125000) 915.09 ns/op 918.68 ns/op 1.00
Tree 40 250000 toArray() 16.733 ms/op 16.579 ms/op 1.01
Tree 40 250000 iterate all - toArray() + loop 16.736 ms/op 16.812 ms/op 1.00
Tree 40 250000 iterate all - get(i) 64.915 ms/op 65.110 ms/op 1.00
MutableVector 250000 create 10.486 ms/op 9.3426 ms/op 1.12
MutableVector 250000 get(125000) 6.3670 ns/op 6.3320 ns/op 1.01
MutableVector 250000 set(125000) 259.51 ns/op 245.29 ns/op 1.06
MutableVector 250000 toArray() 2.8196 ms/op 2.6507 ms/op 1.06
MutableVector 250000 iterate all - toArray() + loop 2.8183 ms/op 2.6934 ms/op 1.05
MutableVector 250000 iterate all - get(i) 1.5011 ms/op 1.4753 ms/op 1.02
Array 250000 create 2.6299 ms/op 2.4559 ms/op 1.07
Array 250000 clone - spread 1.0354 ms/op 1.1153 ms/op 0.93
Array 250000 get(125000) 0.52800 ns/op 0.55700 ns/op 0.95
Array 250000 set(125000) 0.59800 ns/op 0.62800 ns/op 0.95
Array 250000 iterate all - loop 108.42 us/op 81.569 us/op 1.33
effectiveBalanceIncrements clone Uint8Array 300000 24.177 us/op 25.072 us/op 0.96
effectiveBalanceIncrements clone MutableVector 300000 325.00 ns/op 347.00 ns/op 0.94
effectiveBalanceIncrements rw all Uint8Array 300000 165.55 us/op 165.49 us/op 1.00
effectiveBalanceIncrements rw all MutableVector 300000 75.420 ms/op 79.048 ms/op 0.95
phase0 afterProcessEpoch - 250000 vs - 7PWei 111.39 ms/op 109.43 ms/op 1.02
phase0 beforeProcessEpoch - 250000 vs - 7PWei 39.523 ms/op 40.042 ms/op 0.99
altair processEpoch - mainnet_e81889 300.41 ms/op 296.26 ms/op 1.01
mainnet_e81889 - altair beforeProcessEpoch 50.148 ms/op 50.105 ms/op 1.00
mainnet_e81889 - altair processJustificationAndFinalization 15.869 us/op 17.655 us/op 0.90
mainnet_e81889 - altair processInactivityUpdates 5.0979 ms/op 5.1954 ms/op 0.98
mainnet_e81889 - altair processRewardsAndPenalties 71.746 ms/op 66.892 ms/op 1.07
mainnet_e81889 - altair processRegistryUpdates 2.1620 us/op 2.5910 us/op 0.83
mainnet_e81889 - altair processSlashings 568.00 ns/op 577.00 ns/op 0.98
mainnet_e81889 - altair processEth1DataReset 532.00 ns/op 621.00 ns/op 0.86
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2293 ms/op 1.2243 ms/op 1.00
mainnet_e81889 - altair processSlashingsReset 4.9710 us/op 4.3400 us/op 1.15
mainnet_e81889 - altair processRandaoMixesReset 4.6950 us/op 4.7610 us/op 0.99
mainnet_e81889 - altair processHistoricalRootsUpdate 724.00 ns/op 1.0250 us/op 0.71
mainnet_e81889 - altair processParticipationFlagUpdates 2.4400 us/op 2.4490 us/op 1.00
mainnet_e81889 - altair processSyncCommitteeUpdates 556.00 ns/op 638.00 ns/op 0.87
mainnet_e81889 - altair afterProcessEpoch 115.05 ms/op 126.02 ms/op 0.91
phase0 processEpoch - mainnet_e58758 310.24 ms/op 354.41 ms/op 0.88
mainnet_e58758 - phase0 beforeProcessEpoch 119.26 ms/op 135.58 ms/op 0.88
mainnet_e58758 - phase0 processJustificationAndFinalization 15.056 us/op 18.743 us/op 0.80
mainnet_e58758 - phase0 processRewardsAndPenalties 56.106 ms/op 64.482 ms/op 0.87
mainnet_e58758 - phase0 processRegistryUpdates 7.3810 us/op 7.8010 us/op 0.95
mainnet_e58758 - phase0 processSlashings 487.00 ns/op 538.00 ns/op 0.91
mainnet_e58758 - phase0 processEth1DataReset 511.00 ns/op 571.00 ns/op 0.89
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 942.05 us/op 941.31 us/op 1.00
mainnet_e58758 - phase0 processSlashingsReset 3.1570 us/op 4.5410 us/op 0.70
mainnet_e58758 - phase0 processRandaoMixesReset 4.7990 us/op 4.9630 us/op 0.97
mainnet_e58758 - phase0 processHistoricalRootsUpdate 760.00 ns/op 764.00 ns/op 0.99
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.9390 us/op 4.0640 us/op 0.97
mainnet_e58758 - phase0 afterProcessEpoch 96.153 ms/op 95.992 ms/op 1.00
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.1833 ms/op 1.2232 ms/op 0.97
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4634 ms/op 1.4758 ms/op 0.99
altair processInactivityUpdates - 250000 normalcase 19.612 ms/op 26.004 ms/op 0.75
altair processInactivityUpdates - 250000 worstcase 21.996 ms/op 26.496 ms/op 0.83
phase0 processRegistryUpdates - 250000 normalcase 5.9340 us/op 6.6830 us/op 0.89
phase0 processRegistryUpdates - 250000 badcase_full_deposits 221.32 us/op 239.91 us/op 0.92
phase0 processRegistryUpdates - 250000 worstcase 0.5 118.33 ms/op 127.37 ms/op 0.93
altair processRewardsAndPenalties - 250000 normalcase 47.728 ms/op 66.923 ms/op 0.71
altair processRewardsAndPenalties - 250000 worstcase 51.381 ms/op 67.659 ms/op 0.76
phase0 getAttestationDeltas - 250000 normalcase 6.2142 ms/op 6.9680 ms/op 0.89
phase0 getAttestationDeltas - 250000 worstcase 6.4500 ms/op 6.4480 ms/op 1.00
phase0 processSlashings - 250000 worstcase 3.5170 ms/op 3.3840 ms/op 1.04
altair processSyncCommitteeUpdates - 250000 167.68 ms/op 173.64 ms/op 0.97
BeaconState.hashTreeRoot - No change 258.00 ns/op 332.00 ns/op 0.78
BeaconState.hashTreeRoot - 1 full validator 48.619 us/op 54.182 us/op 0.90
BeaconState.hashTreeRoot - 32 full validator 493.01 us/op 522.13 us/op 0.94
BeaconState.hashTreeRoot - 512 full validator 4.9646 ms/op 5.4598 ms/op 0.91
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 65.241 us/op 63.161 us/op 1.03
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 855.71 us/op 898.54 us/op 0.95
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 11.071 ms/op 11.129 ms/op 0.99
BeaconState.hashTreeRoot - 1 balances 47.697 us/op 48.039 us/op 0.99
BeaconState.hashTreeRoot - 32 balances 441.28 us/op 430.38 us/op 1.03
BeaconState.hashTreeRoot - 512 balances 4.4030 ms/op 4.4891 ms/op 0.98
BeaconState.hashTreeRoot - 250000 balances 72.035 ms/op 77.509 ms/op 0.93
aggregationBits - 2048 els - zipIndexesInBitList 16.284 us/op 16.077 us/op 1.01
regular array get 100000 times 32.957 us/op 44.925 us/op 0.73
wrappedArray get 100000 times 32.840 us/op 33.818 us/op 0.97
arrayWithProxy get 100000 times 16.237 ms/op 16.063 ms/op 1.01
ssz.Root.equals 563.00 ns/op 567.00 ns/op 0.99
byteArrayEquals 542.00 ns/op 542.00 ns/op 1.00
shuffle list - 16384 els 6.8827 ms/op 7.0102 ms/op 0.98
shuffle list - 250000 els 100.87 ms/op 103.00 ms/op 0.98
processSlot - 1 slots 8.4770 us/op 9.3080 us/op 0.91
processSlot - 32 slots 1.3939 ms/op 1.4197 ms/op 0.98
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 30.869 ms/op 35.760 ms/op 0.86
getCommitteeAssignments - req 1 vs - 250000 vc 2.8742 ms/op 2.9842 ms/op 0.96
getCommitteeAssignments - req 100 vs - 250000 vc 4.0823 ms/op 4.2446 ms/op 0.96
getCommitteeAssignments - req 1000 vs - 250000 vc 4.4431 ms/op 4.5539 ms/op 0.98
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.3600 ns/op 4.5000 ns/op 0.97
state getBlockRootAtSlot - 250000 vs - 7PWei 938.07 ns/op 723.07 ns/op 1.30
computeProposers - vc 250000 10.576 ms/op 11.183 ms/op 0.95
computeEpochShuffling - vc 250000 101.19 ms/op 105.66 ms/op 0.96
getNextSyncCommittee - vc 250000 175.37 ms/op 188.21 ms/op 0.93
computeSigningRoot for AttestationData 13.763 us/op 13.840 us/op 0.99
hash AttestationData serialized data then Buffer.toString(base64) 2.4040 us/op 2.5474 us/op 0.94
toHexString serialized data 1.1107 us/op 1.1353 us/op 0.98
Buffer.toString(base64) 307.43 ns/op 322.13 ns/op 0.95

by benchmarkbot/action

@g11tech g11tech merged commit e9e5bc5 into unstable Jun 5, 2023
@g11tech g11tech deleted the ftb/datagasused-spec-1.4.1 branch June 5, 2023 10:30
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.9.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.

3 participants