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

fix: network worker not shutting down #5946

Merged
merged 3 commits into from
Sep 8, 2023

Conversation

nazarhussain
Copy link
Contributor

Motivation

Gracefully shutdown the node.

Description

  • It's observed that the network worker thread didn't shutdown properly
  • Semantic observation leads to fact that it take more time to cleanup event handlers
  • Added retry for exit strategy

Closes #5775

Steps to test or reproduce

Run all tests.

@nazarhussain nazarhussain requested a review from a team as a code owner September 8, 2023 13:55
@nazarhussain nazarhussain self-assigned this Sep 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 11781f8 Previous: b79e9ba Ratio
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 3.6500 us/op 13.081 us/op 0.28
Full benchmark results
Benchmark suite Current: 11781f8 Previous: b79e9ba Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 803.70 us/op 629.39 us/op 1.28
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 51.039 us/op 74.469 us/op 0.69
BLS verify - blst-native 1.1133 ms/op 1.2818 ms/op 0.87
BLS verifyMultipleSignatures 3 - blst-native 2.5191 ms/op 2.6930 ms/op 0.94
BLS verifyMultipleSignatures 8 - blst-native 5.4024 ms/op 5.9007 ms/op 0.92
BLS verifyMultipleSignatures 32 - blst-native 19.808 ms/op 21.555 ms/op 0.92
BLS verifyMultipleSignatures 64 - blst-native 36.907 ms/op 42.450 ms/op 0.87
BLS verifyMultipleSignatures 128 - blst-native 74.983 ms/op 84.327 ms/op 0.89
BLS deserializing 10000 signatures 785.37 ms/op 872.60 ms/op 0.90
BLS deserializing 100000 signatures 7.8630 s/op 8.9598 s/op 0.88
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.1209 ms/op 1.3265 ms/op 0.84
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.2728 ms/op 1.4903 ms/op 0.85
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.0017 ms/op 2.4857 ms/op 0.81
BLS verifyMultipleSignatures - same message - 64 - blst-native 2.9678 ms/op 3.3588 ms/op 0.88
BLS verifyMultipleSignatures - same message - 128 - blst-native 4.9064 ms/op 5.4773 ms/op 0.90
BLS aggregatePubkeys 32 - blst-native 22.206 us/op 25.180 us/op 0.88
BLS aggregatePubkeys 128 - blst-native 87.661 us/op 98.075 us/op 0.89
getAttestationsForBlock 23.697 ms/op 33.293 ms/op 0.71
isKnown best case - 1 super set check 186.00 ns/op 266.00 ns/op 0.70
isKnown normal case - 2 super set checks 184.00 ns/op 260.00 ns/op 0.71
isKnown worse case - 16 super set checks 185.00 ns/op 253.00 ns/op 0.73
CheckpointStateCache - add get delete 3.1640 us/op 4.7620 us/op 0.66
validate api signedAggregateAndProof - struct 2.3439 ms/op 2.6823 ms/op 0.87
validate gossip signedAggregateAndProof - struct 2.3601 ms/op 2.6733 ms/op 0.88
validate gossip attestation - vc 640000 1.1140 ms/op 1.2969 ms/op 0.86
batch validate gossip attestation - vc 640000 - chunk 32 124.43 us/op 144.90 us/op 0.86
batch validate gossip attestation - vc 640000 - chunk 64 108.72 us/op 125.45 us/op 0.87
batch validate gossip attestation - vc 640000 - chunk 128 102.90 us/op 114.68 us/op 0.90
batch validate gossip attestation - vc 640000 - chunk 256 96.290 us/op 112.36 us/op 0.86
pickEth1Vote - no votes 876.94 us/op 1.2891 ms/op 0.68
pickEth1Vote - max votes 6.5512 ms/op 9.1598 ms/op 0.72
pickEth1Vote - Eth1Data hashTreeRoot value x2048 4.8512 ms/op 8.5610 ms/op 0.57
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 10.020 ms/op 15.269 ms/op 0.66
pickEth1Vote - Eth1Data fastSerialize value x2048 430.20 us/op 542.38 us/op 0.79
pickEth1Vote - Eth1Data fastSerialize tree x2048 4.1829 ms/op 7.5581 ms/op 0.55
bytes32 toHexString 339.00 ns/op 450.00 ns/op 0.75
bytes32 Buffer.toString(hex) 200.00 ns/op 286.00 ns/op 0.70
bytes32 Buffer.toString(hex) from Uint8Array 312.00 ns/op 410.00 ns/op 0.76
bytes32 Buffer.toString(hex) + 0x 201.00 ns/op 291.00 ns/op 0.69
Object access 1 prop 0.10600 ns/op 0.15200 ns/op 0.70
Map access 1 prop 0.10400 ns/op 0.14400 ns/op 0.72
Object get x1000 5.2700 ns/op 7.0780 ns/op 0.74
Map get x1000 0.42200 ns/op 0.58700 ns/op 0.72
Object set x1000 24.251 ns/op 46.336 ns/op 0.52
Map set x1000 15.933 ns/op 36.027 ns/op 0.44
Return object 10000 times 0.21630 ns/op 0.23170 ns/op 0.93
Throw Error 10000 times 2.9372 us/op 3.7264 us/op 0.79
fastMsgIdFn sha256 / 200 bytes 1.8570 us/op 3.2020 us/op 0.58
fastMsgIdFn h32 xxhash / 200 bytes 200.00 ns/op 261.00 ns/op 0.77
fastMsgIdFn h64 xxhash / 200 bytes 241.00 ns/op 329.00 ns/op 0.73
fastMsgIdFn sha256 / 1000 bytes 6.0280 us/op 11.129 us/op 0.54
fastMsgIdFn h32 xxhash / 1000 bytes 343.00 ns/op 384.00 ns/op 0.89
fastMsgIdFn h64 xxhash / 1000 bytes 325.00 ns/op 394.00 ns/op 0.82
fastMsgIdFn sha256 / 10000 bytes 52.303 us/op 101.62 us/op 0.51
fastMsgIdFn h32 xxhash / 10000 bytes 1.7130 us/op 1.8670 us/op 0.92
fastMsgIdFn h64 xxhash / 10000 bytes 1.1260 us/op 1.2760 us/op 0.88
enrSubnets - fastDeserialize 64 bits 1.0060 us/op 1.1250 us/op 0.89
enrSubnets - ssz BitVector 64 bits 358.00 ns/op 392.00 ns/op 0.91
enrSubnets - fastDeserialize 4 bits 120.00 ns/op 151.00 ns/op 0.79
enrSubnets - ssz BitVector 4 bits 299.00 ns/op 392.00 ns/op 0.76
prioritizePeers score -10:0 att 32-0.1 sync 2-0 73.243 us/op 97.342 us/op 0.75
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 82.099 us/op 121.56 us/op 0.68
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 110.06 us/op 155.24 us/op 0.71
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 180.00 us/op 276.54 us/op 0.65
prioritizePeers score 0:0 att 64-1 sync 4-1 209.52 us/op 327.18 us/op 0.64
array of 16000 items push then shift 1.2791 us/op 1.5576 us/op 0.82
LinkedList of 16000 items push then shift 7.0680 ns/op 8.7250 ns/op 0.81
array of 16000 items push then pop 89.094 ns/op 71.204 ns/op 1.25
LinkedList of 16000 items push then pop 7.1380 ns/op 8.5980 ns/op 0.83
array of 24000 items push then shift 1.7956 us/op 2.3662 us/op 0.76
LinkedList of 24000 items push then shift 6.5550 ns/op 8.7180 ns/op 0.75
array of 24000 items push then pop 113.77 ns/op 98.982 ns/op 1.15
LinkedList of 24000 items push then pop 5.9280 ns/op 8.5450 ns/op 0.69
intersect bitArray bitLen 8 5.2160 ns/op 6.6640 ns/op 0.78
intersect array and set length 8 42.055 ns/op 53.902 ns/op 0.78
intersect bitArray bitLen 128 24.792 ns/op 33.617 ns/op 0.74
intersect array and set length 128 564.30 ns/op 747.06 ns/op 0.76
bitArray.getTrueBitIndexes() bitLen 128 1.1770 us/op 1.4070 us/op 0.84
bitArray.getTrueBitIndexes() bitLen 248 2.2400 us/op 2.4030 us/op 0.93
bitArray.getTrueBitIndexes() bitLen 512 3.7920 us/op 4.5070 us/op 0.84
Buffer.concat 32 items 821.00 ns/op 935.00 ns/op 0.88
Uint8Array.set 32 items 2.0090 us/op 2.5620 us/op 0.78
Set add up to 64 items then delete first 1.7258 us/op 4.1215 us/op 0.42
OrderedSet add up to 64 items then delete first 2.6428 us/op 5.1768 us/op 0.51
Set add up to 64 items then delete last 2.6060 us/op 4.4381 us/op 0.59
OrderedSet add up to 64 items then delete last 3.1930 us/op 5.5395 us/op 0.58
Set add up to 64 items then delete middle 2.0088 us/op 4.3873 us/op 0.46
OrderedSet add up to 64 items then delete middle 4.7696 us/op 6.7001 us/op 0.71
Set add up to 128 items then delete first 3.9024 us/op 8.9363 us/op 0.44
OrderedSet add up to 128 items then delete first 6.0938 us/op 11.756 us/op 0.52
Set add up to 128 items then delete last 4.4733 us/op 8.8089 us/op 0.51
OrderedSet add up to 128 items then delete last 6.3653 us/op 11.164 us/op 0.57
Set add up to 128 items then delete middle 3.7583 us/op 8.7081 us/op 0.43
OrderedSet add up to 128 items then delete middle 11.071 us/op 16.258 us/op 0.68
Set add up to 256 items then delete first 7.5755 us/op 18.146 us/op 0.42
OrderedSet add up to 256 items then delete first 12.477 us/op 24.421 us/op 0.51
Set add up to 256 items then delete last 7.8244 us/op 17.487 us/op 0.45
OrderedSet add up to 256 items then delete last 11.549 us/op 23.037 us/op 0.50
Set add up to 256 items then delete middle 7.5727 us/op 17.735 us/op 0.43
OrderedSet add up to 256 items then delete middle 32.607 us/op 43.240 us/op 0.75
transfer serialized Status (84 B) 1.3870 us/op 1.8380 us/op 0.75
copy serialized Status (84 B) 1.4290 us/op 1.5240 us/op 0.94
transfer serialized SignedVoluntaryExit (112 B) 1.6370 us/op 2.0300 us/op 0.81
copy serialized SignedVoluntaryExit (112 B) 1.3830 us/op 1.6440 us/op 0.84
transfer serialized ProposerSlashing (416 B) 2.3650 us/op 3.0860 us/op 0.77
copy serialized ProposerSlashing (416 B) 2.9230 us/op 2.9480 us/op 0.99
transfer serialized Attestation (485 B) 1.9690 us/op 3.2410 us/op 0.61
copy serialized Attestation (485 B) 2.2640 us/op 2.9960 us/op 0.76
transfer serialized AttesterSlashing (33232 B) 3.2100 us/op 2.9170 us/op 1.10
copy serialized AttesterSlashing (33232 B) 11.057 us/op 5.4110 us/op 2.04
transfer serialized Small SignedBeaconBlock (128000 B) 3.6610 us/op 2.3750 us/op 1.54
copy serialized Small SignedBeaconBlock (128000 B) 33.016 us/op 11.933 us/op 2.77
transfer serialized Avg SignedBeaconBlock (200000 B) 4.0180 us/op 2.6850 us/op 1.50
copy serialized Avg SignedBeaconBlock (200000 B) 51.632 us/op 18.052 us/op 2.86
transfer serialized BlobsSidecar (524380 B) 5.1990 us/op 2.9890 us/op 1.74
copy serialized BlobsSidecar (524380 B) 159.98 us/op 82.978 us/op 1.93
transfer serialized Big SignedBeaconBlock (1000000 B) 4.7310 us/op 3.0680 us/op 1.54
copy serialized Big SignedBeaconBlock (1000000 B) 287.47 us/op 157.71 us/op 1.82
pass gossip attestations to forkchoice per slot 3.1118 ms/op 3.6749 ms/op 0.85
forkChoice updateHead vc 100000 bc 64 eq 0 818.01 us/op 666.64 us/op 1.23
forkChoice updateHead vc 600000 bc 64 eq 0 3.7389 ms/op 4.2368 ms/op 0.88
forkChoice updateHead vc 1000000 bc 64 eq 0 6.3831 ms/op 7.5045 ms/op 0.85
forkChoice updateHead vc 600000 bc 320 eq 0 3.2696 ms/op 4.3127 ms/op 0.76
forkChoice updateHead vc 600000 bc 1200 eq 0 2.9732 ms/op 4.2852 ms/op 0.69
forkChoice updateHead vc 600000 bc 7200 eq 0 4.4735 ms/op 5.1055 ms/op 0.88
forkChoice updateHead vc 600000 bc 64 eq 1000 14.527 ms/op 11.793 ms/op 1.23
forkChoice updateHead vc 600000 bc 64 eq 10000 10.717 ms/op 12.497 ms/op 0.86
forkChoice updateHead vc 600000 bc 64 eq 300000 17.025 ms/op 15.708 ms/op 1.08
computeDeltas 500000 validators 300 proto nodes 4.1185 ms/op 6.3662 ms/op 0.65
computeDeltas 500000 validators 1200 proto nodes 3.8204 ms/op 6.4113 ms/op 0.60
computeDeltas 500000 validators 7200 proto nodes 3.2830 ms/op 6.4552 ms/op 0.51
computeDeltas 750000 validators 300 proto nodes 4.3916 ms/op 9.7080 ms/op 0.45
computeDeltas 750000 validators 1200 proto nodes 4.4634 ms/op 12.273 ms/op 0.36
computeDeltas 750000 validators 7200 proto nodes 4.4293 ms/op 11.826 ms/op 0.37
computeDeltas 1400000 validators 300 proto nodes 8.3456 ms/op 20.389 ms/op 0.41
computeDeltas 1400000 validators 1200 proto nodes 8.3582 ms/op 20.293 ms/op 0.41
computeDeltas 1400000 validators 7200 proto nodes 8.3600 ms/op 20.195 ms/op 0.41
computeDeltas 2100000 validators 300 proto nodes 12.845 ms/op 27.568 ms/op 0.47
computeDeltas 2100000 validators 1200 proto nodes 12.840 ms/op 27.276 ms/op 0.47
computeDeltas 2100000 validators 7200 proto nodes 13.158 ms/op 26.946 ms/op 0.49
computeProposerBoostScoreFromBalances 500000 validators 2.9210 ms/op 3.2662 ms/op 0.89
computeProposerBoostScoreFromBalances 750000 validators 2.9246 ms/op 3.2132 ms/op 0.91
computeProposerBoostScoreFromBalances 1400000 validators 2.9627 ms/op 3.2180 ms/op 0.92
computeProposerBoostScoreFromBalances 2100000 validators 2.9326 ms/op 3.2008 ms/op 0.92
altair processAttestation - 250000 vs - 7PWei normalcase 1.6280 ms/op 2.3256 ms/op 0.70
altair processAttestation - 250000 vs - 7PWei worstcase 2.3128 ms/op 3.2656 ms/op 0.71
altair processAttestation - setStatus - 1/6 committees join 105.89 us/op 176.05 us/op 0.60
altair processAttestation - setStatus - 1/3 committees join 205.46 us/op 340.81 us/op 0.60
altair processAttestation - setStatus - 1/2 committees join 303.83 us/op 466.54 us/op 0.65
altair processAttestation - setStatus - 2/3 committees join 382.81 us/op 594.69 us/op 0.64
altair processAttestation - setStatus - 4/5 committees join 505.63 us/op 787.73 us/op 0.64
altair processAttestation - setStatus - 100% committees join 616.16 us/op 924.95 us/op 0.67
altair processBlock - 250000 vs - 7PWei normalcase 6.5611 ms/op 9.1015 ms/op 0.72
altair processBlock - 250000 vs - 7PWei normalcase hashState 9.8471 ms/op 17.622 ms/op 0.56
altair processBlock - 250000 vs - 7PWei worstcase 29.252 ms/op 37.894 ms/op 0.77
altair processBlock - 250000 vs - 7PWei worstcase hashState 39.721 ms/op 60.176 ms/op 0.66
phase0 processBlock - 250000 vs - 7PWei normalcase 1.7116 ms/op 2.4474 ms/op 0.70
phase0 processBlock - 250000 vs - 7PWei worstcase 23.749 ms/op 30.641 ms/op 0.78
altair processEth1Data - 250000 vs - 7PWei normalcase 274.86 us/op 478.07 us/op 0.57
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 3.6500 us/op 13.081 us/op 0.28
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 29.277 us/op 42.707 us/op 0.69
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.8970 us/op 21.401 us/op 0.42
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 8.3390 us/op 9.6730 us/op 0.86
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 117.05 us/op 145.70 us/op 0.80
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 746.13 us/op 1.1405 ms/op 0.65
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1170 ms/op 1.4817 ms/op 0.75
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.0706 ms/op 1.9132 ms/op 0.56
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.4476 ms/op 3.2452 ms/op 0.75
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.4342 ms/op 2.4325 ms/op 0.59
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.1384 ms/op 4.8259 ms/op 0.86
Tree 40 250000 create 243.12 ms/op 324.84 ms/op 0.75
Tree 40 250000 get(125000) 114.04 ns/op 208.68 ns/op 0.55
Tree 40 250000 set(125000) 714.87 ns/op 998.43 ns/op 0.72
Tree 40 250000 toArray() 20.384 ms/op 21.525 ms/op 0.95
Tree 40 250000 iterate all - toArray() + loop 13.042 ms/op 18.083 ms/op 0.72
Tree 40 250000 iterate all - get(i) 46.531 ms/op 67.927 ms/op 0.69
MutableVector 250000 create 7.2095 ms/op 11.126 ms/op 0.65
MutableVector 250000 get(125000) 5.4790 ns/op 6.4500 ns/op 0.85
MutableVector 250000 set(125000) 200.50 ns/op 236.29 ns/op 0.85
MutableVector 250000 toArray() 2.0952 ms/op 3.0371 ms/op 0.69
MutableVector 250000 iterate all - toArray() + loop 3.2284 ms/op 3.3809 ms/op 0.95
MutableVector 250000 iterate all - get(i) 1.2847 ms/op 1.5243 ms/op 0.84
Array 250000 create 2.1009 ms/op 2.6390 ms/op 0.80
Array 250000 clone - spread 825.12 us/op 917.15 us/op 0.90
Array 250000 get(125000) 0.41300 ns/op 0.46600 ns/op 0.89
Array 250000 set(125000) 0.48200 ns/op 0.54300 ns/op 0.89
Array 250000 iterate all - loop 76.888 us/op 108.28 us/op 0.71
effectiveBalanceIncrements clone Uint8Array 300000 10.326 us/op 21.130 us/op 0.49
effectiveBalanceIncrements clone MutableVector 300000 205.00 ns/op 241.00 ns/op 0.85
effectiveBalanceIncrements rw all Uint8Array 300000 166.47 us/op 178.38 us/op 0.93
effectiveBalanceIncrements rw all MutableVector 300000 55.184 ms/op 73.833 ms/op 0.75
phase0 afterProcessEpoch - 250000 vs - 7PWei 74.338 ms/op 113.32 ms/op 0.66
phase0 beforeProcessEpoch - 250000 vs - 7PWei 32.141 ms/op 33.453 ms/op 0.96
altair processEpoch - mainnet_e81889 224.62 ms/op 313.28 ms/op 0.72
mainnet_e81889 - altair beforeProcessEpoch 36.386 ms/op 60.594 ms/op 0.60
mainnet_e81889 - altair processJustificationAndFinalization 9.1880 us/op 15.941 us/op 0.58
mainnet_e81889 - altair processInactivityUpdates 4.8531 ms/op 6.9926 ms/op 0.69
mainnet_e81889 - altair processRewardsAndPenalties 57.411 ms/op 65.631 ms/op 0.87
mainnet_e81889 - altair processRegistryUpdates 1.1780 us/op 2.1420 us/op 0.55
mainnet_e81889 - altair processSlashings 247.00 ns/op 392.00 ns/op 0.63
mainnet_e81889 - altair processEth1DataReset 602.00 ns/op 509.00 ns/op 1.18
mainnet_e81889 - altair processEffectiveBalanceUpdates 971.90 us/op 1.2703 ms/op 0.77
mainnet_e81889 - altair processSlashingsReset 1.6520 us/op 2.7740 us/op 0.60
mainnet_e81889 - altair processRandaoMixesReset 2.7320 us/op 4.0370 us/op 0.68
mainnet_e81889 - altair processHistoricalRootsUpdate 591.00 ns/op 940.00 ns/op 0.63
mainnet_e81889 - altair processParticipationFlagUpdates 1.1440 us/op 2.0500 us/op 0.56
mainnet_e81889 - altair processSyncCommitteeUpdates 256.00 ns/op 772.00 ns/op 0.33
mainnet_e81889 - altair afterProcessEpoch 84.559 ms/op 125.67 ms/op 0.67
capella processEpoch - mainnet_e217614 792.65 ms/op 1.0279 s/op 0.77
mainnet_e217614 - capella beforeProcessEpoch 211.80 ms/op 232.63 ms/op 0.91
mainnet_e217614 - capella processJustificationAndFinalization 6.7040 us/op 17.349 us/op 0.39
mainnet_e217614 - capella processInactivityUpdates 20.095 ms/op 17.609 ms/op 1.14
mainnet_e217614 - capella processRewardsAndPenalties 251.70 ms/op 288.92 ms/op 0.87
mainnet_e217614 - capella processRegistryUpdates 11.750 us/op 21.441 us/op 0.55
mainnet_e217614 - capella processSlashings 250.00 ns/op 506.00 ns/op 0.49
mainnet_e217614 - capella processEth1DataReset 195.00 ns/op 493.00 ns/op 0.40
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.1541 ms/op 3.9588 ms/op 0.80
mainnet_e217614 - capella processSlashingsReset 3.7580 us/op 2.2720 us/op 1.65
mainnet_e217614 - capella processRandaoMixesReset 2.2290 us/op 4.4360 us/op 0.50
mainnet_e217614 - capella processHistoricalRootsUpdate 240.00 ns/op 643.00 ns/op 0.37
mainnet_e217614 - capella processParticipationFlagUpdates 841.00 ns/op 1.4450 us/op 0.58
mainnet_e217614 - capella afterProcessEpoch 222.21 ms/op 294.09 ms/op 0.76
phase0 processEpoch - mainnet_e58758 252.71 ms/op 338.72 ms/op 0.75
mainnet_e58758 - phase0 beforeProcessEpoch 99.677 ms/op 102.85 ms/op 0.97
mainnet_e58758 - phase0 processJustificationAndFinalization 9.4230 us/op 15.592 us/op 0.60
mainnet_e58758 - phase0 processRewardsAndPenalties 36.697 ms/op 53.492 ms/op 0.69
mainnet_e58758 - phase0 processRegistryUpdates 6.3670 us/op 11.073 us/op 0.58
mainnet_e58758 - phase0 processSlashings 375.00 ns/op 526.00 ns/op 0.71
mainnet_e58758 - phase0 processEth1DataReset 228.00 ns/op 427.00 ns/op 0.53
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 735.48 us/op 977.39 us/op 0.75
mainnet_e58758 - phase0 processSlashingsReset 1.9390 us/op 2.2010 us/op 0.88
mainnet_e58758 - phase0 processRandaoMixesReset 1.8430 us/op 3.9900 us/op 0.46
mainnet_e58758 - phase0 processHistoricalRootsUpdate 396.00 ns/op 430.00 ns/op 0.92
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.1000 us/op 3.7410 us/op 0.83
mainnet_e58758 - phase0 afterProcessEpoch 68.644 ms/op 96.057 ms/op 0.71
phase0 processEffectiveBalanceUpdates - 250000 normalcase 946.13 us/op 1.2469 ms/op 0.76
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.3892 ms/op 1.4326 ms/op 0.97
altair processInactivityUpdates - 250000 normalcase 15.193 ms/op 18.246 ms/op 0.83
altair processInactivityUpdates - 250000 worstcase 14.370 ms/op 18.791 ms/op 0.76
phase0 processRegistryUpdates - 250000 normalcase 3.8550 us/op 7.6630 us/op 0.50
phase0 processRegistryUpdates - 250000 badcase_full_deposits 215.03 us/op 313.36 us/op 0.69
phase0 processRegistryUpdates - 250000 worstcase 0.5 96.458 ms/op 115.70 ms/op 0.83
altair processRewardsAndPenalties - 250000 normalcase 54.983 ms/op 56.737 ms/op 0.97
altair processRewardsAndPenalties - 250000 worstcase 43.703 ms/op 57.035 ms/op 0.77
phase0 getAttestationDeltas - 250000 normalcase 4.9279 ms/op 7.7778 ms/op 0.63
phase0 getAttestationDeltas - 250000 worstcase 5.4563 ms/op 7.6485 ms/op 0.71
phase0 processSlashings - 250000 worstcase 1.4259 ms/op 2.3051 ms/op 0.62
altair processSyncCommitteeUpdates - 250000 108.47 ms/op 146.95 ms/op 0.74
BeaconState.hashTreeRoot - No change 201.00 ns/op 251.00 ns/op 0.80
BeaconState.hashTreeRoot - 1 full validator 28.095 us/op 50.328 us/op 0.56
BeaconState.hashTreeRoot - 32 full validator 307.09 us/op 508.09 us/op 0.60
BeaconState.hashTreeRoot - 512 full validator 2.9344 ms/op 5.0076 ms/op 0.59
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 36.159 us/op 61.107 us/op 0.59
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 506.47 us/op 844.09 us/op 0.60
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 6.5784 ms/op 10.869 ms/op 0.61
BeaconState.hashTreeRoot - 1 balances 27.770 us/op 47.387 us/op 0.59
BeaconState.hashTreeRoot - 32 balances 249.91 us/op 432.25 us/op 0.58
BeaconState.hashTreeRoot - 512 balances 2.4994 ms/op 4.2515 ms/op 0.59
BeaconState.hashTreeRoot - 250000 balances 42.864 ms/op 73.772 ms/op 0.58
aggregationBits - 2048 els - zipIndexesInBitList 9.5060 us/op 15.474 us/op 0.61
regular array get 100000 times 30.522 us/op 31.990 us/op 0.95
wrappedArray get 100000 times 30.821 us/op 41.047 us/op 0.75
arrayWithProxy get 100000 times 10.145 ms/op 13.813 ms/op 0.73
ssz.Root.equals 159.00 ns/op 211.00 ns/op 0.75
byteArrayEquals 149.00 ns/op 208.00 ns/op 0.72
shuffle list - 16384 els 4.5645 ms/op 6.7370 ms/op 0.68
shuffle list - 250000 els 66.559 ms/op 98.523 ms/op 0.68
processSlot - 1 slots 5.1200 us/op 8.1480 us/op 0.63
processSlot - 32 slots 720.38 us/op 1.2900 ms/op 0.56
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 33.813 ms/op 51.571 ms/op 0.66
getCommitteeAssignments - req 1 vs - 250000 vc 2.2452 ms/op 2.4613 ms/op 0.91
getCommitteeAssignments - req 100 vs - 250000 vc 3.3562 ms/op 3.7000 ms/op 0.91
getCommitteeAssignments - req 1000 vs - 250000 vc 3.6160 ms/op 4.0775 ms/op 0.89
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 3.8700 ns/op 4.4600 ns/op 0.87
state getBlockRootAtSlot - 250000 vs - 7PWei 357.53 ns/op 628.10 ns/op 0.57
computeProposers - vc 250000 6.0632 ms/op 8.7105 ms/op 0.70
computeEpochShuffling - vc 250000 68.045 ms/op 103.23 ms/op 0.66
getNextSyncCommittee - vc 250000 98.828 ms/op 147.32 ms/op 0.67
computeSigningRoot for AttestationData 7.5355 us/op 12.384 us/op 0.61
hash AttestationData serialized data then Buffer.toString(base64) 1.2402 us/op 2.3352 us/op 0.53
toHexString serialized data 808.54 ns/op 1.0852 us/op 0.75
Buffer.toString(base64) 144.37 ns/op 211.19 ns/op 0.68

by benchmarkbot/action

@wemeetagain wemeetagain enabled auto-merge (squash) September 8, 2023 15:28
@wemeetagain wemeetagain merged commit d51ee94 into unstable Sep 8, 2023
11 checks passed
@wemeetagain wemeetagain deleted the nh/5775-network-worker-shutdown branch September 8, 2023 15:32
@nflaig nflaig mentioned this pull request Oct 13, 2023
3 tasks
@wemeetagain
Copy link
Member

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

Network worker not shutting down
3 participants