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

Update outdated dependencies #5345

Merged
merged 5 commits into from
Apr 6, 2023
Merged

Update outdated dependencies #5345

merged 5 commits into from
Apr 6, 2023

Conversation

nazarhussain
Copy link
Contributor

Motivation

Keep the dependencies up-to-date.

Description

Update the dependencies which does not require major refactoring.

Steps to test or reproduce

Run all tests.

@nazarhussain nazarhussain self-assigned this Apr 5, 2023
@nazarhussain nazarhussain added this to the v1.8.0 milestone Apr 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: dba3045 Previous: ddc58ce Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 662.96 us/op 716.23 us/op 0.93
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 55.657 us/op 45.155 us/op 1.23
BLS verify - blst-native 1.5030 ms/op 1.1948 ms/op 1.26
BLS verifyMultipleSignatures 3 - blst-native 3.1044 ms/op 2.4293 ms/op 1.28
BLS verifyMultipleSignatures 8 - blst-native 6.5796 ms/op 5.1293 ms/op 1.28
BLS verifyMultipleSignatures 32 - blst-native 23.481 ms/op 18.513 ms/op 1.27
BLS aggregatePubkeys 32 - blst-native 31.937 us/op 24.752 us/op 1.29
BLS aggregatePubkeys 128 - blst-native 124.40 us/op 97.301 us/op 1.28
getAttestationsForBlock 72.847 ms/op 51.823 ms/op 1.41
isKnown best case - 1 super set check 346.00 ns/op 266.00 ns/op 1.30
isKnown normal case - 2 super set checks 330.00 ns/op 262.00 ns/op 1.26
isKnown worse case - 16 super set checks 326.00 ns/op 258.00 ns/op 1.26
CheckpointStateCache - add get delete 6.1230 us/op 4.8040 us/op 1.27
validate gossip signedAggregateAndProof - struct 3.4079 ms/op 2.6683 ms/op 1.28
validate gossip attestation - struct 1.6263 ms/op 1.3044 ms/op 1.25
pickEth1Vote - no votes 1.5774 ms/op 1.2527 ms/op 1.26
pickEth1Vote - max votes 13.502 ms/op 10.793 ms/op 1.25
pickEth1Vote - Eth1Data hashTreeRoot value x2048 11.374 ms/op 8.8673 ms/op 1.28
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 19.238 ms/op 14.392 ms/op 1.34
pickEth1Vote - Eth1Data fastSerialize value x2048 878.02 us/op 664.17 us/op 1.32
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.9001 ms/op 7.1571 ms/op 0.96
bytes32 toHexString 795.00 ns/op 471.00 ns/op 1.69
bytes32 Buffer.toString(hex) 509.00 ns/op 339.00 ns/op 1.50
bytes32 Buffer.toString(hex) from Uint8Array 808.00 ns/op 546.00 ns/op 1.48
bytes32 Buffer.toString(hex) + 0x 495.00 ns/op 338.00 ns/op 1.46
Object access 1 prop 0.23100 ns/op 0.16200 ns/op 1.43
Map access 1 prop 0.23600 ns/op 0.15900 ns/op 1.48
Object get x1000 9.6240 ns/op 7.4250 ns/op 1.30
Map get x1000 0.79500 ns/op 0.60700 ns/op 1.31
Object set x1000 71.368 ns/op 50.576 ns/op 1.41
Map set x1000 59.608 ns/op 42.256 ns/op 1.41
Return object 10000 times 0.30690 ns/op 0.23200 ns/op 1.32
Throw Error 10000 times 5.4441 us/op 4.1579 us/op 1.31
fastMsgIdFn sha256 / 200 bytes 4.3590 us/op 3.4430 us/op 1.27
fastMsgIdFn h32 xxhash / 200 bytes 361.00 ns/op 280.00 ns/op 1.29
fastMsgIdFn h64 xxhash / 200 bytes 563.00 ns/op 416.00 ns/op 1.35
fastMsgIdFn sha256 / 1000 bytes 14.998 us/op 11.839 us/op 1.27
fastMsgIdFn h32 xxhash / 1000 bytes 542.00 ns/op 434.00 ns/op 1.25
fastMsgIdFn h64 xxhash / 1000 bytes 653.00 ns/op 478.00 ns/op 1.37
fastMsgIdFn sha256 / 10000 bytes 131.12 us/op 101.94 us/op 1.29
fastMsgIdFn h32 xxhash / 10000 bytes 2.4470 us/op 1.8990 us/op 1.29
fastMsgIdFn h64 xxhash / 10000 bytes 1.7620 us/op 1.2850 us/op 1.37
enrSubnets - fastDeserialize 64 bits 1.7010 us/op 1.2710 us/op 1.34
enrSubnets - ssz BitVector 64 bits 619.00 ns/op 477.00 ns/op 1.30
enrSubnets - fastDeserialize 4 bits 224.00 ns/op 169.00 ns/op 1.33
enrSubnets - ssz BitVector 4 bits 627.00 ns/op 494.00 ns/op 1.27
prioritizePeers score -10:0 att 32-0.1 sync 2-0 136.16 us/op 94.784 us/op 1.44
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 178.25 us/op 131.86 us/op 1.35
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 216.17 us/op 160.51 us/op 1.35
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 391.12 us/op 292.28 us/op 1.34
prioritizePeers score 0:0 att 64-1 sync 4-1 464.36 us/op 349.31 us/op 1.33
array of 16000 items push then shift 2.1211 us/op 1.5663 us/op 1.35
LinkedList of 16000 items push then shift 11.220 ns/op 8.7740 ns/op 1.28
array of 16000 items push then pop 128.02 ns/op 87.635 ns/op 1.46
LinkedList of 16000 items push then pop 10.949 ns/op 8.4900 ns/op 1.29
array of 24000 items push then shift 3.1072 us/op 2.4011 us/op 1.29
LinkedList of 24000 items push then shift 11.520 ns/op 8.9690 ns/op 1.28
array of 24000 items push then pop 99.553 ns/op 75.959 ns/op 1.31
LinkedList of 24000 items push then pop 10.968 ns/op 8.4340 ns/op 1.30
intersect bitArray bitLen 8 17.124 ns/op 13.139 ns/op 1.30
intersect array and set length 8 102.36 ns/op 77.648 ns/op 1.32
intersect bitArray bitLen 128 57.806 ns/op 43.439 ns/op 1.33
intersect array and set length 128 1.4092 us/op 1.0638 us/op 1.32
Buffer.concat 32 items 4.3340 us/op 2.8380 us/op 1.53
Uint8Array.set 32 items 2.8130 us/op 2.8010 us/op 1.00
pass gossip attestations to forkchoice per slot 3.5264 ms/op 3.0680 ms/op 1.15
computeDeltas 3.6769 ms/op 3.0120 ms/op 1.22
computeProposerBoostScoreFromBalances 2.2248 ms/op 1.7996 ms/op 1.24
altair processAttestation - 250000 vs - 7PWei normalcase 3.2511 ms/op 2.6385 ms/op 1.23
altair processAttestation - 250000 vs - 7PWei worstcase 5.5027 ms/op 3.2345 ms/op 1.70
altair processAttestation - setStatus - 1/6 committees join 196.93 us/op 149.67 us/op 1.32
altair processAttestation - setStatus - 1/3 committees join 367.67 us/op 276.77 us/op 1.33
altair processAttestation - setStatus - 1/2 committees join 519.06 us/op 366.00 us/op 1.42
altair processAttestation - setStatus - 2/3 committees join 613.92 us/op 473.21 us/op 1.30
altair processAttestation - setStatus - 4/5 committees join 856.91 us/op 674.55 us/op 1.27
altair processAttestation - setStatus - 100% committees join 1.0277 ms/op 758.90 us/op 1.35
altair processBlock - 250000 vs - 7PWei normalcase 21.661 ms/op 18.002 ms/op 1.20
altair processBlock - 250000 vs - 7PWei normalcase hashState 30.246 ms/op 26.657 ms/op 1.13
altair processBlock - 250000 vs - 7PWei worstcase 58.265 ms/op 54.820 ms/op 1.06
altair processBlock - 250000 vs - 7PWei worstcase hashState 83.289 ms/op 67.381 ms/op 1.24
phase0 processBlock - 250000 vs - 7PWei normalcase 2.8152 ms/op 2.1229 ms/op 1.33
phase0 processBlock - 250000 vs - 7PWei worstcase 40.837 ms/op 27.880 ms/op 1.46
altair processEth1Data - 250000 vs - 7PWei normalcase 759.10 us/op 475.21 us/op 1.60
vc - 250000 eb 1 eth1 1 we 0 wn 0 - smpl 15 8.3570 us/op 7.0450 us/op 1.19
vc - 250000 eb 0.95 eth1 0.1 we 0.05 wn 0 - smpl 219 41.842 us/op 20.352 us/op 2.06
vc - 250000 eb 0.95 eth1 0.3 we 0.05 wn 0 - smpl 42 21.873 us/op 11.582 us/op 1.89
vc - 250000 eb 0.95 eth1 0.7 we 0.05 wn 0 - smpl 18 14.674 us/op 8.4500 us/op 1.74
vc - 250000 eb 0.1 eth1 0.1 we 0 wn 0 - smpl 1020 120.68 us/op 87.363 us/op 1.38
vc - 250000 eb 0.03 eth1 0.03 we 0 wn 0 - smpl 11777 1.2544 ms/op 618.60 us/op 2.03
vc - 250000 eb 0.01 eth1 0.01 we 0 wn 0 - smpl 16384 2.1457 ms/op 925.32 us/op 2.32
vc - 250000 eb 0 eth1 0 we 0 wn 0 - smpl 16384 1.6466 ms/op 912.78 us/op 1.80
vc - 250000 eb 0 eth1 0 we 0 wn 0 nocache - smpl 16384 5.5018 ms/op 2.3579 ms/op 2.33
vc - 250000 eb 0 eth1 1 we 0 wn 0 - smpl 16384 3.4569 ms/op 1.4748 ms/op 2.34
vc - 250000 eb 0 eth1 1 we 0 wn 0 nocache - smpl 16384 9.7510 ms/op 4.3713 ms/op 2.23
Tree 40 250000 create 1.0714 s/op 335.39 ms/op 3.19
Tree 40 250000 get(125000) 417.91 ns/op 194.79 ns/op 2.15
Tree 40 250000 set(125000) 2.8716 us/op 985.09 ns/op 2.92
Tree 40 250000 toArray() 41.388 ms/op 22.492 ms/op 1.84
Tree 40 250000 iterate all - toArray() + loop 37.544 ms/op 18.384 ms/op 2.04
Tree 40 250000 iterate all - get(i) 155.32 ms/op 74.365 ms/op 2.09
MutableVector 250000 create 21.723 ms/op 10.672 ms/op 2.04
MutableVector 250000 get(125000) 13.817 ns/op 6.3880 ns/op 2.16
MutableVector 250000 set(125000) 875.76 ns/op 316.14 ns/op 2.77
MutableVector 250000 toArray() 7.9211 ms/op 3.3486 ms/op 2.37
MutableVector 250000 iterate all - toArray() + loop 7.6717 ms/op 2.8725 ms/op 2.67
MutableVector 250000 iterate all - get(i) 3.7927 ms/op 1.5285 ms/op 2.48
Array 250000 create 6.2986 ms/op 2.6130 ms/op 2.41
Array 250000 clone - spread 3.3848 ms/op 1.1156 ms/op 3.03
Array 250000 get(125000) 2.5470 ns/op 0.56900 ns/op 4.48
Array 250000 set(125000) 2.7660 ns/op 0.64000 ns/op 4.32
Array 250000 iterate all - loop 242.27 us/op 85.079 us/op 2.85
effectiveBalanceIncrements clone Uint8Array 300000 91.422 us/op 33.117 us/op 2.76
effectiveBalanceIncrements clone MutableVector 300000 2.2790 us/op 345.00 ns/op 6.61
effectiveBalanceIncrements rw all Uint8Array 300000 348.42 us/op 170.61 us/op 2.04
effectiveBalanceIncrements rw all MutableVector 300000 292.40 ms/op 81.912 ms/op 3.57
phase0 afterProcessEpoch - 250000 vs - 7PWei 242.91 ms/op 115.41 ms/op 2.10
phase0 beforeProcessEpoch - 250000 vs - 7PWei 61.394 ms/op 40.301 ms/op 1.52
altair processEpoch - mainnet_e81889 513.26 ms/op 332.43 ms/op 1.54
mainnet_e81889 - altair beforeProcessEpoch 92.816 ms/op 51.703 ms/op 1.80
mainnet_e81889 - altair processJustificationAndFinalization 27.478 us/op 17.054 us/op 1.61
mainnet_e81889 - altair processInactivityUpdates 7.2585 ms/op 6.2430 ms/op 1.16
mainnet_e81889 - altair processRewardsAndPenalties 117.09 ms/op 63.451 ms/op 1.85
mainnet_e81889 - altair processRegistryUpdates 5.6110 us/op 3.7400 us/op 1.50
mainnet_e81889 - altair processSlashings 1.1120 us/op 527.00 ns/op 2.11
mainnet_e81889 - altair processEth1DataReset 843.00 ns/op 628.00 ns/op 1.34
mainnet_e81889 - altair processEffectiveBalanceUpdates 5.2602 ms/op 1.2844 ms/op 4.10
mainnet_e81889 - altair processSlashingsReset 11.847 us/op 5.5010 us/op 2.15
mainnet_e81889 - altair processRandaoMixesReset 7.0430 us/op 5.2950 us/op 1.33
mainnet_e81889 - altair processHistoricalRootsUpdate 1.9140 us/op 1.0290 us/op 1.86
mainnet_e81889 - altair processParticipationFlagUpdates 6.2460 us/op 2.8340 us/op 2.20
mainnet_e81889 - altair processSyncCommitteeUpdates 1.9210 us/op 490.00 ns/op 3.92
mainnet_e81889 - altair afterProcessEpoch 215.49 ms/op 127.19 ms/op 1.69
phase0 processEpoch - mainnet_e58758 554.63 ms/op 368.16 ms/op 1.51
mainnet_e58758 - phase0 beforeProcessEpoch 192.58 ms/op 142.16 ms/op 1.35
mainnet_e58758 - phase0 processJustificationAndFinalization 22.098 us/op 17.900 us/op 1.23
mainnet_e58758 - phase0 processRewardsAndPenalties 86.622 ms/op 69.891 ms/op 1.24
mainnet_e58758 - phase0 processRegistryUpdates 15.835 us/op 9.5600 us/op 1.66
mainnet_e58758 - phase0 processSlashings 1.5860 us/op 686.00 ns/op 2.31
mainnet_e58758 - phase0 processEth1DataReset 774.00 ns/op 1.2470 us/op 0.62
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.3223 ms/op 1.8410 ms/op 0.72
mainnet_e58758 - phase0 processSlashingsReset 5.1490 us/op 3.7290 us/op 1.38
mainnet_e58758 - phase0 processRandaoMixesReset 5.5310 us/op 10.732 us/op 0.52
mainnet_e58758 - phase0 processHistoricalRootsUpdate 789.00 ns/op 827.00 ns/op 0.95
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.7690 us/op 4.5770 us/op 1.04
mainnet_e58758 - phase0 afterProcessEpoch 129.29 ms/op 98.725 ms/op 1.31
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.5679 ms/op 1.2196 ms/op 1.29
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.3270 ms/op 1.5163 ms/op 1.53
altair processInactivityUpdates - 250000 normalcase 32.711 ms/op 25.982 ms/op 1.26
altair processInactivityUpdates - 250000 worstcase 32.627 ms/op 26.778 ms/op 1.22
phase0 processRegistryUpdates - 250000 normalcase 7.7530 us/op 6.9640 us/op 1.11
phase0 processRegistryUpdates - 250000 badcase_full_deposits 297.96 us/op 269.12 us/op 1.11
phase0 processRegistryUpdates - 250000 worstcase 0.5 159.80 ms/op 127.12 ms/op 1.26
altair processRewardsAndPenalties - 250000 normalcase 79.315 ms/op 66.175 ms/op 1.20
altair processRewardsAndPenalties - 250000 worstcase 93.164 ms/op 73.291 ms/op 1.27
phase0 getAttestationDeltas - 250000 normalcase 14.429 ms/op 6.7085 ms/op 2.15
phase0 getAttestationDeltas - 250000 worstcase 12.603 ms/op 6.6873 ms/op 1.88
phase0 processSlashings - 250000 worstcase 6.4169 ms/op 3.6456 ms/op 1.76
altair processSyncCommitteeUpdates - 250000 292.85 ms/op 193.36 ms/op 1.51
BeaconState.hashTreeRoot - No change 463.00 ns/op 278.00 ns/op 1.67
BeaconState.hashTreeRoot - 1 full validator 91.901 us/op 53.164 us/op 1.73
BeaconState.hashTreeRoot - 32 full validator 908.72 us/op 555.16 us/op 1.64
BeaconState.hashTreeRoot - 512 full validator 9.4280 ms/op 5.3322 ms/op 1.77
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 124.27 us/op 69.851 us/op 1.78
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.6776 ms/op 1.0240 ms/op 1.64
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 21.226 ms/op 15.274 ms/op 1.39
BeaconState.hashTreeRoot - 1 balances 93.261 us/op 58.784 us/op 1.59
BeaconState.hashTreeRoot - 32 balances 752.68 us/op 484.88 us/op 1.55
BeaconState.hashTreeRoot - 512 balances 7.3905 ms/op 5.2844 ms/op 1.40
BeaconState.hashTreeRoot - 250000 balances 111.74 ms/op 87.179 ms/op 1.28
aggregationBits - 2048 els - zipIndexesInBitList 27.798 us/op 26.229 us/op 1.06
regular array get 100000 times 63.903 us/op 36.031 us/op 1.77
wrappedArray get 100000 times 55.466 us/op 36.455 us/op 1.52
arrayWithProxy get 100000 times 27.770 ms/op 18.911 ms/op 1.47
ssz.Root.equals 960.00 ns/op 637.00 ns/op 1.51
byteArrayEquals 1.1650 us/op 594.00 ns/op 1.96
shuffle list - 16384 els 12.661 ms/op 7.2320 ms/op 1.75
shuffle list - 250000 els 157.62 ms/op 107.37 ms/op 1.47
processSlot - 1 slots 16.156 us/op 10.486 us/op 1.54
processSlot - 32 slots 2.8906 ms/op 1.7897 ms/op 1.62
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 68.984 ms/op 38.380 ms/op 1.80
getCommitteeAssignments - req 1 vs - 250000 vc 7.1583 ms/op 3.1858 ms/op 2.25
getCommitteeAssignments - req 100 vs - 250000 vc 9.6518 ms/op 4.4284 ms/op 2.18
getCommitteeAssignments - req 1000 vs - 250000 vc 9.5958 ms/op 4.7572 ms/op 2.02
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 11.440 ns/op 5.4200 ns/op 2.11
state getBlockRootAtSlot - 250000 vs - 7PWei 1.6232 us/op 1.1827 us/op 1.37
computeProposers - vc 250000 24.794 ms/op 11.897 ms/op 2.08
computeEpochShuffling - vc 250000 191.04 ms/op 107.09 ms/op 1.78
getNextSyncCommittee - vc 250000 345.91 ms/op 194.89 ms/op 1.77

by benchmarkbot/action

@nazarhussain nazarhussain marked this pull request as ready for review April 6, 2023 10:55
@nazarhussain nazarhussain requested a review from a team as a code owner April 6, 2023 10:55
@wemeetagain wemeetagain merged commit 83b29d7 into unstable Apr 6, 2023
@wemeetagain wemeetagain deleted the nh/deps-udpate branch April 6, 2023 16:26
@wemeetagain
Copy link
Member

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

2 participants