Skip to content

Commit

Permalink
docs: fix typo in networking.md (#6243)
Browse files Browse the repository at this point in the history
- typo in "one peers" was corrected to "once peers"
  • Loading branch information
leonarddt05 authored Jan 2, 2024
1 parent c86a669 commit 051b249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/beacon-management/networking.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Networking

Starting up Lodestar will automatically connect it to peers on the network. Peers are found through the discv5 protocol and one peers are established communications happen via gossipsub over libp2p. While not necessary, having a basic understanding of how the various protocols and transport work will help with debugging and troubleshooting as some of the more common challenges come up with [firewalls](#firewall-management) and [NAT traversal](#nat-traversal).
Starting up Lodestar will automatically connect it to peers on the network. Peers are found through the discv5 protocol and once peers are established communications happen via gossipsub over libp2p. While not necessary, having a basic understanding of how the various protocols and transport work will help with debugging and troubleshooting as some of the more common challenges come up with [firewalls](#firewall-management) and [NAT traversal](#nat-traversal).

## Networking Flags

Expand Down

1 comment on commit 051b249

@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: 051b249 Previous: c86a669 Ratio
getSlashingsAndExits - default max 501.33 us/op 147.63 us/op 3.40
getSlashingsAndExits - 2k 1.0598 ms/op 321.29 us/op 3.30
Full benchmark results
Benchmark suite Current: 051b249 Previous: c86a669 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 623.35 us/op 1.0013 ms/op 0.62
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 164.56 us/op 80.514 us/op 2.04
BLS verify - blst-native 1.4051 ms/op 1.2720 ms/op 1.10
BLS verifyMultipleSignatures 3 - blst-native 2.9477 ms/op 2.7043 ms/op 1.09
BLS verifyMultipleSignatures 8 - blst-native 6.3113 ms/op 5.9309 ms/op 1.06
BLS verifyMultipleSignatures 32 - blst-native 23.036 ms/op 21.395 ms/op 1.08
BLS verifyMultipleSignatures 64 - blst-native 45.274 ms/op 42.765 ms/op 1.06
BLS verifyMultipleSignatures 128 - blst-native 90.021 ms/op 84.775 ms/op 1.06
BLS deserializing 10000 signatures 1.0091 s/op 921.04 ms/op 1.10
BLS deserializing 100000 signatures 10.221 s/op 9.2817 s/op 1.10
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.3822 ms/op 1.2832 ms/op 1.08
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.6029 ms/op 1.5048 ms/op 1.07
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.3908 ms/op 2.3138 ms/op 1.03
BLS verifyMultipleSignatures - same message - 64 - blst-native 4.5487 ms/op 4.5690 ms/op 1.00
BLS verifyMultipleSignatures - same message - 128 - blst-native 9.3660 ms/op 7.4194 ms/op 1.26
BLS aggregatePubkeys 32 - blst-native 27.213 us/op 26.821 us/op 1.01
BLS aggregatePubkeys 128 - blst-native 105.34 us/op 97.923 us/op 1.08
getAttestationsForBlock 98.118 ms/op 48.881 ms/op 2.01
getSlashingsAndExits - default max 501.33 us/op 147.63 us/op 3.40
getSlashingsAndExits - 2k 1.0598 ms/op 321.29 us/op 3.30
proposeBlockBody type=full, size=empty 8.9494 ms/op 5.5346 ms/op 1.62
isKnown best case - 1 super set check 749.00 ns/op 307.00 ns/op 2.44
isKnown normal case - 2 super set checks 763.00 ns/op 294.00 ns/op 2.60
isKnown worse case - 16 super set checks 820.00 ns/op 293.00 ns/op 2.80
CheckpointStateCache - add get delete 7.2180 us/op 5.0300 us/op 1.43
validate api signedAggregateAndProof - struct 3.0217 ms/op 2.7618 ms/op 1.09
validate gossip signedAggregateAndProof - struct 2.9837 ms/op 2.7656 ms/op 1.08
validate gossip attestation - vc 640000 1.4901 ms/op 1.3607 ms/op 1.10
batch validate gossip attestation - vc 640000 - chunk 32 191.09 us/op 159.98 us/op 1.19
batch validate gossip attestation - vc 640000 - chunk 64 175.71 us/op 141.31 us/op 1.24
batch validate gossip attestation - vc 640000 - chunk 128 158.42 us/op 137.66 us/op 1.15
batch validate gossip attestation - vc 640000 - chunk 256 141.36 us/op 131.04 us/op 1.08
pickEth1Vote - no votes 1.2813 ms/op 1.2689 ms/op 1.01
pickEth1Vote - max votes 12.129 ms/op 11.684 ms/op 1.04
pickEth1Vote - Eth1Data hashTreeRoot value x2048 21.407 ms/op 25.325 ms/op 0.85
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 35.796 ms/op 29.666 ms/op 1.21
pickEth1Vote - Eth1Data fastSerialize value x2048 572.85 us/op 606.14 us/op 0.95
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.4813 ms/op 5.4716 ms/op 1.18
bytes32 toHexString 503.00 ns/op 501.00 ns/op 1.00
bytes32 Buffer.toString(hex) 291.00 ns/op 290.00 ns/op 1.00
bytes32 Buffer.toString(hex) from Uint8Array 441.00 ns/op 414.00 ns/op 1.07
bytes32 Buffer.toString(hex) + 0x 293.00 ns/op 287.00 ns/op 1.02
Object access 1 prop 0.16400 ns/op 0.15100 ns/op 1.09
Map access 1 prop 0.15100 ns/op 0.14000 ns/op 1.08
Object get x1000 7.7650 ns/op 7.1260 ns/op 1.09
Map get x1000 0.75500 ns/op 0.74800 ns/op 1.01
Object set x1000 51.196 ns/op 49.368 ns/op 1.04
Map set x1000 39.333 ns/op 38.755 ns/op 1.01
Return object 10000 times 0.23990 ns/op 0.23710 ns/op 1.01
Throw Error 10000 times 3.8434 us/op 3.9159 us/op 0.98
fastMsgIdFn sha256 / 200 bytes 3.2260 us/op 3.2960 us/op 0.98
fastMsgIdFn h32 xxhash / 200 bytes 284.00 ns/op 283.00 ns/op 1.00
fastMsgIdFn h64 xxhash / 200 bytes 343.00 ns/op 345.00 ns/op 0.99
fastMsgIdFn sha256 / 1000 bytes 11.352 us/op 11.364 us/op 1.00
fastMsgIdFn h32 xxhash / 1000 bytes 408.00 ns/op 398.00 ns/op 1.03
fastMsgIdFn h64 xxhash / 1000 bytes 414.00 ns/op 414.00 ns/op 1.00
fastMsgIdFn sha256 / 10000 bytes 102.38 us/op 103.71 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 1.9460 us/op 1.9070 us/op 1.02
fastMsgIdFn h64 xxhash / 10000 bytes 1.3480 us/op 1.3020 us/op 1.04
send data - 1000 256B messages 21.051 ms/op 18.367 ms/op 1.15
send data - 1000 512B messages 28.653 ms/op 25.561 ms/op 1.12
send data - 1000 1024B messages 43.503 ms/op 41.218 ms/op 1.06
send data - 1000 1200B messages 38.209 ms/op 40.286 ms/op 0.95
send data - 1000 2048B messages 44.677 ms/op 48.757 ms/op 0.92
send data - 1000 4096B messages 42.213 ms/op 45.859 ms/op 0.92
send data - 1000 16384B messages 114.48 ms/op 116.91 ms/op 0.98
send data - 1000 65536B messages 497.70 ms/op 489.70 ms/op 1.02
enrSubnets - fastDeserialize 64 bits 1.3750 us/op 1.2630 us/op 1.09
enrSubnets - ssz BitVector 64 bits 481.00 ns/op 430.00 ns/op 1.12
enrSubnets - fastDeserialize 4 bits 216.00 ns/op 165.00 ns/op 1.31
enrSubnets - ssz BitVector 4 bits 499.00 ns/op 424.00 ns/op 1.18
prioritizePeers score -10:0 att 32-0.1 sync 2-0 116.12 us/op 113.09 us/op 1.03
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 147.75 us/op 138.79 us/op 1.06
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 198.92 us/op 193.77 us/op 1.03
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 334.91 us/op 321.20 us/op 1.04
prioritizePeers score 0:0 att 64-1 sync 4-1 380.80 us/op 379.12 us/op 1.00
array of 16000 items push then shift 1.7331 us/op 1.7024 us/op 1.02
LinkedList of 16000 items push then shift 9.4190 ns/op 9.0170 ns/op 1.04
array of 16000 items push then pop 115.22 ns/op 75.478 ns/op 1.53
LinkedList of 16000 items push then pop 9.2120 ns/op 8.6940 ns/op 1.06
array of 24000 items push then shift 2.4904 us/op 2.4177 us/op 1.03
LinkedList of 24000 items push then shift 9.3150 ns/op 8.8080 ns/op 1.06
array of 24000 items push then pop 147.13 ns/op 95.438 ns/op 1.54
LinkedList of 24000 items push then pop 9.1760 ns/op 9.5560 ns/op 0.96
intersect bitArray bitLen 8 6.6170 ns/op 6.6200 ns/op 1.00
intersect array and set length 8 72.945 ns/op 63.335 ns/op 1.15
intersect bitArray bitLen 128 35.611 ns/op 34.205 ns/op 1.04
intersect array and set length 128 1.0533 us/op 863.59 ns/op 1.22
bitArray.getTrueBitIndexes() bitLen 128 1.7620 us/op 1.4630 us/op 1.20
bitArray.getTrueBitIndexes() bitLen 248 3.1920 us/op 2.4430 us/op 1.31
bitArray.getTrueBitIndexes() bitLen 512 6.2810 us/op 4.8950 us/op 1.28
Buffer.concat 32 items 1.2150 us/op 976.00 ns/op 1.24
Uint8Array.set 32 items 2.3760 us/op 2.0480 us/op 1.16
Set add up to 64 items then delete first 5.2300 us/op 4.3196 us/op 1.21
OrderedSet add up to 64 items then delete first 5.8479 us/op 5.4544 us/op 1.07
Set add up to 64 items then delete last 5.0680 us/op 4.6678 us/op 1.09
OrderedSet add up to 64 items then delete last 6.4590 us/op 5.7938 us/op 1.11
Set add up to 64 items then delete middle 4.9294 us/op 4.6130 us/op 1.07
OrderedSet add up to 64 items then delete middle 7.4503 us/op 7.0664 us/op 1.05
Set add up to 128 items then delete first 10.070 us/op 9.3970 us/op 1.07
OrderedSet add up to 128 items then delete first 13.292 us/op 12.402 us/op 1.07
Set add up to 128 items then delete last 10.039 us/op 9.1226 us/op 1.10
OrderedSet add up to 128 items then delete last 12.639 us/op 11.654 us/op 1.08
Set add up to 128 items then delete middle 10.193 us/op 9.0634 us/op 1.12
OrderedSet add up to 128 items then delete middle 18.979 us/op 17.242 us/op 1.10
Set add up to 256 items then delete first 21.113 us/op 18.668 us/op 1.13
OrderedSet add up to 256 items then delete first 28.484 us/op 25.403 us/op 1.12
Set add up to 256 items then delete last 20.916 us/op 18.291 us/op 1.14
OrderedSet add up to 256 items then delete last 27.454 us/op 23.337 us/op 1.18
Set add up to 256 items then delete middle 21.047 us/op 18.107 us/op 1.16
OrderedSet add up to 256 items then delete middle 50.593 us/op 46.104 us/op 1.10
transfer serialized Status (84 B) 1.9570 us/op 1.8420 us/op 1.06
copy serialized Status (84 B) 1.6250 us/op 1.5550 us/op 1.05
transfer serialized SignedVoluntaryExit (112 B) 2.0770 us/op 2.0460 us/op 1.02
copy serialized SignedVoluntaryExit (112 B) 1.7790 us/op 1.7640 us/op 1.01
transfer serialized ProposerSlashing (416 B) 2.3940 us/op 2.8460 us/op 0.84
copy serialized ProposerSlashing (416 B) 2.9160 us/op 2.6060 us/op 1.12
transfer serialized Attestation (485 B) 2.6080 us/op 2.1850 us/op 1.19
copy serialized Attestation (485 B) 2.7900 us/op 2.6120 us/op 1.07
transfer serialized AttesterSlashing (33232 B) 2.3540 us/op 3.2390 us/op 0.73
copy serialized AttesterSlashing (33232 B) 7.9250 us/op 6.8080 us/op 1.16
transfer serialized Small SignedBeaconBlock (128000 B) 3.0240 us/op 3.2250 us/op 0.94
copy serialized Small SignedBeaconBlock (128000 B) 24.398 us/op 15.118 us/op 1.61
transfer serialized Avg SignedBeaconBlock (200000 B) 3.6900 us/op 3.5540 us/op 1.04
copy serialized Avg SignedBeaconBlock (200000 B) 30.187 us/op 21.002 us/op 1.44
transfer serialized BlobsSidecar (524380 B) 4.6690 us/op 3.2490 us/op 1.44
copy serialized BlobsSidecar (524380 B) 98.283 us/op 85.162 us/op 1.15
transfer serialized Big SignedBeaconBlock (1000000 B) 4.4180 us/op 3.5460 us/op 1.25
copy serialized Big SignedBeaconBlock (1000000 B) 171.64 us/op 165.10 us/op 1.04
pass gossip attestations to forkchoice per slot 4.5553 ms/op 4.3066 ms/op 1.06
forkChoice updateHead vc 100000 bc 64 eq 0 784.97 us/op 753.28 us/op 1.04
forkChoice updateHead vc 600000 bc 64 eq 0 4.3501 ms/op 4.7464 ms/op 0.92
forkChoice updateHead vc 1000000 bc 64 eq 0 7.4542 ms/op 7.6895 ms/op 0.97
forkChoice updateHead vc 600000 bc 320 eq 0 4.3059 ms/op 4.2081 ms/op 1.02
forkChoice updateHead vc 600000 bc 1200 eq 0 4.4310 ms/op 4.2929 ms/op 1.03
forkChoice updateHead vc 600000 bc 7200 eq 0 5.3614 ms/op 5.4192 ms/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 1000 11.516 ms/op 11.154 ms/op 1.03
forkChoice updateHead vc 600000 bc 64 eq 10000 12.275 ms/op 11.938 ms/op 1.03
forkChoice updateHead vc 600000 bc 64 eq 300000 17.241 ms/op 15.650 ms/op 1.10
computeDeltas 500000 validators 300 proto nodes 6.8297 ms/op 6.7802 ms/op 1.01
computeDeltas 500000 validators 1200 proto nodes 6.7037 ms/op 6.6605 ms/op 1.01
computeDeltas 500000 validators 7200 proto nodes 6.5560 ms/op 6.4679 ms/op 1.01
computeDeltas 750000 validators 300 proto nodes 10.129 ms/op 9.8126 ms/op 1.03
computeDeltas 750000 validators 1200 proto nodes 10.192 ms/op 9.9022 ms/op 1.03
computeDeltas 750000 validators 7200 proto nodes 9.8393 ms/op 10.092 ms/op 0.97
computeDeltas 1400000 validators 300 proto nodes 18.850 ms/op 18.873 ms/op 1.00
computeDeltas 1400000 validators 1200 proto nodes 19.812 ms/op 19.823 ms/op 1.00
computeDeltas 1400000 validators 7200 proto nodes 20.514 ms/op 19.947 ms/op 1.03
computeDeltas 2100000 validators 300 proto nodes 29.793 ms/op 29.383 ms/op 1.01
computeDeltas 2100000 validators 1200 proto nodes 28.244 ms/op 29.273 ms/op 0.96
computeDeltas 2100000 validators 7200 proto nodes 29.633 ms/op 29.582 ms/op 1.00
computeProposerBoostScoreFromBalances 500000 validators 3.8305 ms/op 3.8248 ms/op 1.00
computeProposerBoostScoreFromBalances 750000 validators 3.8129 ms/op 3.9294 ms/op 0.97
computeProposerBoostScoreFromBalances 1400000 validators 3.8721 ms/op 3.8013 ms/op 1.02
computeProposerBoostScoreFromBalances 2100000 validators 3.9531 ms/op 3.7712 ms/op 1.05
altair processAttestation - 250000 vs - 7PWei normalcase 3.1888 ms/op 2.2958 ms/op 1.39
altair processAttestation - 250000 vs - 7PWei worstcase 4.5302 ms/op 3.3763 ms/op 1.34
altair processAttestation - setStatus - 1/6 committees join 156.16 us/op 181.34 us/op 0.86
altair processAttestation - setStatus - 1/3 committees join 314.67 us/op 351.31 us/op 0.90
altair processAttestation - setStatus - 1/2 committees join 447.01 us/op 466.63 us/op 0.96
altair processAttestation - setStatus - 2/3 committees join 517.07 us/op 587.50 us/op 0.88
altair processAttestation - setStatus - 4/5 committees join 769.25 us/op 796.04 us/op 0.97
altair processAttestation - setStatus - 100% committees join 921.46 us/op 936.49 us/op 0.98
altair processBlock - 250000 vs - 7PWei normalcase 12.044 ms/op 11.077 ms/op 1.09
altair processBlock - 250000 vs - 7PWei normalcase hashState 42.304 ms/op 35.191 ms/op 1.20
altair processBlock - 250000 vs - 7PWei worstcase 47.510 ms/op 41.109 ms/op 1.16
altair processBlock - 250000 vs - 7PWei worstcase hashState 109.59 ms/op 93.941 ms/op 1.17
phase0 processBlock - 250000 vs - 7PWei normalcase 3.7067 ms/op 3.5141 ms/op 1.05
phase0 processBlock - 250000 vs - 7PWei worstcase 35.909 ms/op 34.296 ms/op 1.05
altair processEth1Data - 250000 vs - 7PWei normalcase 762.17 us/op 492.01 us/op 1.55
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 18.067 us/op 18.361 us/op 0.98
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 96.244 us/op 81.237 us/op 1.18
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 25.391 us/op 27.784 us/op 0.91
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 20.868 us/op 18.027 us/op 1.16
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 250.42 us/op 209.52 us/op 1.20
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.5918 ms/op 2.3670 ms/op 0.67
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.2479 ms/op 2.8323 ms/op 0.79
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.9706 ms/op 2.5983 ms/op 0.76
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.0940 ms/op 3.3465 ms/op 1.22
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.6328 ms/op 2.1000 ms/op 1.25
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 7.6355 ms/op 4.9051 ms/op 1.56
Tree 40 250000 create 528.00 ms/op 351.03 ms/op 1.50
Tree 40 250000 get(125000) 217.85 ns/op 196.44 ns/op 1.11
Tree 40 250000 set(125000) 1.3193 us/op 985.11 ns/op 1.34
Tree 40 250000 toArray() 25.903 ms/op 18.295 ms/op 1.42
Tree 40 250000 iterate all - toArray() + loop 25.365 ms/op 18.331 ms/op 1.38
Tree 40 250000 iterate all - get(i) 77.467 ms/op 65.472 ms/op 1.18
MutableVector 250000 create 15.987 ms/op 18.986 ms/op 0.84
MutableVector 250000 get(125000) 6.7370 ns/op 6.9130 ns/op 0.97
MutableVector 250000 set(125000) 330.08 ns/op 265.02 ns/op 1.25
MutableVector 250000 toArray() 4.1339 ms/op 3.1487 ms/op 1.31
MutableVector 250000 iterate all - toArray() + loop 4.7723 ms/op 3.3260 ms/op 1.43
MutableVector 250000 iterate all - get(i) 2.0074 ms/op 1.5715 ms/op 1.28
Array 250000 create 4.2000 ms/op 2.8531 ms/op 1.47
Array 250000 clone - spread 1.5979 ms/op 1.3348 ms/op 1.20
Array 250000 get(125000) 1.5890 ns/op 1.0830 ns/op 1.47
Array 250000 set(125000) 5.7720 ns/op 4.1320 ns/op 1.40
Array 250000 iterate all - loop 176.26 us/op 170.46 us/op 1.03
effectiveBalanceIncrements clone Uint8Array 300000 60.781 us/op 30.115 us/op 2.02
effectiveBalanceIncrements clone MutableVector 300000 479.00 ns/op 406.00 ns/op 1.18
effectiveBalanceIncrements rw all Uint8Array 300000 206.03 us/op 209.86 us/op 0.98
effectiveBalanceIncrements rw all MutableVector 300000 148.39 ms/op 86.125 ms/op 1.72
phase0 afterProcessEpoch - 250000 vs - 7PWei 120.94 ms/op 109.94 ms/op 1.10
phase0 beforeProcessEpoch - 250000 vs - 7PWei 60.513 ms/op 53.327 ms/op 1.13
altair processEpoch - mainnet_e81889 611.76 ms/op 568.63 ms/op 1.08
mainnet_e81889 - altair beforeProcessEpoch 111.93 ms/op 87.997 ms/op 1.27
mainnet_e81889 - altair processJustificationAndFinalization 29.586 us/op 23.904 us/op 1.24
mainnet_e81889 - altair processInactivityUpdates 8.2232 ms/op 6.1034 ms/op 1.35
mainnet_e81889 - altair processRewardsAndPenalties 52.867 ms/op 72.614 ms/op 0.73
mainnet_e81889 - altair processRegistryUpdates 2.8110 us/op 3.9300 us/op 0.72
mainnet_e81889 - altair processSlashings 860.00 ns/op 759.00 ns/op 1.13
mainnet_e81889 - altair processEth1DataReset 607.00 ns/op 800.00 ns/op 0.76
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.7208 ms/op 2.6628 ms/op 0.65
mainnet_e81889 - altair processSlashingsReset 4.0910 us/op 6.1950 us/op 0.66
mainnet_e81889 - altair processRandaoMixesReset 5.7720 us/op 6.4500 us/op 0.89
mainnet_e81889 - altair processHistoricalRootsUpdate 1.1640 us/op 1.2290 us/op 0.95
mainnet_e81889 - altair processParticipationFlagUpdates 4.3420 us/op 2.4930 us/op 1.74
mainnet_e81889 - altair processSyncCommitteeUpdates 785.00 ns/op 660.00 ns/op 1.19
mainnet_e81889 - altair afterProcessEpoch 128.44 ms/op 118.04 ms/op 1.09
capella processEpoch - mainnet_e217614 2.8704 s/op 2.3809 s/op 1.21
mainnet_e217614 - capella beforeProcessEpoch 681.08 ms/op 493.95 ms/op 1.38
mainnet_e217614 - capella processJustificationAndFinalization 32.827 us/op 20.616 us/op 1.59
mainnet_e217614 - capella processInactivityUpdates 34.878 ms/op 21.273 ms/op 1.64
mainnet_e217614 - capella processRewardsAndPenalties 571.02 ms/op 498.27 ms/op 1.15
mainnet_e217614 - capella processRegistryUpdates 38.920 us/op 25.327 us/op 1.54
mainnet_e217614 - capella processSlashings 1.2210 us/op 981.00 ns/op 1.24
mainnet_e217614 - capella processEth1DataReset 1.0190 us/op 683.00 ns/op 1.49
mainnet_e217614 - capella processEffectiveBalanceUpdates 6.4923 ms/op 4.6248 ms/op 1.40
mainnet_e217614 - capella processSlashingsReset 5.0090 us/op 4.6660 us/op 1.07
mainnet_e217614 - capella processRandaoMixesReset 4.5560 us/op 7.7560 us/op 0.59
mainnet_e217614 - capella processHistoricalRootsUpdate 943.00 ns/op 934.00 ns/op 1.01
mainnet_e217614 - capella processParticipationFlagUpdates 1.8040 us/op 2.4740 us/op 0.73
mainnet_e217614 - capella afterProcessEpoch 325.43 ms/op 333.78 ms/op 0.97
phase0 processEpoch - mainnet_e58758 523.53 ms/op 543.29 ms/op 0.96
mainnet_e58758 - phase0 beforeProcessEpoch 143.18 ms/op 170.34 ms/op 0.84
mainnet_e58758 - phase0 processJustificationAndFinalization 18.622 us/op 24.199 us/op 0.77
mainnet_e58758 - phase0 processRewardsAndPenalties 57.854 ms/op 52.534 ms/op 1.10
mainnet_e58758 - phase0 processRegistryUpdates 13.609 us/op 9.6780 us/op 1.41
mainnet_e58758 - phase0 processSlashings 488.00 ns/op 781.00 ns/op 0.62
mainnet_e58758 - phase0 processEth1DataReset 517.00 ns/op 687.00 ns/op 0.75
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.4686 ms/op 2.1331 ms/op 0.69
mainnet_e58758 - phase0 processSlashingsReset 4.7610 us/op 5.3280 us/op 0.89
mainnet_e58758 - phase0 processRandaoMixesReset 5.1010 us/op 6.7050 us/op 0.76
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.1430 us/op 778.00 ns/op 1.47
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.3050 us/op 5.9960 us/op 0.88
mainnet_e58758 - phase0 afterProcessEpoch 109.77 ms/op 93.401 ms/op 1.18
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.4479 ms/op 1.3284 ms/op 1.09
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.9276 ms/op 2.9375 ms/op 0.66
altair processInactivityUpdates - 250000 normalcase 36.221 ms/op 36.460 ms/op 0.99
altair processInactivityUpdates - 250000 worstcase 31.306 ms/op 33.445 ms/op 0.94
phase0 processRegistryUpdates - 250000 normalcase 10.319 us/op 15.777 us/op 0.65
phase0 processRegistryUpdates - 250000 badcase_full_deposits 477.57 us/op 625.89 us/op 0.76
phase0 processRegistryUpdates - 250000 worstcase 0.5 147.07 ms/op 150.53 ms/op 0.98
altair processRewardsAndPenalties - 250000 normalcase 68.806 ms/op 63.400 ms/op 1.09
altair processRewardsAndPenalties - 250000 worstcase 54.442 ms/op 69.216 ms/op 0.79
phase0 getAttestationDeltas - 250000 normalcase 13.773 ms/op 9.3928 ms/op 1.47
phase0 getAttestationDeltas - 250000 worstcase 13.251 ms/op 8.9028 ms/op 1.49
phase0 processSlashings - 250000 worstcase 123.51 us/op 130.97 us/op 0.94
altair processSyncCommitteeUpdates - 250000 173.21 ms/op 156.50 ms/op 1.11
BeaconState.hashTreeRoot - No change 270.00 ns/op 250.00 ns/op 1.08
BeaconState.hashTreeRoot - 1 full validator 171.06 us/op 175.10 us/op 0.98
BeaconState.hashTreeRoot - 32 full validator 2.0817 ms/op 1.8913 ms/op 1.10
BeaconState.hashTreeRoot - 512 full validator 19.226 ms/op 16.342 ms/op 1.18
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 219.41 us/op 198.81 us/op 1.10
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 3.2318 ms/op 2.3867 ms/op 1.35
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 44.396 ms/op 30.722 ms/op 1.45
BeaconState.hashTreeRoot - 1 balances 176.75 us/op 150.25 us/op 1.18
BeaconState.hashTreeRoot - 32 balances 1.6413 ms/op 1.5611 ms/op 1.05
BeaconState.hashTreeRoot - 512 balances 16.262 ms/op 12.152 ms/op 1.34
BeaconState.hashTreeRoot - 250000 balances 275.79 ms/op 232.71 ms/op 1.19
aggregationBits - 2048 els - zipIndexesInBitList 37.261 us/op 16.982 us/op 2.19
byteArrayEquals 32 82.607 ns/op 75.209 ns/op 1.10
Buffer.compare 32 58.381 ns/op 55.746 ns/op 1.05
byteArrayEquals 1024 2.2321 us/op 2.0593 us/op 1.08
Buffer.compare 1024 75.118 ns/op 73.164 ns/op 1.03
byteArrayEquals 16384 37.710 us/op 32.804 us/op 1.15
Buffer.compare 16384 269.41 ns/op 289.17 ns/op 0.93
byteArrayEquals 123687377 264.71 ms/op 249.78 ms/op 1.06
Buffer.compare 123687377 7.5116 ms/op 6.1100 ms/op 1.23
byteArrayEquals 32 - diff last byte 77.588 ns/op 75.191 ns/op 1.03
Buffer.compare 32 - diff last byte 59.129 ns/op 58.546 ns/op 1.01
byteArrayEquals 1024 - diff last byte 2.0974 us/op 2.1184 us/op 0.99
Buffer.compare 1024 - diff last byte 75.659 ns/op 72.315 ns/op 1.05
byteArrayEquals 16384 - diff last byte 33.379 us/op 33.848 us/op 0.99
Buffer.compare 16384 - diff last byte 287.08 ns/op 266.18 ns/op 1.08
byteArrayEquals 123687377 - diff last byte 256.97 ms/op 246.76 ms/op 1.04
Buffer.compare 123687377 - diff last byte 9.4519 ms/op 6.1720 ms/op 1.53
byteArrayEquals 32 - random bytes 7.3550 ns/op 5.4020 ns/op 1.36
Buffer.compare 32 - random bytes 66.813 ns/op 61.061 ns/op 1.09
byteArrayEquals 1024 - random bytes 6.2350 ns/op 5.2750 ns/op 1.18
Buffer.compare 1024 - random bytes 65.098 ns/op 60.710 ns/op 1.07
byteArrayEquals 16384 - random bytes 6.0530 ns/op 5.2500 ns/op 1.15
Buffer.compare 16384 - random bytes 64.187 ns/op 60.235 ns/op 1.07
byteArrayEquals 123687377 - random bytes 8.9400 ns/op 8.6900 ns/op 1.03
Buffer.compare 123687377 - random bytes 71.860 ns/op 64.040 ns/op 1.12
regular array get 100000 times 46.125 us/op 44.541 us/op 1.04
wrappedArray get 100000 times 44.472 us/op 44.555 us/op 1.00
arrayWithProxy get 100000 times 13.900 ms/op 14.154 ms/op 0.98
ssz.Root.equals 52.797 ns/op 54.070 ns/op 0.98
byteArrayEquals 55.925 ns/op 53.362 ns/op 1.05
Buffer.compare 11.947 ns/op 10.992 ns/op 1.09
shuffle list - 16384 els 7.1435 ms/op 7.1279 ms/op 1.00
shuffle list - 250000 els 106.11 ms/op 103.46 ms/op 1.03
processSlot - 1 slots 22.144 us/op 22.352 us/op 0.99
processSlot - 32 slots 4.4903 ms/op 4.3697 ms/op 1.03
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 70.497 ms/op 65.871 ms/op 1.07
getCommitteeAssignments - req 1 vs - 250000 vc 2.7593 ms/op 2.5690 ms/op 1.07
getCommitteeAssignments - req 100 vs - 250000 vc 3.8781 ms/op 3.7535 ms/op 1.03
getCommitteeAssignments - req 1000 vs - 250000 vc 4.2701 ms/op 4.1162 ms/op 1.04
findModifiedValidators - 10000 modified validators 581.02 ms/op 539.94 ms/op 1.08
findModifiedValidators - 1000 modified validators 480.44 ms/op 456.31 ms/op 1.05
findModifiedValidators - 100 modified validators 474.42 ms/op 444.99 ms/op 1.07
findModifiedValidators - 10 modified validators 451.54 ms/op 456.64 ms/op 0.99
findModifiedValidators - 1 modified validators 441.88 ms/op 433.24 ms/op 1.02
findModifiedValidators - no difference 459.60 ms/op 434.79 ms/op 1.06
compare ViewDUs 5.2934 s/op 5.0234 s/op 1.05
compare each validator Uint8Array 1.9499 s/op 1.7948 s/op 1.09
compare ViewDU to Uint8Array 1.3874 s/op 1.1384 s/op 1.22
migrate state 1000000 validators, 24 modified, 0 new 880.20 ms/op 910.84 ms/op 0.97
migrate state 1000000 validators, 1700 modified, 1000 new 1.1888 s/op 1.2245 s/op 0.97
migrate state 1000000 validators, 3400 modified, 2000 new 1.4950 s/op 1.4652 s/op 1.02
migrate state 1500000 validators, 24 modified, 0 new 875.27 ms/op 907.78 ms/op 0.96
migrate state 1500000 validators, 1700 modified, 1000 new 1.2516 s/op 1.2166 s/op 1.03
migrate state 1500000 validators, 3400 modified, 2000 new 1.4183 s/op 1.4677 s/op 0.97
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.6300 ns/op 4.3200 ns/op 1.07
state getBlockRootAtSlot - 250000 vs - 7PWei 674.43 ns/op 941.89 ns/op 0.72
computeProposers - vc 250000 9.6849 ms/op 9.5729 ms/op 1.01
computeEpochShuffling - vc 250000 109.79 ms/op 110.74 ms/op 0.99
getNextSyncCommittee - vc 250000 158.87 ms/op 154.57 ms/op 1.03
computeSigningRoot for AttestationData 25.858 us/op 27.009 us/op 0.96
hash AttestationData serialized data then Buffer.toString(base64) 2.3975 us/op 2.2850 us/op 1.05
toHexString serialized data 1.1805 us/op 1.0559 us/op 1.12
Buffer.toString(base64) 250.75 ns/op 232.39 ns/op 1.08

Please sign in to comment.