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

feat: add workflow_dispatch to docs #6235

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

matthewkeil
Copy link
Member

Motivation

Adds a button to the docs workflow to manually deploy the docs website from any branch. The workflow will still run on pushes to stable but it also can now be run to deploy a different branch of the docs. Any branch, tag, or commit will work and the workflow will validate that its a validate ref before running the deploy process. The default was set as unstable as I assumed we would want to PR the docs updates before deploying them but any branch will work.

Note: The workflow will still run on stable automatically to keep the docs in sync with our releases as they are released. We will need to be cognizant of this if there are changes to the docs that need to get merged with releases as we normally do so should not be a big hurdle but I wanted to make sure that is noted here.

Note: There is a default dropdown provided for "workflow_dispatch" events and the dropdown will specify the version of the workflow that is being run. The second input field is the one that we want to use at deploy time. It will select the ref for the docs that will be deployed.

Screenshot 2023-12-24 at 10 45 40 PM

Testing

Was developed with a bit of help from chatgpt to verify that the syntax was correct but we may need to run once to triple check there are no bugs.

@matthewkeil matthewkeil requested a review from a team as a code owner December 25, 2023 02:52
Copy link

codecov bot commented Dec 25, 2023

Codecov Report

Merging #6235 (ee7032e) into unstable (61cf1a8) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6235   +/-   ##
=========================================
  Coverage     80.83%   80.83%           
=========================================
  Files           185      185           
  Lines         17986    17986           
  Branches       1082     1082           
=========================================
  Hits          14539    14539           
  Misses         3421     3421           
  Partials         26       26           

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: dc64cbf Previous: 61cf1a8 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 714.18 us/op 742.51 us/op 0.96
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 79.756 us/op 83.202 us/op 0.96
BLS verify - blst-native 1.2692 ms/op 1.2916 ms/op 0.98
BLS verifyMultipleSignatures 3 - blst-native 2.6642 ms/op 2.7098 ms/op 0.98
BLS verifyMultipleSignatures 8 - blst-native 5.8492 ms/op 5.9470 ms/op 0.98
BLS verifyMultipleSignatures 32 - blst-native 21.401 ms/op 21.868 ms/op 0.98
BLS verifyMultipleSignatures 64 - blst-native 42.132 ms/op 43.092 ms/op 0.98
BLS verifyMultipleSignatures 128 - blst-native 83.597 ms/op 85.271 ms/op 0.98
BLS deserializing 10000 signatures 908.58 ms/op 926.05 ms/op 0.98
BLS deserializing 100000 signatures 9.1797 s/op 9.2364 s/op 0.99
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2884 ms/op 1.2979 ms/op 0.99
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.6078 ms/op 1.5787 ms/op 1.02
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.8313 ms/op 2.8037 ms/op 1.01
BLS verifyMultipleSignatures - same message - 64 - blst-native 4.3223 ms/op 4.1494 ms/op 1.04
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.5453 ms/op 7.0970 ms/op 0.78
BLS aggregatePubkeys 32 - blst-native 25.078 us/op 26.028 us/op 0.96
BLS aggregatePubkeys 128 - blst-native 96.976 us/op 97.411 us/op 1.00
getAttestationsForBlock 50.769 ms/op 42.102 ms/op 1.21
getSlashingsAndExits - default max 176.72 us/op 137.60 us/op 1.28
getSlashingsAndExits - 2k 360.66 us/op 387.29 us/op 0.93
proposeBlockBody type=full, size=empty 5.8671 ms/op 5.1376 ms/op 1.14
isKnown best case - 1 super set check 310.00 ns/op 300.00 ns/op 1.03
isKnown normal case - 2 super set checks 302.00 ns/op 298.00 ns/op 1.01
isKnown worse case - 16 super set checks 299.00 ns/op 295.00 ns/op 1.01
CheckpointStateCache - add get delete 5.1000 us/op 4.9950 us/op 1.02
validate api signedAggregateAndProof - struct 3.0035 ms/op 2.7412 ms/op 1.10
validate gossip signedAggregateAndProof - struct 2.7686 ms/op 2.7427 ms/op 1.01
validate gossip attestation - vc 640000 1.3460 ms/op 1.3377 ms/op 1.01
batch validate gossip attestation - vc 640000 - chunk 32 161.93 us/op 158.14 us/op 1.02
batch validate gossip attestation - vc 640000 - chunk 64 141.19 us/op 140.19 us/op 1.01
batch validate gossip attestation - vc 640000 - chunk 128 136.52 us/op 129.45 us/op 1.05
batch validate gossip attestation - vc 640000 - chunk 256 131.27 us/op 126.10 us/op 1.04
pickEth1Vote - no votes 1.1464 ms/op 1.1660 ms/op 0.98
pickEth1Vote - max votes 13.810 ms/op 9.8745 ms/op 1.40
pickEth1Vote - Eth1Data hashTreeRoot value x2048 19.963 ms/op 20.884 ms/op 0.96
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 30.458 ms/op 28.761 ms/op 1.06
pickEth1Vote - Eth1Data fastSerialize value x2048 601.27 us/op 664.99 us/op 0.90
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.7967 ms/op 6.9981 ms/op 0.97
bytes32 toHexString 502.00 ns/op 508.00 ns/op 0.99
bytes32 Buffer.toString(hex) 289.00 ns/op 285.00 ns/op 1.01
bytes32 Buffer.toString(hex) from Uint8Array 430.00 ns/op 417.00 ns/op 1.03
bytes32 Buffer.toString(hex) + 0x 279.00 ns/op 292.00 ns/op 0.96
Object access 1 prop 0.15600 ns/op 0.16400 ns/op 0.95
Map access 1 prop 0.14000 ns/op 0.14600 ns/op 0.96
Object get x1000 7.4070 ns/op 7.1930 ns/op 1.03
Map get x1000 0.85500 ns/op 0.75800 ns/op 1.13
Object set x1000 52.889 ns/op 53.193 ns/op 0.99
Map set x1000 40.905 ns/op 39.913 ns/op 1.02
Return object 10000 times 0.24210 ns/op 0.23670 ns/op 1.02
Throw Error 10000 times 3.8821 us/op 3.8538 us/op 1.01
fastMsgIdFn sha256 / 200 bytes 3.3330 us/op 3.2380 us/op 1.03
fastMsgIdFn h32 xxhash / 200 bytes 276.00 ns/op 282.00 ns/op 0.98
fastMsgIdFn h64 xxhash / 200 bytes 334.00 ns/op 455.00 ns/op 0.73
fastMsgIdFn sha256 / 1000 bytes 11.363 us/op 11.333 us/op 1.00
fastMsgIdFn h32 xxhash / 1000 bytes 401.00 ns/op 470.00 ns/op 0.85
fastMsgIdFn h64 xxhash / 1000 bytes 412.00 ns/op 454.00 ns/op 0.91
fastMsgIdFn sha256 / 10000 bytes 104.17 us/op 101.96 us/op 1.02
fastMsgIdFn h32 xxhash / 10000 bytes 1.9630 us/op 1.9450 us/op 1.01
fastMsgIdFn h64 xxhash / 10000 bytes 1.3570 us/op 1.3280 us/op 1.02
send data - 1000 256B messages 18.423 ms/op 17.737 ms/op 1.04
send data - 1000 512B messages 25.397 ms/op 25.776 ms/op 0.99
send data - 1000 1024B messages 40.676 ms/op 39.561 ms/op 1.03
send data - 1000 1200B messages 35.873 ms/op 38.307 ms/op 0.94
send data - 1000 2048B messages 42.879 ms/op 44.034 ms/op 0.97
send data - 1000 4096B messages 41.646 ms/op 40.539 ms/op 1.03
send data - 1000 16384B messages 122.17 ms/op 116.22 ms/op 1.05
send data - 1000 65536B messages 467.39 ms/op 468.96 ms/op 1.00
enrSubnets - fastDeserialize 64 bits 1.3740 us/op 1.2340 us/op 1.11
enrSubnets - ssz BitVector 64 bits 435.00 ns/op 412.00 ns/op 1.06
enrSubnets - fastDeserialize 4 bits 178.00 ns/op 164.00 ns/op 1.09
enrSubnets - ssz BitVector 4 bits 432.00 ns/op 413.00 ns/op 1.05
prioritizePeers score -10:0 att 32-0.1 sync 2-0 107.99 us/op 101.22 us/op 1.07
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 123.63 us/op 123.14 us/op 1.00
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 160.33 us/op 157.73 us/op 1.02
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 298.16 us/op 283.74 us/op 1.05
prioritizePeers score 0:0 att 64-1 sync 4-1 349.79 us/op 335.56 us/op 1.04
array of 16000 items push then shift 1.5937 us/op 1.6047 us/op 0.99
LinkedList of 16000 items push then shift 9.0040 ns/op 8.8490 ns/op 1.02
array of 16000 items push then pop 63.364 ns/op 66.981 ns/op 0.95
LinkedList of 16000 items push then pop 8.9310 ns/op 8.6580 ns/op 1.03
array of 24000 items push then shift 2.4642 us/op 2.3616 us/op 1.04
LinkedList of 24000 items push then shift 9.0030 ns/op 8.8000 ns/op 1.02
array of 24000 items push then pop 119.15 ns/op 101.59 ns/op 1.17
LinkedList of 24000 items push then pop 8.7420 ns/op 8.5600 ns/op 1.02
intersect bitArray bitLen 8 6.5230 ns/op 6.3680 ns/op 1.02
intersect array and set length 8 65.049 ns/op 61.273 ns/op 1.06
intersect bitArray bitLen 128 34.125 ns/op 33.768 ns/op 1.01
intersect array and set length 128 907.70 ns/op 844.35 ns/op 1.08
bitArray.getTrueBitIndexes() bitLen 128 1.6350 us/op 1.3590 us/op 1.20
bitArray.getTrueBitIndexes() bitLen 248 2.6620 us/op 2.3820 us/op 1.12
bitArray.getTrueBitIndexes() bitLen 512 5.0600 us/op 4.7020 us/op 1.08
Buffer.concat 32 items 1.0970 us/op 972.00 ns/op 1.13
Uint8Array.set 32 items 2.2370 us/op 1.6850 us/op 1.33
Set add up to 64 items then delete first 4.7432 us/op 4.2453 us/op 1.12
OrderedSet add up to 64 items then delete first 5.9363 us/op 5.3630 us/op 1.11
Set add up to 64 items then delete last 5.0342 us/op 4.5401 us/op 1.11
OrderedSet add up to 64 items then delete last 5.9801 us/op 5.6927 us/op 1.05
Set add up to 64 items then delete middle 4.8705 us/op 4.5136 us/op 1.08
OrderedSet add up to 64 items then delete middle 8.4326 us/op 6.9056 us/op 1.22
Set add up to 128 items then delete first 9.2735 us/op 9.1905 us/op 1.01
OrderedSet add up to 128 items then delete first 12.422 us/op 12.177 us/op 1.02
Set add up to 128 items then delete last 9.3780 us/op 9.0209 us/op 1.04
OrderedSet add up to 128 items then delete last 11.900 us/op 11.431 us/op 1.04
Set add up to 128 items then delete middle 9.3957 us/op 8.9683 us/op 1.05
OrderedSet add up to 128 items then delete middle 17.287 us/op 16.654 us/op 1.04
Set add up to 256 items then delete first 18.472 us/op 18.520 us/op 1.00
OrderedSet add up to 256 items then delete first 25.549 us/op 24.915 us/op 1.03
Set add up to 256 items then delete last 18.303 us/op 17.943 us/op 1.02
OrderedSet add up to 256 items then delete last 22.927 us/op 23.189 us/op 0.99
Set add up to 256 items then delete middle 18.036 us/op 17.976 us/op 1.00
OrderedSet add up to 256 items then delete middle 44.637 us/op 45.657 us/op 0.98
transfer serialized Status (84 B) 1.7060 us/op 1.7480 us/op 0.98
copy serialized Status (84 B) 1.4590 us/op 1.4380 us/op 1.01
transfer serialized SignedVoluntaryExit (112 B) 1.9430 us/op 1.8830 us/op 1.03
copy serialized SignedVoluntaryExit (112 B) 1.5740 us/op 1.4840 us/op 1.06
transfer serialized ProposerSlashing (416 B) 2.3830 us/op 2.3630 us/op 1.01
copy serialized ProposerSlashing (416 B) 2.3200 us/op 2.0530 us/op 1.13
transfer serialized Attestation (485 B) 2.4060 us/op 2.3660 us/op 1.02
copy serialized Attestation (485 B) 2.1980 us/op 2.0690 us/op 1.06
transfer serialized AttesterSlashing (33232 B) 2.9010 us/op 2.4470 us/op 1.19
copy serialized AttesterSlashing (33232 B) 6.0130 us/op 5.3730 us/op 1.12
transfer serialized Small SignedBeaconBlock (128000 B) 3.2360 us/op 2.6890 us/op 1.20
copy serialized Small SignedBeaconBlock (128000 B) 13.798 us/op 13.655 us/op 1.01
transfer serialized Avg SignedBeaconBlock (200000 B) 3.4260 us/op 3.1200 us/op 1.10
copy serialized Avg SignedBeaconBlock (200000 B) 19.818 us/op 20.003 us/op 0.99
transfer serialized BlobsSidecar (524380 B) 3.2440 us/op 3.0490 us/op 1.06
copy serialized BlobsSidecar (524380 B) 88.148 us/op 90.258 us/op 0.98
transfer serialized Big SignedBeaconBlock (1000000 B) 3.9900 us/op 3.1020 us/op 1.29
copy serialized Big SignedBeaconBlock (1000000 B) 163.85 us/op 164.41 us/op 1.00
pass gossip attestations to forkchoice per slot 3.9283 ms/op 3.8611 ms/op 1.02
forkChoice updateHead vc 100000 bc 64 eq 0 689.51 us/op 680.17 us/op 1.01
forkChoice updateHead vc 600000 bc 64 eq 0 4.2458 ms/op 4.7760 ms/op 0.89
forkChoice updateHead vc 1000000 bc 64 eq 0 7.3179 ms/op 7.1404 ms/op 1.02
forkChoice updateHead vc 600000 bc 320 eq 0 4.2384 ms/op 4.1705 ms/op 1.02
forkChoice updateHead vc 600000 bc 1200 eq 0 4.6261 ms/op 4.2588 ms/op 1.09
forkChoice updateHead vc 600000 bc 7200 eq 0 5.9353 ms/op 5.2611 ms/op 1.13
forkChoice updateHead vc 600000 bc 64 eq 1000 11.240 ms/op 10.907 ms/op 1.03
forkChoice updateHead vc 600000 bc 64 eq 10000 12.134 ms/op 11.830 ms/op 1.03
forkChoice updateHead vc 600000 bc 64 eq 300000 16.181 ms/op 15.667 ms/op 1.03
computeDeltas 500000 validators 300 proto nodes 6.8716 ms/op 6.5118 ms/op 1.06
computeDeltas 500000 validators 1200 proto nodes 6.6916 ms/op 6.5308 ms/op 1.02
computeDeltas 500000 validators 7200 proto nodes 6.7737 ms/op 6.3836 ms/op 1.06
computeDeltas 750000 validators 300 proto nodes 10.029 ms/op 9.6910 ms/op 1.03
computeDeltas 750000 validators 1200 proto nodes 10.142 ms/op 9.5638 ms/op 1.06
computeDeltas 750000 validators 7200 proto nodes 10.226 ms/op 9.3827 ms/op 1.09
computeDeltas 1400000 validators 300 proto nodes 19.079 ms/op 18.789 ms/op 1.02
computeDeltas 1400000 validators 1200 proto nodes 18.728 ms/op 18.481 ms/op 1.01
computeDeltas 1400000 validators 7200 proto nodes 18.920 ms/op 18.356 ms/op 1.03
computeDeltas 2100000 validators 300 proto nodes 28.030 ms/op 28.105 ms/op 1.00
computeDeltas 2100000 validators 1200 proto nodes 27.463 ms/op 28.680 ms/op 0.96
computeDeltas 2100000 validators 7200 proto nodes 27.824 ms/op 28.460 ms/op 0.98
computeProposerBoostScoreFromBalances 500000 validators 3.7611 ms/op 3.6585 ms/op 1.03
computeProposerBoostScoreFromBalances 750000 validators 3.7544 ms/op 3.6459 ms/op 1.03
computeProposerBoostScoreFromBalances 1400000 validators 3.7509 ms/op 3.6861 ms/op 1.02
computeProposerBoostScoreFromBalances 2100000 validators 3.7166 ms/op 3.6803 ms/op 1.01
altair processAttestation - 250000 vs - 7PWei normalcase 2.1190 ms/op 2.1281 ms/op 1.00
altair processAttestation - 250000 vs - 7PWei worstcase 3.1113 ms/op 3.1053 ms/op 1.00
altair processAttestation - setStatus - 1/6 committees join 135.38 us/op 178.28 us/op 0.76
altair processAttestation - setStatus - 1/3 committees join 259.38 us/op 343.09 us/op 0.76
altair processAttestation - setStatus - 1/2 committees join 354.17 us/op 465.62 us/op 0.76
altair processAttestation - setStatus - 2/3 committees join 443.54 us/op 582.40 us/op 0.76
altair processAttestation - setStatus - 4/5 committees join 625.38 us/op 769.99 us/op 0.81
altair processAttestation - setStatus - 100% committees join 727.32 us/op 917.22 us/op 0.79
altair processBlock - 250000 vs - 7PWei normalcase 8.3044 ms/op 9.4017 ms/op 0.88
altair processBlock - 250000 vs - 7PWei normalcase hashState 41.338 ms/op 43.499 ms/op 0.95
altair processBlock - 250000 vs - 7PWei worstcase 38.927 ms/op 36.897 ms/op 1.06
altair processBlock - 250000 vs - 7PWei worstcase hashState 101.57 ms/op 97.205 ms/op 1.04
phase0 processBlock - 250000 vs - 7PWei normalcase 3.4763 ms/op 2.4242 ms/op 1.43
phase0 processBlock - 250000 vs - 7PWei worstcase 37.002 ms/op 29.729 ms/op 1.24
altair processEth1Data - 250000 vs - 7PWei normalcase 507.06 us/op 496.20 us/op 1.02
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 15.177 us/op 10.237 us/op 1.48
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 90.562 us/op 58.444 us/op 1.55
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 27.712 us/op 10.492 us/op 2.64
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 18.809 us/op 12.222 us/op 1.54
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 226.30 us/op 167.56 us/op 1.35
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 2.2841 ms/op 1.1131 ms/op 2.05
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.4223 ms/op 1.5782 ms/op 1.53
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.4103 ms/op 1.6159 ms/op 1.49
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.7550 ms/op 3.8290 ms/op 0.98
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.3504 ms/op 2.2321 ms/op 1.05
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.2429 ms/op 5.4921 ms/op 0.95
Tree 40 250000 create 355.49 ms/op 370.11 ms/op 0.96
Tree 40 250000 get(125000) 192.44 ns/op 189.57 ns/op 1.02
Tree 40 250000 set(125000) 1.0185 us/op 987.81 ns/op 1.03
Tree 40 250000 toArray() 18.979 ms/op 17.907 ms/op 1.06
Tree 40 250000 iterate all - toArray() + loop 19.024 ms/op 18.103 ms/op 1.05
Tree 40 250000 iterate all - get(i) 66.754 ms/op 64.635 ms/op 1.03
MutableVector 250000 create 17.104 ms/op 14.049 ms/op 1.22
MutableVector 250000 get(125000) 6.5110 ns/op 6.4700 ns/op 1.01
MutableVector 250000 set(125000) 275.32 ns/op 274.42 ns/op 1.00
MutableVector 250000 toArray() 3.2252 ms/op 3.6164 ms/op 0.89
MutableVector 250000 iterate all - toArray() + loop 3.4968 ms/op 3.2608 ms/op 1.07
MutableVector 250000 iterate all - get(i) 1.5189 ms/op 1.5168 ms/op 1.00
Array 250000 create 2.8014 ms/op 2.8586 ms/op 0.98
Array 250000 clone - spread 1.3099 ms/op 1.2228 ms/op 1.07
Array 250000 get(125000) 1.0810 ns/op 1.0290 ns/op 1.05
Array 250000 set(125000) 4.1700 ns/op 4.1320 ns/op 1.01
Array 250000 iterate all - loop 164.88 us/op 164.47 us/op 1.00
effectiveBalanceIncrements clone Uint8Array 300000 28.315 us/op 27.797 us/op 1.02
effectiveBalanceIncrements clone MutableVector 300000 402.00 ns/op 354.00 ns/op 1.14
effectiveBalanceIncrements rw all Uint8Array 300000 198.83 us/op 199.81 us/op 1.00
effectiveBalanceIncrements rw all MutableVector 300000 86.584 ms/op 80.992 ms/op 1.07
phase0 afterProcessEpoch - 250000 vs - 7PWei 113.24 ms/op 112.34 ms/op 1.01
phase0 beforeProcessEpoch - 250000 vs - 7PWei 51.702 ms/op 50.121 ms/op 1.03
altair processEpoch - mainnet_e81889 518.23 ms/op 489.33 ms/op 1.06
mainnet_e81889 - altair beforeProcessEpoch 86.942 ms/op 82.699 ms/op 1.05
mainnet_e81889 - altair processJustificationAndFinalization 23.857 us/op 14.688 us/op 1.62
mainnet_e81889 - altair processInactivityUpdates 6.7237 ms/op 6.0283 ms/op 1.12
mainnet_e81889 - altair processRewardsAndPenalties 70.877 ms/op 42.627 ms/op 1.66
mainnet_e81889 - altair processRegistryUpdates 2.7410 us/op 2.4020 us/op 1.14
mainnet_e81889 - altair processSlashings 524.00 ns/op 505.00 ns/op 1.04
mainnet_e81889 - altair processEth1DataReset 502.00 ns/op 519.00 ns/op 0.97
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.7220 ms/op 1.3793 ms/op 1.25
mainnet_e81889 - altair processSlashingsReset 5.1220 us/op 4.0150 us/op 1.28
mainnet_e81889 - altair processRandaoMixesReset 5.2090 us/op 3.8210 us/op 1.36
mainnet_e81889 - altair processHistoricalRootsUpdate 1.0090 us/op 720.00 ns/op 1.40
mainnet_e81889 - altair processParticipationFlagUpdates 2.1120 us/op 2.3010 us/op 0.92
mainnet_e81889 - altair processSyncCommitteeUpdates 905.00 ns/op 542.00 ns/op 1.67
mainnet_e81889 - altair afterProcessEpoch 118.80 ms/op 114.51 ms/op 1.04
capella processEpoch - mainnet_e217614 2.1104 s/op 2.0786 s/op 1.02
mainnet_e217614 - capella beforeProcessEpoch 505.07 ms/op 487.08 ms/op 1.04
mainnet_e217614 - capella processJustificationAndFinalization 15.724 us/op 14.770 us/op 1.06
mainnet_e217614 - capella processInactivityUpdates 16.607 ms/op 19.419 ms/op 0.86
mainnet_e217614 - capella processRewardsAndPenalties 463.48 ms/op 410.56 ms/op 1.13
mainnet_e217614 - capella processRegistryUpdates 16.610 us/op 15.140 us/op 1.10
mainnet_e217614 - capella processSlashings 561.00 ns/op 524.00 ns/op 1.07
mainnet_e217614 - capella processEth1DataReset 410.00 ns/op 398.00 ns/op 1.03
mainnet_e217614 - capella processEffectiveBalanceUpdates 7.3754 ms/op 4.3140 ms/op 1.71
mainnet_e217614 - capella processSlashingsReset 4.5670 us/op 2.8440 us/op 1.61
mainnet_e217614 - capella processRandaoMixesReset 7.6470 us/op 3.7900 us/op 2.02
mainnet_e217614 - capella processHistoricalRootsUpdate 953.00 ns/op 600.00 ns/op 1.59
mainnet_e217614 - capella processParticipationFlagUpdates 2.3890 us/op 2.1830 us/op 1.09
mainnet_e217614 - capella afterProcessEpoch 292.45 ms/op 321.52 ms/op 0.91
phase0 processEpoch - mainnet_e58758 525.97 ms/op 467.60 ms/op 1.12
mainnet_e58758 - phase0 beforeProcessEpoch 168.27 ms/op 137.00 ms/op 1.23
mainnet_e58758 - phase0 processJustificationAndFinalization 24.555 us/op 16.434 us/op 1.49
mainnet_e58758 - phase0 processRewardsAndPenalties 66.369 ms/op 36.457 ms/op 1.82
mainnet_e58758 - phase0 processRegistryUpdates 15.470 us/op 8.5600 us/op 1.81
mainnet_e58758 - phase0 processSlashings 772.00 ns/op 507.00 ns/op 1.52
mainnet_e58758 - phase0 processEth1DataReset 629.00 ns/op 388.00 ns/op 1.62
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 2.1790 ms/op 1.0903 ms/op 2.00
mainnet_e58758 - phase0 processSlashingsReset 5.2000 us/op 2.5030 us/op 2.08
mainnet_e58758 - phase0 processRandaoMixesReset 6.2120 us/op 3.9200 us/op 1.58
mainnet_e58758 - phase0 processHistoricalRootsUpdate 846.00 ns/op 630.00 ns/op 1.34
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.5310 us/op 3.8630 us/op 1.43
mainnet_e58758 - phase0 afterProcessEpoch 96.651 ms/op 97.529 ms/op 0.99
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.3024 ms/op 1.3574 ms/op 0.96
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4328 ms/op 1.9426 ms/op 0.74
altair processInactivityUpdates - 250000 normalcase 34.310 ms/op 29.908 ms/op 1.15
altair processInactivityUpdates - 250000 worstcase 27.055 ms/op 27.441 ms/op 0.99
phase0 processRegistryUpdates - 250000 normalcase 14.971 us/op 7.4180 us/op 2.02
phase0 processRegistryUpdates - 250000 badcase_full_deposits 662.00 us/op 336.72 us/op 1.97
phase0 processRegistryUpdates - 250000 worstcase 0.5 144.46 ms/op 125.17 ms/op 1.15
altair processRewardsAndPenalties - 250000 normalcase 60.985 ms/op 58.226 ms/op 1.05
altair processRewardsAndPenalties - 250000 worstcase 57.818 ms/op 57.595 ms/op 1.00
phase0 getAttestationDeltas - 250000 normalcase 9.0562 ms/op 7.7168 ms/op 1.17
phase0 getAttestationDeltas - 250000 worstcase 8.8672 ms/op 8.0777 ms/op 1.10
phase0 processSlashings - 250000 worstcase 129.31 us/op 81.527 us/op 1.59
altair processSyncCommitteeUpdates - 250000 158.39 ms/op 150.88 ms/op 1.05
BeaconState.hashTreeRoot - No change 243.00 ns/op 243.00 ns/op 1.00
BeaconState.hashTreeRoot - 1 full validator 208.96 us/op 141.16 us/op 1.48
BeaconState.hashTreeRoot - 32 full validator 1.7388 ms/op 1.5932 ms/op 1.09
BeaconState.hashTreeRoot - 512 full validator 18.181 ms/op 19.003 ms/op 0.96
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 214.46 us/op 181.62 us/op 1.18
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.5546 ms/op 2.3335 ms/op 1.09
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 32.685 ms/op 26.680 ms/op 1.23
BeaconState.hashTreeRoot - 1 balances 163.34 us/op 146.18 us/op 1.12
BeaconState.hashTreeRoot - 32 balances 1.6252 ms/op 1.2754 ms/op 1.27
BeaconState.hashTreeRoot - 512 balances 14.043 ms/op 11.689 ms/op 1.20
BeaconState.hashTreeRoot - 250000 balances 248.59 ms/op 203.38 ms/op 1.22
aggregationBits - 2048 els - zipIndexesInBitList 51.555 us/op 16.885 us/op 3.05
byteArrayEquals 32 74.656 ns/op 75.733 ns/op 0.99
Buffer.compare 32 60.284 ns/op 56.509 ns/op 1.07
byteArrayEquals 1024 2.0534 us/op 2.0717 us/op 0.99
Buffer.compare 1024 74.321 ns/op 71.225 ns/op 1.04
byteArrayEquals 16384 32.674 us/op 33.016 us/op 0.99
Buffer.compare 16384 255.71 ns/op 286.08 ns/op 0.89
byteArrayEquals 123687377 243.29 ms/op 245.99 ms/op 0.99
Buffer.compare 123687377 6.0866 ms/op 6.2051 ms/op 0.98
byteArrayEquals 32 - diff last byte 75.429 ns/op 71.473 ns/op 1.06
Buffer.compare 32 - diff last byte 59.381 ns/op 55.266 ns/op 1.07
byteArrayEquals 1024 - diff last byte 2.0388 us/op 2.0244 us/op 1.01
Buffer.compare 1024 - diff last byte 70.655 ns/op 72.063 ns/op 0.98
byteArrayEquals 16384 - diff last byte 32.656 us/op 32.266 us/op 1.01
Buffer.compare 16384 - diff last byte 258.08 ns/op 273.78 ns/op 0.94
byteArrayEquals 123687377 - diff last byte 244.15 ms/op 243.11 ms/op 1.00
Buffer.compare 123687377 - diff last byte 6.2056 ms/op 6.1118 ms/op 1.02
byteArrayEquals 32 - random bytes 5.2050 ns/op 5.2130 ns/op 1.00
Buffer.compare 32 - random bytes 60.451 ns/op 59.864 ns/op 1.01
byteArrayEquals 1024 - random bytes 5.1650 ns/op 5.1260 ns/op 1.01
Buffer.compare 1024 - random bytes 59.620 ns/op 59.311 ns/op 1.01
byteArrayEquals 16384 - random bytes 5.1530 ns/op 5.2220 ns/op 0.99
Buffer.compare 16384 - random bytes 59.264 ns/op 59.402 ns/op 1.00
byteArrayEquals 123687377 - random bytes 8.2100 ns/op 8.4500 ns/op 0.97
Buffer.compare 123687377 - random bytes 62.400 ns/op 62.850 ns/op 0.99
regular array get 100000 times 43.997 us/op 43.610 us/op 1.01
wrappedArray get 100000 times 43.886 us/op 43.573 us/op 1.01
arrayWithProxy get 100000 times 13.889 ms/op 13.913 ms/op 1.00
ssz.Root.equals 52.727 ns/op 53.193 ns/op 0.99
byteArrayEquals 52.032 ns/op 52.457 ns/op 0.99
Buffer.compare 10.520 ns/op 10.774 ns/op 0.98
shuffle list - 16384 els 6.9534 ms/op 7.3159 ms/op 0.95
shuffle list - 250000 els 103.11 ms/op 101.54 ms/op 1.02
processSlot - 1 slots 20.300 us/op 16.518 us/op 1.23
processSlot - 32 slots 4.5054 ms/op 3.3980 ms/op 1.33
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 60.641 ms/op 61.460 ms/op 0.99
getCommitteeAssignments - req 1 vs - 250000 vc 2.4744 ms/op 2.4802 ms/op 1.00
getCommitteeAssignments - req 100 vs - 250000 vc 3.6401 ms/op 3.6986 ms/op 0.98
getCommitteeAssignments - req 1000 vs - 250000 vc 3.9595 ms/op 4.0062 ms/op 0.99
findModifiedValidators - 10000 modified validators 552.33 ms/op 558.72 ms/op 0.99
findModifiedValidators - 1000 modified validators 444.40 ms/op 412.82 ms/op 1.08
findModifiedValidators - 100 modified validators 402.93 ms/op 403.66 ms/op 1.00
findModifiedValidators - 10 modified validators 390.71 ms/op 412.65 ms/op 0.95
findModifiedValidators - 1 modified validators 404.10 ms/op 384.54 ms/op 1.05
findModifiedValidators - no difference 401.35 ms/op 402.66 ms/op 1.00
compare ViewDUs 4.9207 s/op 4.2669 s/op 1.15
compare each validator Uint8Array 1.5434 s/op 1.7537 s/op 0.88
compare ViewDU to Uint8Array 1.1918 s/op 1.1311 s/op 1.05
migrate state 1000000 validators, 24 modified, 0 new 873.37 ms/op 790.44 ms/op 1.10
migrate state 1000000 validators, 1700 modified, 1000 new 1.1936 s/op 1.0998 s/op 1.09
migrate state 1000000 validators, 3400 modified, 2000 new 1.4683 s/op 1.3276 s/op 1.11
migrate state 1500000 validators, 24 modified, 0 new 883.19 ms/op 793.75 ms/op 1.11
migrate state 1500000 validators, 1700 modified, 1000 new 1.1963 s/op 1.1007 s/op 1.09
migrate state 1500000 validators, 3400 modified, 2000 new 1.4645 s/op 1.3339 s/op 1.10
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.2200 ns/op 4.3100 ns/op 0.98
state getBlockRootAtSlot - 250000 vs - 7PWei 749.67 ns/op 728.58 ns/op 1.03
computeProposers - vc 250000 9.5680 ms/op 9.2821 ms/op 1.03
computeEpochShuffling - vc 250000 102.72 ms/op 102.40 ms/op 1.00
getNextSyncCommittee - vc 250000 157.95 ms/op 157.80 ms/op 1.00
computeSigningRoot for AttestationData 27.684 us/op 29.525 us/op 0.94
hash AttestationData serialized data then Buffer.toString(base64) 2.2416 us/op 2.2632 us/op 0.99
toHexString serialized data 1.0502 us/op 1.0628 us/op 0.99
Buffer.toString(base64) 203.00 ns/op 221.11 ns/op 0.92

by benchmarkbot/action


jobs:
docs:
runs-on: buildjet-4vcpu-ubuntu-2204
env:
DEPLOY_REF: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || 'stable' }}
Copy link
Member

Choose a reason for hiding this comment

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

A little strange that the default here is 'stable' but above, its 'unstable'. I'd say pick one or the other

Copy link
Member Author

@matthewkeil matthewkeil Dec 27, 2023

Choose a reason for hiding this comment

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

That was so that its deploying stable if running push and defaulting to unstable in the manual deploy option with workflow_dispatch.

I wanted to maintain the original behavior of docs deploying when merged to stable and assumed we would most likely be manually deploying from unstable after a docs PR but between releases that auto deploy.

Do you want me to convert the hardcoded branch to || github.ref }} so that it will be more clear that its the value that push triggered the workflow?

The actions/checkout defaults the ref value to github.ref (or default branch if no github.ref is available) when one is not provided in the template.

Copy link
Member

Choose a reason for hiding this comment

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

Oh I see, that makes sense! Looks good as is

@wemeetagain wemeetagain merged commit d52fb94 into unstable Dec 27, 2023
13 of 15 checks passed
@wemeetagain wemeetagain deleted the mkeil/workflow-dispatch-docs branch December 27, 2023 19:54
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.14.0 🎉

ensi321 pushed a commit to ensi321/lodestar that referenced this pull request Jan 22, 2024
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.

2 participants