Skip to content

Commit

Permalink
docs: pin dependencies, update icons, and formatting fixes (#6425)
Browse files Browse the repository at this point in the history
* Pin versions of docs dependencies

* Update icons of socials

* Fix formatting of array default values

* Fix syntax highlighting of code blocks

* Add sh syntax highlighting to cli examples

* Revive dev cli command

* defaultDescription of arrays should match description help output

* Remove duplicate brackets from array default values
  • Loading branch information
nflaig authored Feb 14, 2024
1 parent 8157642 commit 0087c8a
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 24 deletions.
7 changes: 4 additions & 3 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ extra_css:
# Socials
extra:
social:
- icon: fontawesome/brands/github-alt
- icon: fontawesome/brands/github
link: https://github.com/ChainSafe/lodestar
- icon: fontawesome/brands/twitter
- icon: fontawesome/brands/x-twitter
link: https://twitter.com/lodestar_eth
- icon: fontawesome/brands/discord
link: https://discord.gg/yjyvFRP
Expand Down Expand Up @@ -122,6 +122,7 @@ nav:
# - Bug Reports: contribution/bug-reports.md
- Dependency Graph: contribution/depgraph.md
# - Repo: contribution/repo.md
- Dev CLI Reference: contribution/dev-cli.md
- Testing:
- Overview: contribution/testing/index.md
# - Unit Tests: contribution/testing/unit-tests.md
Expand All @@ -142,4 +143,4 @@ nav:
# - Block Exploration: advanced-topics/block-exploration.md
# - Slashing Protection: advanced-topics/slashing-protection.md
- Setting Up a Testnet: advanced-topics/setting-up-a-testnet.md
# - Doppelganger Detection: advanced-topics/doppelganger-detection.md
# - Doppelganger Detection: advanced-topics/doppelganger-detection.md
4 changes: 2 additions & 2 deletions docs/pages/advanced-topics/setting-up-a-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The exact ENR of node to connect to is then supplied via the `--bootnodes` flag.

Once the second node starts, you should see an output similar to the following in either of the terminals:

```
```txt
Eph 167991/6 6.007 [] info: Searching peers - peers: 1 - slot: 5375718 (skipped 5375718) - head: 0 0xcc67…3345 - finalized: 0x0000…0000:0
```

Expand All @@ -70,7 +70,7 @@ For example, making the request on the first node via the following command:

will give a result similar to the following:

```
```json
{
"data": [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/beacon-management/networking.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Note that bootnodes are announced via ENR.

Lodestar prints out its own ENR on startup, the logs will show something similar to the following

```
```txt
info: discv5 worker started peerId=16Uiu...t9LQ3, initialENR=enr:-Iu4QGE...WRwgiMo, bindAddr4=/ip4/0.0.0.0/udp/9000
```

Expand Down
14 changes: 7 additions & 7 deletions docs/pages/getting-started/starting-a-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ In case execution-layer clients are available at different locations, use `--exe

Immediately you should see confirmation that the node has started

```bash
```txt
pr-20 15:12:45.274[] info: Lodestar network=mainnet, version=v1.7.2, commit=
Apr-20 15:12:45.327[] info: Connected to LevelDB database path=/data/mt1/chain-db
Apr-20 15:12:57.747[] info: Initializing beacon from a valid db state slot=6264480, epoch=195765, stateRoot=0x8133cd4d0be59c3e94405f902fe0ad68ffaa5013b525dddb6285b91ad79716f6, isWithinWeakSubjectivityPeriod=true
Expand Down Expand Up @@ -136,35 +136,35 @@ Lodestar beacon sync log aims to provide information of utmost importance about

See the following example of different kinds of sync log:

```
```txt
Apr-20 15:24:08.034[] info: Searching peers - peers: 0 - slot: 6265018 - head: 6264018 0xed93…7b0a - exec-block: syncing(17088476 0x9649…) - finalized: 0xbf30…7e7c:195777
Apr-20 15:24:17.000[] info: Searching peers - peers: 0 - slot: 6265019 - head: 6264018 0xed93…7b0a - exec-block: syncing(17088476 0x9649…) - finalized: 0xbf30…7e7c:195777
```

```
```txt
Apr-20 15:13:41.298[] info: Syncing - 2.5 minutes left - 2.78 slots/s - slot: 6264966 - head: 6262966 0x5cec…f5b8 - exec-block: valid(17088105 0x6f74…) - finalized: 0x5cc0…3874:195764 - peers: 1
Apr-20 15:13:41.298[] info: Syncing - 2 minutes left - 2.78 slots/s - slot: 6264967 - head: 6263965 0x5cec…f5b8 - exec-block: valid(17088105 0x6f74…) - finalized: 0x5cc0…3874:195764 - peers: 1
```

```
```txt
Apr-20 15:13:53.151[] info: Syncing - 1.6 minutes left - 3.82 slots/s - slot: 6264967 - head: (slot -360) 0xe0cf…9f3c - exec-block: valid(17088167 0x2d6a…) - finalized: 0x8f3f…2f81:195766 - peers: 5
Apr-20 15:14:05.425[] info: Syncing - 1.1 minutes left - 4.33 slots/s - slot: 6264968 - head: (slot -297) 0x3655…1658 - exec-block: valid(17088231 0xdafd…) - finalized: 0x9475…425a:195769 - peers: 2
Apr-20 15:14:53.001[] info: Syncing - 9 seconds left - 5.00 slots/s - slot: 6264972 - head: (slot -45) 0x44e4…20a4 - exec-block: valid(17088475 0xca61…) - finalized: 0x9cbd…ba83:195776 - peers: 8
```

```
```txt
Apr-20 15:15:01.443[network] info: Subscribed gossip core topics
Apr-20 15:15:01.446[sync] info: Subscribed gossip core topics
Apr-20 15:15:05.000[] info: Synced - slot: 6264973 - head: 0x90ea…c655 - exec-block: valid(17088521 0xca9b…) - finalized: 0x6981…682f:195778 - peers: 6
Apr-20 15:15:17.003[] info: Synced - slot: 6264974 - head: 0x4f7e…0e3a - exec-block: valid(17088522 0x08b1…) - finalized: 0x6981…682f:195778 - peers: 6
```

```
```txt
Apr-20 15:15:41.001[] info: Synced - slot: 6264976 - head: (slot -1) 0x17c6…71a7 - exec-block: valid(17088524 0x5bc1…) - finalized: 0x6981…682f:195778 - peers: 8
Apr-20 15:15:53.001[] info: Synced - slot: 6264977 - head: (slot -2) 0x17c6…71a7 - exec-block: valid(17088524 0x5bc1…) - finalized: 0x6981…682f:195778 - peers: 8
```

```
```txt
Apr-20 15:16:05.000[] info: Synced - slot: 6264978 - head: 0xc9fd…28c5 - exec-block: valid(17088526 0xb5bf…) - finalized: 0x6981…682f:195778 - peers: 8
Apr-20 15:16:17.017[] info: Synced - slot: 6264979 - head: 0xde91…d4cb - exec-block: valid(17088527 0xa488…) - finalized: 0x6981…682f:195778 - peers: 7
```
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/logging-and-metrics/prometheus-grafana.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Prometheus is an open-source monitoring system with efficient time series databa
To start, download Prometheus from https://prometheus.io/download/.
Unzip the downloaded .zip file and run Prometheus from its installed location with the lodestar `prometheus.yml` passed in as the configuration file

```
```sh
./prometheus --config.file=$dataDir/prometheus.yml
```

Expand All @@ -18,7 +18,7 @@ Unzip the downloaded .zip file and run Prometheus from its installed location wi

Then run the Lodestar beacon node with

```
```sh
lodestar --metrics=true --metrics.port=8008
```

Expand Down
1 change: 1 addition & 0 deletions docs/pages/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ _**Welcome! This page has been moved. Please checkout our new docs layout from t
- [Validator CLI](../validator-management/validator-cli.md)
- [Bootnode CLI](../bootnode/bootnode-cli.md)
- [Light Client CLI](../lightclient-prover/lightclient-cli.md)
- [Dev CLI](../contribution/dev-cli.md)
2 changes: 1 addition & 1 deletion docs/pages/validator-management/vc-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ To start a Lodestar validator run the command:

You should see confirmation that modules have started.

```
```txt
Nov-29 10:47:13.647[] info: Lodestar network=sepolia, version=v1.2.2/f093b46, commit=f093b468ec3ab0dbbe8e2d2c8175f52ad88aa35f
Nov-29 10:47:13.649[] info: Connecting to LevelDB database path=/home/user/.local/share/lodestar/sepolia/validator-db
Nov-29 10:47:51.732[] info: 3 local keystores
Expand Down
12 changes: 6 additions & 6 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mkdocs>=1.2
mkdocs-material>=7.0
Pygments>=2.4
markdown>=3.2
pymdown-extensions>=7.0
mkdocs-mermaid2-plugin>=0.4
mkdocs==1.5.3
mkdocs-material==9.5.9
Pygments==2.17.2
markdown==3.5.2
pymdown-extensions==10.7
mkdocs-mermaid2-plugin==1.1.1
6 changes: 4 additions & 2 deletions packages/cli/docsgen/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const LINE_BREAK = "\n\n<br />";

function renderExampleBody(example: CliExample, lodestarCommand?: string): string {
const cliExample = [
`\`\`\`
`\`\`\`sh
${lodestarCommand ? `${lodestarCommand} ` : ""}${example.command}
\`\`\``,
];
Expand Down Expand Up @@ -113,7 +113,9 @@ function renderOption(optionName: string, option: CliOptionDefinition): string |
if (!defaultValue.includes(`"`)) {
defaultValue = `"${defaultValue}"`;
}
defaultValue = `[ ${defaultValue} ]`;
if (!defaultValue.startsWith("[")) {
defaultValue = `[ ${defaultValue} ]`;
}
}
commandOption.push(`default: \`${defaultValue}\``);
}
Expand Down

1 comment on commit 0087c8a

@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: 0087c8a Previous: cd7421e Ratio
forkChoice updateHead vc 600000 bc 64 eq 300000 100.34 ms/op 17.332 ms/op 5.79
Full benchmark results
Benchmark suite Current: 0087c8a Previous: cd7421e Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 792.87 us/op 597.87 us/op 1.33
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 142.19 us/op 88.603 us/op 1.60
BLS verify - blst-native 1.6169 ms/op 1.4294 ms/op 1.13
BLS verifyMultipleSignatures 3 - blst-native 3.4773 ms/op 2.9915 ms/op 1.16
BLS verifyMultipleSignatures 8 - blst-native 7.5509 ms/op 6.5358 ms/op 1.16
BLS verifyMultipleSignatures 32 - blst-native 26.240 ms/op 23.861 ms/op 1.10
BLS verifyMultipleSignatures 64 - blst-native 50.055 ms/op 46.094 ms/op 1.09
BLS verifyMultipleSignatures 128 - blst-native 104.30 ms/op 90.276 ms/op 1.16
BLS deserializing 10000 signatures 1.0636 s/op 1.0193 s/op 1.04
BLS deserializing 100000 signatures 10.306 s/op 9.5068 s/op 1.08
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.4872 ms/op 1.4690 ms/op 1.01
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.7722 ms/op 1.6339 ms/op 1.08
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.6726 ms/op 2.5077 ms/op 1.07
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.8612 ms/op 3.7574 ms/op 1.03
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.8613 ms/op 6.0194 ms/op 0.97
BLS aggregatePubkeys 32 - blst-native 29.244 us/op 27.463 us/op 1.06
BLS aggregatePubkeys 128 - blst-native 107.71 us/op 107.72 us/op 1.00
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 67.057 ms/op 65.271 ms/op 1.03
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 59.758 ms/op 60.394 ms/op 0.99
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 50.551 ms/op 46.397 ms/op 1.09
getSlashingsAndExits - default max 257.14 us/op 197.19 us/op 1.30
getSlashingsAndExits - 2k 618.69 us/op 420.51 us/op 1.47
proposeBlockBody type=full, size=empty 8.6927 ms/op 6.8517 ms/op 1.27
isKnown best case - 1 super set check 704.00 ns/op 481.00 ns/op 1.46
isKnown normal case - 2 super set checks 615.00 ns/op 449.00 ns/op 1.37
isKnown worse case - 16 super set checks 576.00 ns/op 409.00 ns/op 1.41
CheckpointStateCache - add get delete 7.1720 us/op 6.8280 us/op 1.05
validate api signedAggregateAndProof - struct 3.2064 ms/op 3.1702 ms/op 1.01
validate gossip signedAggregateAndProof - struct 2.9995 ms/op 3.4659 ms/op 0.87
validate gossip attestation - vc 640000 1.7177 ms/op 1.5394 ms/op 1.12
batch validate gossip attestation - vc 640000 - chunk 32 225.27 us/op 180.72 us/op 1.25
batch validate gossip attestation - vc 640000 - chunk 64 195.40 us/op 157.67 us/op 1.24
batch validate gossip attestation - vc 640000 - chunk 128 207.28 us/op 143.31 us/op 1.45
batch validate gossip attestation - vc 640000 - chunk 256 188.70 us/op 138.45 us/op 1.36
pickEth1Vote - no votes 1.7890 ms/op 1.2777 ms/op 1.40
pickEth1Vote - max votes 13.947 ms/op 9.3783 ms/op 1.49
pickEth1Vote - Eth1Data hashTreeRoot value x2048 26.892 ms/op 17.068 ms/op 1.58
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 42.061 ms/op 27.222 ms/op 1.55
pickEth1Vote - Eth1Data fastSerialize value x2048 997.00 us/op 674.06 us/op 1.48
pickEth1Vote - Eth1Data fastSerialize tree x2048 10.358 ms/op 5.4094 ms/op 1.91
bytes32 toHexString 991.00 ns/op 498.00 ns/op 1.99
bytes32 Buffer.toString(hex) 354.00 ns/op 293.00 ns/op 1.21
bytes32 Buffer.toString(hex) from Uint8Array 643.00 ns/op 417.00 ns/op 1.54
bytes32 Buffer.toString(hex) + 0x 365.00 ns/op 298.00 ns/op 1.22
Object access 1 prop 0.30200 ns/op 0.16400 ns/op 1.84
Map access 1 prop 0.20800 ns/op 0.15500 ns/op 1.34
Object get x1000 9.4260 ns/op 8.0270 ns/op 1.17
Map get x1000 1.0900 ns/op 0.78200 ns/op 1.39
Object set x1000 97.741 ns/op 53.017 ns/op 1.84
Map set x1000 67.547 ns/op 41.543 ns/op 1.63
Return object 10000 times 0.34240 ns/op 0.24990 ns/op 1.37
Throw Error 10000 times 4.8388 us/op 3.9809 us/op 1.22
fastMsgIdFn sha256 / 200 bytes 4.2940 us/op 3.4230 us/op 1.25
fastMsgIdFn h32 xxhash / 200 bytes 436.00 ns/op 279.00 ns/op 1.56
fastMsgIdFn h64 xxhash / 200 bytes 505.00 ns/op 354.00 ns/op 1.43
fastMsgIdFn sha256 / 1000 bytes 14.368 us/op 11.920 us/op 1.21
fastMsgIdFn h32 xxhash / 1000 bytes 598.00 ns/op 408.00 ns/op 1.47
fastMsgIdFn h64 xxhash / 1000 bytes 619.00 ns/op 427.00 ns/op 1.45
fastMsgIdFn sha256 / 10000 bytes 131.53 us/op 108.65 us/op 1.21
fastMsgIdFn h32 xxhash / 10000 bytes 2.4280 us/op 1.9880 us/op 1.22
fastMsgIdFn h64 xxhash / 10000 bytes 1.6790 us/op 1.3550 us/op 1.24
send data - 1000 256B messages 26.351 ms/op 19.181 ms/op 1.37
send data - 1000 512B messages 32.650 ms/op 27.029 ms/op 1.21
send data - 1000 1024B messages 60.629 ms/op 41.261 ms/op 1.47
send data - 1000 1200B messages 61.414 ms/op 41.218 ms/op 1.49
send data - 1000 2048B messages 68.105 ms/op 51.855 ms/op 1.31
send data - 1000 4096B messages 69.398 ms/op 46.631 ms/op 1.49
send data - 1000 16384B messages 151.40 ms/op 127.16 ms/op 1.19
send data - 1000 65536B messages 604.19 ms/op 530.23 ms/op 1.14
enrSubnets - fastDeserialize 64 bits 2.0080 us/op 1.4720 us/op 1.36
enrSubnets - ssz BitVector 64 bits 675.00 ns/op 503.00 ns/op 1.34
enrSubnets - fastDeserialize 4 bits 294.00 ns/op 200.00 ns/op 1.47
enrSubnets - ssz BitVector 4 bits 681.00 ns/op 511.00 ns/op 1.33
prioritizePeers score -10:0 att 32-0.1 sync 2-0 144.38 us/op 128.89 us/op 1.12
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 183.23 us/op 153.31 us/op 1.20
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 246.10 us/op 200.57 us/op 1.23
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 454.62 us/op 326.06 us/op 1.39
prioritizePeers score 0:0 att 64-1 sync 4-1 459.81 us/op 398.69 us/op 1.15
array of 16000 items push then shift 2.1040 us/op 1.7657 us/op 1.19
LinkedList of 16000 items push then shift 12.916 ns/op 9.7140 ns/op 1.33
array of 16000 items push then pop 158.87 ns/op 115.72 ns/op 1.37
LinkedList of 16000 items push then pop 12.114 ns/op 9.4340 ns/op 1.28
array of 24000 items push then shift 3.1857 us/op 2.7634 us/op 1.15
LinkedList of 24000 items push then shift 15.233 ns/op 10.239 ns/op 1.49
array of 24000 items push then pop 236.28 ns/op 153.93 ns/op 1.53
LinkedList of 24000 items push then pop 12.084 ns/op 9.8000 ns/op 1.23
intersect bitArray bitLen 8 8.1450 ns/op 6.7090 ns/op 1.21
intersect array and set length 8 135.79 ns/op 72.396 ns/op 1.88
intersect bitArray bitLen 128 56.232 ns/op 40.246 ns/op 1.40
intersect array and set length 128 1.5043 us/op 996.28 ns/op 1.51
bitArray.getTrueBitIndexes() bitLen 128 2.5840 us/op 1.7620 us/op 1.47
bitArray.getTrueBitIndexes() bitLen 248 4.3510 us/op 3.0190 us/op 1.44
bitArray.getTrueBitIndexes() bitLen 512 9.1860 us/op 5.9840 us/op 1.54
Buffer.concat 32 items 1.4660 us/op 1.1030 us/op 1.33
Uint8Array.set 32 items 2.6810 us/op 2.0390 us/op 1.31
Set add up to 64 items then delete first 6.2851 us/op 4.9766 us/op 1.26
OrderedSet add up to 64 items then delete first 8.9307 us/op 6.3636 us/op 1.40
Set add up to 64 items then delete last 6.9305 us/op 5.5987 us/op 1.24
OrderedSet add up to 64 items then delete last 9.1201 us/op 6.6864 us/op 1.36
Set add up to 64 items then delete middle 6.8887 us/op 5.3394 us/op 1.29
OrderedSet add up to 64 items then delete middle 10.673 us/op 8.3369 us/op 1.28
Set add up to 128 items then delete first 13.490 us/op 10.879 us/op 1.24
OrderedSet add up to 128 items then delete first 21.118 us/op 14.220 us/op 1.49
Set add up to 128 items then delete last 14.409 us/op 11.074 us/op 1.30
OrderedSet add up to 128 items then delete last 19.999 us/op 13.451 us/op 1.49
Set add up to 128 items then delete middle 13.753 us/op 11.995 us/op 1.15
OrderedSet add up to 128 items then delete middle 26.295 us/op 20.184 us/op 1.30
Set add up to 256 items then delete first 28.344 us/op 22.367 us/op 1.27
OrderedSet add up to 256 items then delete first 41.344 us/op 31.935 us/op 1.29
Set add up to 256 items then delete last 27.753 us/op 22.071 us/op 1.26
OrderedSet add up to 256 items then delete last 38.830 us/op 28.188 us/op 1.38
Set add up to 256 items then delete middle 28.237 us/op 21.850 us/op 1.29
OrderedSet add up to 256 items then delete middle 71.077 us/op 55.172 us/op 1.29
transfer serialized Status (84 B) 3.0860 us/op 2.0030 us/op 1.54
copy serialized Status (84 B) 2.2460 us/op 1.5080 us/op 1.49
transfer serialized SignedVoluntaryExit (112 B) 3.1030 us/op 2.1240 us/op 1.46
copy serialized SignedVoluntaryExit (112 B) 2.3860 us/op 1.6760 us/op 1.42
transfer serialized ProposerSlashing (416 B) 3.4400 us/op 3.3670 us/op 1.02
copy serialized ProposerSlashing (416 B) 3.0740 us/op 3.2900 us/op 0.93
transfer serialized Attestation (485 B) 4.5260 us/op 3.5240 us/op 1.28
copy serialized Attestation (485 B) 4.3680 us/op 3.2400 us/op 1.35
transfer serialized AttesterSlashing (33232 B) 4.2690 us/op 3.2800 us/op 1.30
copy serialized AttesterSlashing (33232 B) 16.509 us/op 8.3940 us/op 1.97
transfer serialized Small SignedBeaconBlock (128000 B) 4.8200 us/op 3.3500 us/op 1.44
copy serialized Small SignedBeaconBlock (128000 B) 43.233 us/op 19.061 us/op 2.27
transfer serialized Avg SignedBeaconBlock (200000 B) 4.8340 us/op 3.9420 us/op 1.23
copy serialized Avg SignedBeaconBlock (200000 B) 68.013 us/op 26.402 us/op 2.58
transfer serialized BlobsSidecar (524380 B) 7.0720 us/op 3.4700 us/op 2.04
copy serialized BlobsSidecar (524380 B) 224.83 us/op 92.045 us/op 2.44
transfer serialized Big SignedBeaconBlock (1000000 B) 10.919 us/op 3.9060 us/op 2.80
copy serialized Big SignedBeaconBlock (1000000 B) 493.63 us/op 185.71 us/op 2.66
pass gossip attestations to forkchoice per slot 9.8844 ms/op 4.8240 ms/op 2.05
forkChoice updateHead vc 100000 bc 64 eq 0 992.82 us/op 778.95 us/op 1.27
forkChoice updateHead vc 600000 bc 64 eq 0 9.0202 ms/op 5.4654 ms/op 1.65
forkChoice updateHead vc 1000000 bc 64 eq 0 10.957 ms/op 7.6666 ms/op 1.43
forkChoice updateHead vc 600000 bc 320 eq 0 6.7665 ms/op 4.6335 ms/op 1.46
forkChoice updateHead vc 600000 bc 1200 eq 0 6.5197 ms/op 4.6877 ms/op 1.39
forkChoice updateHead vc 600000 bc 7200 eq 0 7.8095 ms/op 5.7927 ms/op 1.35
forkChoice updateHead vc 600000 bc 64 eq 1000 17.432 ms/op 11.950 ms/op 1.46
forkChoice updateHead vc 600000 bc 64 eq 10000 18.155 ms/op 12.882 ms/op 1.41
forkChoice updateHead vc 600000 bc 64 eq 300000 100.34 ms/op 17.332 ms/op 5.79
computeDeltas 500000 validators 300 proto nodes 9.3791 ms/op 7.2438 ms/op 1.29
computeDeltas 500000 validators 1200 proto nodes 10.030 ms/op 7.0903 ms/op 1.41
computeDeltas 500000 validators 7200 proto nodes 9.1638 ms/op 6.8198 ms/op 1.34
computeDeltas 750000 validators 300 proto nodes 13.738 ms/op 10.683 ms/op 1.29
computeDeltas 750000 validators 1200 proto nodes 13.759 ms/op 11.446 ms/op 1.20
computeDeltas 750000 validators 7200 proto nodes 13.423 ms/op 11.495 ms/op 1.17
computeDeltas 1400000 validators 300 proto nodes 26.162 ms/op 21.034 ms/op 1.24
computeDeltas 1400000 validators 1200 proto nodes 26.627 ms/op 20.810 ms/op 1.28
computeDeltas 1400000 validators 7200 proto nodes 26.289 ms/op 20.632 ms/op 1.27
computeDeltas 2100000 validators 300 proto nodes 37.433 ms/op 31.794 ms/op 1.18
computeDeltas 2100000 validators 1200 proto nodes 36.486 ms/op 32.440 ms/op 1.12
computeDeltas 2100000 validators 7200 proto nodes 38.251 ms/op 33.384 ms/op 1.15
altair processAttestation - 250000 vs - 7PWei normalcase 3.8975 ms/op 3.0120 ms/op 1.29
altair processAttestation - 250000 vs - 7PWei worstcase 5.5915 ms/op 4.0666 ms/op 1.37
altair processAttestation - setStatus - 1/6 committees join 298.61 us/op 177.31 us/op 1.68
altair processAttestation - setStatus - 1/3 committees join 466.63 us/op 319.03 us/op 1.46
altair processAttestation - setStatus - 1/2 committees join 654.35 us/op 450.73 us/op 1.45
altair processAttestation - setStatus - 2/3 committees join 805.62 us/op 549.70 us/op 1.47
altair processAttestation - setStatus - 4/5 committees join 1.2632 ms/op 794.91 us/op 1.59
altair processAttestation - setStatus - 100% committees join 1.2771 ms/op 964.23 us/op 1.32
altair processBlock - 250000 vs - 7PWei normalcase 12.965 ms/op 12.313 ms/op 1.05
altair processBlock - 250000 vs - 7PWei normalcase hashState 47.265 ms/op 39.578 ms/op 1.19
altair processBlock - 250000 vs - 7PWei worstcase 56.876 ms/op 52.074 ms/op 1.09
altair processBlock - 250000 vs - 7PWei worstcase hashState 118.78 ms/op 119.03 ms/op 1.00
phase0 processBlock - 250000 vs - 7PWei normalcase 3.6367 ms/op 3.1883 ms/op 1.14
phase0 processBlock - 250000 vs - 7PWei worstcase 39.935 ms/op 35.840 ms/op 1.11
altair processEth1Data - 250000 vs - 7PWei normalcase 855.56 us/op 617.30 us/op 1.39
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 16.926 us/op 12.176 us/op 1.39
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 91.928 us/op 51.625 us/op 1.78
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 26.805 us/op 28.583 us/op 0.94
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 18.510 us/op 11.944 us/op 1.55
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 184.57 us/op 186.60 us/op 0.99
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.8763 ms/op 1.9649 ms/op 0.95
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.1531 ms/op 2.2379 ms/op 0.96
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.2300 ms/op 1.9800 ms/op 1.13
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.8454 ms/op 4.2417 ms/op 1.14
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.9267 ms/op 2.4916 ms/op 1.17
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 6.8592 ms/op 5.0910 ms/op 1.35
Tree 40 250000 create 493.95 ms/op 430.68 ms/op 1.15
Tree 40 250000 get(125000) 245.58 ns/op 223.41 ns/op 1.10
Tree 40 250000 set(125000) 1.1739 us/op 1.1344 us/op 1.03
Tree 40 250000 toArray() 25.330 ms/op 19.855 ms/op 1.28
Tree 40 250000 iterate all - toArray() + loop 26.163 ms/op 20.737 ms/op 1.26
Tree 40 250000 iterate all - get(i) 87.277 ms/op 70.157 ms/op 1.24
MutableVector 250000 create 16.144 ms/op 21.963 ms/op 0.74
MutableVector 250000 get(125000) 7.6840 ns/op 6.9230 ns/op 1.11
MutableVector 250000 set(125000) 358.94 ns/op 271.19 ns/op 1.32
MutableVector 250000 toArray() 3.9603 ms/op 3.8481 ms/op 1.03
MutableVector 250000 iterate all - toArray() + loop 4.1759 ms/op 4.0270 ms/op 1.04
MutableVector 250000 iterate all - get(i) 1.7396 ms/op 1.6652 ms/op 1.04
Array 250000 create 3.5163 ms/op 3.3193 ms/op 1.06
Array 250000 clone - spread 1.5675 ms/op 1.3150 ms/op 1.19
Array 250000 get(125000) 1.2190 ns/op 1.1160 ns/op 1.09
Array 250000 set(125000) 5.0860 ns/op 4.4140 ns/op 1.15
Array 250000 iterate all - loop 178.36 us/op 180.76 us/op 0.99
effectiveBalanceIncrements clone Uint8Array 300000 40.221 us/op 29.528 us/op 1.36
effectiveBalanceIncrements clone MutableVector 300000 490.00 ns/op 368.00 ns/op 1.33
effectiveBalanceIncrements rw all Uint8Array 300000 246.22 us/op 221.26 us/op 1.11
effectiveBalanceIncrements rw all MutableVector 300000 101.42 ms/op 107.09 ms/op 0.95
phase0 afterProcessEpoch - 250000 vs - 7PWei 126.43 ms/op 130.30 ms/op 0.97
phase0 beforeProcessEpoch - 250000 vs - 7PWei 61.290 ms/op 59.801 ms/op 1.02
altair processEpoch - mainnet_e81889 551.14 ms/op 558.59 ms/op 0.99
mainnet_e81889 - altair beforeProcessEpoch 88.498 ms/op 96.154 ms/op 0.92
mainnet_e81889 - altair processJustificationAndFinalization 24.847 us/op 22.815 us/op 1.09
mainnet_e81889 - altair processInactivityUpdates 7.5337 ms/op 7.0984 ms/op 1.06
mainnet_e81889 - altair processRewardsAndPenalties 66.807 ms/op 75.348 ms/op 0.89
mainnet_e81889 - altair processRegistryUpdates 4.9580 us/op 3.7170 us/op 1.33
mainnet_e81889 - altair processSlashings 758.00 ns/op 593.00 ns/op 1.28
mainnet_e81889 - altair processEth1DataReset 706.00 ns/op 787.00 ns/op 0.90
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.7114 ms/op 2.1611 ms/op 0.79
mainnet_e81889 - altair processSlashingsReset 8.0550 us/op 5.2130 us/op 1.55
mainnet_e81889 - altair processRandaoMixesReset 8.7880 us/op 9.6290 us/op 0.91
mainnet_e81889 - altair processHistoricalRootsUpdate 1.3710 us/op 964.00 ns/op 1.42
mainnet_e81889 - altair processParticipationFlagUpdates 2.6040 us/op 4.2250 us/op 0.62
mainnet_e81889 - altair processSyncCommitteeUpdates 1.2690 us/op 1.1040 us/op 1.15
mainnet_e81889 - altair afterProcessEpoch 147.68 ms/op 138.86 ms/op 1.06
capella processEpoch - mainnet_e217614 3.1714 s/op 2.9180 s/op 1.09
mainnet_e217614 - capella beforeProcessEpoch 721.73 ms/op 627.88 ms/op 1.15
mainnet_e217614 - capella processJustificationAndFinalization 45.667 us/op 18.746 us/op 2.44
mainnet_e217614 - capella processInactivityUpdates 38.878 ms/op 21.696 ms/op 1.79
mainnet_e217614 - capella processRewardsAndPenalties 622.79 ms/op 532.71 ms/op 1.17
mainnet_e217614 - capella processRegistryUpdates 33.246 us/op 37.336 us/op 0.89
mainnet_e217614 - capella processSlashings 1.2390 us/op 1.1460 us/op 1.08
mainnet_e217614 - capella processEth1DataReset 963.00 ns/op 901.00 ns/op 1.07
mainnet_e217614 - capella processEffectiveBalanceUpdates 6.9956 ms/op 7.3146 ms/op 0.96
mainnet_e217614 - capella processSlashingsReset 8.0560 us/op 6.1430 us/op 1.31
mainnet_e217614 - capella processRandaoMixesReset 13.016 us/op 7.4680 us/op 1.74
mainnet_e217614 - capella processHistoricalRootsUpdate 2.2040 us/op 1.1190 us/op 1.97
mainnet_e217614 - capella processParticipationFlagUpdates 4.7740 us/op 2.4950 us/op 1.91
mainnet_e217614 - capella afterProcessEpoch 401.08 ms/op 431.95 ms/op 0.93
phase0 processEpoch - mainnet_e58758 619.84 ms/op 655.17 ms/op 0.95
mainnet_e58758 - phase0 beforeProcessEpoch 154.35 ms/op 194.83 ms/op 0.79
mainnet_e58758 - phase0 processJustificationAndFinalization 31.157 us/op 27.195 us/op 1.15
mainnet_e58758 - phase0 processRewardsAndPenalties 73.469 ms/op 73.411 ms/op 1.00
mainnet_e58758 - phase0 processRegistryUpdates 25.782 us/op 19.910 us/op 1.29
mainnet_e58758 - phase0 processSlashings 1.1670 us/op 1.4920 us/op 0.78
mainnet_e58758 - phase0 processEth1DataReset 1.0690 us/op 972.00 ns/op 1.10
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.6292 ms/op 2.3569 ms/op 0.69
mainnet_e58758 - phase0 processSlashingsReset 6.3270 us/op 9.3550 us/op 0.68
mainnet_e58758 - phase0 processRandaoMixesReset 10.418 us/op 7.5860 us/op 1.37
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.3100 us/op 779.00 ns/op 1.68
mainnet_e58758 - phase0 processParticipationRecordUpdates 10.183 us/op 4.2430 us/op 2.40
mainnet_e58758 - phase0 afterProcessEpoch 118.60 ms/op 145.56 ms/op 0.81
phase0 processEffectiveBalanceUpdates - 250000 normalcase 2.2351 ms/op 3.4505 ms/op 0.65
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.3478 ms/op 1.8976 ms/op 1.24
altair processInactivityUpdates - 250000 normalcase 58.148 ms/op 40.179 ms/op 1.45
altair processInactivityUpdates - 250000 worstcase 44.895 ms/op 43.076 ms/op 1.04
phase0 processRegistryUpdates - 250000 normalcase 23.670 us/op 14.942 us/op 1.58
phase0 processRegistryUpdates - 250000 badcase_full_deposits 761.38 us/op 592.83 us/op 1.28
phase0 processRegistryUpdates - 250000 worstcase 0.5 239.20 ms/op 189.33 ms/op 1.26
altair processRewardsAndPenalties - 250000 normalcase 72.818 ms/op 74.104 ms/op 0.98
altair processRewardsAndPenalties - 250000 worstcase 83.278 ms/op 78.553 ms/op 1.06
phase0 getAttestationDeltas - 250000 normalcase 15.709 ms/op 13.510 ms/op 1.16
phase0 getAttestationDeltas - 250000 worstcase 15.914 ms/op 14.297 ms/op 1.11
phase0 processSlashings - 250000 worstcase 121.43 us/op 124.95 us/op 0.97
altair processSyncCommitteeUpdates - 250000 218.52 ms/op 221.35 ms/op 0.99
BeaconState.hashTreeRoot - No change 1.0240 us/op 796.00 ns/op 1.29
BeaconState.hashTreeRoot - 1 full validator 204.42 us/op 163.09 us/op 1.25
BeaconState.hashTreeRoot - 32 full validator 3.2495 ms/op 1.9497 ms/op 1.67
BeaconState.hashTreeRoot - 512 full validator 30.755 ms/op 20.584 ms/op 1.49
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 257.96 us/op 224.08 us/op 1.15
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 4.0796 ms/op 2.9543 ms/op 1.38
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 44.808 ms/op 41.689 ms/op 1.07
BeaconState.hashTreeRoot - 1 balances 199.27 us/op 168.72 us/op 1.18
BeaconState.hashTreeRoot - 32 balances 2.1319 ms/op 1.6191 ms/op 1.32
BeaconState.hashTreeRoot - 512 balances 20.829 ms/op 15.814 ms/op 1.32
BeaconState.hashTreeRoot - 250000 balances 321.08 ms/op 279.37 ms/op 1.15
aggregationBits - 2048 els - zipIndexesInBitList 44.872 us/op 21.786 us/op 2.06
byteArrayEquals 32 90.601 ns/op 104.12 ns/op 0.87
Buffer.compare 32 76.632 ns/op 71.186 ns/op 1.08
byteArrayEquals 1024 2.5197 us/op 2.8387 us/op 0.89
Buffer.compare 1024 94.278 ns/op 109.79 ns/op 0.86
byteArrayEquals 16384 42.003 us/op 45.471 us/op 0.92
Buffer.compare 16384 335.50 ns/op 335.92 ns/op 1.00
byteArrayEquals 123687377 354.34 ms/op 320.15 ms/op 1.11
Buffer.compare 123687377 12.577 ms/op 10.152 ms/op 1.24
byteArrayEquals 32 - diff last byte 127.81 ns/op 97.430 ns/op 1.31
Buffer.compare 32 - diff last byte 82.044 ns/op 70.693 ns/op 1.16
byteArrayEquals 1024 - diff last byte 3.1621 us/op 2.5657 us/op 1.23
Buffer.compare 1024 - diff last byte 101.38 ns/op 85.146 ns/op 1.19
byteArrayEquals 16384 - diff last byte 50.512 us/op 42.464 us/op 1.19
Buffer.compare 16384 - diff last byte 381.79 ns/op 326.43 ns/op 1.17
byteArrayEquals 123687377 - diff last byte 329.03 ms/op 329.61 ms/op 1.00
Buffer.compare 123687377 - diff last byte 11.208 ms/op 9.6581 ms/op 1.16
byteArrayEquals 32 - random bytes 8.3560 ns/op 7.3640 ns/op 1.13
Buffer.compare 32 - random bytes 75.781 ns/op 75.691 ns/op 1.00
byteArrayEquals 1024 - random bytes 8.1120 ns/op 7.2060 ns/op 1.13
Buffer.compare 1024 - random bytes 72.206 ns/op 73.090 ns/op 0.99
byteArrayEquals 16384 - random bytes 7.5790 ns/op 6.9540 ns/op 1.09
Buffer.compare 16384 - random bytes 72.382 ns/op 77.286 ns/op 0.94
byteArrayEquals 123687377 - random bytes 18.500 ns/op 10.470 ns/op 1.77
Buffer.compare 123687377 - random bytes 93.010 ns/op 85.810 ns/op 1.08
regular array get 100000 times 57.241 us/op 53.652 us/op 1.07
wrappedArray get 100000 times 54.779 us/op 52.634 us/op 1.04
arrayWithProxy get 100000 times 18.701 ms/op 17.387 ms/op 1.08
ssz.Root.equals 64.094 ns/op 64.821 ns/op 0.99
byteArrayEquals 66.256 ns/op 67.423 ns/op 0.98
Buffer.compare 15.373 ns/op 14.363 ns/op 1.07
shuffle list - 16384 els 8.2138 ms/op 9.0366 ms/op 0.91
shuffle list - 250000 els 116.56 ms/op 130.80 ms/op 0.89
processSlot - 1 slots 28.798 us/op 21.229 us/op 1.36
processSlot - 32 slots 4.9427 ms/op 5.2851 ms/op 0.94
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 80.329 ms/op 77.160 ms/op 1.04
getCommitteeAssignments - req 1 vs - 250000 vc 3.1921 ms/op 2.9790 ms/op 1.07
getCommitteeAssignments - req 100 vs - 250000 vc 4.7859 ms/op 4.6603 ms/op 1.03
getCommitteeAssignments - req 1000 vs - 250000 vc 4.9086 ms/op 5.0380 ms/op 0.97
findModifiedValidators - 10000 modified validators 673.48 ms/op 717.36 ms/op 0.94
findModifiedValidators - 1000 modified validators 484.93 ms/op 594.24 ms/op 0.82
findModifiedValidators - 100 modified validators 503.91 ms/op 601.65 ms/op 0.84
findModifiedValidators - 10 modified validators 526.43 ms/op 577.11 ms/op 0.91
findModifiedValidators - 1 modified validators 484.37 ms/op 587.87 ms/op 0.82
findModifiedValidators - no difference 526.95 ms/op 596.76 ms/op 0.88
compare ViewDUs 5.6379 s/op 5.6848 s/op 0.99
compare each validator Uint8Array 2.0527 s/op 1.9743 s/op 1.04
compare ViewDU to Uint8Array 1.6430 s/op 1.3324 s/op 1.23
migrate state 1000000 validators, 24 modified, 0 new 1.0070 s/op 912.77 ms/op 1.10
migrate state 1000000 validators, 1700 modified, 1000 new 1.2868 s/op 1.2319 s/op 1.04
migrate state 1000000 validators, 3400 modified, 2000 new 1.6894 s/op 1.4799 s/op 1.14
migrate state 1500000 validators, 24 modified, 0 new 1.0081 s/op 929.55 ms/op 1.08
migrate state 1500000 validators, 1700 modified, 1000 new 1.3700 s/op 1.2460 s/op 1.10
migrate state 1500000 validators, 3400 modified, 2000 new 1.6828 s/op 1.4744 s/op 1.14
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.6100 ns/op 4.9800 ns/op 0.93
state getBlockRootAtSlot - 250000 vs - 7PWei 931.40 ns/op 852.45 ns/op 1.09
computeProposers - vc 250000 10.506 ms/op 10.287 ms/op 1.02
computeEpochShuffling - vc 250000 115.76 ms/op 106.63 ms/op 1.09
getNextSyncCommittee - vc 250000 173.72 ms/op 174.34 ms/op 1.00
computeSigningRoot for AttestationData 33.208 us/op 27.725 us/op 1.20
hash AttestationData serialized data then Buffer.toString(base64) 2.5223 us/op 2.3285 us/op 1.08
toHexString serialized data 1.4171 us/op 1.1082 us/op 1.28
Buffer.toString(base64) 297.17 ns/op 235.07 ns/op 1.26

Please sign in to comment.