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

Add zhejiang network option #5132

Merged
merged 1 commit into from
Feb 12, 2023
Merged

Add zhejiang network option #5132

merged 1 commit into from
Feb 12, 2023

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented Feb 11, 2023

Add zhejiang network option: use with --network zhejiang

Closes #5070

@g11tech g11tech requested a review from a team as a code owner February 11, 2023 08:05
@g11tech g11tech enabled auto-merge (squash) February 11, 2023 08:09
@github-actions
Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: a7ca47b Previous: c152fe7 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 920.73 us/op 664.56 us/op 1.39
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 46.919 us/op 67.176 us/op 0.70
BLS verify - blst-native 1.2058 ms/op 1.2728 ms/op 0.95
BLS verifyMultipleSignatures 3 - blst-native 2.4513 ms/op 2.5889 ms/op 0.95
BLS verifyMultipleSignatures 8 - blst-native 5.2569 ms/op 5.5569 ms/op 0.95
BLS verifyMultipleSignatures 32 - blst-native 18.994 ms/op 20.051 ms/op 0.95
BLS aggregatePubkeys 32 - blst-native 25.525 us/op 27.570 us/op 0.93
BLS aggregatePubkeys 128 - blst-native 99.377 us/op 105.68 us/op 0.94
getAttestationsForBlock 51.878 ms/op 58.094 ms/op 0.89
isKnown best case - 1 super set check 281.00 ns/op 276.00 ns/op 1.02
isKnown normal case - 2 super set checks 267.00 ns/op 283.00 ns/op 0.94
isKnown worse case - 16 super set checks 272.00 ns/op 270.00 ns/op 1.01
CheckpointStateCache - add get delete 5.0480 us/op 6.2410 us/op 0.81
validate gossip signedAggregateAndProof - struct 2.7416 ms/op 2.8784 ms/op 0.95
validate gossip attestation - struct 1.3122 ms/op 1.3687 ms/op 0.96
pickEth1Vote - no votes 1.3050 ms/op 1.4084 ms/op 0.93
pickEth1Vote - max votes 11.298 ms/op 12.172 ms/op 0.93
pickEth1Vote - Eth1Data hashTreeRoot value x2048 8.9880 ms/op 9.8660 ms/op 0.91
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 13.674 ms/op 16.332 ms/op 0.84
pickEth1Vote - Eth1Data fastSerialize value x2048 689.91 us/op 856.39 us/op 0.81
pickEth1Vote - Eth1Data fastSerialize tree x2048 7.5957 ms/op 5.9765 ms/op 1.27
bytes32 toHexString 482.00 ns/op 683.00 ns/op 0.71
bytes32 Buffer.toString(hex) 343.00 ns/op 436.00 ns/op 0.79
bytes32 Buffer.toString(hex) from Uint8Array 542.00 ns/op 632.00 ns/op 0.86
bytes32 Buffer.toString(hex) + 0x 348.00 ns/op 425.00 ns/op 0.82
Object access 1 prop 0.16900 ns/op 0.20000 ns/op 0.84
Map access 1 prop 0.16900 ns/op 0.17200 ns/op 0.98
Object get x1000 6.4290 ns/op 6.9140 ns/op 0.93
Map get x1000 0.60800 ns/op 0.69100 ns/op 0.88
Object set x1000 50.815 ns/op 71.743 ns/op 0.71
Map set x1000 41.672 ns/op 56.224 ns/op 0.74
Return object 10000 times 0.23520 ns/op 0.25930 ns/op 0.91
Throw Error 10000 times 4.0747 us/op 4.3955 us/op 0.93
fastMsgIdFn sha256 / 200 bytes 3.3680 us/op 3.5630 us/op 0.95
fastMsgIdFn h32 xxhash / 200 bytes 274.00 ns/op 316.00 ns/op 0.87
fastMsgIdFn h64 xxhash / 200 bytes 380.00 ns/op 482.00 ns/op 0.79
fastMsgIdFn sha256 / 1000 bytes 11.408 us/op 11.971 us/op 0.95
fastMsgIdFn h32 xxhash / 1000 bytes 402.00 ns/op 466.00 ns/op 0.86
fastMsgIdFn h64 xxhash / 1000 bytes 450.00 ns/op 530.00 ns/op 0.85
fastMsgIdFn sha256 / 10000 bytes 102.75 us/op 103.92 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 2.0630 us/op 1.9450 us/op 1.06
fastMsgIdFn h64 xxhash / 10000 bytes 1.5180 us/op 1.3840 us/op 1.10
enrSubnets - fastDeserialize 64 bits 1.2580 us/op 1.2860 us/op 0.98
enrSubnets - ssz BitVector 64 bits 474.00 ns/op 481.00 ns/op 0.99
enrSubnets - fastDeserialize 4 bits 167.00 ns/op 175.00 ns/op 0.95
enrSubnets - ssz BitVector 4 bits 475.00 ns/op 484.00 ns/op 0.98
prioritizePeers score -10:0 att 32-0.1 sync 2-0 93.648 us/op 103.28 us/op 0.91
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 119.08 us/op 146.64 us/op 0.81
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 163.37 us/op 167.33 us/op 0.98
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 298.45 us/op 374.67 us/op 0.80
prioritizePeers score 0:0 att 64-1 sync 4-1 354.18 us/op 416.88 us/op 0.85
array of 16000 items push then shift 1.6138 us/op 1.7853 us/op 0.90
LinkedList of 16000 items push then shift 8.7710 ns/op 9.3280 ns/op 0.94
array of 16000 items push then pop 79.420 ns/op 134.27 ns/op 0.59
LinkedList of 16000 items push then pop 8.4950 ns/op 9.3930 ns/op 0.90
array of 24000 items push then shift 2.3199 us/op 2.4492 us/op 0.95
LinkedList of 24000 items push then shift 8.6840 ns/op 9.7280 ns/op 0.89
array of 24000 items push then pop 76.235 ns/op 110.50 ns/op 0.69
LinkedList of 24000 items push then pop 8.1600 ns/op 8.7020 ns/op 0.94
intersect bitArray bitLen 8 12.765 ns/op 13.921 ns/op 0.92
intersect array and set length 8 74.214 ns/op 104.16 ns/op 0.71
intersect bitArray bitLen 128 42.393 ns/op 45.506 ns/op 0.93
intersect array and set length 128 1.0060 us/op 1.3322 us/op 0.76
Buffer.concat 32 items 2.5620 us/op 2.8740 us/op 0.89
Uint8Array.set 32 items 2.3640 us/op 2.9530 us/op 0.80
pass gossip attestations to forkchoice per slot 3.7469 ms/op 2.3678 ms/op 1.58
computeDeltas 3.4612 ms/op 3.0863 ms/op 1.12
computeProposerBoostScoreFromBalances 1.7378 ms/op 1.7917 ms/op 0.97
altair processAttestation - 250000 vs - 7PWei normalcase 2.1242 ms/op 2.4399 ms/op 0.87
altair processAttestation - 250000 vs - 7PWei worstcase 3.2705 ms/op 3.5542 ms/op 0.92
altair processAttestation - setStatus - 1/6 committees join 136.88 us/op 151.82 us/op 0.90
altair processAttestation - setStatus - 1/3 committees join 270.31 us/op 288.79 us/op 0.94
altair processAttestation - setStatus - 1/2 committees join 367.46 us/op 372.12 us/op 0.99
altair processAttestation - setStatus - 2/3 committees join 464.08 us/op 478.49 us/op 0.97
altair processAttestation - setStatus - 4/5 committees join 647.67 us/op 656.69 us/op 0.99
altair processAttestation - setStatus - 100% committees join 757.73 us/op 765.08 us/op 0.99
altair processBlock - 250000 vs - 7PWei normalcase 18.818 ms/op 17.261 ms/op 1.09
altair processBlock - 250000 vs - 7PWei normalcase hashState 28.218 ms/op 26.242 ms/op 1.08
altair processBlock - 250000 vs - 7PWei worstcase 45.933 ms/op 56.230 ms/op 0.82
altair processBlock - 250000 vs - 7PWei worstcase hashState 65.987 ms/op 72.101 ms/op 0.92
phase0 processBlock - 250000 vs - 7PWei normalcase 1.9790 ms/op 2.4367 ms/op 0.81
phase0 processBlock - 250000 vs - 7PWei worstcase 27.727 ms/op 31.524 ms/op 0.88
altair processEth1Data - 250000 vs - 7PWei normalcase 452.16 us/op 472.59 us/op 0.96
vc - 250000 eb 1 eth1 1 we 0 wn 0 - smpl 15 6.8410 us/op 7.8310 us/op 0.87
vc - 250000 eb 0.95 eth1 0.1 we 0.05 wn 0 - smpl 219 19.691 us/op 24.681 us/op 0.80
vc - 250000 eb 0.95 eth1 0.3 we 0.05 wn 0 - smpl 42 8.2090 us/op 9.1700 us/op 0.90
vc - 250000 eb 0.95 eth1 0.7 we 0.05 wn 0 - smpl 18 6.5740 us/op 10.789 us/op 0.61
vc - 250000 eb 0.1 eth1 0.1 we 0 wn 0 - smpl 1020 73.998 us/op 118.66 us/op 0.62
vc - 250000 eb 0.03 eth1 0.03 we 0 wn 0 - smpl 11777 599.60 us/op 766.68 us/op 0.78
vc - 250000 eb 0.01 eth1 0.01 we 0 wn 0 - smpl 16384 856.72 us/op 925.93 us/op 0.93
vc - 250000 eb 0 eth1 0 we 0 wn 0 - smpl 16384 886.50 us/op 991.04 us/op 0.89
vc - 250000 eb 0 eth1 0 we 0 wn 0 nocache - smpl 16384 2.2731 ms/op 2.3593 ms/op 0.96
vc - 250000 eb 0 eth1 1 we 0 wn 0 - smpl 16384 1.6787 ms/op 1.5022 ms/op 1.12
vc - 250000 eb 0 eth1 1 we 0 wn 0 nocache - smpl 16384 3.8885 ms/op 4.2278 ms/op 0.92
Tree 40 250000 create 291.21 ms/op 372.41 ms/op 0.78
Tree 40 250000 get(125000) 176.56 ns/op 187.71 ns/op 0.94
Tree 40 250000 set(125000) 880.40 ns/op 890.67 ns/op 0.99
Tree 40 250000 toArray() 16.487 ms/op 20.668 ms/op 0.80
Tree 40 250000 iterate all - toArray() + loop 16.733 ms/op 19.151 ms/op 0.87
Tree 40 250000 iterate all - get(i) 64.369 ms/op 74.296 ms/op 0.87
MutableVector 250000 create 10.645 ms/op 11.084 ms/op 0.96
MutableVector 250000 get(125000) 6.2890 ns/op 7.1270 ns/op 0.88
MutableVector 250000 set(125000) 250.98 ns/op 255.33 ns/op 0.98
MutableVector 250000 toArray() 2.7707 ms/op 3.1840 ms/op 0.87
MutableVector 250000 iterate all - toArray() + loop 2.8199 ms/op 3.1728 ms/op 0.89
MutableVector 250000 iterate all - get(i) 1.4917 ms/op 1.5671 ms/op 0.95
Array 250000 create 2.4326 ms/op 2.5382 ms/op 0.96
Array 250000 clone - spread 1.2476 ms/op 1.0586 ms/op 1.18
Array 250000 get(125000) 0.60300 ns/op 0.56700 ns/op 1.06
Array 250000 set(125000) 0.68200 ns/op 0.64400 ns/op 1.06
Array 250000 iterate all - loop 94.926 us/op 88.373 us/op 1.07
effectiveBalanceIncrements clone Uint8Array 300000 29.948 us/op 35.123 us/op 0.85
effectiveBalanceIncrements clone MutableVector 300000 406.00 ns/op 327.00 ns/op 1.24
effectiveBalanceIncrements rw all Uint8Array 300000 165.06 us/op 170.87 us/op 0.97
effectiveBalanceIncrements rw all MutableVector 300000 82.633 ms/op 81.728 ms/op 1.01
phase0 afterProcessEpoch - 250000 vs - 7PWei 114.54 ms/op 124.11 ms/op 0.92
phase0 beforeProcessEpoch - 250000 vs - 7PWei 34.855 ms/op 46.324 ms/op 0.75
altair processEpoch - mainnet_e81889 326.31 ms/op 376.75 ms/op 0.87
mainnet_e81889 - altair beforeProcessEpoch 62.473 ms/op 65.648 ms/op 0.95
mainnet_e81889 - altair processJustificationAndFinalization 15.326 us/op 23.976 us/op 0.64
mainnet_e81889 - altair processInactivityUpdates 5.5511 ms/op 6.1915 ms/op 0.90
mainnet_e81889 - altair processRewardsAndPenalties 56.032 ms/op 63.435 ms/op 0.88
mainnet_e81889 - altair processRegistryUpdates 2.4500 us/op 3.7790 us/op 0.65
mainnet_e81889 - altair processSlashings 455.00 ns/op 1.1230 us/op 0.41
mainnet_e81889 - altair processEth1DataReset 551.00 ns/op 701.00 ns/op 0.79
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2268 ms/op 1.2723 ms/op 0.96
mainnet_e81889 - altair processSlashingsReset 4.7380 us/op 8.5380 us/op 0.55
mainnet_e81889 - altair processRandaoMixesReset 4.6370 us/op 5.5950 us/op 0.83
mainnet_e81889 - altair processHistoricalRootsUpdate 639.00 ns/op 1.6780 us/op 0.38
mainnet_e81889 - altair processParticipationFlagUpdates 2.3940 us/op 4.8510 us/op 0.49
mainnet_e81889 - altair processSyncCommitteeUpdates 464.00 ns/op 635.00 ns/op 0.73
mainnet_e81889 - altair afterProcessEpoch 113.92 ms/op 131.29 ms/op 0.87
phase0 processEpoch - mainnet_e58758 310.74 ms/op 394.13 ms/op 0.79
mainnet_e58758 - phase0 beforeProcessEpoch 121.56 ms/op 168.99 ms/op 0.72
mainnet_e58758 - phase0 processJustificationAndFinalization 15.799 us/op 21.249 us/op 0.74
mainnet_e58758 - phase0 processRewardsAndPenalties 53.062 ms/op 71.769 ms/op 0.74
mainnet_e58758 - phase0 processRegistryUpdates 8.0020 us/op 10.967 us/op 0.73
mainnet_e58758 - phase0 processSlashings 513.00 ns/op 652.00 ns/op 0.79
mainnet_e58758 - phase0 processEth1DataReset 532.00 ns/op 1.0060 us/op 0.53
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 942.39 us/op 1.1330 ms/op 0.83
mainnet_e58758 - phase0 processSlashingsReset 3.4060 us/op 5.1260 us/op 0.66
mainnet_e58758 - phase0 processRandaoMixesReset 4.5960 us/op 7.5160 us/op 0.61
mainnet_e58758 - phase0 processHistoricalRootsUpdate 644.00 ns/op 1.2650 us/op 0.51
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.8250 us/op 6.2260 us/op 0.77
mainnet_e58758 - phase0 afterProcessEpoch 94.447 ms/op 106.64 ms/op 0.89
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2109 ms/op 1.3332 ms/op 0.91
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4440 ms/op 1.6430 ms/op 0.88
altair processInactivityUpdates - 250000 normalcase 25.786 ms/op 30.961 ms/op 0.83
altair processInactivityUpdates - 250000 worstcase 26.597 ms/op 40.150 ms/op 0.66
phase0 processRegistryUpdates - 250000 normalcase 6.7660 us/op 13.337 us/op 0.51
phase0 processRegistryUpdates - 250000 badcase_full_deposits 228.71 us/op 438.58 us/op 0.52
phase0 processRegistryUpdates - 250000 worstcase 0.5 123.23 ms/op 167.84 ms/op 0.73
altair processRewardsAndPenalties - 250000 normalcase 68.250 ms/op 77.269 ms/op 0.88
altair processRewardsAndPenalties - 250000 worstcase 69.926 ms/op 83.163 ms/op 0.84
phase0 getAttestationDeltas - 250000 normalcase 6.4605 ms/op 8.9562 ms/op 0.72
phase0 getAttestationDeltas - 250000 worstcase 6.3682 ms/op 8.9183 ms/op 0.71
phase0 processSlashings - 250000 worstcase 3.4704 ms/op 4.1350 ms/op 0.84
altair processSyncCommitteeUpdates - 250000 174.26 ms/op 196.33 ms/op 0.89
BeaconState.hashTreeRoot - No change 270.00 ns/op 324.00 ns/op 0.83
BeaconState.hashTreeRoot - 1 full validator 50.718 us/op 58.268 us/op 0.87
BeaconState.hashTreeRoot - 32 full validator 537.00 us/op 642.70 us/op 0.84
BeaconState.hashTreeRoot - 512 full validator 4.9979 ms/op 6.9209 ms/op 0.72
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 64.616 us/op 67.677 us/op 0.95
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 884.43 us/op 973.18 us/op 0.91
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 11.741 ms/op 14.053 ms/op 0.84
BeaconState.hashTreeRoot - 1 balances 48.015 us/op 50.361 us/op 0.95
BeaconState.hashTreeRoot - 32 balances 453.04 us/op 478.10 us/op 0.95
BeaconState.hashTreeRoot - 512 balances 4.2206 ms/op 4.9657 ms/op 0.85
BeaconState.hashTreeRoot - 250000 balances 74.904 ms/op 80.196 ms/op 0.93
aggregationBits - 2048 els - zipIndexesInBitList 15.613 us/op 21.141 us/op 0.74
regular array get 100000 times 31.709 us/op 34.313 us/op 0.92
wrappedArray get 100000 times 42.288 us/op 33.772 us/op 1.25
arrayWithProxy get 100000 times 14.598 ms/op 15.927 ms/op 0.92
ssz.Root.equals 536.00 ns/op 581.00 ns/op 0.92
byteArrayEquals 527.00 ns/op 584.00 ns/op 0.90
shuffle list - 16384 els 6.7137 ms/op 7.1076 ms/op 0.94
shuffle list - 250000 els 98.595 ms/op 104.15 ms/op 0.95
processSlot - 1 slots 8.6970 us/op 9.0040 us/op 0.97
processSlot - 32 slots 1.4282 ms/op 1.3964 ms/op 1.02
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 183.65 us/op 209.56 us/op 0.88
getCommitteeAssignments - req 1 vs - 250000 vc 2.8650 ms/op 2.9705 ms/op 0.96
getCommitteeAssignments - req 100 vs - 250000 vc 4.1026 ms/op 4.2217 ms/op 0.97
getCommitteeAssignments - req 1000 vs - 250000 vc 4.3929 ms/op 4.5740 ms/op 0.96
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.6100 ns/op 5.1700 ns/op 0.89
state getBlockRootAtSlot - 250000 vs - 7PWei 990.06 ns/op 627.78 ns/op 1.58
computeProposers - vc 250000 10.213 ms/op 10.869 ms/op 0.94
computeEpochShuffling - vc 250000 99.840 ms/op 104.77 ms/op 0.95
getNextSyncCommittee - vc 250000 171.00 ms/op 187.80 ms/op 0.91

by benchmarkbot/action

@g11tech g11tech merged commit d02bb14 into unstable Feb 12, 2023
@g11tech g11tech deleted the g11tech/zhejiang branch February 12, 2023 00:55
wemeetagain pushed a commit that referenced this pull request Feb 12, 2023
@wemeetagain
Copy link
Member

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

Add --zhejiang network flag
2 participants