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

chore: add yarn scripts to simplify docs contribution #6296

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Jan 15, 2024

Motivation

Simplify docs contribution

Description

Added yarn scripts to simplify commands to run in order to contribute to docs. This would simplify instructions introduced in #6294 or better yet, you don't even need to read how to contribute because yarn scripts make it obvious.

Having all docs commands prefixed with docs: makes it also easier to figure out what commands exist as right now they are a bit scattered around.

Copy link

codecov bot commented Jan 15, 2024

Codecov Report

Merging #6296 (2d17288) into unstable (098d35a) will decrease coverage by 0.14%.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #6296      +/-   ##
============================================
- Coverage     80.38%   80.24%   -0.14%     
============================================
  Files           202      171      -31     
  Lines         19620    17464    -2156     
  Branches       1176     1017     -159     
============================================
- Hits          15771    14014    -1757     
+ Misses         3821     3424     -397     
+ Partials         28       26       -2     

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: aedd8f8 Previous: 098d35a Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 472.77 us/op 888.87 us/op 0.53
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 90.952 us/op 81.806 us/op 1.11
BLS verify - blst-native 1.1241 ms/op 1.2765 ms/op 0.88
BLS verifyMultipleSignatures 3 - blst-native 2.4441 ms/op 2.6851 ms/op 0.91
BLS verifyMultipleSignatures 8 - blst-native 5.3132 ms/op 5.8816 ms/op 0.90
BLS verifyMultipleSignatures 32 - blst-native 19.559 ms/op 21.530 ms/op 0.91
BLS verifyMultipleSignatures 64 - blst-native 38.544 ms/op 42.411 ms/op 0.91
BLS verifyMultipleSignatures 128 - blst-native 77.414 ms/op 84.174 ms/op 0.92
BLS deserializing 10000 signatures 820.21 ms/op 897.12 ms/op 0.91
BLS deserializing 100000 signatures 8.4640 s/op 9.0524 s/op 0.94
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.1624 ms/op 1.2609 ms/op 0.92
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.3077 ms/op 1.5241 ms/op 0.86
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.0631 ms/op 2.1958 ms/op 0.94
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.9342 ms/op 4.2555 ms/op 0.92
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.0276 ms/op 7.3021 ms/op 0.69
BLS aggregatePubkeys 32 - blst-native 23.741 us/op 26.835 us/op 0.88
BLS aggregatePubkeys 128 - blst-native 90.986 us/op 96.919 us/op 0.94
getAttestationsForBlock 44.394 ms/op 43.893 ms/op 1.01
getSlashingsAndExits - default max 137.12 us/op 167.21 us/op 0.82
getSlashingsAndExits - 2k 395.33 us/op 362.90 us/op 1.09
proposeBlockBody type=full, size=empty 4.1972 ms/op 4.9525 ms/op 0.85
isKnown best case - 1 super set check 343.00 ns/op 322.00 ns/op 1.07
isKnown normal case - 2 super set checks 323.00 ns/op 292.00 ns/op 1.11
isKnown worse case - 16 super set checks 322.00 ns/op 280.00 ns/op 1.15
CheckpointStateCache - add get delete 3.7670 us/op 5.5280 us/op 0.68
validate api signedAggregateAndProof - struct 2.4610 ms/op 2.7344 ms/op 0.90
validate gossip signedAggregateAndProof - struct 2.4319 ms/op 2.7392 ms/op 0.89
validate gossip attestation - vc 640000 1.1612 ms/op 1.3155 ms/op 0.88
batch validate gossip attestation - vc 640000 - chunk 32 142.13 us/op 156.51 us/op 0.91
batch validate gossip attestation - vc 640000 - chunk 64 122.40 us/op 136.96 us/op 0.89
batch validate gossip attestation - vc 640000 - chunk 128 116.81 us/op 126.47 us/op 0.92
batch validate gossip attestation - vc 640000 - chunk 256 112.50 us/op 129.92 us/op 0.87
pickEth1Vote - no votes 883.98 us/op 1.1328 ms/op 0.78
pickEth1Vote - max votes 11.725 ms/op 10.212 ms/op 1.15
pickEth1Vote - Eth1Data hashTreeRoot value x2048 20.951 ms/op 21.411 ms/op 0.98
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 25.803 ms/op 27.950 ms/op 0.92
pickEth1Vote - Eth1Data fastSerialize value x2048 415.63 us/op 574.72 us/op 0.72
pickEth1Vote - Eth1Data fastSerialize tree x2048 7.2314 ms/op 6.7798 ms/op 1.07
bytes32 toHexString 433.00 ns/op 492.00 ns/op 0.88
bytes32 Buffer.toString(hex) 297.00 ns/op 281.00 ns/op 1.06
bytes32 Buffer.toString(hex) from Uint8Array 412.00 ns/op 417.00 ns/op 0.99
bytes32 Buffer.toString(hex) + 0x 310.00 ns/op 279.00 ns/op 1.11
Object access 1 prop 0.19400 ns/op 0.15500 ns/op 1.25
Map access 1 prop 0.18400 ns/op 0.13100 ns/op 1.40
Object get x1000 4.9060 ns/op 7.6080 ns/op 0.64
Map get x1000 0.75900 ns/op 0.71600 ns/op 1.06
Object set x1000 25.427 ns/op 48.308 ns/op 0.53
Map set x1000 17.752 ns/op 36.982 ns/op 0.48
Return object 10000 times 0.22320 ns/op 0.22620 ns/op 0.99
Throw Error 10000 times 2.6819 us/op 3.6822 us/op 0.73
fastMsgIdFn sha256 / 200 bytes 1.9710 us/op 3.1060 us/op 0.63
fastMsgIdFn h32 xxhash / 200 bytes 308.00 ns/op 265.00 ns/op 1.16
fastMsgIdFn h64 xxhash / 200 bytes 362.00 ns/op 323.00 ns/op 1.12
fastMsgIdFn sha256 / 1000 bytes 6.1160 us/op 10.945 us/op 0.56
fastMsgIdFn h32 xxhash / 1000 bytes 427.00 ns/op 395.00 ns/op 1.08
fastMsgIdFn h64 xxhash / 1000 bytes 426.00 ns/op 392.00 ns/op 1.09
fastMsgIdFn sha256 / 10000 bytes 51.892 us/op 99.916 us/op 0.52
fastMsgIdFn h32 xxhash / 10000 bytes 1.7920 us/op 1.8590 us/op 0.96
fastMsgIdFn h64 xxhash / 10000 bytes 1.2290 us/op 1.2660 us/op 0.97
send data - 1000 256B messages 12.298 ms/op 18.371 ms/op 0.67
send data - 1000 512B messages 15.217 ms/op 27.519 ms/op 0.55
send data - 1000 1024B messages 22.751 ms/op 39.244 ms/op 0.58
send data - 1000 1200B messages 27.793 ms/op 35.531 ms/op 0.78
send data - 1000 2048B messages 34.344 ms/op 42.203 ms/op 0.81
send data - 1000 4096B messages 34.243 ms/op 38.492 ms/op 0.89
send data - 1000 16384B messages 85.387 ms/op 115.46 ms/op 0.74
send data - 1000 65536B messages 406.29 ms/op 491.72 ms/op 0.83
enrSubnets - fastDeserialize 64 bits 1.2450 us/op 1.2300 us/op 1.01
enrSubnets - ssz BitVector 64 bits 575.00 ns/op 412.00 ns/op 1.40
enrSubnets - fastDeserialize 4 bits 265.00 ns/op 164.00 ns/op 1.62
enrSubnets - ssz BitVector 4 bits 557.00 ns/op 411.00 ns/op 1.36
prioritizePeers score -10:0 att 32-0.1 sync 2-0 71.458 us/op 99.463 us/op 0.72
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 102.30 us/op 124.24 us/op 0.82
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 109.08 us/op 159.19 us/op 0.69
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 179.68 us/op 282.49 us/op 0.64
prioritizePeers score 0:0 att 64-1 sync 4-1 198.62 us/op 332.88 us/op 0.60
array of 16000 items push then shift 1.2249 us/op 1.5714 us/op 0.78
LinkedList of 16000 items push then shift 6.5660 ns/op 8.8190 ns/op 0.74
array of 16000 items push then pop 72.773 ns/op 70.913 ns/op 1.03
LinkedList of 16000 items push then pop 5.8070 ns/op 8.6040 ns/op 0.67
array of 24000 items push then shift 1.8249 us/op 2.3384 us/op 0.78
LinkedList of 24000 items push then shift 6.5680 ns/op 8.7580 ns/op 0.75
array of 24000 items push then pop 108.29 ns/op 97.806 ns/op 1.11
LinkedList of 24000 items push then pop 5.7240 ns/op 8.5670 ns/op 0.67
intersect bitArray bitLen 8 5.0930 ns/op 6.2680 ns/op 0.81
intersect array and set length 8 50.137 ns/op 60.829 ns/op 0.82
intersect bitArray bitLen 128 28.097 ns/op 33.197 ns/op 0.85
intersect array and set length 128 708.46 ns/op 838.91 ns/op 0.84
bitArray.getTrueBitIndexes() bitLen 128 1.1410 us/op 1.3520 us/op 0.84
bitArray.getTrueBitIndexes() bitLen 248 1.9700 us/op 2.4010 us/op 0.82
bitArray.getTrueBitIndexes() bitLen 512 3.6300 us/op 4.5520 us/op 0.80
Buffer.concat 32 items 934.00 ns/op 963.00 ns/op 0.97
Uint8Array.set 32 items 1.8570 us/op 2.0480 us/op 0.91
Set add up to 64 items then delete first 1.7269 us/op 4.1959 us/op 0.41
OrderedSet add up to 64 items then delete first 2.5862 us/op 5.3522 us/op 0.48
Set add up to 64 items then delete last 1.9413 us/op 4.5169 us/op 0.43
OrderedSet add up to 64 items then delete last 3.3164 us/op 5.7226 us/op 0.58
Set add up to 64 items then delete middle 2.0502 us/op 4.4896 us/op 0.46
OrderedSet add up to 64 items then delete middle 4.3596 us/op 6.8868 us/op 0.63
Set add up to 128 items then delete first 3.9479 us/op 9.1514 us/op 0.43
OrderedSet add up to 128 items then delete first 5.9297 us/op 12.073 us/op 0.49
Set add up to 128 items then delete last 3.9328 us/op 9.0686 us/op 0.43
OrderedSet add up to 128 items then delete last 6.1195 us/op 11.341 us/op 0.54
Set add up to 128 items then delete middle 3.9650 us/op 8.9844 us/op 0.44
OrderedSet add up to 128 items then delete middle 11.006 us/op 16.622 us/op 0.66
Set add up to 256 items then delete first 7.7493 us/op 18.215 us/op 0.43
OrderedSet add up to 256 items then delete first 11.744 us/op 24.649 us/op 0.48
Set add up to 256 items then delete last 8.0077 us/op 17.833 us/op 0.45
OrderedSet add up to 256 items then delete last 12.159 us/op 22.833 us/op 0.53
Set add up to 256 items then delete middle 8.0235 us/op 17.903 us/op 0.45
OrderedSet add up to 256 items then delete middle 31.905 us/op 44.007 us/op 0.73
transfer serialized Status (84 B) 1.5600 us/op 1.7650 us/op 0.88
copy serialized Status (84 B) 1.4660 us/op 1.4630 us/op 1.00
transfer serialized SignedVoluntaryExit (112 B) 1.8490 us/op 1.9200 us/op 0.96
copy serialized SignedVoluntaryExit (112 B) 1.7880 us/op 1.5010 us/op 1.19
transfer serialized ProposerSlashing (416 B) 2.7800 us/op 2.3260 us/op 1.20
copy serialized ProposerSlashing (416 B) 3.0700 us/op 2.1790 us/op 1.41
transfer serialized Attestation (485 B) 2.6960 us/op 2.4240 us/op 1.11
copy serialized Attestation (485 B) 3.0460 us/op 2.1480 us/op 1.42
transfer serialized AttesterSlashing (33232 B) 2.2870 us/op 2.7670 us/op 0.83
copy serialized AttesterSlashing (33232 B) 5.1680 us/op 5.6870 us/op 0.91
transfer serialized Small SignedBeaconBlock (128000 B) 2.8360 us/op 3.1460 us/op 0.90
copy serialized Small SignedBeaconBlock (128000 B) 10.151 us/op 13.742 us/op 0.74
transfer serialized Avg SignedBeaconBlock (200000 B) 2.6650 us/op 3.1660 us/op 0.84
copy serialized Avg SignedBeaconBlock (200000 B) 17.486 us/op 61.172 us/op 0.29
transfer serialized BlobsSidecar (524380 B) 3.2760 us/op 3.4140 us/op 0.96
copy serialized BlobsSidecar (524380 B) 73.749 us/op 143.30 us/op 0.51
transfer serialized Big SignedBeaconBlock (1000000 B) 3.3890 us/op 3.3340 us/op 1.02
copy serialized Big SignedBeaconBlock (1000000 B) 349.62 us/op 289.61 us/op 1.21
pass gossip attestations to forkchoice per slot 2.8050 ms/op 4.0072 ms/op 0.70
forkChoice updateHead vc 100000 bc 64 eq 0 446.35 us/op 672.26 us/op 0.66
forkChoice updateHead vc 600000 bc 64 eq 0 3.5888 ms/op 4.1098 ms/op 0.87
forkChoice updateHead vc 1000000 bc 64 eq 0 4.7053 ms/op 6.9299 ms/op 0.68
forkChoice updateHead vc 600000 bc 320 eq 0 2.6888 ms/op 4.0727 ms/op 0.66
forkChoice updateHead vc 600000 bc 1200 eq 0 2.8281 ms/op 4.3032 ms/op 0.66
forkChoice updateHead vc 600000 bc 7200 eq 0 3.2910 ms/op 5.1962 ms/op 0.63
forkChoice updateHead vc 600000 bc 64 eq 1000 9.9573 ms/op 11.016 ms/op 0.90
forkChoice updateHead vc 600000 bc 64 eq 10000 9.9485 ms/op 11.799 ms/op 0.84
forkChoice updateHead vc 600000 bc 64 eq 300000 12.164 ms/op 15.713 ms/op 0.77
computeDeltas 500000 validators 300 proto nodes 3.3620 ms/op 6.4179 ms/op 0.52
computeDeltas 500000 validators 1200 proto nodes 3.3234 ms/op 6.3016 ms/op 0.53
computeDeltas 500000 validators 7200 proto nodes 3.4186 ms/op 6.1984 ms/op 0.55
computeDeltas 750000 validators 300 proto nodes 5.1538 ms/op 9.5143 ms/op 0.54
computeDeltas 750000 validators 1200 proto nodes 4.9390 ms/op 9.4484 ms/op 0.52
computeDeltas 750000 validators 7200 proto nodes 4.9583 ms/op 9.6244 ms/op 0.52
computeDeltas 1400000 validators 300 proto nodes 9.2077 ms/op 17.789 ms/op 0.52
computeDeltas 1400000 validators 1200 proto nodes 9.1327 ms/op 18.136 ms/op 0.50
computeDeltas 1400000 validators 7200 proto nodes 9.3139 ms/op 17.790 ms/op 0.52
computeDeltas 2100000 validators 300 proto nodes 14.794 ms/op 27.878 ms/op 0.53
computeDeltas 2100000 validators 1200 proto nodes 14.308 ms/op 27.713 ms/op 0.52
computeDeltas 2100000 validators 7200 proto nodes 14.452 ms/op 27.761 ms/op 0.52
computeProposerBoostScoreFromBalances 500000 validators 3.3792 ms/op 3.6677 ms/op 0.92
computeProposerBoostScoreFromBalances 750000 validators 3.3191 ms/op 3.6746 ms/op 0.90
computeProposerBoostScoreFromBalances 1400000 validators 3.2524 ms/op 3.6649 ms/op 0.89
computeProposerBoostScoreFromBalances 2100000 validators 3.3380 ms/op 3.6749 ms/op 0.91
altair processAttestation - 250000 vs - 7PWei normalcase 2.7018 ms/op 2.0848 ms/op 1.30
altair processAttestation - 250000 vs - 7PWei worstcase 2.6925 ms/op 3.1230 ms/op 0.86
altair processAttestation - setStatus - 1/6 committees join 101.79 us/op 140.95 us/op 0.72
altair processAttestation - setStatus - 1/3 committees join 210.17 us/op 269.85 us/op 0.78
altair processAttestation - setStatus - 1/2 committees join 290.03 us/op 371.26 us/op 0.78
altair processAttestation - setStatus - 2/3 committees join 388.67 us/op 469.22 us/op 0.83
altair processAttestation - setStatus - 4/5 committees join 494.14 us/op 664.21 us/op 0.74
altair processAttestation - setStatus - 100% committees join 597.91 us/op 761.53 us/op 0.79
altair processBlock - 250000 vs - 7PWei normalcase 8.0425 ms/op 9.6696 ms/op 0.83
altair processBlock - 250000 vs - 7PWei normalcase hashState 34.720 ms/op 37.358 ms/op 0.93
altair processBlock - 250000 vs - 7PWei worstcase 33.702 ms/op 37.292 ms/op 0.90
altair processBlock - 250000 vs - 7PWei worstcase hashState 88.511 ms/op 94.421 ms/op 0.94
phase0 processBlock - 250000 vs - 7PWei normalcase 2.8752 ms/op 2.4498 ms/op 1.17
phase0 processBlock - 250000 vs - 7PWei worstcase 28.669 ms/op 30.047 ms/op 0.95
altair processEth1Data - 250000 vs - 7PWei normalcase 485.43 us/op 575.48 us/op 0.84
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 11.916 us/op 10.503 us/op 1.13
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 47.535 us/op 49.470 us/op 0.96
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 12.516 us/op 18.102 us/op 0.69
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 11.504 us/op 7.0010 us/op 1.64
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 168.92 us/op 122.08 us/op 1.38
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 870.41 us/op 1.4374 ms/op 0.61
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1069 ms/op 1.5396 ms/op 0.72
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.7885 ms/op 1.4982 ms/op 1.19
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.4760 ms/op 3.5953 ms/op 0.97
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5526 ms/op 2.2686 ms/op 0.68
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.0070 ms/op 5.0290 ms/op 0.80
Tree 40 250000 create 290.74 ms/op 353.78 ms/op 0.82
Tree 40 250000 get(125000) 117.07 ns/op 192.00 ns/op 0.61
Tree 40 250000 set(125000) 870.53 ns/op 977.41 ns/op 0.89
Tree 40 250000 toArray() 18.084 ms/op 18.254 ms/op 0.99
Tree 40 250000 iterate all - toArray() + loop 18.078 ms/op 18.390 ms/op 0.98
Tree 40 250000 iterate all - get(i) 51.376 ms/op 64.565 ms/op 0.80
MutableVector 250000 create 9.5898 ms/op 12.470 ms/op 0.77
MutableVector 250000 get(125000) 5.6810 ns/op 6.5210 ns/op 0.87
MutableVector 250000 set(125000) 216.30 ns/op 254.73 ns/op 0.85
MutableVector 250000 toArray() 2.3446 ms/op 3.1632 ms/op 0.74
MutableVector 250000 iterate all - toArray() + loop 2.7771 ms/op 3.2663 ms/op 0.85
MutableVector 250000 iterate all - get(i) 1.3409 ms/op 1.5162 ms/op 0.88
Array 250000 create 2.8101 ms/op 2.8420 ms/op 0.99
Array 250000 clone - spread 1.0968 ms/op 1.2547 ms/op 0.87
Array 250000 get(125000) 1.0280 ns/op 1.0420 ns/op 0.99
Array 250000 set(125000) 1.2480 ns/op 4.0770 ns/op 0.31
Array 250000 iterate all - loop 156.42 us/op 163.83 us/op 0.95
effectiveBalanceIncrements clone Uint8Array 300000 14.041 us/op 28.476 us/op 0.49
effectiveBalanceIncrements clone MutableVector 300000 396.00 ns/op 361.00 ns/op 1.10
effectiveBalanceIncrements rw all Uint8Array 300000 187.18 us/op 199.33 us/op 0.94
effectiveBalanceIncrements rw all MutableVector 300000 64.634 ms/op 80.980 ms/op 0.80
phase0 afterProcessEpoch - 250000 vs - 7PWei 75.563 ms/op 113.06 ms/op 0.67
phase0 beforeProcessEpoch - 250000 vs - 7PWei 48.546 ms/op 52.523 ms/op 0.92
altair processEpoch - mainnet_e81889 422.86 ms/op 500.78 ms/op 0.84
mainnet_e81889 - altair beforeProcessEpoch 75.975 ms/op 78.569 ms/op 0.97
mainnet_e81889 - altair processJustificationAndFinalization 10.103 us/op 14.959 us/op 0.68
mainnet_e81889 - altair processInactivityUpdates 6.4808 ms/op 5.7191 ms/op 1.13
mainnet_e81889 - altair processRewardsAndPenalties 56.047 ms/op 60.703 ms/op 0.92
mainnet_e81889 - altair processRegistryUpdates 2.5580 us/op 2.4840 us/op 1.03
mainnet_e81889 - altair processSlashings 546.00 ns/op 446.00 ns/op 1.22
mainnet_e81889 - altair processEth1DataReset 738.00 ns/op 484.00 ns/op 1.52
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.7772 ms/op 1.4180 ms/op 1.25
mainnet_e81889 - altair processSlashingsReset 2.7330 us/op 4.0430 us/op 0.68
mainnet_e81889 - altair processRandaoMixesReset 5.7610 us/op 4.2190 us/op 1.37
mainnet_e81889 - altair processHistoricalRootsUpdate 761.00 ns/op 708.00 ns/op 1.07
mainnet_e81889 - altair processParticipationFlagUpdates 1.9890 us/op 1.8430 us/op 1.08
mainnet_e81889 - altair processSyncCommitteeUpdates 706.00 ns/op 683.00 ns/op 1.03
mainnet_e81889 - altair afterProcessEpoch 82.445 ms/op 116.77 ms/op 0.71
capella processEpoch - mainnet_e217614 2.0788 s/op 2.0613 s/op 1.01
mainnet_e217614 - capella beforeProcessEpoch 432.34 ms/op 482.87 ms/op 0.90
mainnet_e217614 - capella processJustificationAndFinalization 14.072 us/op 19.876 us/op 0.71
mainnet_e217614 - capella processInactivityUpdates 24.008 ms/op 21.052 ms/op 1.14
mainnet_e217614 - capella processRewardsAndPenalties 381.15 ms/op 402.56 ms/op 0.95
mainnet_e217614 - capella processRegistryUpdates 21.804 us/op 16.894 us/op 1.29
mainnet_e217614 - capella processSlashings 765.00 ns/op 540.00 ns/op 1.42
mainnet_e217614 - capella processEth1DataReset 536.00 ns/op 401.00 ns/op 1.34
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.7377 ms/op 4.9395 ms/op 0.76
mainnet_e217614 - capella processSlashingsReset 2.2200 us/op 3.2420 us/op 0.68
mainnet_e217614 - capella processRandaoMixesReset 3.4360 us/op 4.6230 us/op 0.74
mainnet_e217614 - capella processHistoricalRootsUpdate 631.00 ns/op 510.00 ns/op 1.24
mainnet_e217614 - capella processParticipationFlagUpdates 1.3290 us/op 1.6520 us/op 0.80
mainnet_e217614 - capella afterProcessEpoch 261.85 ms/op 315.64 ms/op 0.83
phase0 processEpoch - mainnet_e58758 358.31 ms/op 436.42 ms/op 0.82
mainnet_e58758 - phase0 beforeProcessEpoch 131.33 ms/op 113.07 ms/op 1.16
mainnet_e58758 - phase0 processJustificationAndFinalization 15.080 us/op 14.567 us/op 1.04
mainnet_e58758 - phase0 processRewardsAndPenalties 51.465 ms/op 54.928 ms/op 0.94
mainnet_e58758 - phase0 processRegistryUpdates 19.655 us/op 8.9170 us/op 2.20
mainnet_e58758 - phase0 processSlashings 702.00 ns/op 415.00 ns/op 1.69
mainnet_e58758 - phase0 processEth1DataReset 617.00 ns/op 385.00 ns/op 1.60
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 885.20 us/op 1.1442 ms/op 0.77
mainnet_e58758 - phase0 processSlashingsReset 2.9060 us/op 2.7360 us/op 1.06
mainnet_e58758 - phase0 processRandaoMixesReset 10.574 us/op 4.1590 us/op 2.54
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.0150 us/op 391.00 ns/op 2.60
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.9560 us/op 4.9290 us/op 1.21
mainnet_e58758 - phase0 afterProcessEpoch 64.987 ms/op 94.664 ms/op 0.69
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0348 ms/op 1.3292 ms/op 0.78
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.1446 ms/op 1.9439 ms/op 0.59
altair processInactivityUpdates - 250000 normalcase 28.540 ms/op 30.144 ms/op 0.95
altair processInactivityUpdates - 250000 worstcase 25.759 ms/op 30.633 ms/op 0.84
phase0 processRegistryUpdates - 250000 normalcase 7.2220 us/op 9.5720 us/op 0.75
phase0 processRegistryUpdates - 250000 badcase_full_deposits 425.10 us/op 311.40 us/op 1.37
phase0 processRegistryUpdates - 250000 worstcase 0.5 120.34 ms/op 157.72 ms/op 0.76
altair processRewardsAndPenalties - 250000 normalcase 58.177 ms/op 63.425 ms/op 0.92
altair processRewardsAndPenalties - 250000 worstcase 53.588 ms/op 56.387 ms/op 0.95
phase0 getAttestationDeltas - 250000 normalcase 5.5374 ms/op 9.1089 ms/op 0.61
phase0 getAttestationDeltas - 250000 worstcase 5.6012 ms/op 8.9035 ms/op 0.63
phase0 processSlashings - 250000 worstcase 90.292 us/op 85.653 us/op 1.05
altair processSyncCommitteeUpdates - 250000 121.68 ms/op 149.30 ms/op 0.82
BeaconState.hashTreeRoot - No change 344.00 ns/op 255.00 ns/op 1.35
BeaconState.hashTreeRoot - 1 full validator 126.67 us/op 147.97 us/op 0.86
BeaconState.hashTreeRoot - 32 full validator 1.4963 ms/op 1.5379 ms/op 0.97
BeaconState.hashTreeRoot - 512 full validator 11.921 ms/op 16.716 ms/op 0.71
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 152.34 us/op 208.62 us/op 0.73
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.0039 ms/op 2.2623 ms/op 0.89
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 28.646 ms/op 29.707 ms/op 0.96
BeaconState.hashTreeRoot - 1 balances 95.792 us/op 156.13 us/op 0.61
BeaconState.hashTreeRoot - 32 balances 1.3942 ms/op 1.3426 ms/op 1.04
BeaconState.hashTreeRoot - 512 balances 12.471 ms/op 11.820 ms/op 1.06
BeaconState.hashTreeRoot - 250000 balances 241.08 ms/op 225.34 ms/op 1.07
aggregationBits - 2048 els - zipIndexesInBitList 24.405 us/op 16.067 us/op 1.52
byteArrayEquals 32 64.577 ns/op 70.736 ns/op 0.91
Buffer.compare 32 36.101 ns/op 53.038 ns/op 0.68
byteArrayEquals 1024 1.7059 us/op 1.9314 us/op 0.88
Buffer.compare 1024 43.768 ns/op 68.500 ns/op 0.64
byteArrayEquals 16384 27.550 us/op 30.764 us/op 0.90
Buffer.compare 16384 205.26 ns/op 259.49 ns/op 0.79
byteArrayEquals 123687377 203.49 ms/op 232.04 ms/op 0.88
Buffer.compare 123687377 5.9243 ms/op 6.2015 ms/op 0.96
byteArrayEquals 32 - diff last byte 61.930 ns/op 71.372 ns/op 0.87
Buffer.compare 32 - diff last byte 39.077 ns/op 55.467 ns/op 0.70
byteArrayEquals 1024 - diff last byte 1.7245 us/op 2.0202 us/op 0.85
Buffer.compare 1024 - diff last byte 45.414 ns/op 71.718 ns/op 0.63
byteArrayEquals 16384 - diff last byte 27.729 us/op 32.211 us/op 0.86
Buffer.compare 16384 - diff last byte 202.75 ns/op 273.41 ns/op 0.74
byteArrayEquals 123687377 - diff last byte 211.33 ms/op 239.13 ms/op 0.88
Buffer.compare 123687377 - diff last byte 5.1480 ms/op 6.0965 ms/op 0.84
byteArrayEquals 32 - random bytes 4.9870 ns/op 5.1520 ns/op 0.97
Buffer.compare 32 - random bytes 41.719 ns/op 59.021 ns/op 0.71
byteArrayEquals 1024 - random bytes 4.8210 ns/op 5.0610 ns/op 0.95
Buffer.compare 1024 - random bytes 39.711 ns/op 58.590 ns/op 0.68
byteArrayEquals 16384 - random bytes 4.9520 ns/op 5.3160 ns/op 0.93
Buffer.compare 16384 - random bytes 38.413 ns/op 58.236 ns/op 0.66
byteArrayEquals 123687377 - random bytes 8.2000 ns/op 8.3200 ns/op 0.99
Buffer.compare 123687377 - random bytes 51.920 ns/op 61.650 ns/op 0.84
regular array get 100000 times 50.676 us/op 43.111 us/op 1.18
wrappedArray get 100000 times 44.451 us/op 43.048 us/op 1.03
arrayWithProxy get 100000 times 10.962 ms/op 14.020 ms/op 0.78
ssz.Root.equals 56.790 ns/op 52.358 ns/op 1.08
byteArrayEquals 55.667 ns/op 51.512 ns/op 1.08
Buffer.compare 10.636 ns/op 10.542 ns/op 1.01
shuffle list - 16384 els 4.6650 ms/op 6.9002 ms/op 0.68
shuffle list - 250000 els 69.766 ms/op 99.823 ms/op 0.70
processSlot - 1 slots 19.274 us/op 16.517 us/op 1.17
processSlot - 32 slots 3.8590 ms/op 3.5401 ms/op 1.09
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 52.701 ms/op 60.992 ms/op 0.86
getCommitteeAssignments - req 1 vs - 250000 vc 2.2922 ms/op 2.4611 ms/op 0.93
getCommitteeAssignments - req 100 vs - 250000 vc 3.5101 ms/op 3.6420 ms/op 0.96
getCommitteeAssignments - req 1000 vs - 250000 vc 4.7486 ms/op 3.9976 ms/op 1.19
findModifiedValidators - 10000 modified validators 428.93 ms/op 559.22 ms/op 0.77
findModifiedValidators - 1000 modified validators 320.06 ms/op 425.51 ms/op 0.75
findModifiedValidators - 100 modified validators 334.41 ms/op 397.22 ms/op 0.84
findModifiedValidators - 10 modified validators 315.75 ms/op 372.77 ms/op 0.85
findModifiedValidators - 1 modified validators 334.60 ms/op 394.92 ms/op 0.85
findModifiedValidators - no difference 315.67 ms/op 403.22 ms/op 0.78
compare ViewDUs 3.6241 s/op 4.3589 s/op 0.83
compare each validator Uint8Array 1.5635 s/op 1.9616 s/op 0.80
compare ViewDU to Uint8Array 1.0208 s/op 1.1229 s/op 0.91
migrate state 1000000 validators, 24 modified, 0 new 681.79 ms/op 807.40 ms/op 0.84
migrate state 1000000 validators, 1700 modified, 1000 new 1.0472 s/op 1.1144 s/op 0.94
migrate state 1000000 validators, 3400 modified, 2000 new 1.1388 s/op 1.3544 s/op 0.84
migrate state 1500000 validators, 24 modified, 0 new 754.00 ms/op 818.38 ms/op 0.92
migrate state 1500000 validators, 1700 modified, 1000 new 992.70 ms/op 1.1023 s/op 0.90
migrate state 1500000 validators, 3400 modified, 2000 new 1.2145 s/op 1.3207 s/op 0.92
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.3000 ns/op 4.0900 ns/op 1.05
state getBlockRootAtSlot - 250000 vs - 7PWei 425.00 ns/op 706.77 ns/op 0.60
computeProposers - vc 250000 5.7999 ms/op 9.2365 ms/op 0.63
computeEpochShuffling - vc 250000 70.222 ms/op 101.63 ms/op 0.69
getNextSyncCommittee - vc 250000 100.61 ms/op 154.61 ms/op 0.65
computeSigningRoot for AttestationData 18.153 us/op 27.064 us/op 0.67
hash AttestationData serialized data then Buffer.toString(base64) 1.2585 us/op 2.2756 us/op 0.55
toHexString serialized data 839.46 ns/op 1.0751 us/op 0.78
Buffer.toString(base64) 149.39 ns/op 217.78 ns/op 0.69

by benchmarkbot/action

@wemeetagain wemeetagain merged commit bf4969f into unstable Jan 15, 2024
14 of 15 checks passed
@wemeetagain wemeetagain deleted the nflaig/docs-yarn-scripts branch January 15, 2024 15:20
@matthewkeil
Copy link
Member

Retroactive LGTM! Good idea to include this 🚀

ensi321 pushed a commit to ensi321/lodestar that referenced this pull request Jan 22, 2024
@wemeetagain
Copy link
Member

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

4 participants