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

deps: update typescript and related dependencies #5720

Merged
merged 1 commit into from
Jun 30, 2023
Merged

Conversation

nazarhussain
Copy link
Contributor

@nazarhussain nazarhussain commented Jun 30, 2023

Motivation

Keep the typescript and build system up-to-date.

Want to make project ready for upcoming Typescript 5.2 which have a nice feature to optimize the resource deallocation with new keyword using.

Description

  • Update the typescript to latest version.
  • Update the typescript related dependencies.

Steps to test or reproduce

Run all tests

@nazarhussain nazarhussain requested a review from a team as a code owner June 30, 2023 08:56
@nazarhussain nazarhussain self-assigned this Jun 30, 2023
Copy link
Member

@matthewkeil matthewkeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@github-actions
Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 0e38567 Previous: a4c93c1 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 639.60 us/op 577.59 us/op 1.11
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 58.909 us/op 51.176 us/op 1.15
BLS verify - blst-native 1.2729 ms/op 1.2647 ms/op 1.01
BLS verifyMultipleSignatures 3 - blst-native 2.5771 ms/op 2.5098 ms/op 1.03
BLS verifyMultipleSignatures 8 - blst-native 5.5729 ms/op 5.3927 ms/op 1.03
BLS verifyMultipleSignatures 32 - blst-native 20.141 ms/op 19.487 ms/op 1.03
BLS aggregatePubkeys 32 - blst-native 27.113 us/op 25.969 us/op 1.04
BLS aggregatePubkeys 128 - blst-native 104.70 us/op 101.29 us/op 1.03
getAttestationsForBlock 71.418 ms/op 53.307 ms/op 1.34
isKnown best case - 1 super set check 278.00 ns/op 257.00 ns/op 1.08
isKnown normal case - 2 super set checks 290.00 ns/op 248.00 ns/op 1.17
isKnown worse case - 16 super set checks 276.00 ns/op 248.00 ns/op 1.11
CheckpointStateCache - add get delete 6.4350 us/op 5.1370 us/op 1.25
validate gossip signedAggregateAndProof - struct 2.9185 ms/op 2.7312 ms/op 1.07
validate gossip attestation - struct 1.4101 ms/op 1.3147 ms/op 1.07
pickEth1Vote - no votes 1.4365 ms/op 1.3114 ms/op 1.10
pickEth1Vote - max votes 14.711 ms/op 9.4000 ms/op 1.56
pickEth1Vote - Eth1Data hashTreeRoot value x2048 10.724 ms/op 8.6439 ms/op 1.24
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 17.695 ms/op 14.276 ms/op 1.24
pickEth1Vote - Eth1Data fastSerialize value x2048 775.92 us/op 803.67 us/op 0.97
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.8539 ms/op 7.1103 ms/op 0.82
bytes32 toHexString 726.00 ns/op 539.00 ns/op 1.35
bytes32 Buffer.toString(hex) 416.00 ns/op 368.00 ns/op 1.13
bytes32 Buffer.toString(hex) from Uint8Array 635.00 ns/op 558.00 ns/op 1.14
bytes32 Buffer.toString(hex) + 0x 433.00 ns/op 379.00 ns/op 1.14
Object access 1 prop 0.20900 ns/op 0.17700 ns/op 1.18
Map access 1 prop 0.17700 ns/op 0.16300 ns/op 1.09
Object get x1000 6.8320 ns/op 6.9700 ns/op 0.98
Map get x1000 0.58000 ns/op 0.56800 ns/op 1.02
Object set x1000 61.064 ns/op 57.159 ns/op 1.07
Map set x1000 51.346 ns/op 52.552 ns/op 0.98
Return object 10000 times 0.24790 ns/op 0.24500 ns/op 1.01
Throw Error 10000 times 4.3519 us/op 4.3942 us/op 0.99
fastMsgIdFn sha256 / 200 bytes 3.6300 us/op 3.5500 us/op 1.02
fastMsgIdFn h32 xxhash / 200 bytes 315.00 ns/op 299.00 ns/op 1.05
fastMsgIdFn h64 xxhash / 200 bytes 467.00 ns/op 412.00 ns/op 1.13
fastMsgIdFn sha256 / 1000 bytes 12.296 us/op 11.924 us/op 1.03
fastMsgIdFn h32 xxhash / 1000 bytes 453.00 ns/op 431.00 ns/op 1.05
fastMsgIdFn h64 xxhash / 1000 bytes 551.00 ns/op 488.00 ns/op 1.13
fastMsgIdFn sha256 / 10000 bytes 107.34 us/op 107.23 us/op 1.00
fastMsgIdFn h32 xxhash / 10000 bytes 1.9930 us/op 1.9580 us/op 1.02
fastMsgIdFn h64 xxhash / 10000 bytes 1.4280 us/op 1.4060 us/op 1.02
enrSubnets - fastDeserialize 64 bits 1.7900 us/op 1.3620 us/op 1.31
enrSubnets - ssz BitVector 64 bits 600.00 ns/op 521.00 ns/op 1.15
enrSubnets - fastDeserialize 4 bits 207.00 ns/op 183.00 ns/op 1.13
enrSubnets - ssz BitVector 4 bits 603.00 ns/op 542.00 ns/op 1.11
prioritizePeers score -10:0 att 32-0.1 sync 2-0 125.44 us/op 116.75 us/op 1.07
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 161.71 us/op 145.13 us/op 1.11
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 187.02 us/op 212.34 us/op 0.88
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 348.56 us/op 319.45 us/op 1.09
prioritizePeers score 0:0 att 64-1 sync 4-1 443.08 us/op 383.82 us/op 1.15
array of 16000 items push then shift 1.7447 us/op 1.6719 us/op 1.04
LinkedList of 16000 items push then shift 9.4840 ns/op 9.1420 ns/op 1.04
array of 16000 items push then pop 117.19 ns/op 94.859 ns/op 1.24
LinkedList of 16000 items push then pop 9.0970 ns/op 8.7930 ns/op 1.03
array of 24000 items push then shift 2.4292 us/op 2.4205 us/op 1.00
LinkedList of 24000 items push then shift 9.5270 ns/op 9.0520 ns/op 1.05
array of 24000 items push then pop 93.292 ns/op 82.098 ns/op 1.14
LinkedList of 24000 items push then pop 9.1470 ns/op 8.7530 ns/op 1.05
intersect bitArray bitLen 8 14.033 ns/op 13.628 ns/op 1.03
intersect array and set length 8 100.97 ns/op 78.481 ns/op 1.29
intersect bitArray bitLen 128 47.372 ns/op 44.880 ns/op 1.06
intersect array and set length 128 1.3394 us/op 1.0590 us/op 1.26
Buffer.concat 32 items 3.1380 us/op 2.6490 us/op 1.18
Uint8Array.set 32 items 3.1390 us/op 2.1480 us/op 1.46
transfer serialized Status (84 B) 2.3900 us/op 2.0220 us/op 1.18
copy serialized Status (84 B) 2.0480 us/op 1.6500 us/op 1.24
transfer serialized SignedVoluntaryExit (112 B) 2.5210 us/op 2.0730 us/op 1.22
copy serialized SignedVoluntaryExit (112 B) 2.1150 us/op 1.8380 us/op 1.15
transfer serialized ProposerSlashing (416 B) 3.0030 us/op 3.0150 us/op 1.00
copy serialized ProposerSlashing (416 B) 3.4560 us/op 2.6760 us/op 1.29
transfer serialized Attestation (485 B) 3.6010 us/op 2.5530 us/op 1.41
copy serialized Attestation (485 B) 3.5570 us/op 2.1090 us/op 1.69
transfer serialized AttesterSlashing (33232 B) 3.8930 us/op 2.7010 us/op 1.44
copy serialized AttesterSlashing (33232 B) 10.178 us/op 5.7260 us/op 1.78
transfer serialized Small SignedBeaconBlock (128000 B) 4.0270 us/op 3.1260 us/op 1.29
copy serialized Small SignedBeaconBlock (128000 B) 19.260 us/op 15.946 us/op 1.21
transfer serialized Avg SignedBeaconBlock (200000 B) 3.7160 us/op 3.3870 us/op 1.10
copy serialized Avg SignedBeaconBlock (200000 B) 80.796 us/op 21.999 us/op 3.67
transfer serialized BlobsSidecar (524380 B) 3.9620 us/op 3.5170 us/op 1.13
copy serialized BlobsSidecar (524380 B) 159.01 us/op 170.15 us/op 0.93
transfer serialized Big SignedBeaconBlock (1000000 B) 4.6150 us/op 3.6560 us/op 1.26
copy serialized Big SignedBeaconBlock (1000000 B) 191.38 us/op 238.54 us/op 0.80
pass gossip attestations to forkchoice per slot 2.8610 ms/op 2.6732 ms/op 1.07
forkChoice updateHead vc 100000 bc 64 eq 0 2.1496 ms/op 2.1876 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 0 12.895 ms/op 12.177 ms/op 1.06
forkChoice updateHead vc 1000000 bc 64 eq 0 23.547 ms/op 18.323 ms/op 1.29
forkChoice updateHead vc 600000 bc 320 eq 0 17.296 ms/op 16.612 ms/op 1.04
forkChoice updateHead vc 600000 bc 1200 eq 0 88.596 ms/op 82.081 ms/op 1.08
forkChoice updateHead vc 600000 bc 64 eq 1000 21.331 ms/op 21.136 ms/op 1.01
forkChoice updateHead vc 600000 bc 64 eq 10000 24.029 ms/op 22.640 ms/op 1.06
forkChoice updateHead vc 600000 bc 64 eq 300000 32.935 ms/op 30.941 ms/op 1.06
computeDeltas 3.2220 ms/op 3.2868 ms/op 0.98
computeProposerBoostScoreFromBalances 1.8476 ms/op 1.9098 ms/op 0.97
altair processAttestation - 250000 vs - 7PWei normalcase 2.4338 ms/op 3.1998 ms/op 0.76
altair processAttestation - 250000 vs - 7PWei worstcase 3.4676 ms/op 5.1573 ms/op 0.67
altair processAttestation - setStatus - 1/6 committees join 149.92 us/op 157.06 us/op 0.95
altair processAttestation - setStatus - 1/3 committees join 289.69 us/op 304.89 us/op 0.95
altair processAttestation - setStatus - 1/2 committees join 383.57 us/op 384.48 us/op 1.00
altair processAttestation - setStatus - 2/3 committees join 487.82 us/op 497.25 us/op 0.98
altair processAttestation - setStatus - 4/5 committees join 675.56 us/op 774.02 us/op 0.87
altair processAttestation - setStatus - 100% committees join 786.13 us/op 827.02 us/op 0.95
altair processBlock - 250000 vs - 7PWei normalcase 19.393 ms/op 23.874 ms/op 0.81
altair processBlock - 250000 vs - 7PWei normalcase hashState 28.290 ms/op 33.568 ms/op 0.84
altair processBlock - 250000 vs - 7PWei worstcase 49.216 ms/op 66.237 ms/op 0.74
altair processBlock - 250000 vs - 7PWei worstcase hashState 72.006 ms/op 90.373 ms/op 0.80
phase0 processBlock - 250000 vs - 7PWei normalcase 1.9860 ms/op 2.7210 ms/op 0.73
phase0 processBlock - 250000 vs - 7PWei worstcase 27.821 ms/op 33.730 ms/op 0.82
altair processEth1Data - 250000 vs - 7PWei normalcase 454.38 us/op 670.62 us/op 0.68
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 6.9200 us/op 14.660 us/op 0.47
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 19.691 us/op 40.387 us/op 0.49
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.4520 us/op 15.234 us/op 0.55
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.7350 us/op 11.570 us/op 0.58
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 88.392 us/op 115.75 us/op 0.76
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 644.69 us/op 715.19 us/op 0.90
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 909.55 us/op 968.47 us/op 0.94
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 869.62 us/op 1.1134 ms/op 0.78
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.3684 ms/op 3.0970 ms/op 0.76
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.4770 ms/op 1.5774 ms/op 0.94
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.0350 ms/op 4.3728 ms/op 0.92
Tree 40 250000 create 311.20 ms/op 451.84 ms/op 0.69
Tree 40 250000 get(125000) 184.69 ns/op 207.92 ns/op 0.89
Tree 40 250000 set(125000) 950.01 ns/op 1.1417 us/op 0.83
Tree 40 250000 toArray() 19.912 ms/op 23.973 ms/op 0.83
Tree 40 250000 iterate all - toArray() + loop 19.902 ms/op 23.652 ms/op 0.84
Tree 40 250000 iterate all - get(i) 73.248 ms/op 78.561 ms/op 0.93
MutableVector 250000 create 10.729 ms/op 10.553 ms/op 1.02
MutableVector 250000 get(125000) 6.3300 ns/op 6.5950 ns/op 0.96
MutableVector 250000 set(125000) 262.86 ns/op 288.83 ns/op 0.91
MutableVector 250000 toArray() 2.9523 ms/op 3.0512 ms/op 0.97
MutableVector 250000 iterate all - toArray() + loop 3.0170 ms/op 3.2032 ms/op 0.94
MutableVector 250000 iterate all - get(i) 1.5124 ms/op 1.5450 ms/op 0.98
Array 250000 create 3.0531 ms/op 3.0357 ms/op 1.01
Array 250000 clone - spread 1.2574 ms/op 1.1204 ms/op 1.12
Array 250000 get(125000) 0.63300 ns/op 0.54200 ns/op 1.17
Array 250000 set(125000) 0.67000 ns/op 0.61500 ns/op 1.09
Array 250000 iterate all - loop 108.01 us/op 84.423 us/op 1.28
effectiveBalanceIncrements clone Uint8Array 300000 40.256 us/op 27.040 us/op 1.49
effectiveBalanceIncrements clone MutableVector 300000 402.00 ns/op 325.00 ns/op 1.24
effectiveBalanceIncrements rw all Uint8Array 300000 169.25 us/op 169.62 us/op 1.00
effectiveBalanceIncrements rw all MutableVector 300000 96.728 ms/op 80.107 ms/op 1.21
phase0 afterProcessEpoch - 250000 vs - 7PWei 115.71 ms/op 115.27 ms/op 1.00
phase0 beforeProcessEpoch - 250000 vs - 7PWei 42.057 ms/op 44.561 ms/op 0.94
altair processEpoch - mainnet_e81889 326.83 ms/op 333.88 ms/op 0.98
mainnet_e81889 - altair beforeProcessEpoch 59.801 ms/op 69.920 ms/op 0.86
mainnet_e81889 - altair processJustificationAndFinalization 16.803 us/op 16.719 us/op 1.01
mainnet_e81889 - altair processInactivityUpdates 5.3412 ms/op 6.0971 ms/op 0.88
mainnet_e81889 - altair processRewardsAndPenalties 50.172 ms/op 66.078 ms/op 0.76
mainnet_e81889 - altair processRegistryUpdates 2.8480 us/op 2.9630 us/op 0.96
mainnet_e81889 - altair processSlashings 469.00 ns/op 474.00 ns/op 0.99
mainnet_e81889 - altair processEth1DataReset 556.00 ns/op 537.00 ns/op 1.04
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2382 ms/op 1.2056 ms/op 1.03
mainnet_e81889 - altair processSlashingsReset 3.4710 us/op 4.5570 us/op 0.76
mainnet_e81889 - altair processRandaoMixesReset 6.7390 us/op 6.1870 us/op 1.09
mainnet_e81889 - altair processHistoricalRootsUpdate 1.1150 us/op 917.00 ns/op 1.22
mainnet_e81889 - altair processParticipationFlagUpdates 2.6480 us/op 3.2780 us/op 0.81
mainnet_e81889 - altair processSyncCommitteeUpdates 899.00 ns/op 657.00 ns/op 1.37
mainnet_e81889 - altair afterProcessEpoch 128.66 ms/op 130.67 ms/op 0.98
phase0 processEpoch - mainnet_e58758 356.97 ms/op 382.57 ms/op 0.93
mainnet_e58758 - phase0 beforeProcessEpoch 143.22 ms/op 145.79 ms/op 0.98
mainnet_e58758 - phase0 processJustificationAndFinalization 17.594 us/op 19.905 us/op 0.88
mainnet_e58758 - phase0 processRewardsAndPenalties 65.907 ms/op 64.099 ms/op 1.03
mainnet_e58758 - phase0 processRegistryUpdates 9.6570 us/op 11.392 us/op 0.85
mainnet_e58758 - phase0 processSlashings 551.00 ns/op 1.1030 us/op 0.50
mainnet_e58758 - phase0 processEth1DataReset 575.00 ns/op 1.2920 us/op 0.45
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0528 ms/op 1.4697 ms/op 0.72
mainnet_e58758 - phase0 processSlashingsReset 5.4860 us/op 6.6080 us/op 0.83
mainnet_e58758 - phase0 processRandaoMixesReset 5.5870 us/op 8.1000 us/op 0.69
mainnet_e58758 - phase0 processHistoricalRootsUpdate 751.00 ns/op 1.4350 us/op 0.52
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.2690 us/op 7.5120 us/op 0.57
mainnet_e58758 - phase0 afterProcessEpoch 100.35 ms/op 106.73 ms/op 0.94
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2371 ms/op 1.3952 ms/op 0.89
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.5631 ms/op 1.7375 ms/op 0.90
altair processInactivityUpdates - 250000 normalcase 26.620 ms/op 29.342 ms/op 0.91
altair processInactivityUpdates - 250000 worstcase 26.321 ms/op 31.649 ms/op 0.83
phase0 processRegistryUpdates - 250000 normalcase 7.1580 us/op 13.370 us/op 0.54
phase0 processRegistryUpdates - 250000 badcase_full_deposits 271.84 us/op 303.50 us/op 0.90
phase0 processRegistryUpdates - 250000 worstcase 0.5 126.67 ms/op 136.99 ms/op 0.92
altair processRewardsAndPenalties - 250000 normalcase 68.094 ms/op 68.655 ms/op 0.99
altair processRewardsAndPenalties - 250000 worstcase 67.616 ms/op 70.846 ms/op 0.95
phase0 getAttestationDeltas - 250000 normalcase 6.6219 ms/op 6.9932 ms/op 0.95
phase0 getAttestationDeltas - 250000 worstcase 6.4945 ms/op 7.4203 ms/op 0.88
phase0 processSlashings - 250000 worstcase 3.2870 ms/op 3.5588 ms/op 0.92
altair processSyncCommitteeUpdates - 250000 171.72 ms/op 195.83 ms/op 0.88
BeaconState.hashTreeRoot - No change 258.00 ns/op 345.00 ns/op 0.75
BeaconState.hashTreeRoot - 1 full validator 52.076 us/op 54.101 us/op 0.96
BeaconState.hashTreeRoot - 32 full validator 508.55 us/op 506.84 us/op 1.00
BeaconState.hashTreeRoot - 512 full validator 5.7608 ms/op 5.9252 ms/op 0.97
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 61.737 us/op 66.022 us/op 0.94
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 905.02 us/op 1.0037 ms/op 0.90
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 11.173 ms/op 13.219 ms/op 0.85
BeaconState.hashTreeRoot - 1 balances 47.433 us/op 54.851 us/op 0.86
BeaconState.hashTreeRoot - 32 balances 417.53 us/op 523.34 us/op 0.80
BeaconState.hashTreeRoot - 512 balances 4.2508 ms/op 5.4642 ms/op 0.78
BeaconState.hashTreeRoot - 250000 balances 75.486 ms/op 83.176 ms/op 0.91
aggregationBits - 2048 els - zipIndexesInBitList 15.280 us/op 19.245 us/op 0.79
regular array get 100000 times 42.428 us/op 36.634 us/op 1.16
wrappedArray get 100000 times 32.536 us/op 36.316 us/op 0.90
arrayWithProxy get 100000 times 15.983 ms/op 16.179 ms/op 0.99
ssz.Root.equals 522.00 ns/op 612.00 ns/op 0.85
byteArrayEquals 515.00 ns/op 616.00 ns/op 0.84
shuffle list - 16384 els 6.7699 ms/op 7.7482 ms/op 0.87
shuffle list - 250000 els 99.047 ms/op 114.10 ms/op 0.87
processSlot - 1 slots 9.0470 us/op 10.237 us/op 0.88
processSlot - 32 slots 1.3133 ms/op 1.4951 ms/op 0.88
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 36.524 ms/op 38.399 ms/op 0.95
getCommitteeAssignments - req 1 vs - 250000 vc 2.8796 ms/op 3.0329 ms/op 0.95
getCommitteeAssignments - req 100 vs - 250000 vc 4.1070 ms/op 4.3842 ms/op 0.94
getCommitteeAssignments - req 1000 vs - 250000 vc 4.4542 ms/op 4.7144 ms/op 0.94
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.5300 ns/op 5.2300 ns/op 0.87
state getBlockRootAtSlot - 250000 vs - 7PWei 817.48 ns/op 933.39 ns/op 0.88
computeProposers - vc 250000 10.312 ms/op 11.660 ms/op 0.88
computeEpochShuffling - vc 250000 100.89 ms/op 110.11 ms/op 0.92
getNextSyncCommittee - vc 250000 176.27 ms/op 201.33 ms/op 0.88
computeSigningRoot for AttestationData 13.255 us/op 15.157 us/op 0.87
hash AttestationData serialized data then Buffer.toString(base64) 2.4094 us/op 2.8590 us/op 0.84
toHexString serialized data 1.0518 us/op 2.0522 us/op 0.51
Buffer.toString(base64) 315.03 ns/op 473.84 ns/op 0.66

by benchmarkbot/action

@nazarhussain nazarhussain merged commit 7028ffb into unstable Jun 30, 2023
@nazarhussain nazarhussain deleted the nh/ts-update branch June 30, 2023 09:17
@wemeetagain
Copy link
Member

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