Skip to content

Commit

Permalink
feat: increase default target peers to 100 (#6556)
Browse files Browse the repository at this point in the history
feat: increase target peers to 100
  • Loading branch information
twoeths authored Apr 11, 2024
1 parent f21660e commit 2d766ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/beacon-node/src/network/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export interface NetworkOptions
}

export const defaultNetworkOptions: NetworkOptions = {
maxPeers: 55, // Allow some room above targetPeers for new inbound peers
targetPeers: 50,
maxPeers: 110, // Allow some room above targetPeers for new inbound peers
targetPeers: 100,
localMultiaddrs: ["/ip4/0.0.0.0/tcp/9000"],
bootMultiaddrs: [],
/** disabled by default */
Expand Down

1 comment on commit 2d766ca

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for some benchmarks.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold.

Benchmark suite Current: 2d766ca Previous: e029851 Ratio
prioritizePeers score -10:0 att 32-0.1 sync 2-0 214.23 us/op 65.785 us/op 3.26
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 263.62 us/op 80.698 us/op 3.27
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 334.92 us/op 104.39 us/op 3.21
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 563.46 us/op 178.11 us/op 3.16
prioritizePeers score 0:0 att 64-1 sync 4-1 687.27 us/op 201.96 us/op 3.40
Full benchmark results
Benchmark suite Current: 2d766ca Previous: e029851 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 797.05 us/op 544.80 us/op 1.46
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 80.962 us/op 50.916 us/op 1.59
BLS verify - blst-native 1.2685 ms/op 1.1256 ms/op 1.13
BLS verifyMultipleSignatures 3 - blst-native 2.6579 ms/op 2.4088 ms/op 1.10
BLS verifyMultipleSignatures 8 - blst-native 5.8342 ms/op 5.2962 ms/op 1.10
BLS verifyMultipleSignatures 32 - blst-native 21.311 ms/op 19.454 ms/op 1.10
BLS verifyMultipleSignatures 64 - blst-native 42.624 ms/op 38.288 ms/op 1.11
BLS verifyMultipleSignatures 128 - blst-native 85.590 ms/op 75.992 ms/op 1.13
BLS deserializing 10000 signatures 894.89 ms/op 781.29 ms/op 1.15
BLS deserializing 100000 signatures 9.3565 s/op 8.1682 s/op 1.15
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.3164 ms/op 1.1158 ms/op 1.18
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.4924 ms/op 1.2661 ms/op 1.18
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.9110 ms/op 1.9958 ms/op 1.46
BLS verifyMultipleSignatures - same message - 64 - blst-native 4.6740 ms/op 3.8102 ms/op 1.23
BLS verifyMultipleSignatures - same message - 128 - blst-native 7.6516 ms/op 4.9924 ms/op 1.53
BLS aggregatePubkeys 32 - blst-native 28.154 us/op 22.512 us/op 1.25
BLS aggregatePubkeys 128 - blst-native 101.07 us/op 88.546 us/op 1.14
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 61.257 ms/op 41.242 ms/op 1.49
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 63.290 ms/op 50.977 ms/op 1.24
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 40.405 ms/op 26.312 ms/op 1.54
getSlashingsAndExits - default max 158.20 us/op 108.50 us/op 1.46
getSlashingsAndExits - 2k 348.63 us/op 328.33 us/op 1.06
proposeBlockBody type=full, size=empty 5.7419 ms/op 4.2550 ms/op 1.35
isKnown best case - 1 super set check 319.00 ns/op 308.00 ns/op 1.04
isKnown normal case - 2 super set checks 320.00 ns/op 318.00 ns/op 1.01
isKnown worse case - 16 super set checks 303.00 ns/op 316.00 ns/op 0.96
InMemoryCheckpointStateCache - add get delete 5.8140 us/op 4.0220 us/op 1.45
validate api signedAggregateAndProof - struct 2.7592 ms/op 2.3888 ms/op 1.16
validate gossip signedAggregateAndProof - struct 2.7626 ms/op 2.3931 ms/op 1.15
validate gossip attestation - vc 640000 1.3448 ms/op 1.1278 ms/op 1.19
batch validate gossip attestation - vc 640000 - chunk 32 162.06 us/op 135.62 us/op 1.19
batch validate gossip attestation - vc 640000 - chunk 64 144.43 us/op 119.06 us/op 1.21
batch validate gossip attestation - vc 640000 - chunk 128 137.99 us/op 110.63 us/op 1.25
batch validate gossip attestation - vc 640000 - chunk 256 129.78 us/op 104.91 us/op 1.24
pickEth1Vote - no votes 1.2259 ms/op 909.20 us/op 1.35
pickEth1Vote - max votes 10.046 ms/op 5.2678 ms/op 1.91
pickEth1Vote - Eth1Data hashTreeRoot value x2048 18.221 ms/op 11.515 ms/op 1.58
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 28.470 ms/op 16.213 ms/op 1.76
pickEth1Vote - Eth1Data fastSerialize value x2048 660.89 us/op 426.09 us/op 1.55
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.3028 ms/op 7.5547 ms/op 0.83
bytes32 toHexString 533.00 ns/op 428.00 ns/op 1.25
bytes32 Buffer.toString(hex) 305.00 ns/op 297.00 ns/op 1.03
bytes32 Buffer.toString(hex) from Uint8Array 474.00 ns/op 396.00 ns/op 1.20
bytes32 Buffer.toString(hex) + 0x 300.00 ns/op 299.00 ns/op 1.00
Object access 1 prop 0.17900 ns/op 0.19400 ns/op 0.92
Map access 1 prop 0.15500 ns/op 0.19000 ns/op 0.82
Object get x1000 7.7090 ns/op 4.6800 ns/op 1.65
Map get x1000 0.77900 ns/op 0.68300 ns/op 1.14
Object set x1000 54.337 ns/op 25.220 ns/op 2.15
Map set x1000 39.223 ns/op 17.222 ns/op 2.28
Return object 10000 times 0.24440 ns/op 0.21070 ns/op 1.16
Throw Error 10000 times 3.9113 us/op 2.5503 us/op 1.53
fastMsgIdFn sha256 / 200 bytes 3.3460 us/op 1.8660 us/op 1.79
fastMsgIdFn h32 xxhash / 200 bytes 330.00 ns/op 286.00 ns/op 1.15
fastMsgIdFn h64 xxhash / 200 bytes 373.00 ns/op 340.00 ns/op 1.10
fastMsgIdFn sha256 / 1000 bytes 11.529 us/op 5.8580 us/op 1.97
fastMsgIdFn h32 xxhash / 1000 bytes 453.00 ns/op 394.00 ns/op 1.15
fastMsgIdFn h64 xxhash / 1000 bytes 469.00 ns/op 395.00 ns/op 1.19
fastMsgIdFn sha256 / 10000 bytes 104.72 us/op 48.794 us/op 2.15
fastMsgIdFn h32 xxhash / 10000 bytes 1.9710 us/op 1.6990 us/op 1.16
fastMsgIdFn h64 xxhash / 10000 bytes 1.3660 us/op 1.2360 us/op 1.11
send data - 1000 256B messages 19.957 ms/op 14.186 ms/op 1.41
send data - 1000 512B messages 27.154 ms/op 14.968 ms/op 1.81
send data - 1000 1024B messages 42.321 ms/op 22.787 ms/op 1.86
send data - 1000 1200B messages 36.245 ms/op 27.491 ms/op 1.32
send data - 1000 2048B messages 47.142 ms/op 35.659 ms/op 1.32
send data - 1000 4096B messages 42.030 ms/op 32.114 ms/op 1.31
send data - 1000 16384B messages 111.84 ms/op 88.463 ms/op 1.26
send data - 1000 65536B messages 475.65 ms/op 405.01 ms/op 1.17
enrSubnets - fastDeserialize 64 bits 1.3040 us/op 1.0500 us/op 1.24
enrSubnets - ssz BitVector 64 bits 464.00 ns/op 418.00 ns/op 1.11
enrSubnets - fastDeserialize 4 bits 179.00 ns/op 194.00 ns/op 0.92
enrSubnets - ssz BitVector 4 bits 427.00 ns/op 405.00 ns/op 1.05
prioritizePeers score -10:0 att 32-0.1 sync 2-0 214.23 us/op 65.785 us/op 3.26
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 263.62 us/op 80.698 us/op 3.27
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 334.92 us/op 104.39 us/op 3.21
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 563.46 us/op 178.11 us/op 3.16
prioritizePeers score 0:0 att 64-1 sync 4-1 687.27 us/op 201.96 us/op 3.40
array of 16000 items push then shift 1.5741 us/op 1.2710 us/op 1.24
LinkedList of 16000 items push then shift 8.6860 ns/op 5.8710 ns/op 1.48
array of 16000 items push then pop 85.139 ns/op 49.448 ns/op 1.72
LinkedList of 16000 items push then pop 8.5590 ns/op 5.6520 ns/op 1.51
array of 24000 items push then shift 2.3338 us/op 1.8596 us/op 1.26
LinkedList of 24000 items push then shift 8.6790 ns/op 5.7860 ns/op 1.50
array of 24000 items push then pop 96.198 ns/op 77.905 ns/op 1.23
LinkedList of 24000 items push then pop 8.4340 ns/op 5.8780 ns/op 1.43
intersect bitArray bitLen 8 5.5690 ns/op 4.7270 ns/op 1.18
intersect array and set length 8 62.101 ns/op 48.419 ns/op 1.28
intersect bitArray bitLen 128 34.285 ns/op 29.384 ns/op 1.17
intersect array and set length 128 828.35 ns/op 681.22 ns/op 1.22
bitArray.getTrueBitIndexes() bitLen 128 1.4620 us/op 1.2650 us/op 1.16
bitArray.getTrueBitIndexes() bitLen 248 2.7540 us/op 1.9270 us/op 1.43
bitArray.getTrueBitIndexes() bitLen 512 5.4640 us/op 3.5120 us/op 1.56
Buffer.concat 32 items 963.00 ns/op 900.00 ns/op 1.07
Uint8Array.set 32 items 1.6880 us/op 2.0890 us/op 0.81
Set add up to 64 items then delete first 4.2686 us/op 1.7387 us/op 2.46
OrderedSet add up to 64 items then delete first 5.6187 us/op 2.6711 us/op 2.10
Set add up to 64 items then delete last 4.5535 us/op 1.9715 us/op 2.31
OrderedSet add up to 64 items then delete last 5.7091 us/op 2.9483 us/op 1.94
Set add up to 64 items then delete middle 4.5319 us/op 1.9826 us/op 2.29
OrderedSet add up to 64 items then delete middle 6.9632 us/op 4.2460 us/op 1.64
Set add up to 128 items then delete first 9.7333 us/op 3.9214 us/op 2.48
OrderedSet add up to 128 items then delete first 12.519 us/op 6.1587 us/op 2.03
Set add up to 128 items then delete last 9.0492 us/op 3.7970 us/op 2.38
OrderedSet add up to 128 items then delete last 11.363 us/op 5.7032 us/op 1.99
Set add up to 128 items then delete middle 9.0166 us/op 3.8007 us/op 2.37
OrderedSet add up to 128 items then delete middle 16.833 us/op 10.598 us/op 1.59
Set add up to 256 items then delete first 18.742 us/op 7.7826 us/op 2.41
OrderedSet add up to 256 items then delete first 24.963 us/op 12.226 us/op 2.04
Set add up to 256 items then delete last 18.161 us/op 7.5374 us/op 2.41
OrderedSet add up to 256 items then delete last 22.911 us/op 11.340 us/op 2.02
Set add up to 256 items then delete middle 18.074 us/op 7.5320 us/op 2.40
OrderedSet add up to 256 items then delete middle 45.080 us/op 30.743 us/op 1.47
transfer serialized Status (84 B) 1.7150 us/op 1.3640 us/op 1.26
copy serialized Status (84 B) 1.2940 us/op 1.1700 us/op 1.11
transfer serialized SignedVoluntaryExit (112 B) 1.8700 us/op 1.5570 us/op 1.20
copy serialized SignedVoluntaryExit (112 B) 1.3230 us/op 1.2600 us/op 1.05
transfer serialized ProposerSlashing (416 B) 2.3120 us/op 2.2430 us/op 1.03
copy serialized ProposerSlashing (416 B) 1.9970 us/op 2.3270 us/op 0.86
transfer serialized Attestation (485 B) 2.4380 us/op 2.3330 us/op 1.05
copy serialized Attestation (485 B) 2.0530 us/op 2.3270 us/op 0.88
transfer serialized AttesterSlashing (33232 B) 2.4210 us/op 2.1500 us/op 1.13
copy serialized AttesterSlashing (33232 B) 5.3830 us/op 4.2390 us/op 1.27
transfer serialized Small SignedBeaconBlock (128000 B) 2.8260 us/op 2.3550 us/op 1.20
copy serialized Small SignedBeaconBlock (128000 B) 15.979 us/op 8.6990 us/op 1.84
transfer serialized Avg SignedBeaconBlock (200000 B) 3.1430 us/op 2.5180 us/op 1.25
copy serialized Avg SignedBeaconBlock (200000 B) 21.144 us/op 13.041 us/op 1.62
transfer serialized BlobsSidecar (524380 B) 3.1280 us/op 2.4290 us/op 1.29
copy serialized BlobsSidecar (524380 B) 84.301 us/op 79.067 us/op 1.07
transfer serialized Big SignedBeaconBlock (1000000 B) 3.0250 us/op 3.0370 us/op 1.00
copy serialized Big SignedBeaconBlock (1000000 B) 190.04 us/op 139.69 us/op 1.36
pass gossip attestations to forkchoice per slot 4.1820 ms/op 2.6115 ms/op 1.60
forkChoice updateHead vc 100000 bc 64 eq 0 672.31 us/op 451.39 us/op 1.49
forkChoice updateHead vc 600000 bc 64 eq 0 4.0899 ms/op 2.7572 ms/op 1.48
forkChoice updateHead vc 1000000 bc 64 eq 0 6.8701 ms/op 4.3884 ms/op 1.57
forkChoice updateHead vc 600000 bc 320 eq 0 4.0871 ms/op 2.5956 ms/op 1.57
forkChoice updateHead vc 600000 bc 1200 eq 0 4.2337 ms/op 2.5893 ms/op 1.64
forkChoice updateHead vc 600000 bc 7200 eq 0 5.3625 ms/op 3.5704 ms/op 1.50
forkChoice updateHead vc 600000 bc 64 eq 1000 10.819 ms/op 9.7675 ms/op 1.11
forkChoice updateHead vc 600000 bc 64 eq 10000 11.459 ms/op 9.1812 ms/op 1.25
forkChoice updateHead vc 600000 bc 64 eq 300000 15.927 ms/op 11.064 ms/op 1.44
computeDeltas 500000 validators 300 proto nodes 6.4062 ms/op 3.0094 ms/op 2.13
computeDeltas 500000 validators 1200 proto nodes 6.3881 ms/op 2.7799 ms/op 2.30
computeDeltas 500000 validators 7200 proto nodes 6.2741 ms/op 2.8522 ms/op 2.20
computeDeltas 750000 validators 300 proto nodes 10.090 ms/op 4.5301 ms/op 2.23
computeDeltas 750000 validators 1200 proto nodes 9.7996 ms/op 4.5314 ms/op 2.16
computeDeltas 750000 validators 7200 proto nodes 10.438 ms/op 4.4805 ms/op 2.33
computeDeltas 1400000 validators 300 proto nodes 18.991 ms/op 8.6265 ms/op 2.20
computeDeltas 1400000 validators 1200 proto nodes 18.721 ms/op 8.7363 ms/op 2.14
computeDeltas 1400000 validators 7200 proto nodes 18.924 ms/op 8.6891 ms/op 2.18
computeDeltas 2100000 validators 300 proto nodes 26.933 ms/op 12.701 ms/op 2.12
computeDeltas 2100000 validators 1200 proto nodes 27.440 ms/op 12.632 ms/op 2.17
computeDeltas 2100000 validators 7200 proto nodes 27.463 ms/op 12.432 ms/op 2.21
altair processAttestation - 250000 vs - 7PWei normalcase 2.3040 ms/op 1.5503 ms/op 1.49
altair processAttestation - 250000 vs - 7PWei worstcase 3.3931 ms/op 2.3705 ms/op 1.43
altair processAttestation - setStatus - 1/6 committees join 185.03 us/op 71.716 us/op 2.58
altair processAttestation - setStatus - 1/3 committees join 350.96 us/op 142.30 us/op 2.47
altair processAttestation - setStatus - 1/2 committees join 459.96 us/op 203.23 us/op 2.26
altair processAttestation - setStatus - 2/3 committees join 596.48 us/op 261.11 us/op 2.28
altair processAttestation - setStatus - 4/5 committees join 792.14 us/op 369.22 us/op 2.15
altair processAttestation - setStatus - 100% committees join 925.34 us/op 451.79 us/op 2.05
altair processBlock - 250000 vs - 7PWei normalcase 8.1842 ms/op 6.8568 ms/op 1.19
altair processBlock - 250000 vs - 7PWei normalcase hashState 34.462 ms/op 28.719 ms/op 1.20
altair processBlock - 250000 vs - 7PWei worstcase 42.096 ms/op 31.301 ms/op 1.34
altair processBlock - 250000 vs - 7PWei worstcase hashState 89.195 ms/op 83.334 ms/op 1.07
phase0 processBlock - 250000 vs - 7PWei normalcase 2.2915 ms/op 2.0723 ms/op 1.11
phase0 processBlock - 250000 vs - 7PWei worstcase 27.853 ms/op 23.823 ms/op 1.17
altair processEth1Data - 250000 vs - 7PWei normalcase 448.62 us/op 286.16 us/op 1.57
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 11.627 us/op 11.870 us/op 0.98
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 45.720 us/op 58.201 us/op 0.79
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 17.056 us/op 8.2670 us/op 2.06
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 11.371 us/op 11.175 us/op 1.02
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 165.76 us/op 134.30 us/op 1.23
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.3337 ms/op 991.63 us/op 1.34
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.8959 ms/op 1.1660 ms/op 1.63
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.5163 ms/op 798.40 us/op 1.90
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.0419 ms/op 1.9027 ms/op 1.60
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.2642 ms/op 1.7245 ms/op 1.31
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.1185 ms/op 3.3862 ms/op 1.51
Tree 40 250000 create 328.59 ms/op 230.25 ms/op 1.43
Tree 40 250000 get(125000) 188.84 ns/op 113.39 ns/op 1.67
Tree 40 250000 set(125000) 944.02 ns/op 714.72 ns/op 1.32
Tree 40 250000 toArray() 18.684 ms/op 9.3646 ms/op 2.00
Tree 40 250000 iterate all - toArray() + loop 18.804 ms/op 9.6999 ms/op 1.94
Tree 40 250000 iterate all - get(i) 65.708 ms/op 42.724 ms/op 1.54
MutableVector 250000 create 12.639 ms/op 10.364 ms/op 1.22
MutableVector 250000 get(125000) 6.2950 ns/op 5.4750 ns/op 1.15
MutableVector 250000 set(125000) 265.84 ns/op 207.41 ns/op 1.28
MutableVector 250000 toArray() 3.1240 ms/op 2.7465 ms/op 1.14
MutableVector 250000 iterate all - toArray() + loop 3.4530 ms/op 2.4122 ms/op 1.43
MutableVector 250000 iterate all - get(i) 1.5065 ms/op 1.3107 ms/op 1.15
Array 250000 create 2.7081 ms/op 2.0193 ms/op 1.34
Array 250000 clone - spread 1.2190 ms/op 1.1850 ms/op 1.03
Array 250000 get(125000) 1.0000 ns/op 1.0770 ns/op 0.93
Array 250000 set(125000) 3.9740 ns/op 1.2850 ns/op 3.09
Array 250000 iterate all - loop 161.01 us/op 156.61 us/op 1.03
effectiveBalanceIncrements clone Uint8Array 300000 26.026 us/op 15.180 us/op 1.71
effectiveBalanceIncrements clone MutableVector 300000 340.00 ns/op 447.00 ns/op 0.76
effectiveBalanceIncrements rw all Uint8Array 300000 193.66 us/op 184.20 us/op 1.05
effectiveBalanceIncrements rw all MutableVector 300000 78.775 ms/op 65.916 ms/op 1.20
phase0 afterProcessEpoch - 250000 vs - 7PWei 111.92 ms/op 81.683 ms/op 1.37
phase0 beforeProcessEpoch - 250000 vs - 7PWei 50.219 ms/op 27.815 ms/op 1.81
altair processEpoch - mainnet_e81889 474.59 ms/op 426.38 ms/op 1.11
mainnet_e81889 - altair beforeProcessEpoch 77.932 ms/op 67.385 ms/op 1.16
mainnet_e81889 - altair processJustificationAndFinalization 14.249 us/op 5.6940 us/op 2.50
mainnet_e81889 - altair processInactivityUpdates 5.6732 ms/op 4.5054 ms/op 1.26
mainnet_e81889 - altair processRewardsAndPenalties 53.746 ms/op 57.361 ms/op 0.94
mainnet_e81889 - altair processRegistryUpdates 2.4660 us/op 1.9350 us/op 1.27
mainnet_e81889 - altair processSlashings 491.00 ns/op 632.00 ns/op 0.78
mainnet_e81889 - altair processEth1DataReset 554.00 ns/op 564.00 ns/op 0.98
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.3542 ms/op 1.7229 ms/op 0.79
mainnet_e81889 - altair processSlashingsReset 3.8760 us/op 3.6550 us/op 1.06
mainnet_e81889 - altair processRandaoMixesReset 3.9900 us/op 4.2880 us/op 0.93
mainnet_e81889 - altair processHistoricalRootsUpdate 697.00 ns/op 1.1240 us/op 0.62
mainnet_e81889 - altair processParticipationFlagUpdates 1.8280 us/op 1.6500 us/op 1.11
mainnet_e81889 - altair processSyncCommitteeUpdates 1.1890 us/op 618.00 ns/op 1.92
mainnet_e81889 - altair afterProcessEpoch 120.70 ms/op 81.017 ms/op 1.49
capella processEpoch - mainnet_e217614 2.1909 s/op 1.6493 s/op 1.33
mainnet_e217614 - capella beforeProcessEpoch 503.93 ms/op 401.47 ms/op 1.26
mainnet_e217614 - capella processJustificationAndFinalization 15.129 us/op 8.5210 us/op 1.78
mainnet_e217614 - capella processInactivityUpdates 18.253 ms/op 15.266 ms/op 1.20
mainnet_e217614 - capella processRewardsAndPenalties 583.64 ms/op 462.64 ms/op 1.26
mainnet_e217614 - capella processRegistryUpdates 18.604 us/op 16.570 us/op 1.12
mainnet_e217614 - capella processSlashings 557.00 ns/op 671.00 ns/op 0.83
mainnet_e217614 - capella processEth1DataReset 424.00 ns/op 598.00 ns/op 0.71
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.2822 ms/op 4.3089 ms/op 0.99
mainnet_e217614 - capella processSlashingsReset 3.2870 us/op 1.6880 us/op 1.95
mainnet_e217614 - capella processRandaoMixesReset 4.6820 us/op 2.9070 us/op 1.61
mainnet_e217614 - capella processHistoricalRootsUpdate 622.00 ns/op 595.00 ns/op 1.05
mainnet_e217614 - capella processParticipationFlagUpdates 1.5470 us/op 1.1680 us/op 1.32
mainnet_e217614 - capella afterProcessEpoch 301.08 ms/op 245.36 ms/op 1.23
phase0 processEpoch - mainnet_e58758 440.28 ms/op 406.36 ms/op 1.08
mainnet_e58758 - phase0 beforeProcessEpoch 134.14 ms/op 113.94 ms/op 1.18
mainnet_e58758 - phase0 processJustificationAndFinalization 14.812 us/op 12.221 us/op 1.21
mainnet_e58758 - phase0 processRewardsAndPenalties 48.001 ms/op 60.058 ms/op 0.80
mainnet_e58758 - phase0 processRegistryUpdates 9.1640 us/op 7.6500 us/op 1.20
mainnet_e58758 - phase0 processSlashings 561.00 ns/op 601.00 ns/op 0.93
mainnet_e58758 - phase0 processEth1DataReset 405.00 ns/op 501.00 ns/op 0.81
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.1107 ms/op 1.3542 ms/op 0.82
mainnet_e58758 - phase0 processSlashingsReset 2.3750 us/op 2.3530 us/op 1.01
mainnet_e58758 - phase0 processRandaoMixesReset 4.1090 us/op 2.5540 us/op 1.61
mainnet_e58758 - phase0 processHistoricalRootsUpdate 447.00 ns/op 493.00 ns/op 0.91
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.9890 us/op 2.6500 us/op 1.88
mainnet_e58758 - phase0 afterProcessEpoch 102.66 ms/op 66.355 ms/op 1.55
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.4069 ms/op 1.8329 ms/op 0.77
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4586 ms/op 1.0425 ms/op 1.40
altair processInactivityUpdates - 250000 normalcase 25.685 ms/op 22.390 ms/op 1.15
altair processInactivityUpdates - 250000 worstcase 28.432 ms/op 25.594 ms/op 1.11
phase0 processRegistryUpdates - 250000 normalcase 11.256 us/op 7.8510 us/op 1.43
phase0 processRegistryUpdates - 250000 badcase_full_deposits 468.38 us/op 430.59 us/op 1.09
phase0 processRegistryUpdates - 250000 worstcase 0.5 139.52 ms/op 120.47 ms/op 1.16
altair processRewardsAndPenalties - 250000 normalcase 54.558 ms/op 70.663 ms/op 0.77
altair processRewardsAndPenalties - 250000 worstcase 66.608 ms/op 68.346 ms/op 0.97
phase0 getAttestationDeltas - 250000 normalcase 9.6183 ms/op 5.5631 ms/op 1.73
phase0 getAttestationDeltas - 250000 worstcase 9.2050 ms/op 5.6359 ms/op 1.63
phase0 processSlashings - 250000 worstcase 98.507 us/op 83.557 us/op 1.18
altair processSyncCommitteeUpdates - 250000 167.56 ms/op 98.269 ms/op 1.71
BeaconState.hashTreeRoot - No change 506.00 ns/op 319.00 ns/op 1.59
BeaconState.hashTreeRoot - 1 full validator 149.47 us/op 83.773 us/op 1.78
BeaconState.hashTreeRoot - 32 full validator 1.7059 ms/op 860.82 us/op 1.98
BeaconState.hashTreeRoot - 512 full validator 18.533 ms/op 9.2736 ms/op 2.00
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 206.02 us/op 101.77 us/op 2.02
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.6675 ms/op 1.3847 ms/op 1.93
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 27.263 ms/op 17.555 ms/op 1.55
BeaconState.hashTreeRoot - 1 balances 113.37 us/op 81.205 us/op 1.40
BeaconState.hashTreeRoot - 32 balances 1.1093 ms/op 729.96 us/op 1.52
BeaconState.hashTreeRoot - 512 balances 10.262 ms/op 7.3467 ms/op 1.40
BeaconState.hashTreeRoot - 250000 balances 197.16 ms/op 141.96 ms/op 1.39
aggregationBits - 2048 els - zipIndexesInBitList 27.979 us/op 19.407 us/op 1.44
byteArrayEquals 32 75.801 ns/op 64.480 ns/op 1.18
Buffer.compare 32 56.547 ns/op 39.405 ns/op 1.44
byteArrayEquals 1024 2.0940 us/op 1.7495 us/op 1.20
Buffer.compare 1024 73.424 ns/op 44.426 ns/op 1.65
byteArrayEquals 16384 33.142 us/op 27.924 us/op 1.19
Buffer.compare 16384 263.27 ns/op 206.35 ns/op 1.28
byteArrayEquals 123687377 250.02 ms/op 209.71 ms/op 1.19
Buffer.compare 123687377 7.1425 ms/op 4.4011 ms/op 1.62
byteArrayEquals 32 - diff last byte 73.113 ns/op 61.590 ns/op 1.19
Buffer.compare 32 - diff last byte 56.768 ns/op 40.340 ns/op 1.41
byteArrayEquals 1024 - diff last byte 2.0643 us/op 1.7565 us/op 1.18
Buffer.compare 1024 - diff last byte 77.103 ns/op 48.720 ns/op 1.58
byteArrayEquals 16384 - diff last byte 33.203 us/op 27.539 us/op 1.21
Buffer.compare 16384 - diff last byte 259.85 ns/op 215.37 ns/op 1.21
byteArrayEquals 123687377 - diff last byte 262.19 ms/op 209.63 ms/op 1.25
Buffer.compare 123687377 - diff last byte 8.5337 ms/op 4.3565 ms/op 1.96
byteArrayEquals 32 - random bytes 6.2060 ns/op 4.6400 ns/op 1.34
Buffer.compare 32 - random bytes 65.782 ns/op 41.489 ns/op 1.59
byteArrayEquals 1024 - random bytes 6.0180 ns/op 4.5260 ns/op 1.33
Buffer.compare 1024 - random bytes 65.030 ns/op 40.331 ns/op 1.61
byteArrayEquals 16384 - random bytes 5.8180 ns/op 4.5570 ns/op 1.28
Buffer.compare 16384 - random bytes 65.830 ns/op 40.025 ns/op 1.64
byteArrayEquals 123687377 - random bytes 8.9700 ns/op 8.1100 ns/op 1.11
Buffer.compare 123687377 - random bytes 71.700 ns/op 42.540 ns/op 1.69
regular array get 100000 times 47.268 us/op 40.839 us/op 1.16
wrappedArray get 100000 times 46.986 us/op 41.754 us/op 1.13
arrayWithProxy get 100000 times 17.336 ms/op 10.208 ms/op 1.70
ssz.Root.equals 60.267 ns/op 55.143 ns/op 1.09
byteArrayEquals 60.003 ns/op 53.302 ns/op 1.13
Buffer.compare 13.134 ns/op 9.4480 ns/op 1.39
shuffle list - 16384 els 9.5997 ms/op 5.6776 ms/op 1.69
shuffle list - 250000 els 137.48 ms/op 84.230 ms/op 1.63
processSlot - 1 slots 18.798 us/op 13.357 us/op 1.41
processSlot - 32 slots 3.9912 ms/op 2.6719 ms/op 1.49
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 57.506 ms/op 49.211 ms/op 1.17
getCommitteeAssignments - req 1 vs - 250000 vc 2.7033 ms/op 2.2661 ms/op 1.19
getCommitteeAssignments - req 100 vs - 250000 vc 3.8995 ms/op 3.3153 ms/op 1.18
getCommitteeAssignments - req 1000 vs - 250000 vc 4.2154 ms/op 3.6297 ms/op 1.16
findModifiedValidators - 10000 modified validators 346.22 ms/op 288.20 ms/op 1.20
findModifiedValidators - 1000 modified validators 213.20 ms/op 160.05 ms/op 1.33
findModifiedValidators - 100 modified validators 191.08 ms/op 144.45 ms/op 1.32
findModifiedValidators - 10 modified validators 189.13 ms/op 146.16 ms/op 1.29
findModifiedValidators - 1 modified validators 187.11 ms/op 141.80 ms/op 1.32
findModifiedValidators - no difference 208.50 ms/op 160.49 ms/op 1.30
compare ViewDUs 4.4435 s/op 4.0264 s/op 1.10
compare each validator Uint8Array 1.8536 s/op 1.3482 s/op 1.37
compare ViewDU to Uint8Array 1.3352 s/op 907.96 ms/op 1.47
migrate state 1000000 validators, 24 modified, 0 new 854.01 ms/op 691.76 ms/op 1.23
migrate state 1000000 validators, 1700 modified, 1000 new 1.2711 s/op 929.62 ms/op 1.37
migrate state 1000000 validators, 3400 modified, 2000 new 1.8411 s/op 1.2275 s/op 1.50
migrate state 1500000 validators, 24 modified, 0 new 947.83 ms/op 645.28 ms/op 1.47
migrate state 1500000 validators, 1700 modified, 1000 new 1.3414 s/op 861.33 ms/op 1.56
migrate state 1500000 validators, 3400 modified, 2000 new 2.0203 s/op 1.1136 s/op 1.81
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.7800 ns/op 4.1200 ns/op 1.40
state getBlockRootAtSlot - 250000 vs - 7PWei 802.16 ns/op 854.21 ns/op 0.94
computeProposers - vc 250000 11.099 ms/op 6.3829 ms/op 1.74
computeEpochShuffling - vc 250000 151.76 ms/op 78.380 ms/op 1.94
getNextSyncCommittee - vc 250000 205.25 ms/op 103.42 ms/op 1.98
computeSigningRoot for AttestationData 36.512 us/op 24.425 us/op 1.49
hash AttestationData serialized data then Buffer.toString(base64) 2.8882 us/op 1.2351 us/op 2.34
toHexString serialized data 2.0941 us/op 738.52 ns/op 2.84
Buffer.toString(base64) 313.07 ns/op 138.34 ns/op 2.26

Please sign in to comment.