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: prevent low peer count warning on startup #6150

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Dec 1, 2023

Motivation

Improve logs, should only print warnings if they are actually meaningful

Description

Prevent low peer count warning on startup

warn: Low peer count peers=0

This warning is printed out consistently on every startup but it does not add any meaningful information at this point in time. There is also an additional check to only print it once which means if there are still 0 peers on the second notifier run it will not print out a warning but at that point it would be a good warning as Lodestar likely struggles to get peers as based on my observation at this time there are usually 5-20 peers.

This change addresses both issues and reuses isFirstTime variable introduced in #5545

@nflaig nflaig requested a review from a team as a code owner December 1, 2023 16:50
Copy link
Contributor

github-actions bot commented Dec 1, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 60635ef Previous: 99a0caf Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 706.84 us/op 1.0625 ms/op 0.67
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 49.949 us/op 126.22 us/op 0.40
BLS verify - blst-native 1.0813 ms/op 1.3553 ms/op 0.80
BLS verifyMultipleSignatures 3 - blst-native 2.2659 ms/op 2.9348 ms/op 0.77
BLS verifyMultipleSignatures 8 - blst-native 4.9867 ms/op 6.3253 ms/op 0.79
BLS verifyMultipleSignatures 32 - blst-native 18.495 ms/op 23.908 ms/op 0.77
BLS verifyMultipleSignatures 64 - blst-native 36.264 ms/op 45.348 ms/op 0.80
BLS verifyMultipleSignatures 128 - blst-native 72.239 ms/op 92.458 ms/op 0.78
BLS deserializing 10000 signatures 789.72 ms/op 927.81 ms/op 0.85
BLS deserializing 100000 signatures 8.1806 s/op 9.1340 s/op 0.90
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2019 ms/op 1.3604 ms/op 0.88
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.4827 ms/op 1.5869 ms/op 0.93
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.3880 ms/op 2.4464 ms/op 0.98
BLS verifyMultipleSignatures - same message - 64 - blst-native 4.0852 ms/op 3.6688 ms/op 1.11
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.5176 ms/op 5.9951 ms/op 1.09
BLS aggregatePubkeys 32 - blst-native 24.358 us/op 27.795 us/op 0.88
BLS aggregatePubkeys 128 - blst-native 88.985 us/op 108.12 us/op 0.82
getAttestationsForBlock 32.465 ms/op 42.945 ms/op 0.76
isKnown best case - 1 super set check 356.00 ns/op 564.00 ns/op 0.63
isKnown normal case - 2 super set checks 357.00 ns/op 660.00 ns/op 0.54
isKnown worse case - 16 super set checks 377.00 ns/op 716.00 ns/op 0.53
CheckpointStateCache - add get delete 5.1390 us/op 7.5350 us/op 0.68
validate api signedAggregateAndProof - struct 2.4961 ms/op 3.0819 ms/op 0.81
validate gossip signedAggregateAndProof - struct 2.4178 ms/op 3.0606 ms/op 0.79
validate gossip attestation - vc 640000 1.1884 ms/op 1.4738 ms/op 0.81
batch validate gossip attestation - vc 640000 - chunk 32 154.68 us/op 177.78 us/op 0.87
batch validate gossip attestation - vc 640000 - chunk 64 142.16 us/op 155.50 us/op 0.91
batch validate gossip attestation - vc 640000 - chunk 128 121.43 us/op 139.65 us/op 0.87
batch validate gossip attestation - vc 640000 - chunk 256 115.54 us/op 139.30 us/op 0.83
pickEth1Vote - no votes 967.86 us/op 1.3385 ms/op 0.72
pickEth1Vote - max votes 10.360 ms/op 8.5676 ms/op 1.21
pickEth1Vote - Eth1Data hashTreeRoot value x2048 18.872 ms/op 15.516 ms/op 1.22
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 19.059 ms/op 21.909 ms/op 0.87
pickEth1Vote - Eth1Data fastSerialize value x2048 411.01 us/op 654.77 us/op 0.63
pickEth1Vote - Eth1Data fastSerialize tree x2048 4.3519 ms/op 7.3007 ms/op 0.60
bytes32 toHexString 444.00 ns/op 682.00 ns/op 0.65
bytes32 Buffer.toString(hex) 306.00 ns/op 311.00 ns/op 0.98
bytes32 Buffer.toString(hex) from Uint8Array 416.00 ns/op 512.00 ns/op 0.81
bytes32 Buffer.toString(hex) + 0x 296.00 ns/op 323.00 ns/op 0.92
Object access 1 prop 0.18700 ns/op 0.20000 ns/op 0.93
Map access 1 prop 0.18200 ns/op 0.15900 ns/op 1.14
Object get x1000 5.5450 ns/op 7.5070 ns/op 0.74
Map get x1000 0.71800 ns/op 0.83200 ns/op 0.86
Object set x1000 24.317 ns/op 57.879 ns/op 0.42
Map set x1000 16.750 ns/op 45.135 ns/op 0.37
Return object 10000 times 0.22890 ns/op 0.24980 ns/op 0.92
Throw Error 10000 times 2.8206 us/op 3.9663 us/op 0.71
fastMsgIdFn sha256 / 200 bytes 2.1550 us/op 3.3920 us/op 0.64
fastMsgIdFn h32 xxhash / 200 bytes 313.00 ns/op 314.00 ns/op 1.00
fastMsgIdFn h64 xxhash / 200 bytes 349.00 ns/op 342.00 ns/op 1.02
fastMsgIdFn sha256 / 1000 bytes 6.1020 us/op 11.512 us/op 0.53
fastMsgIdFn h32 xxhash / 1000 bytes 419.00 ns/op 462.00 ns/op 0.91
fastMsgIdFn h64 xxhash / 1000 bytes 415.00 ns/op 431.00 ns/op 0.96
fastMsgIdFn sha256 / 10000 bytes 52.420 us/op 105.45 us/op 0.50
fastMsgIdFn h32 xxhash / 10000 bytes 1.8420 us/op 1.9740 us/op 0.93
fastMsgIdFn h64 xxhash / 10000 bytes 1.2630 us/op 1.3400 us/op 0.94
send data - 1000 256B messages 12.199 ms/op 21.049 ms/op 0.58
send data - 1000 512B messages 18.512 ms/op 29.814 ms/op 0.62
send data - 1000 1024B messages 26.164 ms/op 44.670 ms/op 0.59
send data - 1000 1200B messages 30.466 ms/op 38.853 ms/op 0.78
send data - 1000 2048B messages 36.515 ms/op 41.647 ms/op 0.88
send data - 1000 4096B messages 31.665 ms/op 41.846 ms/op 0.76
send data - 1000 16384B messages 88.624 ms/op 113.85 ms/op 0.78
send data - 1000 65536B messages 374.96 ms/op 415.67 ms/op 0.90
enrSubnets - fastDeserialize 64 bits 990.00 ns/op 1.2030 us/op 0.82
enrSubnets - ssz BitVector 64 bits 414.00 ns/op 405.00 ns/op 1.02
enrSubnets - fastDeserialize 4 bits 199.00 ns/op 159.00 ns/op 1.25
enrSubnets - ssz BitVector 4 bits 406.00 ns/op 416.00 ns/op 0.98
prioritizePeers score -10:0 att 32-0.1 sync 2-0 69.812 us/op 106.15 us/op 0.66
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 81.445 us/op 129.38 us/op 0.63
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 100.81 us/op 159.56 us/op 0.63
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 182.54 us/op 284.27 us/op 0.64
prioritizePeers score 0:0 att 64-1 sync 4-1 194.94 us/op 340.29 us/op 0.57
array of 16000 items push then shift 1.2081 us/op 1.5472 us/op 0.78
LinkedList of 16000 items push then shift 6.4690 ns/op 8.9340 ns/op 0.72
array of 16000 items push then pop 67.539 ns/op 102.75 ns/op 0.66
LinkedList of 16000 items push then pop 5.5560 ns/op 8.8750 ns/op 0.63
array of 24000 items push then shift 1.7971 us/op 2.4315 us/op 0.74
LinkedList of 24000 items push then shift 6.3460 ns/op 8.9770 ns/op 0.71
array of 24000 items push then pop 94.523 ns/op 111.53 ns/op 0.85
LinkedList of 24000 items push then pop 5.4730 ns/op 8.7180 ns/op 0.63
intersect bitArray bitLen 8 4.6330 ns/op 6.4390 ns/op 0.72
intersect array and set length 8 46.653 ns/op 62.191 ns/op 0.75
intersect bitArray bitLen 128 26.420 ns/op 33.985 ns/op 0.78
intersect array and set length 128 651.54 ns/op 851.24 ns/op 0.77
bitArray.getTrueBitIndexes() bitLen 128 1.2660 us/op 1.4380 us/op 0.88
bitArray.getTrueBitIndexes() bitLen 248 2.0500 us/op 2.3660 us/op 0.87
bitArray.getTrueBitIndexes() bitLen 512 3.9080 us/op 4.6510 us/op 0.84
Buffer.concat 32 items 872.00 ns/op 919.00 ns/op 0.95
Uint8Array.set 32 items 2.2090 us/op 1.9080 us/op 1.16
Set add up to 64 items then delete first 1.6389 us/op 4.2773 us/op 0.38
OrderedSet add up to 64 items then delete first 2.5002 us/op 5.3572 us/op 0.47
Set add up to 64 items then delete last 1.8536 us/op 4.6684 us/op 0.40
OrderedSet add up to 64 items then delete last 3.1046 us/op 5.9957 us/op 0.52
Set add up to 64 items then delete middle 1.8492 us/op 4.7084 us/op 0.39
OrderedSet add up to 64 items then delete middle 4.0094 us/op 7.2308 us/op 0.55
Set add up to 128 items then delete first 3.5992 us/op 9.1826 us/op 0.39
OrderedSet add up to 128 items then delete first 5.6903 us/op 11.687 us/op 0.49
Set add up to 128 items then delete last 3.5261 us/op 9.6229 us/op 0.37
OrderedSet add up to 128 items then delete last 5.3592 us/op 12.165 us/op 0.44
Set add up to 128 items then delete middle 3.5241 us/op 9.1097 us/op 0.39
OrderedSet add up to 128 items then delete middle 10.100 us/op 17.380 us/op 0.58
Set add up to 256 items then delete first 7.0635 us/op 18.374 us/op 0.38
OrderedSet add up to 256 items then delete first 11.391 us/op 24.014 us/op 0.47
Set add up to 256 items then delete last 6.9815 us/op 18.217 us/op 0.38
OrderedSet add up to 256 items then delete last 10.802 us/op 25.958 us/op 0.42
Set add up to 256 items then delete middle 6.9505 us/op 18.540 us/op 0.37
OrderedSet add up to 256 items then delete middle 28.933 us/op 45.616 us/op 0.63
transfer serialized Status (84 B) 1.3590 us/op 1.7370 us/op 0.78
copy serialized Status (84 B) 1.3170 us/op 1.4560 us/op 0.90
transfer serialized SignedVoluntaryExit (112 B) 1.8240 us/op 1.8840 us/op 0.97
copy serialized SignedVoluntaryExit (112 B) 1.5080 us/op 1.5080 us/op 1.00
transfer serialized ProposerSlashing (416 B) 2.6520 us/op 2.1970 us/op 1.21
copy serialized ProposerSlashing (416 B) 2.7240 us/op 2.0130 us/op 1.35
transfer serialized Attestation (485 B) 2.6770 us/op 2.1630 us/op 1.24
copy serialized Attestation (485 B) 2.7550 us/op 2.0310 us/op 1.36
transfer serialized AttesterSlashing (33232 B) 2.7170 us/op 2.3010 us/op 1.18
copy serialized AttesterSlashing (33232 B) 5.2790 us/op 5.0240 us/op 1.05
transfer serialized Small SignedBeaconBlock (128000 B) 2.9800 us/op 2.6200 us/op 1.14
copy serialized Small SignedBeaconBlock (128000 B) 9.7490 us/op 12.929 us/op 0.75
transfer serialized Avg SignedBeaconBlock (200000 B) 2.7840 us/op 3.3000 us/op 0.84
copy serialized Avg SignedBeaconBlock (200000 B) 13.590 us/op 21.527 us/op 0.63
transfer serialized BlobsSidecar (524380 B) 2.6500 us/op 3.4740 us/op 0.76
copy serialized BlobsSidecar (524380 B) 136.07 us/op 74.960 us/op 1.82
transfer serialized Big SignedBeaconBlock (1000000 B) 2.9720 us/op 3.9790 us/op 0.75
copy serialized Big SignedBeaconBlock (1000000 B) 267.94 us/op 166.81 us/op 1.61
pass gossip attestations to forkchoice per slot 2.6969 ms/op 4.1679 ms/op 0.65
forkChoice updateHead vc 100000 bc 64 eq 0 432.52 us/op 754.27 us/op 0.57
forkChoice updateHead vc 600000 bc 64 eq 0 3.2767 ms/op 4.7230 ms/op 0.69
forkChoice updateHead vc 1000000 bc 64 eq 0 4.3547 ms/op 7.0383 ms/op 0.62
forkChoice updateHead vc 600000 bc 320 eq 0 2.5504 ms/op 4.2515 ms/op 0.60
forkChoice updateHead vc 600000 bc 1200 eq 0 2.6456 ms/op 4.3290 ms/op 0.61
forkChoice updateHead vc 600000 bc 7200 eq 0 3.2109 ms/op 5.3296 ms/op 0.60
forkChoice updateHead vc 600000 bc 64 eq 1000 9.7850 ms/op 11.267 ms/op 0.87
forkChoice updateHead vc 600000 bc 64 eq 10000 9.3566 ms/op 11.807 ms/op 0.79
forkChoice updateHead vc 600000 bc 64 eq 300000 11.592 ms/op 16.138 ms/op 0.72
computeDeltas 500000 validators 300 proto nodes 3.0129 ms/op 6.7172 ms/op 0.45
computeDeltas 500000 validators 1200 proto nodes 2.9500 ms/op 6.5229 ms/op 0.45
computeDeltas 500000 validators 7200 proto nodes 3.0039 ms/op 6.5014 ms/op 0.46
computeDeltas 750000 validators 300 proto nodes 4.6496 ms/op 9.8187 ms/op 0.47
computeDeltas 750000 validators 1200 proto nodes 4.7141 ms/op 9.8809 ms/op 0.48
computeDeltas 750000 validators 7200 proto nodes 4.9443 ms/op 9.9122 ms/op 0.50
computeDeltas 1400000 validators 300 proto nodes 9.4825 ms/op 18.385 ms/op 0.52
computeDeltas 1400000 validators 1200 proto nodes 9.0525 ms/op 18.760 ms/op 0.48
computeDeltas 1400000 validators 7200 proto nodes 8.9554 ms/op 18.541 ms/op 0.48
computeDeltas 2100000 validators 300 proto nodes 14.099 ms/op 29.142 ms/op 0.48
computeDeltas 2100000 validators 1200 proto nodes 13.070 ms/op 30.526 ms/op 0.43
computeDeltas 2100000 validators 7200 proto nodes 13.701 ms/op 29.889 ms/op 0.46
computeProposerBoostScoreFromBalances 500000 validators 3.4088 ms/op 4.3973 ms/op 0.78
computeProposerBoostScoreFromBalances 750000 validators 3.3796 ms/op 4.2570 ms/op 0.79
computeProposerBoostScoreFromBalances 1400000 validators 3.3607 ms/op 4.0903 ms/op 0.82
computeProposerBoostScoreFromBalances 2100000 validators 3.4736 ms/op 3.9538 ms/op 0.88
altair processAttestation - 250000 vs - 7PWei normalcase 1.7692 ms/op 3.3729 ms/op 0.52
altair processAttestation - 250000 vs - 7PWei worstcase 4.0234 ms/op 4.3938 ms/op 0.92
altair processAttestation - setStatus - 1/6 committees join 110.35 us/op 164.91 us/op 0.67
altair processAttestation - setStatus - 1/3 committees join 177.34 us/op 319.88 us/op 0.55
altair processAttestation - setStatus - 1/2 committees join 214.94 us/op 428.58 us/op 0.50
altair processAttestation - setStatus - 2/3 committees join 286.70 us/op 523.55 us/op 0.55
altair processAttestation - setStatus - 4/5 committees join 407.50 us/op 788.39 us/op 0.52
altair processAttestation - setStatus - 100% committees join 569.67 us/op 903.42 us/op 0.63
altair processBlock - 250000 vs - 7PWei normalcase 6.9319 ms/op 11.737 ms/op 0.59
altair processBlock - 250000 vs - 7PWei normalcase hashState 30.985 ms/op 43.182 ms/op 0.72
altair processBlock - 250000 vs - 7PWei worstcase 34.717 ms/op 41.494 ms/op 0.84
altair processBlock - 250000 vs - 7PWei worstcase hashState 85.154 ms/op 108.38 ms/op 0.79
phase0 processBlock - 250000 vs - 7PWei normalcase 2.9652 ms/op 2.9587 ms/op 1.00
phase0 processBlock - 250000 vs - 7PWei worstcase 26.558 ms/op 34.880 ms/op 0.76
altair processEth1Data - 250000 vs - 7PWei normalcase 289.85 us/op 704.41 us/op 0.41
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 9.0040 us/op 23.200 us/op 0.39
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 53.207 us/op 84.848 us/op 0.63
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 18.834 us/op 33.070 us/op 0.57
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 11.221 us/op 22.893 us/op 0.49
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 148.18 us/op 228.36 us/op 0.65
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.4221 ms/op 1.6204 ms/op 0.88
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.0341 ms/op 2.3551 ms/op 0.86
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.5225 ms/op 2.1568 ms/op 0.71
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.3473 ms/op 4.4818 ms/op 0.75
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.7523 ms/op 3.3504 ms/op 0.52
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.3092 ms/op 7.3158 ms/op 0.59
Tree 40 250000 create 314.07 ms/op 584.94 ms/op 0.54
Tree 40 250000 get(125000) 115.89 ns/op 232.82 ns/op 0.50
Tree 40 250000 set(125000) 739.49 ns/op 1.3735 us/op 0.54
Tree 40 250000 toArray() 11.968 ms/op 24.439 ms/op 0.49
Tree 40 250000 iterate all - toArray() + loop 14.763 ms/op 24.154 ms/op 0.61
Tree 40 250000 iterate all - get(i) 47.886 ms/op 79.309 ms/op 0.60
MutableVector 250000 create 12.055 ms/op 17.345 ms/op 0.69
MutableVector 250000 get(125000) 5.9010 ns/op 6.9850 ns/op 0.84
MutableVector 250000 set(125000) 193.85 ns/op 403.93 ns/op 0.48
MutableVector 250000 toArray() 2.5035 ms/op 4.4478 ms/op 0.56
MutableVector 250000 iterate all - toArray() + loop 2.1454 ms/op 4.6247 ms/op 0.46
MutableVector 250000 iterate all - get(i) 1.3805 ms/op 1.6822 ms/op 0.82
Array 250000 create 2.4336 ms/op 4.0943 ms/op 0.59
Array 250000 clone - spread 1.0858 ms/op 1.4921 ms/op 0.73
Array 250000 get(125000) 1.0180 ns/op 1.3140 ns/op 0.77
Array 250000 set(125000) 1.2210 ns/op 4.8040 ns/op 0.25
Array 250000 iterate all - loop 155.35 us/op 180.06 us/op 0.86
effectiveBalanceIncrements clone Uint8Array 300000 12.758 us/op 56.878 us/op 0.22
effectiveBalanceIncrements clone MutableVector 300000 384.00 ns/op 482.00 ns/op 0.80
effectiveBalanceIncrements rw all Uint8Array 300000 184.57 us/op 218.29 us/op 0.85
effectiveBalanceIncrements rw all MutableVector 300000 65.130 ms/op 113.77 ms/op 0.57
phase0 afterProcessEpoch - 250000 vs - 7PWei 81.097 ms/op 121.82 ms/op 0.67
phase0 beforeProcessEpoch - 250000 vs - 7PWei 35.092 ms/op 52.803 ms/op 0.66
altair processEpoch - mainnet_e81889 409.28 ms/op 524.68 ms/op 0.78
mainnet_e81889 - altair beforeProcessEpoch 65.594 ms/op 81.909 ms/op 0.80
mainnet_e81889 - altair processJustificationAndFinalization 7.6220 us/op 17.496 us/op 0.44
mainnet_e81889 - altair processInactivityUpdates 3.9136 ms/op 5.8998 ms/op 0.66
mainnet_e81889 - altair processRewardsAndPenalties 64.095 ms/op 61.999 ms/op 1.03
mainnet_e81889 - altair processRegistryUpdates 1.6770 us/op 2.4340 us/op 0.69
mainnet_e81889 - altair processSlashings 411.00 ns/op 432.00 ns/op 0.95
mainnet_e81889 - altair processEth1DataReset 578.00 ns/op 764.00 ns/op 0.76
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.8106 ms/op 1.5879 ms/op 1.14
mainnet_e81889 - altair processSlashingsReset 2.9200 us/op 5.0390 us/op 0.58
mainnet_e81889 - altair processRandaoMixesReset 4.0200 us/op 6.2230 us/op 0.65
mainnet_e81889 - altair processHistoricalRootsUpdate 925.00 ns/op 837.00 ns/op 1.11
mainnet_e81889 - altair processParticipationFlagUpdates 2.4400 us/op 2.0990 us/op 1.16
mainnet_e81889 - altair processSyncCommitteeUpdates 802.00 ns/op 836.00 ns/op 0.96
mainnet_e81889 - altair afterProcessEpoch 79.482 ms/op 119.49 ms/op 0.67
capella processEpoch - mainnet_e217614 1.7251 s/op 2.0957 s/op 0.82
mainnet_e217614 - capella beforeProcessEpoch 376.59 ms/op 438.42 ms/op 0.86
mainnet_e217614 - capella processJustificationAndFinalization 11.153 us/op 15.182 us/op 0.73
mainnet_e217614 - capella processInactivityUpdates 18.289 ms/op 20.160 ms/op 0.91
mainnet_e217614 - capella processRewardsAndPenalties 437.77 ms/op 438.23 ms/op 1.00
mainnet_e217614 - capella processRegistryUpdates 18.813 us/op 20.832 us/op 0.90
mainnet_e217614 - capella processSlashings 701.00 ns/op 472.00 ns/op 1.49
mainnet_e217614 - capella processEth1DataReset 585.00 ns/op 385.00 ns/op 1.52
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.4892 ms/op 5.3989 ms/op 0.65
mainnet_e217614 - capella processSlashingsReset 4.2830 us/op 3.9330 us/op 1.09
mainnet_e217614 - capella processRandaoMixesReset 2.9270 us/op 5.2530 us/op 0.56
mainnet_e217614 - capella processHistoricalRootsUpdate 891.00 ns/op 878.00 ns/op 1.01
mainnet_e217614 - capella processParticipationFlagUpdates 1.5980 us/op 2.3060 us/op 0.69
mainnet_e217614 - capella afterProcessEpoch 237.10 ms/op 307.58 ms/op 0.77
phase0 processEpoch - mainnet_e58758 426.12 ms/op 496.42 ms/op 0.86
mainnet_e58758 - phase0 beforeProcessEpoch 126.79 ms/op 137.15 ms/op 0.92
mainnet_e58758 - phase0 processJustificationAndFinalization 12.048 us/op 18.766 us/op 0.64
mainnet_e58758 - phase0 processRewardsAndPenalties 54.104 ms/op 57.540 ms/op 0.94
mainnet_e58758 - phase0 processRegistryUpdates 8.6210 us/op 13.886 us/op 0.62
mainnet_e58758 - phase0 processSlashings 659.00 ns/op 610.00 ns/op 1.08
mainnet_e58758 - phase0 processEth1DataReset 550.00 ns/op 425.00 ns/op 1.29
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.4479 ms/op 1.1984 ms/op 1.21
mainnet_e58758 - phase0 processSlashingsReset 2.3290 us/op 6.5760 us/op 0.35
mainnet_e58758 - phase0 processRandaoMixesReset 2.6710 us/op 7.1100 us/op 0.38
mainnet_e58758 - phase0 processHistoricalRootsUpdate 702.00 ns/op 937.00 ns/op 0.75
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.1540 us/op 4.9620 us/op 0.64
mainnet_e58758 - phase0 afterProcessEpoch 68.779 ms/op 105.65 ms/op 0.65
phase0 processEffectiveBalanceUpdates - 250000 normalcase 991.09 us/op 1.5832 ms/op 0.63
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.1485 ms/op 1.5795 ms/op 0.73
altair processInactivityUpdates - 250000 normalcase 24.773 ms/op 23.048 ms/op 1.07
altair processInactivityUpdates - 250000 worstcase 26.263 ms/op 27.396 ms/op 0.96
phase0 processRegistryUpdates - 250000 normalcase 9.9710 us/op 11.110 us/op 0.90
phase0 processRegistryUpdates - 250000 badcase_full_deposits 410.21 us/op 404.70 us/op 1.01
phase0 processRegistryUpdates - 250000 worstcase 0.5 123.86 ms/op 134.14 ms/op 0.92
altair processRewardsAndPenalties - 250000 normalcase 51.134 ms/op 59.034 ms/op 0.87
altair processRewardsAndPenalties - 250000 worstcase 60.452 ms/op 57.469 ms/op 1.05
phase0 getAttestationDeltas - 250000 normalcase 7.5485 ms/op 11.258 ms/op 0.67
phase0 getAttestationDeltas - 250000 worstcase 7.4290 ms/op 12.950 ms/op 0.57
phase0 processSlashings - 250000 worstcase 89.730 us/op 109.39 us/op 0.82
altair processSyncCommitteeUpdates - 250000 115.73 ms/op 167.06 ms/op 0.69
BeaconState.hashTreeRoot - No change 310.00 ns/op 270.00 ns/op 1.15
BeaconState.hashTreeRoot - 1 full validator 151.25 us/op 141.66 us/op 1.07
BeaconState.hashTreeRoot - 32 full validator 1.8054 ms/op 1.4594 ms/op 1.24
BeaconState.hashTreeRoot - 512 full validator 18.904 ms/op 14.884 ms/op 1.27
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 178.93 us/op 171.10 us/op 1.05
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.3599 ms/op 2.2771 ms/op 1.04
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 32.030 ms/op 28.585 ms/op 1.12
BeaconState.hashTreeRoot - 1 balances 141.49 us/op 133.07 us/op 1.06
BeaconState.hashTreeRoot - 32 balances 881.89 us/op 1.1361 ms/op 0.78
BeaconState.hashTreeRoot - 512 balances 7.3028 ms/op 10.619 ms/op 0.69
BeaconState.hashTreeRoot - 250000 balances 173.15 ms/op 205.73 ms/op 0.84
aggregationBits - 2048 els - zipIndexesInBitList 10.626 us/op 17.857 us/op 0.60
byteArrayEquals 32 66.047 ns/op 76.640 ns/op 0.86
Buffer.compare 32 39.216 ns/op 57.498 ns/op 0.68
byteArrayEquals 1024 1.7655 us/op 2.0877 us/op 0.85
Buffer.compare 1024 47.122 ns/op 71.888 ns/op 0.66
byteArrayEquals 16384 28.825 us/op 33.309 us/op 0.87
Buffer.compare 16384 213.62 ns/op 276.45 ns/op 0.77
byteArrayEquals 123687377 211.87 ms/op 257.49 ms/op 0.82
Buffer.compare 123687377 6.9601 ms/op 8.6262 ms/op 0.81
byteArrayEquals 32 - diff last byte 61.558 ns/op 79.656 ns/op 0.77
Buffer.compare 32 - diff last byte 37.092 ns/op 58.842 ns/op 0.63
byteArrayEquals 1024 - diff last byte 1.7078 us/op 2.1434 us/op 0.80
Buffer.compare 1024 - diff last byte 42.886 ns/op 75.093 ns/op 0.57
byteArrayEquals 16384 - diff last byte 27.799 us/op 34.431 us/op 0.81
Buffer.compare 16384 - diff last byte 225.26 ns/op 267.77 ns/op 0.84
byteArrayEquals 123687377 - diff last byte 217.04 ms/op 260.04 ms/op 0.83
Buffer.compare 123687377 - diff last byte 6.3829 ms/op 8.1277 ms/op 0.79
byteArrayEquals 32 - random bytes 4.8010 ns/op 6.0410 ns/op 0.79
Buffer.compare 32 - random bytes 40.883 ns/op 63.123 ns/op 0.65
byteArrayEquals 1024 - random bytes 4.7840 ns/op 5.6190 ns/op 0.85
Buffer.compare 1024 - random bytes 40.090 ns/op 61.777 ns/op 0.65
byteArrayEquals 16384 - random bytes 4.9360 ns/op 5.8100 ns/op 0.85
Buffer.compare 16384 - random bytes 39.570 ns/op 61.145 ns/op 0.65
byteArrayEquals 123687377 - random bytes 8.5100 ns/op 8.7000 ns/op 0.98
Buffer.compare 123687377 - random bytes 41.860 ns/op 65.570 ns/op 0.64
regular array get 100000 times 43.276 us/op 46.074 us/op 0.94
wrappedArray get 100000 times 43.568 us/op 46.306 us/op 0.94
arrayWithProxy get 100000 times 10.825 ms/op 15.450 ms/op 0.70
ssz.Root.equals 59.127 ns/op 56.487 ns/op 1.05
byteArrayEquals 59.619 ns/op 54.704 ns/op 1.09
Buffer.compare 10.133 ns/op 12.867 ns/op 0.79
shuffle list - 16384 els 4.7688 ms/op 7.4706 ms/op 0.64
shuffle list - 250000 els 70.295 ms/op 110.29 ms/op 0.64
processSlot - 1 slots 18.148 us/op 19.939 us/op 0.91
processSlot - 32 slots 4.0146 ms/op 3.4169 ms/op 1.17
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 47.763 ms/op 64.963 ms/op 0.74
getCommitteeAssignments - req 1 vs - 250000 vc 2.2152 ms/op 2.6280 ms/op 0.84
getCommitteeAssignments - req 100 vs - 250000 vc 3.3370 ms/op 3.8492 ms/op 0.87
getCommitteeAssignments - req 1000 vs - 250000 vc 3.7514 ms/op 4.1725 ms/op 0.90
findModifiedValidators - 10000 modified validators 399.72 ms/op 551.61 ms/op 0.72
findModifiedValidators - 1000 modified validators 316.15 ms/op 464.77 ms/op 0.68
findModifiedValidators - 100 modified validators 348.22 ms/op 426.43 ms/op 0.82
findModifiedValidators - 10 modified validators 322.89 ms/op 452.69 ms/op 0.71
findModifiedValidators - 1 modified validators 347.94 ms/op 441.63 ms/op 0.79
findModifiedValidators - no difference 354.56 ms/op 433.75 ms/op 0.82
compare ViewDUs 4.3559 s/op 4.5222 s/op 0.96
compare each validator Uint8Array 1.6169 s/op 1.5285 s/op 1.06
compare ViewDU to Uint8Array 965.38 ms/op 1.2077 s/op 0.80
migrate state 1000000 validators, 24 modified, 0 new 725.43 ms/op 824.73 ms/op 0.88
migrate state 1000000 validators, 1700 modified, 1000 new 948.49 ms/op 1.0342 s/op 0.92
migrate state 1000000 validators, 3400 modified, 2000 new 1.1283 s/op 1.3456 s/op 0.84
migrate state 1500000 validators, 24 modified, 0 new 692.38 ms/op 858.93 ms/op 0.81
migrate state 1500000 validators, 1700 modified, 1000 new 960.01 ms/op 1.2958 s/op 0.74
migrate state 1500000 validators, 3400 modified, 2000 new 1.2443 s/op 1.5225 s/op 0.82
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.5100 ns/op 5.4600 ns/op 0.83
state getBlockRootAtSlot - 250000 vs - 7PWei 698.48 ns/op 751.46 ns/op 0.93
computeProposers - vc 250000 6.4299 ms/op 10.996 ms/op 0.58
computeEpochShuffling - vc 250000 66.597 ms/op 118.48 ms/op 0.56
getNextSyncCommittee - vc 250000 106.43 ms/op 173.85 ms/op 0.61
computeSigningRoot for AttestationData 23.825 us/op 35.755 us/op 0.67
hash AttestationData serialized data then Buffer.toString(base64) 1.2198 us/op 2.4807 us/op 0.49
toHexString serialized data 795.10 ns/op 1.3263 us/op 0.60
Buffer.toString(base64) 141.92 ns/op 275.56 ns/op 0.52

by benchmarkbot/action

@wemeetagain wemeetagain merged commit d86e26d into unstable Dec 1, 2023
15 checks passed
@wemeetagain wemeetagain deleted the nflaig/low-peer-count-warning branch December 1, 2023 19:06
@wemeetagain
Copy link
Member

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