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: ignore noisy eventstream errors due to DNS resolution errors #6972

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Jul 22, 2024

Motivation

This is similar to ECONNREFUSED if connected beacon node is offline and happens mostly in docker-based setups if container is stopped / crashed.

Description

Ignore noisy eventstream errors due to DNS resolution errors

E.g. error: Failed to receive head event - getaddrinfo EAI_AGAIN consensus

@nflaig nflaig requested a review from a team as a code owner July 22, 2024 21:02
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 62.49%. Comparing base (02cc65b) to head (916f196).

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6972   +/-   ##
=========================================
  Coverage     62.49%   62.49%           
=========================================
  Files           576      576           
  Lines         61180    61180           
  Branches       2131     2134    +3     
=========================================
+ Hits          38234    38235    +1     
+ Misses        22907    22906    -1     
  Partials         39       39           

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: da51372 Previous: 02cc65b Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 525.28 us/op 803.99 us/op 0.65
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 57.144 us/op 46.515 us/op 1.23
BLS verify - blst-native 1.2628 ms/op 1.2209 ms/op 1.03
BLS verifyMultipleSignatures 3 - blst-native 2.6921 ms/op 2.5850 ms/op 1.04
BLS verifyMultipleSignatures 8 - blst-native 5.9399 ms/op 5.7064 ms/op 1.04
BLS verifyMultipleSignatures 32 - blst-native 21.831 ms/op 20.943 ms/op 1.04
BLS verifyMultipleSignatures 64 - blst-native 43.122 ms/op 41.239 ms/op 1.05
BLS verifyMultipleSignatures 128 - blst-native 85.590 ms/op 81.841 ms/op 1.05
BLS deserializing 10000 signatures 896.89 ms/op 836.72 ms/op 1.07
BLS deserializing 100000 signatures 8.9490 s/op 8.4870 s/op 1.05
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2995 ms/op 1.2223 ms/op 1.06
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.7376 ms/op 1.3877 ms/op 1.25
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.2876 ms/op 2.1694 ms/op 1.05
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.3780 ms/op 3.2132 ms/op 1.05
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.6112 ms/op 6.0415 ms/op 1.09
BLS aggregatePubkeys 32 - blst-native 26.556 us/op 24.884 us/op 1.07
BLS aggregatePubkeys 128 - blst-native 102.27 us/op 97.879 us/op 1.04
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 89.332 ms/op 64.907 ms/op 1.38
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 58.848 ms/op 57.415 ms/op 1.02
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 37.258 ms/op 32.816 ms/op 1.14
getSlashingsAndExits - default max 205.57 us/op 86.824 us/op 2.37
getSlashingsAndExits - 2k 374.29 us/op 284.35 us/op 1.32
proposeBlockBody type=full, size=empty 6.5778 ms/op 5.9427 ms/op 1.11
isKnown best case - 1 super set check 659.00 ns/op 313.00 ns/op 2.11
isKnown normal case - 2 super set checks 650.00 ns/op 332.00 ns/op 1.96
isKnown worse case - 16 super set checks 700.00 ns/op 322.00 ns/op 2.17
InMemoryCheckpointStateCache - add get delete 7.2740 us/op 5.4110 us/op 1.34
validate api signedAggregateAndProof - struct 3.0083 ms/op 2.6882 ms/op 1.12
validate gossip signedAggregateAndProof - struct 2.8918 ms/op 2.6943 ms/op 1.07
validate gossip attestation - vc 640000 1.4390 ms/op 1.2816 ms/op 1.12
batch validate gossip attestation - vc 640000 - chunk 32 192.79 us/op 156.49 us/op 1.23
batch validate gossip attestation - vc 640000 - chunk 64 170.77 us/op 139.93 us/op 1.22
batch validate gossip attestation - vc 640000 - chunk 128 133.83 us/op 139.70 us/op 0.96
batch validate gossip attestation - vc 640000 - chunk 256 131.68 us/op 129.79 us/op 1.01
pickEth1Vote - no votes 1.3265 ms/op 1.1001 ms/op 1.21
pickEth1Vote - max votes 13.746 ms/op 9.6016 ms/op 1.43
pickEth1Vote - Eth1Data hashTreeRoot value x2048 20.315 ms/op 16.772 ms/op 1.21
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 24.684 ms/op 22.892 ms/op 1.08
pickEth1Vote - Eth1Data fastSerialize value x2048 693.62 us/op 594.08 us/op 1.17
pickEth1Vote - Eth1Data fastSerialize tree x2048 7.5330 ms/op 7.5402 ms/op 1.00
bytes32 toHexString 758.00 ns/op 567.00 ns/op 1.34
bytes32 Buffer.toString(hex) 265.00 ns/op 275.00 ns/op 0.96
bytes32 Buffer.toString(hex) from Uint8Array 534.00 ns/op 394.00 ns/op 1.36
bytes32 Buffer.toString(hex) + 0x 275.00 ns/op 264.00 ns/op 1.04
Object access 1 prop 0.22000 ns/op 0.15100 ns/op 1.46
Map access 1 prop 0.16200 ns/op 0.13300 ns/op 1.22
Object get x1000 6.6030 ns/op 6.0760 ns/op 1.09
Map get x1000 6.8080 ns/op 6.4790 ns/op 1.05
Object set x1000 58.643 ns/op 40.419 ns/op 1.45
Map set x1000 40.825 ns/op 23.492 ns/op 1.74
Return object 10000 times 0.35700 ns/op 0.29800 ns/op 1.20
Throw Error 10000 times 4.2130 us/op 3.5467 us/op 1.19
fastMsgIdFn sha256 / 200 bytes 2.7700 us/op 2.3060 us/op 1.20
fastMsgIdFn h32 xxhash / 200 bytes 359.00 ns/op 283.00 ns/op 1.27
fastMsgIdFn h64 xxhash / 200 bytes 304.00 ns/op 274.00 ns/op 1.11
fastMsgIdFn sha256 / 1000 bytes 7.9890 us/op 7.3610 us/op 1.09
fastMsgIdFn h32 xxhash / 1000 bytes 486.00 ns/op 411.00 ns/op 1.18
fastMsgIdFn h64 xxhash / 1000 bytes 378.00 ns/op 341.00 ns/op 1.11
fastMsgIdFn sha256 / 10000 bytes 67.658 us/op 62.932 us/op 1.08
fastMsgIdFn h32 xxhash / 10000 bytes 2.0060 us/op 1.8870 us/op 1.06
fastMsgIdFn h64 xxhash / 10000 bytes 1.2910 us/op 1.2270 us/op 1.05
send data - 1000 256B messages 16.666 ms/op 13.862 ms/op 1.20
send data - 1000 512B messages 20.904 ms/op 18.014 ms/op 1.16
send data - 1000 1024B messages 37.900 ms/op 27.868 ms/op 1.36
send data - 1000 1200B messages 36.728 ms/op 27.315 ms/op 1.34
send data - 1000 2048B messages 44.883 ms/op 33.121 ms/op 1.36
send data - 1000 4096B messages 46.475 ms/op 29.131 ms/op 1.60
send data - 1000 16384B messages 118.60 ms/op 72.308 ms/op 1.64
send data - 1000 65536B messages 489.85 ms/op 218.97 ms/op 2.24
enrSubnets - fastDeserialize 64 bits 1.9000 us/op 1.1310 us/op 1.68
enrSubnets - ssz BitVector 64 bits 514.00 ns/op 391.00 ns/op 1.31
enrSubnets - fastDeserialize 4 bits 258.00 ns/op 155.00 ns/op 1.66
enrSubnets - ssz BitVector 4 bits 524.00 ns/op 393.00 ns/op 1.33
prioritizePeers score -10:0 att 32-0.1 sync 2-0 265.17 us/op 154.67 us/op 1.71
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 307.59 us/op 194.74 us/op 1.58
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 412.30 us/op 274.72 us/op 1.50
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 643.23 us/op 417.99 us/op 1.54
prioritizePeers score 0:0 att 64-1 sync 4-1 863.18 us/op 747.48 us/op 1.15
array of 16000 items push then shift 1.8371 us/op 1.6598 us/op 1.11
LinkedList of 16000 items push then shift 10.249 ns/op 7.4770 ns/op 1.37
array of 16000 items push then pop 151.13 ns/op 129.31 ns/op 1.17
LinkedList of 16000 items push then pop 9.3150 ns/op 7.3920 ns/op 1.26
array of 24000 items push then shift 2.7639 us/op 2.4411 us/op 1.13
LinkedList of 24000 items push then shift 12.361 ns/op 7.6290 ns/op 1.62
array of 24000 items push then pop 211.13 ns/op 150.04 ns/op 1.41
LinkedList of 24000 items push then pop 12.053 ns/op 7.3220 ns/op 1.65
intersect bitArray bitLen 8 9.3770 ns/op 6.3620 ns/op 1.47
intersect array and set length 8 83.484 ns/op 47.568 ns/op 1.76
intersect bitArray bitLen 128 44.302 ns/op 29.930 ns/op 1.48
intersect array and set length 128 1.0720 us/op 671.38 ns/op 1.60
bitArray.getTrueBitIndexes() bitLen 128 1.7680 us/op 2.0180 us/op 0.88
bitArray.getTrueBitIndexes() bitLen 248 2.9610 us/op 3.6190 us/op 0.82
bitArray.getTrueBitIndexes() bitLen 512 7.0920 us/op 7.3560 us/op 0.96
Buffer.concat 32 items 1.4840 us/op 970.00 ns/op 1.53
Uint8Array.set 32 items 2.3960 us/op 1.8020 us/op 1.33
Buffer.copy 2.8930 us/op 2.2280 us/op 1.30
Uint8Array.set - with subarray 4.6370 us/op 2.9510 us/op 1.57
Uint8Array.set - without subarray 2.4750 us/op 1.5010 us/op 1.65
getUint32 - dataview 293.00 ns/op 261.00 ns/op 1.12
getUint32 - manual 230.00 ns/op 171.00 ns/op 1.35
Set add up to 64 items then delete first 2.7265 us/op 2.3634 us/op 1.15
OrderedSet add up to 64 items then delete first 4.1848 us/op 3.7812 us/op 1.11
Set add up to 64 items then delete last 3.3735 us/op 2.7515 us/op 1.23
OrderedSet add up to 64 items then delete last 5.2216 us/op 3.8063 us/op 1.37
Set add up to 64 items then delete middle 3.3829 us/op 2.8337 us/op 1.19
OrderedSet add up to 64 items then delete middle 6.8099 us/op 5.6321 us/op 1.21
Set add up to 128 items then delete first 6.9004 us/op 5.3258 us/op 1.30
OrderedSet add up to 128 items then delete first 9.9750 us/op 8.4127 us/op 1.19
Set add up to 128 items then delete last 6.0730 us/op 5.1591 us/op 1.18
OrderedSet add up to 128 items then delete last 9.6497 us/op 7.3668 us/op 1.31
Set add up to 128 items then delete middle 6.5441 us/op 4.9179 us/op 1.33
OrderedSet add up to 128 items then delete middle 17.313 us/op 13.708 us/op 1.26
Set add up to 256 items then delete first 14.047 us/op 11.363 us/op 1.24
OrderedSet add up to 256 items then delete first 19.790 us/op 19.235 us/op 1.03
Set add up to 256 items then delete last 12.387 us/op 10.717 us/op 1.16
OrderedSet add up to 256 items then delete last 17.278 us/op 16.654 us/op 1.04
Set add up to 256 items then delete middle 12.002 us/op 10.181 us/op 1.18
OrderedSet add up to 256 items then delete middle 49.179 us/op 42.704 us/op 1.15
transfer serialized Status (84 B) 1.4560 us/op 1.4230 us/op 1.02
copy serialized Status (84 B) 1.2900 us/op 1.2150 us/op 1.06
transfer serialized SignedVoluntaryExit (112 B) 1.5120 us/op 1.6170 us/op 0.94
copy serialized SignedVoluntaryExit (112 B) 1.3180 us/op 1.2940 us/op 1.02
transfer serialized ProposerSlashing (416 B) 2.2900 us/op 2.1740 us/op 1.05
copy serialized ProposerSlashing (416 B) 2.4750 us/op 1.6480 us/op 1.50
transfer serialized Attestation (485 B) 2.5250 us/op 1.9930 us/op 1.27
copy serialized Attestation (485 B) 2.4550 us/op 1.9630 us/op 1.25
transfer serialized AttesterSlashing (33232 B) 2.4710 us/op 2.4160 us/op 1.02
copy serialized AttesterSlashing (33232 B) 7.8380 us/op 6.2040 us/op 1.26
transfer serialized Small SignedBeaconBlock (128000 B) 2.9580 us/op 3.2330 us/op 0.91
copy serialized Small SignedBeaconBlock (128000 B) 20.736 us/op 17.309 us/op 1.20
transfer serialized Avg SignedBeaconBlock (200000 B) 3.2920 us/op 3.3300 us/op 0.99
copy serialized Avg SignedBeaconBlock (200000 B) 35.338 us/op 24.708 us/op 1.43
transfer serialized BlobsSidecar (524380 B) 3.7970 us/op 3.6640 us/op 1.04
copy serialized BlobsSidecar (524380 B) 104.54 us/op 135.64 us/op 0.77
transfer serialized Big SignedBeaconBlock (1000000 B) 3.9030 us/op 3.7190 us/op 1.05
copy serialized Big SignedBeaconBlock (1000000 B) 287.30 us/op 381.08 us/op 0.75
pass gossip attestations to forkchoice per slot 3.4833 ms/op 3.4016 ms/op 1.02
forkChoice updateHead vc 100000 bc 64 eq 0 649.52 us/op 507.57 us/op 1.28
forkChoice updateHead vc 600000 bc 64 eq 0 4.1061 ms/op 3.0812 ms/op 1.33
forkChoice updateHead vc 1000000 bc 64 eq 0 6.0951 ms/op 5.4017 ms/op 1.13
forkChoice updateHead vc 600000 bc 320 eq 0 3.4555 ms/op 3.0706 ms/op 1.13
forkChoice updateHead vc 600000 bc 1200 eq 0 3.4755 ms/op 2.9622 ms/op 1.17
forkChoice updateHead vc 600000 bc 7200 eq 0 5.8129 ms/op 3.8472 ms/op 1.51
forkChoice updateHead vc 600000 bc 64 eq 1000 11.346 ms/op 10.298 ms/op 1.10
forkChoice updateHead vc 600000 bc 64 eq 10000 11.569 ms/op 10.981 ms/op 1.05
forkChoice updateHead vc 600000 bc 64 eq 300000 16.833 ms/op 14.753 ms/op 1.14
computeDeltas 500000 validators 300 proto nodes 4.5531 ms/op 3.4305 ms/op 1.33
computeDeltas 500000 validators 1200 proto nodes 4.2418 ms/op 3.4169 ms/op 1.24
computeDeltas 500000 validators 7200 proto nodes 4.3559 ms/op 3.4661 ms/op 1.26
computeDeltas 750000 validators 300 proto nodes 6.0289 ms/op 5.1120 ms/op 1.18
computeDeltas 750000 validators 1200 proto nodes 6.0128 ms/op 5.1584 ms/op 1.17
computeDeltas 750000 validators 7200 proto nodes 5.8966 ms/op 5.2424 ms/op 1.12
computeDeltas 1400000 validators 300 proto nodes 10.799 ms/op 10.069 ms/op 1.07
computeDeltas 1400000 validators 1200 proto nodes 10.750 ms/op 9.9348 ms/op 1.08
computeDeltas 1400000 validators 7200 proto nodes 10.323 ms/op 9.9049 ms/op 1.04
computeDeltas 2100000 validators 300 proto nodes 15.570 ms/op 14.999 ms/op 1.04
computeDeltas 2100000 validators 1200 proto nodes 16.047 ms/op 14.848 ms/op 1.08
computeDeltas 2100000 validators 7200 proto nodes 15.456 ms/op 15.374 ms/op 1.01
altair processAttestation - 250000 vs - 7PWei normalcase 1.8235 ms/op 1.8441 ms/op 0.99
altair processAttestation - 250000 vs - 7PWei worstcase 2.4848 ms/op 2.5664 ms/op 0.97
altair processAttestation - setStatus - 1/6 committees join 86.262 us/op 89.997 us/op 0.96
altair processAttestation - setStatus - 1/3 committees join 174.09 us/op 181.65 us/op 0.96
altair processAttestation - setStatus - 1/2 committees join 257.20 us/op 252.96 us/op 1.02
altair processAttestation - setStatus - 2/3 committees join 330.44 us/op 336.67 us/op 0.98
altair processAttestation - setStatus - 4/5 committees join 482.91 us/op 477.62 us/op 1.01
altair processAttestation - setStatus - 100% committees join 571.39 us/op 577.29 us/op 0.99
altair processBlock - 250000 vs - 7PWei normalcase 4.3942 ms/op 4.0651 ms/op 1.08
altair processBlock - 250000 vs - 7PWei normalcase hashState 27.284 ms/op 23.387 ms/op 1.17
altair processBlock - 250000 vs - 7PWei worstcase 41.215 ms/op 39.700 ms/op 1.04
altair processBlock - 250000 vs - 7PWei worstcase hashState 89.169 ms/op 76.584 ms/op 1.16
phase0 processBlock - 250000 vs - 7PWei normalcase 2.1027 ms/op 2.2358 ms/op 0.94
phase0 processBlock - 250000 vs - 7PWei worstcase 31.058 ms/op 26.648 ms/op 1.17
altair processEth1Data - 250000 vs - 7PWei normalcase 421.80 us/op 313.46 us/op 1.35
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 6.7930 us/op 5.5850 us/op 1.22
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 28.548 us/op 27.009 us/op 1.06
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 10.896 us/op 8.9900 us/op 1.21
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 8.6490 us/op 6.5160 us/op 1.33
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 118.40 us/op 108.84 us/op 1.09
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 739.37 us/op 731.00 us/op 1.01
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 952.84 us/op 939.69 us/op 1.01
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 945.86 us/op 913.30 us/op 1.04
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.8766 ms/op 2.5147 ms/op 1.14
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.7407 ms/op 1.7303 ms/op 1.01
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.6713 ms/op 3.9016 ms/op 1.20
Tree 40 250000 create 268.48 ms/op 225.81 ms/op 1.19
Tree 40 250000 get(125000) 163.53 ns/op 147.67 ns/op 1.11
Tree 40 250000 set(125000) 766.01 ns/op 726.98 ns/op 1.05
Tree 40 250000 toArray() 22.479 ms/op 20.618 ms/op 1.09
Tree 40 250000 iterate all - toArray() + loop 21.783 ms/op 20.493 ms/op 1.06
Tree 40 250000 iterate all - get(i) 61.722 ms/op 58.765 ms/op 1.05
MutableVector 250000 create 10.271 ms/op 10.564 ms/op 0.97
MutableVector 250000 get(125000) 6.4820 ns/op 7.6670 ns/op 0.85
MutableVector 250000 set(125000) 208.17 ns/op 195.82 ns/op 1.06
MutableVector 250000 toArray() 4.1024 ms/op 3.9471 ms/op 1.04
MutableVector 250000 iterate all - toArray() + loop 4.2421 ms/op 4.1018 ms/op 1.03
MutableVector 250000 iterate all - get(i) 1.6551 ms/op 1.7094 ms/op 0.97
Array 250000 create 3.5169 ms/op 3.5654 ms/op 0.99
Array 250000 clone - spread 1.5175 ms/op 1.4138 ms/op 1.07
Array 250000 get(125000) 0.42500 ns/op 0.41400 ns/op 1.03
Array 250000 set(125000) 0.44400 ns/op 0.43700 ns/op 1.02
Array 250000 iterate all - loop 94.821 us/op 82.888 us/op 1.14
effectiveBalanceIncrements clone Uint8Array 300000 47.873 us/op 37.500 us/op 1.28
effectiveBalanceIncrements clone MutableVector 300000 128.00 ns/op 126.00 ns/op 1.02
effectiveBalanceIncrements rw all Uint8Array 300000 200.74 us/op 198.01 us/op 1.01
effectiveBalanceIncrements rw all MutableVector 300000 244.63 ms/op 65.350 ms/op 3.74
phase0 afterProcessEpoch - 250000 vs - 7PWei 124.52 ms/op 89.498 ms/op 1.39
Array.fill - length 1000000 10.063 ms/op 3.7055 ms/op 2.72
Array push - length 1000000 26.205 ms/op 19.106 ms/op 1.37
Array.get 0.30446 ns/op 0.28661 ns/op 1.06
Uint8Array.get 0.46349 ns/op 0.44829 ns/op 1.03
phase0 beforeProcessEpoch - 250000 vs - 7PWei 24.224 ms/op 23.782 ms/op 1.02
altair processEpoch - mainnet_e81889 478.96 ms/op 338.12 ms/op 1.42
mainnet_e81889 - altair beforeProcessEpoch 45.687 ms/op 27.935 ms/op 1.64
mainnet_e81889 - altair processJustificationAndFinalization 19.445 us/op 11.085 us/op 1.75
mainnet_e81889 - altair processInactivityUpdates 9.7553 ms/op 5.3987 ms/op 1.81
mainnet_e81889 - altair processRewardsAndPenalties 65.242 ms/op 47.340 ms/op 1.38
mainnet_e81889 - altair processRegistryUpdates 3.3530 us/op 1.8540 us/op 1.81
mainnet_e81889 - altair processSlashings 701.00 ns/op 377.00 ns/op 1.86
mainnet_e81889 - altair processEth1DataReset 549.00 ns/op 263.00 ns/op 2.09
mainnet_e81889 - altair processEffectiveBalanceUpdates 2.9447 ms/op 1.1312 ms/op 2.60
mainnet_e81889 - altair processSlashingsReset 4.7510 us/op 2.5670 us/op 1.85
mainnet_e81889 - altair processRandaoMixesReset 5.5310 us/op 3.3190 us/op 1.67
mainnet_e81889 - altair processHistoricalRootsUpdate 553.00 ns/op 320.00 ns/op 1.73
mainnet_e81889 - altair processParticipationFlagUpdates 3.5450 us/op 1.7340 us/op 2.04
mainnet_e81889 - altair processSyncCommitteeUpdates 736.00 ns/op 353.00 ns/op 2.08
mainnet_e81889 - altair afterProcessEpoch 98.959 ms/op 90.477 ms/op 1.09
capella processEpoch - mainnet_e217614 1.1512 s/op 1.0876 s/op 1.06
mainnet_e217614 - capella beforeProcessEpoch 120.84 ms/op 110.12 ms/op 1.10
mainnet_e217614 - capella processJustificationAndFinalization 27.640 us/op 13.641 us/op 2.03
mainnet_e217614 - capella processInactivityUpdates 21.931 ms/op 17.311 ms/op 1.27
mainnet_e217614 - capella processRewardsAndPenalties 259.92 ms/op 225.20 ms/op 1.15
mainnet_e217614 - capella processRegistryUpdates 18.819 us/op 12.770 us/op 1.47
mainnet_e217614 - capella processSlashings 543.00 ns/op 395.00 ns/op 1.37
mainnet_e217614 - capella processEth1DataReset 449.00 ns/op 324.00 ns/op 1.39
mainnet_e217614 - capella processEffectiveBalanceUpdates 14.877 ms/op 12.783 ms/op 1.16
mainnet_e217614 - capella processSlashingsReset 4.8970 us/op 3.5490 us/op 1.38
mainnet_e217614 - capella processRandaoMixesReset 4.3170 us/op 3.8270 us/op 1.13
mainnet_e217614 - capella processHistoricalRootsUpdate 1.6690 us/op 1.2860 us/op 1.30
mainnet_e217614 - capella processParticipationFlagUpdates 1.6180 us/op 2.1110 us/op 0.77
mainnet_e217614 - capella afterProcessEpoch 247.24 ms/op 277.36 ms/op 0.89
phase0 processEpoch - mainnet_e58758 310.43 ms/op 343.56 ms/op 0.90
mainnet_e58758 - phase0 beforeProcessEpoch 69.315 ms/op 73.719 ms/op 0.94
mainnet_e58758 - phase0 processJustificationAndFinalization 11.726 us/op 12.680 us/op 0.92
mainnet_e58758 - phase0 processRewardsAndPenalties 30.034 ms/op 36.896 ms/op 0.81
mainnet_e58758 - phase0 processRegistryUpdates 7.7500 us/op 8.2830 us/op 0.94
mainnet_e58758 - phase0 processSlashings 458.00 ns/op 373.00 ns/op 1.23
mainnet_e58758 - phase0 processEth1DataReset 286.00 ns/op 345.00 ns/op 0.83
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 977.93 us/op 991.51 us/op 0.99
mainnet_e58758 - phase0 processSlashingsReset 2.5610 us/op 3.2330 us/op 0.79
mainnet_e58758 - phase0 processRandaoMixesReset 3.3220 us/op 3.2340 us/op 1.03
mainnet_e58758 - phase0 processHistoricalRootsUpdate 315.00 ns/op 318.00 ns/op 0.99
mainnet_e58758 - phase0 processParticipationRecordUpdates 2.2700 us/op 2.2660 us/op 1.00
mainnet_e58758 - phase0 afterProcessEpoch 75.898 ms/op 77.792 ms/op 0.98
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.1941 ms/op 1.2301 ms/op 0.97
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.9857 ms/op 1.9397 ms/op 1.02
altair processInactivityUpdates - 250000 normalcase 14.879 ms/op 15.115 ms/op 0.98
altair processInactivityUpdates - 250000 worstcase 15.273 ms/op 19.318 ms/op 0.79
phase0 processRegistryUpdates - 250000 normalcase 5.8780 us/op 7.9240 us/op 0.74
phase0 processRegistryUpdates - 250000 badcase_full_deposits 309.25 us/op 290.69 us/op 1.06
phase0 processRegistryUpdates - 250000 worstcase 0.5 124.75 ms/op 128.70 ms/op 0.97
altair processRewardsAndPenalties - 250000 normalcase 37.729 ms/op 40.972 ms/op 0.92
altair processRewardsAndPenalties - 250000 worstcase 34.612 ms/op 39.059 ms/op 0.89
phase0 getAttestationDeltas - 250000 normalcase 7.5875 ms/op 7.6960 ms/op 0.99
phase0 getAttestationDeltas - 250000 worstcase 7.9883 ms/op 8.1176 ms/op 0.98
phase0 processSlashings - 250000 worstcase 95.126 us/op 98.161 us/op 0.97
altair processSyncCommitteeUpdates - 250000 123.80 ms/op 134.11 ms/op 0.92
BeaconState.hashTreeRoot - No change 266.00 ns/op 283.00 ns/op 0.94
BeaconState.hashTreeRoot - 1 full validator 85.808 us/op 105.91 us/op 0.81
BeaconState.hashTreeRoot - 32 full validator 870.26 us/op 1.5351 ms/op 0.57
BeaconState.hashTreeRoot - 512 full validator 10.411 ms/op 11.656 ms/op 0.89
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 111.22 us/op 144.54 us/op 0.77
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.4966 ms/op 1.9351 ms/op 0.77
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 26.216 ms/op 26.553 ms/op 0.99
BeaconState.hashTreeRoot - 1 balances 119.09 us/op 125.14 us/op 0.95
BeaconState.hashTreeRoot - 32 balances 1.0805 ms/op 943.41 us/op 1.15
BeaconState.hashTreeRoot - 512 balances 8.1841 ms/op 8.1507 ms/op 1.00
BeaconState.hashTreeRoot - 250000 balances 151.52 ms/op 160.28 ms/op 0.95
aggregationBits - 2048 els - zipIndexesInBitList 24.911 us/op 26.073 us/op 0.96
byteArrayEquals 32 54.267 ns/op 55.151 ns/op 0.98
Buffer.compare 32 17.719 ns/op 17.763 ns/op 1.00
byteArrayEquals 1024 1.6041 us/op 1.6281 us/op 0.99
Buffer.compare 1024 25.169 ns/op 26.211 ns/op 0.96
byteArrayEquals 16384 25.756 us/op 26.132 us/op 0.99
Buffer.compare 16384 199.58 ns/op 207.60 ns/op 0.96
byteArrayEquals 123687377 197.38 ms/op 196.62 ms/op 1.00
Buffer.compare 123687377 8.1076 ms/op 6.7633 ms/op 1.20
byteArrayEquals 32 - diff last byte 55.043 ns/op 54.572 ns/op 1.01
Buffer.compare 32 - diff last byte 17.263 ns/op 18.039 ns/op 0.96
byteArrayEquals 1024 - diff last byte 1.7147 us/op 1.6473 us/op 1.04
Buffer.compare 1024 - diff last byte 27.598 ns/op 27.426 ns/op 1.01
byteArrayEquals 16384 - diff last byte 26.557 us/op 26.168 us/op 1.01
Buffer.compare 16384 - diff last byte 210.61 ns/op 210.46 ns/op 1.00
byteArrayEquals 123687377 - diff last byte 195.98 ms/op 197.13 ms/op 0.99
Buffer.compare 123687377 - diff last byte 8.3904 ms/op 6.7137 ms/op 1.25
byteArrayEquals 32 - random bytes 5.3500 ns/op 5.3870 ns/op 0.99
Buffer.compare 32 - random bytes 17.411 ns/op 17.834 ns/op 0.98
byteArrayEquals 1024 - random bytes 5.3880 ns/op 5.3180 ns/op 1.01
Buffer.compare 1024 - random bytes 17.554 ns/op 17.717 ns/op 0.99
byteArrayEquals 16384 - random bytes 5.4310 ns/op 5.3510 ns/op 1.01
Buffer.compare 16384 - random bytes 17.542 ns/op 17.748 ns/op 0.99
byteArrayEquals 123687377 - random bytes 6.9800 ns/op 6.8200 ns/op 1.02
Buffer.compare 123687377 - random bytes 19.430 ns/op 19.320 ns/op 1.01
regular array get 100000 times 34.496 us/op 34.942 us/op 0.99
wrappedArray get 100000 times 34.014 us/op 34.622 us/op 0.98
arrayWithProxy get 100000 times 13.226 ms/op 14.006 ms/op 0.94
ssz.Root.equals 47.080 ns/op 47.531 ns/op 0.99
byteArrayEquals 45.921 ns/op 46.887 ns/op 0.98
Buffer.compare 10.641 ns/op 10.911 ns/op 0.98
shuffle list - 16384 els 6.4798 ms/op 6.2230 ms/op 1.04
shuffle list - 250000 els 94.094 ms/op 91.908 ms/op 1.02
processSlot - 1 slots 13.736 us/op 12.923 us/op 1.06
processSlot - 32 slots 3.3558 ms/op 2.7179 ms/op 1.23
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 37.793 ms/op 37.372 ms/op 1.01
getCommitteeAssignments - req 1 vs - 250000 vc 2.2473 ms/op 2.0763 ms/op 1.08
getCommitteeAssignments - req 100 vs - 250000 vc 4.4826 ms/op 3.9912 ms/op 1.12
getCommitteeAssignments - req 1000 vs - 250000 vc 4.5836 ms/op 4.2972 ms/op 1.07
findModifiedValidators - 10000 modified validators 305.11 ms/op 244.34 ms/op 1.25
findModifiedValidators - 1000 modified validators 193.94 ms/op 168.48 ms/op 1.15
findModifiedValidators - 100 modified validators 225.05 ms/op 164.55 ms/op 1.37
findModifiedValidators - 10 modified validators 213.58 ms/op 175.30 ms/op 1.22
findModifiedValidators - 1 modified validators 206.04 ms/op 174.46 ms/op 1.18
findModifiedValidators - no difference 174.64 ms/op 159.42 ms/op 1.10
compare ViewDUs 3.3948 s/op 2.9619 s/op 1.15
compare each validator Uint8Array 1.1357 s/op 1.4884 s/op 0.76
compare ViewDU to Uint8Array 1.2003 s/op 938.25 ms/op 1.28
migrate state 1000000 validators, 24 modified, 0 new 603.03 ms/op 585.95 ms/op 1.03
migrate state 1000000 validators, 1700 modified, 1000 new 815.71 ms/op 813.41 ms/op 1.00
migrate state 1000000 validators, 3400 modified, 2000 new 1.0176 s/op 994.35 ms/op 1.02
migrate state 1500000 validators, 24 modified, 0 new 762.52 ms/op 609.53 ms/op 1.25
migrate state 1500000 validators, 1700 modified, 1000 new 1.0602 s/op 796.52 ms/op 1.33
migrate state 1500000 validators, 3400 modified, 2000 new 1.1642 s/op 941.21 ms/op 1.24
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.1100 ns/op 4.2200 ns/op 1.21
state getBlockRootAtSlot - 250000 vs - 7PWei 930.14 ns/op 709.03 ns/op 1.31
computeProposers - vc 250000 8.2177 ms/op 7.2621 ms/op 1.13
computeEpochShuffling - vc 250000 98.187 ms/op 91.171 ms/op 1.08
getNextSyncCommittee - vc 250000 141.76 ms/op 122.07 ms/op 1.16
computeSigningRoot for AttestationData 26.311 us/op 22.652 us/op 1.16
hash AttestationData serialized data then Buffer.toString(base64) 1.6554 us/op 1.4781 us/op 1.12
toHexString serialized data 1.0574 us/op 842.53 ns/op 1.26
Buffer.toString(base64) 206.64 ns/op 172.78 ns/op 1.20

by benchmarkbot/action

@nflaig nflaig merged commit 81f9d97 into unstable Jul 23, 2024
18 of 20 checks passed
@nflaig nflaig deleted the nflaig/ignore-dns-errors branch July 23, 2024 08:56
@wemeetagain
Copy link
Member

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