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: allow to serve docs from root folder #6571

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

jeluard
Copy link
Contributor

@jeluard jeluard commented Mar 20, 2024

Motivation

Allow to serve docs using yarn docs:serve

@jeluard jeluard requested a review from a team as a code owner March 20, 2024 14:04
@jeluard jeluard force-pushed the jeluard/docusaurus-add-root-scripts branch from d8fda02 to bdbf3f8 Compare March 20, 2024 14:04
@jeluard jeluard force-pushed the jeluard/docusaurus-add-root-scripts branch from bdbf3f8 to 5c5f5e6 Compare March 20, 2024 14:04
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Merging #6571 (f8b90de) into unstable (f9676f1) will increase coverage by 0.02%.
Report is 5 commits behind head on unstable.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #6571      +/-   ##
============================================
+ Coverage     61.46%   61.48%   +0.02%     
============================================
  Files           556      556              
  Lines         58850    58891      +41     
  Branches       1850     1854       +4     
============================================
+ Hits          36171    36212      +41     
  Misses        22638    22638              
  Partials         41       41              

Copy link
Contributor

github-actions bot commented Mar 20, 2024

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 4379844 Previous: da69a7b Ratio
isKnown best case - 1 super set check 302.00 ns/op 923.00 ns/op 0.33
Set add up to 64 items then delete first 1.7511 us/op 5.5908 us/op 0.31
Set add up to 256 items then delete middle 7.4366 us/op 22.690 us/op 0.33
forkChoice updateHead vc 600000 bc 64 eq 300000 11.810 ms/op 43.056 ms/op 0.27
Full benchmark results
Benchmark suite Current: 4379844 Previous: da69a7b Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 447.83 us/op 925.91 us/op 0.48
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 52.878 us/op 89.875 us/op 0.59
BLS verify - blst-native 1.0927 ms/op 1.2851 ms/op 0.85
BLS verifyMultipleSignatures 3 - blst-native 2.3459 ms/op 2.7153 ms/op 0.86
BLS verifyMultipleSignatures 8 - blst-native 5.1630 ms/op 6.0105 ms/op 0.86
BLS verifyMultipleSignatures 32 - blst-native 18.993 ms/op 22.071 ms/op 0.86
BLS verifyMultipleSignatures 64 - blst-native 37.283 ms/op 43.791 ms/op 0.85
BLS verifyMultipleSignatures 128 - blst-native 74.571 ms/op 86.071 ms/op 0.87
BLS deserializing 10000 signatures 780.69 ms/op 884.79 ms/op 0.88
BLS deserializing 100000 signatures 8.0470 s/op 9.3511 s/op 0.86
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.1191 ms/op 1.3724 ms/op 0.82
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.2680 ms/op 1.7394 ms/op 0.73
BLS verifyMultipleSignatures - same message - 32 - blst-native 1.9929 ms/op 2.5249 ms/op 0.79
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.6269 ms/op 4.8424 ms/op 0.75
BLS verifyMultipleSignatures - same message - 128 - blst-native 4.5421 ms/op 8.7341 ms/op 0.52
BLS aggregatePubkeys 32 - blst-native 20.453 us/op 29.180 us/op 0.70
BLS aggregatePubkeys 128 - blst-native 79.560 us/op 105.36 us/op 0.76
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 46.539 ms/op 82.209 ms/op 0.57
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 46.782 ms/op 85.257 ms/op 0.55
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 29.675 ms/op 50.437 ms/op 0.59
getSlashingsAndExits - default max 146.12 us/op 390.04 us/op 0.37
getSlashingsAndExits - 2k 1.2454 ms/op 886.89 us/op 1.40
proposeBlockBody type=full, size=empty 4.4501 ms/op 9.1241 ms/op 0.49
isKnown best case - 1 super set check 302.00 ns/op 923.00 ns/op 0.33
isKnown normal case - 2 super set checks 308.00 ns/op 851.00 ns/op 0.36
isKnown worse case - 16 super set checks 324.00 ns/op 861.00 ns/op 0.38
CheckpointStateCache - add get delete 6.3030 us/op 13.679 us/op 0.46
validate api signedAggregateAndProof - struct 2.2616 ms/op 3.1826 ms/op 0.71
validate gossip signedAggregateAndProof - struct 2.3141 ms/op 4.3477 ms/op 0.53
validate gossip attestation - vc 640000 1.1029 ms/op 1.6845 ms/op 0.65
batch validate gossip attestation - vc 640000 - chunk 32 133.15 us/op 183.45 us/op 0.73
batch validate gossip attestation - vc 640000 - chunk 64 117.71 us/op 157.78 us/op 0.75
batch validate gossip attestation - vc 640000 - chunk 128 111.59 us/op 151.34 us/op 0.74
batch validate gossip attestation - vc 640000 - chunk 256 109.22 us/op 151.08 us/op 0.72
pickEth1Vote - no votes 882.88 us/op 1.3799 ms/op 0.64
pickEth1Vote - max votes 6.3570 ms/op 13.675 ms/op 0.46
pickEth1Vote - Eth1Data hashTreeRoot value x2048 11.586 ms/op 20.529 ms/op 0.56
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 23.387 ms/op 26.041 ms/op 0.90
pickEth1Vote - Eth1Data fastSerialize value x2048 525.87 us/op 735.47 us/op 0.72
pickEth1Vote - Eth1Data fastSerialize tree x2048 7.9227 ms/op 5.2547 ms/op 1.51
bytes32 toHexString 670.00 ns/op 723.00 ns/op 0.93
bytes32 Buffer.toString(hex) 368.00 ns/op 330.00 ns/op 1.12
bytes32 Buffer.toString(hex) from Uint8Array 492.00 ns/op 557.00 ns/op 0.88
bytes32 Buffer.toString(hex) + 0x 343.00 ns/op 330.00 ns/op 1.04
Object access 1 prop 0.22000 ns/op 0.22200 ns/op 0.99
Map access 1 prop 0.18800 ns/op 0.15700 ns/op 1.20
Object get x1000 4.9910 ns/op 7.9370 ns/op 0.63
Map get x1000 0.82500 ns/op 0.87600 ns/op 0.94
Object set x1000 30.531 ns/op 77.089 ns/op 0.40
Map set x1000 21.164 ns/op 55.881 ns/op 0.38
Return object 10000 times 0.23080 ns/op 0.25460 ns/op 0.91
Throw Error 10000 times 2.7236 us/op 4.0647 us/op 0.67
fastMsgIdFn sha256 / 200 bytes 2.0670 us/op 3.4650 us/op 0.60
fastMsgIdFn h32 xxhash / 200 bytes 366.00 ns/op 364.00 ns/op 1.01
fastMsgIdFn h64 xxhash / 200 bytes 398.00 ns/op 417.00 ns/op 0.95
fastMsgIdFn sha256 / 1000 bytes 6.3270 us/op 11.931 us/op 0.53
fastMsgIdFn h32 xxhash / 1000 bytes 506.00 ns/op 496.00 ns/op 1.02
fastMsgIdFn h64 xxhash / 1000 bytes 465.00 ns/op 490.00 ns/op 0.95
fastMsgIdFn sha256 / 10000 bytes 52.134 us/op 106.03 us/op 0.49
fastMsgIdFn h32 xxhash / 10000 bytes 1.8740 us/op 2.0610 us/op 0.91
fastMsgIdFn h64 xxhash / 10000 bytes 1.2800 us/op 1.4170 us/op 0.90
send data - 1000 256B messages 14.143 ms/op 18.242 ms/op 0.78
send data - 1000 512B messages 17.325 ms/op 31.391 ms/op 0.55
send data - 1000 1024B messages 25.056 ms/op 42.453 ms/op 0.59
send data - 1000 1200B messages 32.189 ms/op 51.213 ms/op 0.63
send data - 1000 2048B messages 36.478 ms/op 58.195 ms/op 0.63
send data - 1000 4096B messages 33.506 ms/op 51.588 ms/op 0.65
send data - 1000 16384B messages 84.685 ms/op 141.06 ms/op 0.60
send data - 1000 65536B messages 435.41 ms/op 543.04 ms/op 0.80
enrSubnets - fastDeserialize 64 bits 959.00 ns/op 1.7810 us/op 0.54
enrSubnets - ssz BitVector 64 bits 413.00 ns/op 598.00 ns/op 0.69
enrSubnets - fastDeserialize 4 bits 203.00 ns/op 256.00 ns/op 0.79
enrSubnets - ssz BitVector 4 bits 415.00 ns/op 617.00 ns/op 0.67
prioritizePeers score -10:0 att 32-0.1 sync 2-0 70.152 us/op 155.19 us/op 0.45
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 77.944 us/op 157.11 us/op 0.50
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 110.94 us/op 232.29 us/op 0.48
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 196.84 us/op 349.42 us/op 0.56
prioritizePeers score 0:0 att 64-1 sync 4-1 205.12 us/op 473.72 us/op 0.43
array of 16000 items push then shift 1.2027 us/op 1.8703 us/op 0.64
LinkedList of 16000 items push then shift 6.7490 ns/op 11.614 ns/op 0.58
array of 16000 items push then pop 80.233 ns/op 135.03 ns/op 0.59
LinkedList of 16000 items push then pop 5.6490 ns/op 9.7360 ns/op 0.58
array of 24000 items push then shift 1.8077 us/op 2.9282 us/op 0.62
LinkedList of 24000 items push then shift 7.4850 ns/op 12.195 ns/op 0.61
array of 24000 items push then pop 98.554 ns/op 200.42 ns/op 0.49
LinkedList of 24000 items push then pop 5.5610 ns/op 9.6030 ns/op 0.58
intersect bitArray bitLen 8 4.6030 ns/op 6.9560 ns/op 0.66
intersect array and set length 8 48.829 ns/op 100.15 ns/op 0.49
intersect bitArray bitLen 128 28.619 ns/op 39.075 ns/op 0.73
intersect array and set length 128 687.79 ns/op 1.2572 us/op 0.55
bitArray.getTrueBitIndexes() bitLen 128 1.3710 us/op 2.0480 us/op 0.67
bitArray.getTrueBitIndexes() bitLen 248 2.1230 us/op 3.4180 us/op 0.62
bitArray.getTrueBitIndexes() bitLen 512 3.8250 us/op 8.2380 us/op 0.46
Buffer.concat 32 items 839.00 ns/op 1.1040 us/op 0.76
Uint8Array.set 32 items 1.5550 us/op 2.4160 us/op 0.64
Set add up to 64 items then delete first 1.7511 us/op 5.5908 us/op 0.31
OrderedSet add up to 64 items then delete first 2.6913 us/op 7.9383 us/op 0.34
Set add up to 64 items then delete last 1.9830 us/op 5.8907 us/op 0.34
OrderedSet add up to 64 items then delete last 2.9683 us/op 7.8657 us/op 0.38
Set add up to 64 items then delete middle 2.0296 us/op 5.8495 us/op 0.35
OrderedSet add up to 64 items then delete middle 4.3889 us/op 8.8231 us/op 0.50
Set add up to 128 items then delete first 4.0060 us/op 11.196 us/op 0.36
OrderedSet add up to 128 items then delete first 6.1975 us/op 15.919 us/op 0.39
Set add up to 128 items then delete last 3.9264 us/op 11.433 us/op 0.34
OrderedSet add up to 128 items then delete last 6.6078 us/op 15.408 us/op 0.43
Set add up to 128 items then delete middle 3.8640 us/op 11.195 us/op 0.35
OrderedSet add up to 128 items then delete middle 11.169 us/op 21.541 us/op 0.52
Set add up to 256 items then delete first 7.8110 us/op 22.978 us/op 0.34
OrderedSet add up to 256 items then delete first 12.424 us/op 32.793 us/op 0.38
Set add up to 256 items then delete last 7.8546 us/op 22.787 us/op 0.34
OrderedSet add up to 256 items then delete last 11.512 us/op 31.103 us/op 0.37
Set add up to 256 items then delete middle 7.4366 us/op 22.690 us/op 0.33
OrderedSet add up to 256 items then delete middle 31.183 us/op 54.070 us/op 0.58
transfer serialized Status (84 B) 1.3640 us/op 2.1560 us/op 0.63
copy serialized Status (84 B) 1.1240 us/op 1.7300 us/op 0.65
transfer serialized SignedVoluntaryExit (112 B) 1.4350 us/op 2.2990 us/op 0.62
copy serialized SignedVoluntaryExit (112 B) 1.1730 us/op 1.8180 us/op 0.65
transfer serialized ProposerSlashing (416 B) 2.0010 us/op 3.1050 us/op 0.64
copy serialized ProposerSlashing (416 B) 2.1640 us/op 3.1550 us/op 0.69
transfer serialized Attestation (485 B) 2.4810 us/op 2.9080 us/op 0.85
copy serialized Attestation (485 B) 2.4400 us/op 2.6360 us/op 0.93
transfer serialized AttesterSlashing (33232 B) 2.4050 us/op 3.0670 us/op 0.78
copy serialized AttesterSlashing (33232 B) 4.7900 us/op 11.218 us/op 0.43
transfer serialized Small SignedBeaconBlock (128000 B) 1.9510 us/op 3.1960 us/op 0.61
copy serialized Small SignedBeaconBlock (128000 B) 9.1350 us/op 33.894 us/op 0.27
transfer serialized Avg SignedBeaconBlock (200000 B) 2.4820 us/op 3.8080 us/op 0.65
copy serialized Avg SignedBeaconBlock (200000 B) 14.443 us/op 54.642 us/op 0.26
transfer serialized BlobsSidecar (524380 B) 2.7990 us/op 4.7600 us/op 0.59
copy serialized BlobsSidecar (524380 B) 118.60 us/op 173.16 us/op 0.68
transfer serialized Big SignedBeaconBlock (1000000 B) 2.6490 us/op 6.2550 us/op 0.42
copy serialized Big SignedBeaconBlock (1000000 B) 150.05 us/op 330.13 us/op 0.45
pass gossip attestations to forkchoice per slot 2.7904 ms/op 4.5634 ms/op 0.61
forkChoice updateHead vc 100000 bc 64 eq 0 466.66 us/op 769.91 us/op 0.61
forkChoice updateHead vc 600000 bc 64 eq 0 2.5914 ms/op 5.8102 ms/op 0.45
forkChoice updateHead vc 1000000 bc 64 eq 0 4.4919 ms/op 7.8093 ms/op 0.58
forkChoice updateHead vc 600000 bc 320 eq 0 3.1312 ms/op 4.8526 ms/op 0.65
forkChoice updateHead vc 600000 bc 1200 eq 0 2.8065 ms/op 4.8337 ms/op 0.58
forkChoice updateHead vc 600000 bc 7200 eq 0 3.9467 ms/op 6.5253 ms/op 0.60
forkChoice updateHead vc 600000 bc 64 eq 1000 9.7380 ms/op 11.758 ms/op 0.83
forkChoice updateHead vc 600000 bc 64 eq 10000 9.8455 ms/op 12.687 ms/op 0.78
forkChoice updateHead vc 600000 bc 64 eq 300000 11.810 ms/op 43.056 ms/op 0.27
computeDeltas 500000 validators 300 proto nodes 3.2951 ms/op 7.5841 ms/op 0.43
computeDeltas 500000 validators 1200 proto nodes 3.1703 ms/op 7.4468 ms/op 0.43
computeDeltas 500000 validators 7200 proto nodes 3.3299 ms/op 6.8245 ms/op 0.49
computeDeltas 750000 validators 300 proto nodes 5.0069 ms/op 10.159 ms/op 0.49
computeDeltas 750000 validators 1200 proto nodes 4.8582 ms/op 10.140 ms/op 0.48
computeDeltas 750000 validators 7200 proto nodes 5.1370 ms/op 10.015 ms/op 0.51
computeDeltas 1400000 validators 300 proto nodes 9.9167 ms/op 20.137 ms/op 0.49
computeDeltas 1400000 validators 1200 proto nodes 10.062 ms/op 21.789 ms/op 0.46
computeDeltas 1400000 validators 7200 proto nodes 9.9919 ms/op 21.956 ms/op 0.46
computeDeltas 2100000 validators 300 proto nodes 13.863 ms/op 29.650 ms/op 0.47
computeDeltas 2100000 validators 1200 proto nodes 13.480 ms/op 30.838 ms/op 0.44
computeDeltas 2100000 validators 7200 proto nodes 13.570 ms/op 30.278 ms/op 0.45
altair processAttestation - 250000 vs - 7PWei normalcase 2.0616 ms/op 2.7343 ms/op 0.75
altair processAttestation - 250000 vs - 7PWei worstcase 2.5772 ms/op 3.4666 ms/op 0.74
altair processAttestation - setStatus - 1/6 committees join 112.66 us/op 145.51 us/op 0.77
altair processAttestation - setStatus - 1/3 committees join 204.25 us/op 291.32 us/op 0.70
altair processAttestation - setStatus - 1/2 committees join 293.07 us/op 452.34 us/op 0.65
altair processAttestation - setStatus - 2/3 committees join 386.72 us/op 550.14 us/op 0.70
altair processAttestation - setStatus - 4/5 committees join 514.44 us/op 733.94 us/op 0.70
altair processAttestation - setStatus - 100% committees join 661.93 us/op 917.61 us/op 0.72
altair processBlock - 250000 vs - 7PWei normalcase 11.447 ms/op 11.223 ms/op 1.02
altair processBlock - 250000 vs - 7PWei normalcase hashState 44.297 ms/op 33.436 ms/op 1.32
altair processBlock - 250000 vs - 7PWei worstcase 38.298 ms/op 40.333 ms/op 0.95
altair processBlock - 250000 vs - 7PWei worstcase hashState 86.497 ms/op 101.98 ms/op 0.85
phase0 processBlock - 250000 vs - 7PWei normalcase 2.8906 ms/op 4.0602 ms/op 0.71
phase0 processBlock - 250000 vs - 7PWei worstcase 27.710 ms/op 36.250 ms/op 0.76
altair processEth1Data - 250000 vs - 7PWei normalcase 413.67 us/op 781.01 us/op 0.53
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 20.624 us/op 23.457 us/op 0.88
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 68.044 us/op 83.155 us/op 0.82
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 28.818 us/op 25.002 us/op 1.15
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 17.210 us/op 16.676 us/op 1.03
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 188.31 us/op 203.68 us/op 0.92
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.3549 ms/op 1.7918 ms/op 0.76
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.8206 ms/op 2.0855 ms/op 0.87
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.3224 ms/op 1.9908 ms/op 0.66
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.9393 ms/op 4.2237 ms/op 1.17
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.5094 ms/op 2.7097 ms/op 0.93
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 8.0212 ms/op 5.9171 ms/op 1.36
Tree 40 250000 create 269.22 ms/op 428.41 ms/op 0.63
Tree 40 250000 get(125000) 131.00 ns/op 217.05 ns/op 0.60
Tree 40 250000 set(125000) 987.63 ns/op 1.1512 us/op 0.86
Tree 40 250000 toArray() 29.258 ms/op 25.543 ms/op 1.15
Tree 40 250000 iterate all - toArray() + loop 28.220 ms/op 30.290 ms/op 0.93
Tree 40 250000 iterate all - get(i) 66.940 ms/op 82.728 ms/op 0.81
MutableVector 250000 create 20.630 ms/op 18.417 ms/op 1.12
MutableVector 250000 get(125000) 6.4730 ns/op 8.1190 ns/op 0.80
MutableVector 250000 set(125000) 568.55 ns/op 314.36 ns/op 1.81
MutableVector 250000 toArray() 4.8028 ms/op 4.8398 ms/op 0.99
MutableVector 250000 iterate all - toArray() + loop 4.3099 ms/op 4.7212 ms/op 0.91
MutableVector 250000 iterate all - get(i) 1.3788 ms/op 1.5577 ms/op 0.89
Array 250000 create 3.9050 ms/op 3.7349 ms/op 1.05
Array 250000 clone - spread 3.2347 ms/op 1.3235 ms/op 2.44
Array 250000 get(125000) 2.6590 ns/op 1.1150 ns/op 2.38
Array 250000 set(125000) 2.9760 ns/op 5.0210 ns/op 0.59
Array 250000 iterate all - loop 163.92 us/op 168.76 us/op 0.97
effectiveBalanceIncrements clone Uint8Array 300000 59.294 us/op 36.325 us/op 1.63
effectiveBalanceIncrements clone MutableVector 300000 1.6790 us/op 378.00 ns/op 4.44
effectiveBalanceIncrements rw all Uint8Array 300000 187.57 us/op 201.49 us/op 0.93
effectiveBalanceIncrements rw all MutableVector 300000 146.10 ms/op 97.243 ms/op 1.50
phase0 afterProcessEpoch - 250000 vs - 7PWei 78.906 ms/op 118.63 ms/op 0.67
phase0 beforeProcessEpoch - 250000 vs - 7PWei 53.766 ms/op 56.910 ms/op 0.94
altair processEpoch - mainnet_e81889 423.03 ms/op 518.42 ms/op 0.82
mainnet_e81889 - altair beforeProcessEpoch 72.911 ms/op 96.138 ms/op 0.76
mainnet_e81889 - altair processJustificationAndFinalization 15.448 us/op 16.927 us/op 0.91
mainnet_e81889 - altair processInactivityUpdates 5.2121 ms/op 6.5331 ms/op 0.80
mainnet_e81889 - altair processRewardsAndPenalties 57.151 ms/op 81.269 ms/op 0.70
mainnet_e81889 - altair processRegistryUpdates 1.2420 us/op 2.2640 us/op 0.55
mainnet_e81889 - altair processSlashings 516.00 ns/op 603.00 ns/op 0.86
mainnet_e81889 - altair processEth1DataReset 741.00 ns/op 793.00 ns/op 0.93
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.7376 ms/op 1.3618 ms/op 1.28
mainnet_e81889 - altair processSlashingsReset 3.4620 us/op 4.8700 us/op 0.71
mainnet_e81889 - altair processRandaoMixesReset 3.5560 us/op 6.2340 us/op 0.57
mainnet_e81889 - altair processHistoricalRootsUpdate 720.00 ns/op 746.00 ns/op 0.97
mainnet_e81889 - altair processParticipationFlagUpdates 1.2810 us/op 2.7080 us/op 0.47
mainnet_e81889 - altair processSyncCommitteeUpdates 656.00 ns/op 734.00 ns/op 0.89
mainnet_e81889 - altair afterProcessEpoch 80.425 ms/op 123.55 ms/op 0.65
capella processEpoch - mainnet_e217614 1.9027 s/op 2.0505 s/op 0.93
mainnet_e217614 - capella beforeProcessEpoch 497.96 ms/op 492.43 ms/op 1.01
mainnet_e217614 - capella processJustificationAndFinalization 14.537 us/op 16.041 us/op 0.91
mainnet_e217614 - capella processInactivityUpdates 14.959 ms/op 19.057 ms/op 0.78
mainnet_e217614 - capella processRewardsAndPenalties 493.34 ms/op 563.88 ms/op 0.87
mainnet_e217614 - capella processRegistryUpdates 19.154 us/op 22.012 us/op 0.87
mainnet_e217614 - capella processSlashings 533.00 ns/op 533.00 ns/op 1.00
mainnet_e217614 - capella processEth1DataReset 709.00 ns/op 647.00 ns/op 1.10
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.4063 ms/op 17.064 ms/op 0.20
mainnet_e217614 - capella processSlashingsReset 1.7570 us/op 3.7700 us/op 0.47
mainnet_e217614 - capella processRandaoMixesReset 4.4350 us/op 4.5330 us/op 0.98
mainnet_e217614 - capella processHistoricalRootsUpdate 787.00 ns/op 837.00 ns/op 0.94
mainnet_e217614 - capella processParticipationFlagUpdates 2.4030 us/op 2.2520 us/op 1.07
mainnet_e217614 - capella afterProcessEpoch 231.51 ms/op 363.75 ms/op 0.64
phase0 processEpoch - mainnet_e58758 438.16 ms/op 538.45 ms/op 0.81
mainnet_e58758 - phase0 beforeProcessEpoch 116.68 ms/op 165.94 ms/op 0.70
mainnet_e58758 - phase0 processJustificationAndFinalization 12.411 us/op 22.815 us/op 0.54
mainnet_e58758 - phase0 processRewardsAndPenalties 66.119 ms/op 72.090 ms/op 0.92
mainnet_e58758 - phase0 processRegistryUpdates 9.7740 us/op 13.795 us/op 0.71
mainnet_e58758 - phase0 processSlashings 571.00 ns/op 656.00 ns/op 0.87
mainnet_e58758 - phase0 processEth1DataReset 521.00 ns/op 861.00 ns/op 0.61
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.4311 ms/op 1.1790 ms/op 1.21
mainnet_e58758 - phase0 processSlashingsReset 2.8040 us/op 3.3360 us/op 0.84
mainnet_e58758 - phase0 processRandaoMixesReset 3.8170 us/op 5.0490 us/op 0.76
mainnet_e58758 - phase0 processHistoricalRootsUpdate 520.00 ns/op 853.00 ns/op 0.61
mainnet_e58758 - phase0 processParticipationRecordUpdates 2.6560 us/op 5.2070 us/op 0.51
mainnet_e58758 - phase0 afterProcessEpoch 69.572 ms/op 104.16 ms/op 0.67
phase0 processEffectiveBalanceUpdates - 250000 normalcase 977.03 us/op 1.5126 ms/op 0.65
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.1400 ms/op 1.8918 ms/op 0.60
altair processInactivityUpdates - 250000 normalcase 25.340 ms/op 47.857 ms/op 0.53
altair processInactivityUpdates - 250000 worstcase 25.472 ms/op 35.980 ms/op 0.71
phase0 processRegistryUpdates - 250000 normalcase 8.6910 us/op 12.998 us/op 0.67
phase0 processRegistryUpdates - 250000 badcase_full_deposits 461.06 us/op 473.59 us/op 0.97
phase0 processRegistryUpdates - 250000 worstcase 0.5 114.05 ms/op 174.84 ms/op 0.65
altair processRewardsAndPenalties - 250000 normalcase 52.764 ms/op 85.201 ms/op 0.62
altair processRewardsAndPenalties - 250000 worstcase 53.130 ms/op 82.639 ms/op 0.64
phase0 getAttestationDeltas - 250000 normalcase 5.7099 ms/op 10.713 ms/op 0.53
phase0 getAttestationDeltas - 250000 worstcase 5.8862 ms/op 12.338 ms/op 0.48
phase0 processSlashings - 250000 worstcase 87.886 us/op 123.89 us/op 0.71
altair processSyncCommitteeUpdates - 250000 106.54 ms/op 171.39 ms/op 0.62
BeaconState.hashTreeRoot - No change 377.00 ns/op 874.00 ns/op 0.43
BeaconState.hashTreeRoot - 1 full validator 87.656 us/op 152.65 us/op 0.57
BeaconState.hashTreeRoot - 32 full validator 985.33 us/op 1.4873 ms/op 0.66
BeaconState.hashTreeRoot - 512 full validator 9.7017 ms/op 18.281 ms/op 0.53
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 102.22 us/op 220.13 us/op 0.46
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.3849 ms/op 2.9338 ms/op 0.47
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 17.528 ms/op 40.600 ms/op 0.43
BeaconState.hashTreeRoot - 1 balances 82.342 us/op 161.00 us/op 0.51
BeaconState.hashTreeRoot - 32 balances 735.63 us/op 1.7066 ms/op 0.43
BeaconState.hashTreeRoot - 512 balances 7.0035 ms/op 11.352 ms/op 0.62
BeaconState.hashTreeRoot - 250000 balances 139.99 ms/op 228.71 ms/op 0.61
aggregationBits - 2048 els - zipIndexesInBitList 19.969 us/op 36.745 us/op 0.54
byteArrayEquals 32 63.553 ns/op 80.102 ns/op 0.79
Buffer.compare 32 37.578 ns/op 68.707 ns/op 0.55
byteArrayEquals 1024 1.7191 us/op 2.1175 us/op 0.81
Buffer.compare 1024 43.593 ns/op 71.900 ns/op 0.61
byteArrayEquals 16384 26.353 us/op 33.522 us/op 0.79
Buffer.compare 16384 206.81 ns/op 252.82 ns/op 0.82
byteArrayEquals 123687377 204.36 ms/op 252.64 ms/op 0.81
Buffer.compare 123687377 3.9904 ms/op 9.4519 ms/op 0.42
byteArrayEquals 32 - diff last byte 61.694 ns/op 74.837 ns/op 0.82
Buffer.compare 32 - diff last byte 37.422 ns/op 68.540 ns/op 0.55
byteArrayEquals 1024 - diff last byte 1.7146 us/op 2.0768 us/op 0.83
Buffer.compare 1024 - diff last byte 44.368 ns/op 73.122 ns/op 0.61
byteArrayEquals 16384 - diff last byte 27.040 us/op 32.853 us/op 0.82
Buffer.compare 16384 - diff last byte 219.90 ns/op 277.93 ns/op 0.79
byteArrayEquals 123687377 - diff last byte 203.88 ms/op 262.67 ms/op 0.78
Buffer.compare 123687377 - diff last byte 4.1121 ms/op 11.613 ms/op 0.35
byteArrayEquals 32 - random bytes 4.5180 ns/op 6.7380 ns/op 0.67
Buffer.compare 32 - random bytes 39.089 ns/op 63.979 ns/op 0.61
byteArrayEquals 1024 - random bytes 4.1570 ns/op 6.8170 ns/op 0.61
Buffer.compare 1024 - random bytes 33.397 ns/op 64.811 ns/op 0.52
byteArrayEquals 16384 - random bytes 4.0610 ns/op 6.4380 ns/op 0.63
Buffer.compare 16384 - random bytes 33.148 ns/op 62.407 ns/op 0.53
byteArrayEquals 123687377 - random bytes 7.0000 ns/op 9.6700 ns/op 0.72
Buffer.compare 123687377 - random bytes 36.070 ns/op 76.790 ns/op 0.47
regular array get 100000 times 38.060 us/op 46.657 us/op 0.82
wrappedArray get 100000 times 37.151 us/op 47.426 us/op 0.78
arrayWithProxy get 100000 times 9.8747 ms/op 14.419 ms/op 0.68
ssz.Root.equals 53.752 ns/op 55.372 ns/op 0.97
byteArrayEquals 52.661 ns/op 56.439 ns/op 0.93
Buffer.compare 10.036 ns/op 12.916 ns/op 0.78
shuffle list - 16384 els 5.7504 ms/op 8.8212 ms/op 0.65
shuffle list - 250000 els 84.767 ms/op 129.49 ms/op 0.65
processSlot - 1 slots 16.906 us/op 18.682 us/op 0.90
processSlot - 32 slots 3.1202 ms/op 3.6555 ms/op 0.85
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 57.885 ms/op 68.480 ms/op 0.85
getCommitteeAssignments - req 1 vs - 250000 vc 2.1798 ms/op 2.7991 ms/op 0.78
getCommitteeAssignments - req 100 vs - 250000 vc 3.2189 ms/op 4.1178 ms/op 0.78
getCommitteeAssignments - req 1000 vs - 250000 vc 3.7615 ms/op 4.5470 ms/op 0.83
findModifiedValidators - 10000 modified validators 426.19 ms/op 652.90 ms/op 0.65
findModifiedValidators - 1000 modified validators 327.61 ms/op 509.60 ms/op 0.64
findModifiedValidators - 100 modified validators 293.32 ms/op 476.05 ms/op 0.62
findModifiedValidators - 10 modified validators 306.60 ms/op 499.28 ms/op 0.61
findModifiedValidators - 1 modified validators 279.20 ms/op 482.18 ms/op 0.58
findModifiedValidators - no difference 293.85 ms/op 505.87 ms/op 0.58
compare ViewDUs 3.8007 s/op 4.8091 s/op 0.79
compare each validator Uint8Array 1.6558 s/op 1.6469 s/op 1.01
compare ViewDU to Uint8Array 838.25 ms/op 1.2793 s/op 0.66
migrate state 1000000 validators, 24 modified, 0 new 671.06 ms/op 825.85 ms/op 0.81
migrate state 1000000 validators, 1700 modified, 1000 new 901.04 ms/op 1.1748 s/op 0.77
migrate state 1000000 validators, 3400 modified, 2000 new 1.0774 s/op 1.5347 s/op 0.70
migrate state 1500000 validators, 24 modified, 0 new 652.59 ms/op 846.02 ms/op 0.77
migrate state 1500000 validators, 1700 modified, 1000 new 936.45 ms/op 1.1539 s/op 0.81
migrate state 1500000 validators, 3400 modified, 2000 new 1.2267 s/op 1.3485 s/op 0.91
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.8700 ns/op 4.7500 ns/op 1.03
state getBlockRootAtSlot - 250000 vs - 7PWei 562.09 ns/op 759.08 ns/op 0.74
computeProposers - vc 250000 7.2515 ms/op 9.5142 ms/op 0.76
computeEpochShuffling - vc 250000 87.566 ms/op 128.74 ms/op 0.68
getNextSyncCommittee - vc 250000 106.82 ms/op 169.51 ms/op 0.63
computeSigningRoot for AttestationData 25.612 us/op 26.812 us/op 0.96
hash AttestationData serialized data then Buffer.toString(base64) 1.2971 us/op 2.3356 us/op 0.56
toHexString serialized data 857.73 ns/op 1.1429 us/op 0.75
Buffer.toString(base64) 159.38 ns/op 250.41 ns/op 0.64

by benchmarkbot/action

nflaig
nflaig previously approved these changes Mar 20, 2024
@@ -21,6 +21,7 @@
"check-types": "lerna run check-types",
"check-spelling": "pyspelling -c .pyspelling.yml -v",
"docs:build": "lerna run check-readme && lerna run docs:build && ./scripts/prepare-docs.sh",
"docs:serve": "yarn --cwd docs install && yarn --cwd docs start",
Copy link
Member

Choose a reason for hiding this comment

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

yarn --cwd docs install will this part be a no-op if dependencies are already installed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, it will be almost instant and no-op (success Already up-to-date.). I used this approach to have a single command to serve the docs, even the first time.

CONTRIBUTING.md Outdated Show resolved Hide resolved
Co-authored-by: Nico Flaig <nflaig@protonmail.com>
Copy link
Contributor

@ensi321 ensi321 left a comment

Choose a reason for hiding this comment

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

Looks good! Simple change that drastically improves dev experience

@jeluard jeluard requested a review from nflaig March 21, 2024 08:07
@jeluard jeluard merged commit 490322c into unstable Mar 21, 2024
18 of 20 checks passed
@jeluard jeluard deleted the jeluard/docusaurus-add-root-scripts branch March 21, 2024 16:36
@wemeetagain
Copy link
Member

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