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: limit incoming connections to lodestar #5860

Merged
merged 2 commits into from
Aug 12, 2023

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Aug 8, 2023

Motivation

With a max peers of 55, we don't want to have too many pending connections to lodestar

Description

  • Specify backlog option for libp2p-tcp and maxIncomingPendingConnections for libp2p connection manager

TODOs

  • test on a node

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: de41433 Previous: 042adb1 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 967.53 us/op 565.78 us/op 1.71
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 82.517 us/op 93.075 us/op 0.89
BLS verify - blst-native 1.2473 ms/op 1.2873 ms/op 0.97
BLS verifyMultipleSignatures 3 - blst-native 2.5618 ms/op 2.6305 ms/op 0.97
BLS verifyMultipleSignatures 8 - blst-native 5.5722 ms/op 5.6612 ms/op 0.98
BLS verifyMultipleSignatures 32 - blst-native 19.845 ms/op 20.453 ms/op 0.97
BLS aggregatePubkeys 32 - blst-native 26.166 us/op 27.186 us/op 0.96
BLS aggregatePubkeys 128 - blst-native 101.78 us/op 106.44 us/op 0.96
getAttestationsForBlock 54.122 ms/op 99.234 ms/op 0.55
isKnown best case - 1 super set check 379.00 ns/op 649.00 ns/op 0.58
isKnown normal case - 2 super set checks 472.00 ns/op 611.00 ns/op 0.77
isKnown worse case - 16 super set checks 358.00 ns/op 604.00 ns/op 0.59
CheckpointStateCache - add get delete 5.5310 us/op 8.4450 us/op 0.65
validate api signedAggregateAndProof - struct 2.9373 ms/op 3.1196 ms/op 0.94
validate gossip signedAggregateAndProof - struct 3.0357 ms/op 3.9040 ms/op 0.78
validate api attestation - struct 1.5487 ms/op 1.5890 ms/op 0.97
validate gossip attestation - struct 1.4870 ms/op 1.4302 ms/op 1.04
pickEth1Vote - no votes 1.4683 ms/op 1.4133 ms/op 1.04
pickEth1Vote - max votes 9.7179 ms/op 14.515 ms/op 0.67
pickEth1Vote - Eth1Data hashTreeRoot value x2048 9.2733 ms/op 10.978 ms/op 0.84
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 15.219 ms/op 24.812 ms/op 0.61
pickEth1Vote - Eth1Data fastSerialize value x2048 739.50 us/op 814.71 us/op 0.91
pickEth1Vote - Eth1Data fastSerialize tree x2048 4.6832 ms/op 8.8118 ms/op 0.53
bytes32 toHexString 810.00 ns/op 933.00 ns/op 0.87
bytes32 Buffer.toString(hex) 333.00 ns/op 407.00 ns/op 0.82
bytes32 Buffer.toString(hex) from Uint8Array 458.00 ns/op 695.00 ns/op 0.66
bytes32 Buffer.toString(hex) + 0x 324.00 ns/op 354.00 ns/op 0.92
Object access 1 prop 0.18100 ns/op 0.31700 ns/op 0.57
Map access 1 prop 0.15500 ns/op 0.22400 ns/op 0.69
Object get x1000 8.1180 ns/op 12.498 ns/op 0.65
Map get x1000 0.67600 ns/op 1.0730 ns/op 0.63
Object set x1000 62.308 ns/op 108.87 ns/op 0.57
Map set x1000 43.560 ns/op 72.407 ns/op 0.60
Return object 10000 times 0.25620 ns/op 0.45030 ns/op 0.57
Throw Error 10000 times 4.0169 us/op 4.8037 us/op 0.84
fastMsgIdFn sha256 / 200 bytes 3.4080 us/op 3.6860 us/op 0.92
fastMsgIdFn h32 xxhash / 200 bytes 320.00 ns/op 400.00 ns/op 0.80
fastMsgIdFn h64 xxhash / 200 bytes 362.00 ns/op 423.00 ns/op 0.86
fastMsgIdFn sha256 / 1000 bytes 11.688 us/op 12.560 us/op 0.93
fastMsgIdFn h32 xxhash / 1000 bytes 452.00 ns/op 490.00 ns/op 0.92
fastMsgIdFn h64 xxhash / 1000 bytes 446.00 ns/op 475.00 ns/op 0.94
fastMsgIdFn sha256 / 10000 bytes 106.05 us/op 105.80 us/op 1.00
fastMsgIdFn h32 xxhash / 10000 bytes 2.0080 us/op 2.0340 us/op 0.99
fastMsgIdFn h64 xxhash / 10000 bytes 1.4090 us/op 1.4040 us/op 1.00
enrSubnets - fastDeserialize 64 bits 1.2910 us/op 1.5080 us/op 0.86
enrSubnets - ssz BitVector 64 bits 434.00 ns/op 604.00 ns/op 0.72
enrSubnets - fastDeserialize 4 bits 188.00 ns/op 238.00 ns/op 0.79
enrSubnets - ssz BitVector 4 bits 474.00 ns/op 556.00 ns/op 0.85
prioritizePeers score -10:0 att 32-0.1 sync 2-0 123.16 us/op 115.31 us/op 1.07
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 150.54 us/op 168.23 us/op 0.89
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 219.47 us/op 250.06 us/op 0.88
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 332.78 us/op 412.51 us/op 0.81
prioritizePeers score 0:0 att 64-1 sync 4-1 362.78 us/op 505.74 us/op 0.72
array of 16000 items push then shift 1.6563 us/op 1.8624 us/op 0.89
LinkedList of 16000 items push then shift 9.3250 ns/op 11.835 ns/op 0.79
array of 16000 items push then pop 65.217 ns/op 75.121 ns/op 0.87
LinkedList of 16000 items push then pop 11.028 ns/op 10.614 ns/op 1.04
array of 24000 items push then shift 2.6585 us/op 2.6802 us/op 0.99
LinkedList of 24000 items push then shift 9.0830 ns/op 11.259 ns/op 0.81
array of 24000 items push then pop 115.39 ns/op 138.94 ns/op 0.83
LinkedList of 24000 items push then pop 8.8370 ns/op 9.6840 ns/op 0.91
intersect bitArray bitLen 8 6.9600 ns/op 7.3870 ns/op 0.94
intersect array and set length 8 63.090 ns/op 79.603 ns/op 0.79
intersect bitArray bitLen 128 32.410 ns/op 34.855 ns/op 0.93
intersect array and set length 128 896.69 ns/op 1.0309 us/op 0.87
bitArray.getTrueBitIndexes() bitLen 128 1.9840 us/op 1.8140 us/op 1.09
bitArray.getTrueBitIndexes() bitLen 248 3.2010 us/op 3.0670 us/op 1.04
bitArray.getTrueBitIndexes() bitLen 512 6.1130 us/op 6.1860 us/op 0.99
Buffer.concat 32 items 1.0170 us/op 1.0640 us/op 0.96
Uint8Array.set 32 items 2.0140 us/op 2.3240 us/op 0.87
transfer serialized Status (84 B) 2.1620 us/op 2.0650 us/op 1.05
copy serialized Status (84 B) 1.6940 us/op 1.8180 us/op 0.93
transfer serialized SignedVoluntaryExit (112 B) 2.1420 us/op 2.1200 us/op 1.01
copy serialized SignedVoluntaryExit (112 B) 1.9630 us/op 1.8610 us/op 1.05
transfer serialized ProposerSlashing (416 B) 3.7990 us/op 2.5460 us/op 1.49
copy serialized ProposerSlashing (416 B) 2.0640 us/op 2.5260 us/op 0.82
transfer serialized Attestation (485 B) 2.3170 us/op 3.4670 us/op 0.67
copy serialized Attestation (485 B) 1.9010 us/op 3.7200 us/op 0.51
transfer serialized AttesterSlashing (33232 B) 2.2610 us/op 3.3900 us/op 0.67
copy serialized AttesterSlashing (33232 B) 5.3390 us/op 10.302 us/op 0.52
transfer serialized Small SignedBeaconBlock (128000 B) 2.5920 us/op 3.8520 us/op 0.67
copy serialized Small SignedBeaconBlock (128000 B) 14.413 us/op 23.495 us/op 0.61
transfer serialized Avg SignedBeaconBlock (200000 B) 3.0450 us/op 3.9000 us/op 0.78
copy serialized Avg SignedBeaconBlock (200000 B) 18.666 us/op 30.987 us/op 0.60
transfer serialized BlobsSidecar (524380 B) 2.8860 us/op 4.2940 us/op 0.67
copy serialized BlobsSidecar (524380 B) 83.453 us/op 88.780 us/op 0.94
transfer serialized Big SignedBeaconBlock (1000000 B) 3.1330 us/op 3.7490 us/op 0.84
copy serialized Big SignedBeaconBlock (1000000 B) 171.23 us/op 175.38 us/op 0.98
pass gossip attestations to forkchoice per slot 2.3349 ms/op 2.2836 ms/op 1.02
forkChoice updateHead vc 100000 bc 64 eq 0 2.6766 ms/op 2.6650 ms/op 1.00
forkChoice updateHead vc 600000 bc 64 eq 0 12.216 ms/op 12.546 ms/op 0.97
forkChoice updateHead vc 1000000 bc 64 eq 0 20.546 ms/op 19.314 ms/op 1.06
forkChoice updateHead vc 600000 bc 320 eq 0 17.732 ms/op 19.341 ms/op 0.92
forkChoice updateHead vc 600000 bc 1200 eq 0 91.063 ms/op 91.774 ms/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 1000 23.109 ms/op 20.394 ms/op 1.13
forkChoice updateHead vc 600000 bc 64 eq 10000 24.832 ms/op 22.996 ms/op 1.08
forkChoice updateHead vc 600000 bc 64 eq 300000 40.182 ms/op 64.451 ms/op 0.62
computeDeltas 3.4131 ms/op 3.9651 ms/op 0.86
computeProposerBoostScoreFromBalances 398.80 us/op 443.03 us/op 0.90
altair processAttestation - 250000 vs - 7PWei normalcase 2.3959 ms/op 3.9585 ms/op 0.61
altair processAttestation - 250000 vs - 7PWei worstcase 3.3375 ms/op 6.0537 ms/op 0.55
altair processAttestation - setStatus - 1/6 committees join 185.61 us/op 232.94 us/op 0.80
altair processAttestation - setStatus - 1/3 committees join 349.48 us/op 467.71 us/op 0.75
altair processAttestation - setStatus - 1/2 committees join 492.58 us/op 536.95 us/op 0.92
altair processAttestation - setStatus - 2/3 committees join 642.44 us/op 663.50 us/op 0.97
altair processAttestation - setStatus - 4/5 committees join 814.58 us/op 875.31 us/op 0.93
altair processAttestation - setStatus - 100% committees join 1.0008 ms/op 984.19 us/op 1.02
altair processBlock - 250000 vs - 7PWei normalcase 10.727 ms/op 11.127 ms/op 0.96
altair processBlock - 250000 vs - 7PWei normalcase hashState 17.884 ms/op 18.760 ms/op 0.95
altair processBlock - 250000 vs - 7PWei worstcase 38.170 ms/op 45.541 ms/op 0.84
altair processBlock - 250000 vs - 7PWei worstcase hashState 58.857 ms/op 71.671 ms/op 0.82
phase0 processBlock - 250000 vs - 7PWei normalcase 2.6136 ms/op 3.7027 ms/op 0.71
phase0 processBlock - 250000 vs - 7PWei worstcase 31.562 ms/op 41.438 ms/op 0.76
altair processEth1Data - 250000 vs - 7PWei normalcase 472.42 us/op 741.59 us/op 0.64
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 9.6070 us/op 21.533 us/op 0.45
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 65.886 us/op 107.74 us/op 0.61
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 19.056 us/op 34.449 us/op 0.55
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 14.312 us/op 20.059 us/op 0.71
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 184.86 us/op 158.94 us/op 1.16
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1075 ms/op 1.6507 ms/op 0.67
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.7952 ms/op 2.0828 ms/op 0.86
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.6265 ms/op 2.1329 ms/op 0.76
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.4770 ms/op 4.9253 ms/op 0.71
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.4078 ms/op 3.0921 ms/op 0.78
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.0554 ms/op 7.5608 ms/op 0.67
Tree 40 250000 create 349.56 ms/op 600.54 ms/op 0.58
Tree 40 250000 get(125000) 203.00 ns/op 216.18 ns/op 0.94
Tree 40 250000 set(125000) 911.07 ns/op 1.4785 us/op 0.62
Tree 40 250000 toArray() 20.806 ms/op 25.353 ms/op 0.82
Tree 40 250000 iterate all - toArray() + loop 20.913 ms/op 25.903 ms/op 0.81
Tree 40 250000 iterate all - get(i) 71.604 ms/op 77.494 ms/op 0.92
MutableVector 250000 create 12.945 ms/op 18.703 ms/op 0.69
MutableVector 250000 get(125000) 6.7830 ns/op 7.1240 ns/op 0.95
MutableVector 250000 set(125000) 269.53 ns/op 377.02 ns/op 0.71
MutableVector 250000 toArray() 3.6766 ms/op 4.5368 ms/op 0.81
MutableVector 250000 iterate all - toArray() + loop 3.3352 ms/op 5.0830 ms/op 0.66
MutableVector 250000 iterate all - get(i) 1.5306 ms/op 1.5915 ms/op 0.96
Array 250000 create 3.0452 ms/op 3.6925 ms/op 0.82
Array 250000 clone - spread 985.77 us/op 1.1119 ms/op 0.89
Array 250000 get(125000) 0.50100 ns/op 0.55000 ns/op 0.91
Array 250000 set(125000) 0.57800 ns/op 0.61800 ns/op 0.94
Array 250000 iterate all - loop 83.632 us/op 109.99 us/op 0.76
effectiveBalanceIncrements clone Uint8Array 300000 27.545 us/op 38.390 us/op 0.72
effectiveBalanceIncrements clone MutableVector 300000 268.00 ns/op 290.00 ns/op 0.92
effectiveBalanceIncrements rw all Uint8Array 300000 179.73 us/op 194.75 us/op 0.92
effectiveBalanceIncrements rw all MutableVector 300000 76.955 ms/op 95.487 ms/op 0.81
phase0 afterProcessEpoch - 250000 vs - 7PWei 112.23 ms/op 120.84 ms/op 0.93
phase0 beforeProcessEpoch - 250000 vs - 7PWei 39.272 ms/op 48.148 ms/op 0.82
altair processEpoch - mainnet_e81889 324.04 ms/op 368.29 ms/op 0.88
mainnet_e81889 - altair beforeProcessEpoch 49.906 ms/op 98.902 ms/op 0.50
mainnet_e81889 - altair processJustificationAndFinalization 14.087 us/op 45.060 us/op 0.31
mainnet_e81889 - altair processInactivityUpdates 5.6212 ms/op 13.173 ms/op 0.43
mainnet_e81889 - altair processRewardsAndPenalties 65.193 ms/op 90.336 ms/op 0.72
mainnet_e81889 - altair processRegistryUpdates 2.2860 us/op 11.021 us/op 0.21
mainnet_e81889 - altair processSlashings 1.3100 us/op 1.9780 us/op 0.66
mainnet_e81889 - altair processEth1DataReset 1.2130 us/op 2.2550 us/op 0.54
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2798 ms/op 2.8034 ms/op 0.46
mainnet_e81889 - altair processSlashingsReset 2.7150 us/op 8.7450 us/op 0.31
mainnet_e81889 - altair processRandaoMixesReset 4.0530 us/op 10.992 us/op 0.37
mainnet_e81889 - altair processHistoricalRootsUpdate 769.00 ns/op 2.0530 us/op 0.37
mainnet_e81889 - altair processParticipationFlagUpdates 4.1670 us/op 3.5810 us/op 1.16
mainnet_e81889 - altair processSyncCommitteeUpdates 922.00 ns/op 1.0420 us/op 0.88
mainnet_e81889 - altair afterProcessEpoch 131.71 ms/op 129.81 ms/op 1.01
capella processEpoch - mainnet_e217614 1.1136 s/op 1.1831 s/op 0.94
mainnet_e217614 - capella beforeProcessEpoch 260.08 ms/op 265.07 ms/op 0.98
mainnet_e217614 - capella processJustificationAndFinalization 17.121 us/op 16.465 us/op 1.04
mainnet_e217614 - capella processInactivityUpdates 19.442 ms/op 17.178 ms/op 1.13
mainnet_e217614 - capella processRewardsAndPenalties 300.58 ms/op 302.44 ms/op 0.99
mainnet_e217614 - capella processRegistryUpdates 24.274 us/op 29.099 us/op 0.83
mainnet_e217614 - capella processSlashings 531.00 ns/op 782.00 ns/op 0.68
mainnet_e217614 - capella processEth1DataReset 708.00 ns/op 607.00 ns/op 1.17
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.3320 ms/op 4.4298 ms/op 0.98
mainnet_e217614 - capella processSlashingsReset 2.7850 us/op 4.1280 us/op 0.67
mainnet_e217614 - capella processRandaoMixesReset 4.9230 us/op 6.1920 us/op 0.80
mainnet_e217614 - capella processHistoricalRootsUpdate 599.00 ns/op 772.00 ns/op 0.78
mainnet_e217614 - capella processParticipationFlagUpdates 4.5310 us/op 3.0230 us/op 1.50
mainnet_e217614 - capella afterProcessEpoch 345.66 ms/op 310.00 ms/op 1.12
phase0 processEpoch - mainnet_e58758 459.94 ms/op 368.24 ms/op 1.25
mainnet_e58758 - phase0 beforeProcessEpoch 177.11 ms/op 149.89 ms/op 1.18
mainnet_e58758 - phase0 processJustificationAndFinalization 31.317 us/op 17.590 us/op 1.78
mainnet_e58758 - phase0 processRewardsAndPenalties 53.109 ms/op 66.610 ms/op 0.80
mainnet_e58758 - phase0 processRegistryUpdates 22.987 us/op 10.845 us/op 2.12
mainnet_e58758 - phase0 processSlashings 1.1620 us/op 842.00 ns/op 1.38
mainnet_e58758 - phase0 processEth1DataReset 912.00 ns/op 532.00 ns/op 1.71
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.8351 ms/op 1.0302 ms/op 1.78
mainnet_e58758 - phase0 processSlashingsReset 5.1740 us/op 2.8130 us/op 1.84
mainnet_e58758 - phase0 processRandaoMixesReset 12.419 us/op 5.1180 us/op 2.43
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.3090 us/op 640.00 ns/op 2.05
mainnet_e58758 - phase0 processParticipationRecordUpdates 9.9930 us/op 4.8840 us/op 2.05
mainnet_e58758 - phase0 afterProcessEpoch 132.69 ms/op 102.91 ms/op 1.29
phase0 processEffectiveBalanceUpdates - 250000 normalcase 2.3731 ms/op 1.3418 ms/op 1.77
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 3.4201 ms/op 1.4800 ms/op 2.31
altair processInactivityUpdates - 250000 normalcase 37.193 ms/op 29.131 ms/op 1.28
altair processInactivityUpdates - 250000 worstcase 37.643 ms/op 27.004 ms/op 1.39
phase0 processRegistryUpdates - 250000 normalcase 18.224 us/op 10.435 us/op 1.75
phase0 processRegistryUpdates - 250000 badcase_full_deposits 463.61 us/op 384.01 us/op 1.21
phase0 processRegistryUpdates - 250000 worstcase 0.5 206.74 ms/op 127.93 ms/op 1.62
altair processRewardsAndPenalties - 250000 normalcase 101.21 ms/op 68.927 ms/op 1.47
altair processRewardsAndPenalties - 250000 worstcase 92.182 ms/op 77.636 ms/op 1.19
phase0 getAttestationDeltas - 250000 normalcase 11.578 ms/op 8.3569 ms/op 1.39
phase0 getAttestationDeltas - 250000 worstcase 12.962 ms/op 9.6392 ms/op 1.34
phase0 processSlashings - 250000 worstcase 3.0828 ms/op 2.8019 ms/op 1.10
altair processSyncCommitteeUpdates - 250000 177.71 ms/op 179.15 ms/op 0.99
BeaconState.hashTreeRoot - No change 313.00 ns/op 316.00 ns/op 0.99
BeaconState.hashTreeRoot - 1 full validator 57.953 us/op 60.518 us/op 0.96
BeaconState.hashTreeRoot - 32 full validator 561.57 us/op 637.03 us/op 0.88
BeaconState.hashTreeRoot - 512 full validator 6.3674 ms/op 7.9553 ms/op 0.80
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 75.880 us/op 72.024 us/op 1.05
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.0007 ms/op 1.1787 ms/op 0.85
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 13.881 ms/op 14.272 ms/op 0.97
BeaconState.hashTreeRoot - 1 balances 55.686 us/op 56.509 us/op 0.99
BeaconState.hashTreeRoot - 32 balances 505.56 us/op 486.33 us/op 1.04
BeaconState.hashTreeRoot - 512 balances 4.9841 ms/op 5.7753 ms/op 0.86
BeaconState.hashTreeRoot - 250000 balances 76.468 ms/op 87.493 ms/op 0.87
aggregationBits - 2048 els - zipIndexesInBitList 18.962 us/op 27.509 us/op 0.69
regular array get 100000 times 35.102 us/op 43.231 us/op 0.81
wrappedArray get 100000 times 35.265 us/op 36.654 us/op 0.96
arrayWithProxy get 100000 times 16.769 ms/op 15.687 ms/op 1.07
ssz.Root.equals 232.00 ns/op 321.00 ns/op 0.72
byteArrayEquals 226.00 ns/op 274.00 ns/op 0.82
shuffle list - 16384 els 7.5359 ms/op 7.5608 ms/op 1.00
shuffle list - 250000 els 112.72 ms/op 111.79 ms/op 1.01
processSlot - 1 slots 10.010 us/op 12.820 us/op 0.78
processSlot - 32 slots 1.4644 ms/op 1.4725 ms/op 0.99
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 61.976 ms/op 64.235 ms/op 0.96
getCommitteeAssignments - req 1 vs - 250000 vc 2.8899 ms/op 2.6273 ms/op 1.10
getCommitteeAssignments - req 100 vs - 250000 vc 4.2006 ms/op 3.8675 ms/op 1.09
getCommitteeAssignments - req 1000 vs - 250000 vc 4.7894 ms/op 4.1800 ms/op 1.15
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.6400 ns/op 5.5700 ns/op 1.01
state getBlockRootAtSlot - 250000 vs - 7PWei 749.24 ns/op 880.93 ns/op 0.85
computeProposers - vc 250000 10.608 ms/op 10.056 ms/op 1.05
computeEpochShuffling - vc 250000 116.51 ms/op 109.44 ms/op 1.06
getNextSyncCommittee - vc 250000 178.17 ms/op 160.58 ms/op 1.11
computeSigningRoot for AttestationData 17.298 us/op 14.446 us/op 1.20
hash AttestationData serialized data then Buffer.toString(base64) 2.5655 us/op 2.5188 us/op 1.02
toHexString serialized data 1.7154 us/op 1.6061 us/op 1.07
Buffer.toString(base64) 290.40 ns/op 277.46 ns/op 1.05

by benchmarkbot/action

@twoeths twoeths force-pushed the tuyen/limit_incoming_connection branch from 79708eb to 416a791 Compare August 9, 2023 01:16
@twoeths
Copy link
Contributor Author

twoeths commented Aug 11, 2023

after testing this branch for some days, there is no difference to unstable. Ready for review

@twoeths twoeths marked this pull request as ready for review August 11, 2023 08:35
@twoeths twoeths requested a review from a team as a code owner August 11, 2023 08:35
@wemeetagain wemeetagain merged commit f1a2291 into unstable Aug 12, 2023
11 checks passed
@wemeetagain wemeetagain deleted the tuyen/limit_incoming_connection branch August 12, 2023 17:08
@wemeetagain
Copy link
Member

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