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: remove prettier as default formatter for all file types #7275

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Dec 3, 2024

Motivation

Noticed if I try save a shell script (.sh files) I get a annoying error popup
image

We should not specify a default formatter in vs code settings, instead make sure we only define formatters for file types that they can handle.

Description

Remove prettier as default formatter for all file types and instead adds it only for markdown and yaml files.

@nflaig nflaig requested a review from a team as a code owner December 3, 2024 16:36
@nflaig nflaig enabled auto-merge (squash) December 3, 2024 16:39
@nflaig nflaig merged commit 376fe2a into unstable Dec 3, 2024
19 of 20 checks passed
@nflaig nflaig deleted the nflaig/remove-default-formatter branch December 3, 2024 17:04
Copy link
Contributor

github-actions bot commented Dec 3, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: ee6fb9a Previous: 84e0699 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 2.1676 ms/op 2.0711 ms/op 1.05
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 70.651 us/op 66.461 us/op 1.06
BLS verify - blst 1.0220 ms/op 933.72 us/op 1.09
BLS verifyMultipleSignatures 3 - blst 1.5829 ms/op 1.3829 ms/op 1.14
BLS verifyMultipleSignatures 8 - blst 2.1115 ms/op 2.0155 ms/op 1.05
BLS verifyMultipleSignatures 32 - blst 6.1454 ms/op 5.3245 ms/op 1.15
BLS verifyMultipleSignatures 64 - blst 11.212 ms/op 10.030 ms/op 1.12
BLS verifyMultipleSignatures 128 - blst 18.170 ms/op 19.410 ms/op 0.94
BLS deserializing 10000 signatures 729.85 ms/op 710.75 ms/op 1.03
BLS deserializing 100000 signatures 7.1736 s/op 7.0385 s/op 1.02
BLS verifyMultipleSignatures - same message - 3 - blst 1.1275 ms/op 1.0892 ms/op 1.04
BLS verifyMultipleSignatures - same message - 8 - blst 1.2415 ms/op 1.2486 ms/op 0.99
BLS verifyMultipleSignatures - same message - 32 - blst 1.8723 ms/op 1.9021 ms/op 0.98
BLS verifyMultipleSignatures - same message - 64 - blst 2.8064 ms/op 2.8358 ms/op 0.99
BLS verifyMultipleSignatures - same message - 128 - blst 4.8764 ms/op 4.7646 ms/op 1.02
BLS aggregatePubkeys 32 - blst 21.763 us/op 20.653 us/op 1.05
BLS aggregatePubkeys 128 - blst 73.974 us/op 73.397 us/op 1.01
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 112.96 ms/op 91.596 ms/op 1.23
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 63.768 ms/op 52.631 ms/op 1.21
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 52.187 ms/op 40.560 ms/op 1.29
getSlashingsAndExits - default max 108.21 us/op 80.307 us/op 1.35
getSlashingsAndExits - 2k 373.42 us/op 302.41 us/op 1.23
proposeBlockBody type=full, size=empty 6.7117 ms/op 6.9731 ms/op 0.96
isKnown best case - 1 super set check 366.00 ns/op 312.00 ns/op 1.17
isKnown normal case - 2 super set checks 450.00 ns/op 295.00 ns/op 1.53
isKnown worse case - 16 super set checks 369.00 ns/op 323.00 ns/op 1.14
InMemoryCheckpointStateCache - add get delete 3.3800 us/op 3.1950 us/op 1.06
validate api signedAggregateAndProof - struct 1.8615 ms/op 1.4638 ms/op 1.27
validate gossip signedAggregateAndProof - struct 1.8381 ms/op 1.4056 ms/op 1.31
batch validate gossip attestation - vc 640000 - chunk 32 145.52 us/op 158.02 us/op 0.92
batch validate gossip attestation - vc 640000 - chunk 64 123.98 us/op 137.04 us/op 0.90
batch validate gossip attestation - vc 640000 - chunk 128 118.34 us/op 135.83 us/op 0.87
batch validate gossip attestation - vc 640000 - chunk 256 112.70 us/op 134.77 us/op 0.84
pickEth1Vote - no votes 1.1230 ms/op 1.1817 ms/op 0.95
pickEth1Vote - max votes 6.5628 ms/op 10.373 ms/op 0.63
pickEth1Vote - Eth1Data hashTreeRoot value x2048 12.675 ms/op 21.832 ms/op 0.58
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 25.359 ms/op 27.308 ms/op 0.93
pickEth1Vote - Eth1Data fastSerialize value x2048 468.41 us/op 580.98 us/op 0.81
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.5995 ms/op 4.6961 ms/op 0.55
bytes32 toHexString 460.00 ns/op 483.00 ns/op 0.95
bytes32 Buffer.toString(hex) 262.00 ns/op 259.00 ns/op 1.01
bytes32 Buffer.toString(hex) from Uint8Array 402.00 ns/op 422.00 ns/op 0.95
bytes32 Buffer.toString(hex) + 0x 265.00 ns/op 264.00 ns/op 1.00
Object access 1 prop 0.15100 ns/op 0.17700 ns/op 0.85
Map access 1 prop 0.13500 ns/op 0.13700 ns/op 0.99
Object get x1000 6.1850 ns/op 5.9750 ns/op 1.04
Map get x1000 6.6340 ns/op 6.8670 ns/op 0.97
Object set x1000 37.432 ns/op 48.752 ns/op 0.77
Map set x1000 24.657 ns/op 25.719 ns/op 0.96
Return object 10000 times 0.30600 ns/op 0.30780 ns/op 0.99
Throw Error 10000 times 3.4694 us/op 3.6717 us/op 0.94
toHex 158.84 ns/op 181.06 ns/op 0.88
Buffer.from 142.64 ns/op 168.29 ns/op 0.85
shared Buffer 101.38 ns/op 101.37 ns/op 1.00
fastMsgIdFn sha256 / 200 bytes 2.4640 us/op 2.4870 us/op 0.99
fastMsgIdFn h32 xxhash / 200 bytes 290.00 ns/op 281.00 ns/op 1.03
fastMsgIdFn h64 xxhash / 200 bytes 281.00 ns/op 286.00 ns/op 0.98
fastMsgIdFn sha256 / 1000 bytes 7.4310 us/op 7.8840 us/op 0.94
fastMsgIdFn h32 xxhash / 1000 bytes 422.00 ns/op 416.00 ns/op 1.01
fastMsgIdFn h64 xxhash / 1000 bytes 371.00 ns/op 355.00 ns/op 1.05
fastMsgIdFn sha256 / 10000 bytes 66.017 us/op 67.266 us/op 0.98
fastMsgIdFn h32 xxhash / 10000 bytes 1.9730 us/op 1.9010 us/op 1.04
fastMsgIdFn h64 xxhash / 10000 bytes 1.2850 us/op 1.2340 us/op 1.04
send data - 1000 256B messages 13.843 ms/op 14.544 ms/op 0.95
send data - 1000 512B messages 17.855 ms/op 19.349 ms/op 0.92
send data - 1000 1024B messages 28.109 ms/op 27.372 ms/op 1.03
send data - 1000 1200B messages 25.621 ms/op 20.280 ms/op 1.26
send data - 1000 2048B messages 34.185 ms/op 33.790 ms/op 1.01
send data - 1000 4096B messages 34.998 ms/op 33.431 ms/op 1.05
send data - 1000 16384B messages 75.298 ms/op 79.590 ms/op 0.95
send data - 1000 65536B messages 219.72 ms/op 229.97 ms/op 0.96
enrSubnets - fastDeserialize 64 bits 1.2310 us/op 1.0740 us/op 1.15
enrSubnets - ssz BitVector 64 bits 402.00 ns/op 415.00 ns/op 0.97
enrSubnets - fastDeserialize 4 bits 169.00 ns/op 173.00 ns/op 0.98
enrSubnets - ssz BitVector 4 bits 415.00 ns/op 394.00 ns/op 1.05
prioritizePeers score -10:0 att 32-0.1 sync 2-0 173.72 us/op 175.25 us/op 0.99
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 178.25 us/op 164.81 us/op 1.08
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 281.24 us/op 334.16 us/op 0.84
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 492.58 us/op 405.06 us/op 1.22
prioritizePeers score 0:0 att 64-1 sync 4-1 886.95 us/op 746.39 us/op 1.19
array of 16000 items push then shift 1.6848 us/op 1.7433 us/op 0.97
LinkedList of 16000 items push then shift 7.7020 ns/op 8.0690 ns/op 0.95
array of 16000 items push then pop 137.71 ns/op 145.09 ns/op 0.95
LinkedList of 16000 items push then pop 7.7220 ns/op 7.9820 ns/op 0.97
array of 24000 items push then shift 2.4990 us/op 2.7856 us/op 0.90
LinkedList of 24000 items push then shift 8.2670 ns/op 7.8890 ns/op 1.05
array of 24000 items push then pop 171.88 ns/op 198.07 ns/op 0.87
LinkedList of 24000 items push then pop 7.4880 ns/op 7.5960 ns/op 0.99
intersect bitArray bitLen 8 6.5470 ns/op 6.7990 ns/op 0.96
intersect array and set length 8 48.856 ns/op 51.886 ns/op 0.94
intersect bitArray bitLen 128 30.211 ns/op 32.853 ns/op 0.92
intersect array and set length 128 679.87 ns/op 853.21 ns/op 0.80
bitArray.getTrueBitIndexes() bitLen 128 2.2550 us/op 2.2610 us/op 1.00
bitArray.getTrueBitIndexes() bitLen 248 4.2880 us/op 3.6890 us/op 1.16
bitArray.getTrueBitIndexes() bitLen 512 7.9750 us/op 7.6210 us/op 1.05
Buffer.concat 32 items 1.0020 us/op 1.0270 us/op 0.98
Uint8Array.set 32 items 1.9610 us/op 1.5770 us/op 1.24
Buffer.copy 2.6580 us/op 1.8660 us/op 1.42
Uint8Array.set - with subarray 3.3350 us/op 2.8180 us/op 1.18
Uint8Array.set - without subarray 1.5180 us/op 1.5030 us/op 1.01
getUint32 - dataview 244.00 ns/op 262.00 ns/op 0.93
getUint32 - manual 165.00 ns/op 208.00 ns/op 0.79
Set add up to 64 items then delete first 2.2933 us/op 2.7082 us/op 0.85
OrderedSet add up to 64 items then delete first 3.5762 us/op 4.0243 us/op 0.89
Set add up to 64 items then delete last 2.6342 us/op 2.8315 us/op 0.93
OrderedSet add up to 64 items then delete last 3.8750 us/op 4.0698 us/op 0.95
Set add up to 64 items then delete middle 2.7492 us/op 2.9744 us/op 0.92
OrderedSet add up to 64 items then delete middle 5.7898 us/op 6.1562 us/op 0.94
Set add up to 128 items then delete first 5.8329 us/op 5.5977 us/op 1.04
OrderedSet add up to 128 items then delete first 8.4628 us/op 8.7927 us/op 0.96
Set add up to 128 items then delete last 5.3815 us/op 5.6879 us/op 0.95
OrderedSet add up to 128 items then delete last 8.1354 us/op 8.3845 us/op 0.97
Set add up to 128 items then delete middle 5.0327 us/op 5.6047 us/op 0.90
OrderedSet add up to 128 items then delete middle 15.938 us/op 17.338 us/op 0.92
Set add up to 256 items then delete first 10.744 us/op 11.911 us/op 0.90
OrderedSet add up to 256 items then delete first 16.940 us/op 19.464 us/op 0.87
Set add up to 256 items then delete last 10.374 us/op 13.759 us/op 0.75
OrderedSet add up to 256 items then delete last 15.593 us/op 20.197 us/op 0.77
Set add up to 256 items then delete middle 9.9522 us/op 12.956 us/op 0.77
OrderedSet add up to 256 items then delete middle 41.978 us/op 49.763 us/op 0.84
transfer serialized Status (84 B) 1.4880 us/op 1.4580 us/op 1.02
copy serialized Status (84 B) 1.2780 us/op 1.4960 us/op 0.85
transfer serialized SignedVoluntaryExit (112 B) 1.6900 us/op 1.7220 us/op 0.98
copy serialized SignedVoluntaryExit (112 B) 1.2890 us/op 1.5380 us/op 0.84
transfer serialized ProposerSlashing (416 B) 2.0920 us/op 2.7650 us/op 0.76
copy serialized ProposerSlashing (416 B) 1.9820 us/op 1.9360 us/op 1.02
transfer serialized Attestation (485 B) 2.3180 us/op 2.1020 us/op 1.10
copy serialized Attestation (485 B) 1.7270 us/op 1.8690 us/op 0.92
transfer serialized AttesterSlashing (33232 B) 2.5200 us/op 2.6200 us/op 0.96
copy serialized AttesterSlashing (33232 B) 6.4250 us/op 7.2150 us/op 0.89
transfer serialized Small SignedBeaconBlock (128000 B) 3.8410 us/op 3.5200 us/op 1.09
copy serialized Small SignedBeaconBlock (128000 B) 18.305 us/op 24.026 us/op 0.76
transfer serialized Avg SignedBeaconBlock (200000 B) 3.2190 us/op 5.1620 us/op 0.62
copy serialized Avg SignedBeaconBlock (200000 B) 28.229 us/op 38.549 us/op 0.73
transfer serialized BlobsSidecar (524380 B) 3.1480 us/op 5.2320 us/op 0.60
copy serialized BlobsSidecar (524380 B) 100.71 us/op 235.35 us/op 0.43
transfer serialized Big SignedBeaconBlock (1000000 B) 3.8140 us/op 4.1730 us/op 0.91
copy serialized Big SignedBeaconBlock (1000000 B) 174.99 us/op 221.05 us/op 0.79
pass gossip attestations to forkchoice per slot 2.9301 ms/op 3.3493 ms/op 0.87
forkChoice updateHead vc 100000 bc 64 eq 0 597.99 us/op 466.70 us/op 1.28
forkChoice updateHead vc 600000 bc 64 eq 0 3.7901 ms/op 3.3510 ms/op 1.13
forkChoice updateHead vc 1000000 bc 64 eq 0 4.9117 ms/op 8.6887 ms/op 0.57
forkChoice updateHead vc 600000 bc 320 eq 0 2.9027 ms/op 3.5029 ms/op 0.83
forkChoice updateHead vc 600000 bc 1200 eq 0 3.0538 ms/op 3.6673 ms/op 0.83
forkChoice updateHead vc 600000 bc 7200 eq 0 3.5300 ms/op 5.0161 ms/op 0.70
forkChoice updateHead vc 600000 bc 64 eq 1000 10.384 ms/op 11.055 ms/op 0.94
forkChoice updateHead vc 600000 bc 64 eq 10000 10.368 ms/op 12.326 ms/op 0.84
forkChoice updateHead vc 600000 bc 64 eq 300000 13.622 ms/op 21.980 ms/op 0.62
computeDeltas 500000 validators 300 proto nodes 4.2667 ms/op 4.9728 ms/op 0.86
computeDeltas 500000 validators 1200 proto nodes 4.3328 ms/op 5.5795 ms/op 0.78
computeDeltas 500000 validators 7200 proto nodes 4.3448 ms/op 6.1636 ms/op 0.70
computeDeltas 750000 validators 300 proto nodes 6.3803 ms/op 9.1603 ms/op 0.70
computeDeltas 750000 validators 1200 proto nodes 6.4668 ms/op 8.8958 ms/op 0.73
computeDeltas 750000 validators 7200 proto nodes 6.5663 ms/op 8.7614 ms/op 0.75
computeDeltas 1400000 validators 300 proto nodes 11.524 ms/op 15.424 ms/op 0.75
computeDeltas 1400000 validators 1200 proto nodes 11.771 ms/op 17.918 ms/op 0.66
computeDeltas 1400000 validators 7200 proto nodes 12.276 ms/op 14.671 ms/op 0.84
computeDeltas 2100000 validators 300 proto nodes 24.199 ms/op 21.032 ms/op 1.15
computeDeltas 2100000 validators 1200 proto nodes 19.338 ms/op 20.146 ms/op 0.96
computeDeltas 2100000 validators 7200 proto nodes 18.555 ms/op 20.631 ms/op 0.90
altair processAttestation - 250000 vs - 7PWei normalcase 3.5581 ms/op 2.9031 ms/op 1.23
altair processAttestation - 250000 vs - 7PWei worstcase 3.5550 ms/op 4.0087 ms/op 0.89
altair processAttestation - setStatus - 1/6 committees join 107.76 us/op 100.94 us/op 1.07
altair processAttestation - setStatus - 1/3 committees join 220.56 us/op 203.12 us/op 1.09
altair processAttestation - setStatus - 1/2 committees join 310.25 us/op 312.78 us/op 0.99
altair processAttestation - setStatus - 2/3 committees join 400.15 us/op 351.92 us/op 1.14
altair processAttestation - setStatus - 4/5 committees join 652.02 us/op 549.93 us/op 1.19
altair processAttestation - setStatus - 100% committees join 745.06 us/op 653.16 us/op 1.14
altair processBlock - 250000 vs - 7PWei normalcase 8.4233 ms/op 6.0157 ms/op 1.40
altair processBlock - 250000 vs - 7PWei normalcase hashState 44.923 ms/op 27.826 ms/op 1.61
altair processBlock - 250000 vs - 7PWei worstcase 48.350 ms/op 42.297 ms/op 1.14
altair processBlock - 250000 vs - 7PWei worstcase hashState 92.203 ms/op 78.361 ms/op 1.18
phase0 processBlock - 250000 vs - 7PWei normalcase 3.4527 ms/op 2.2931 ms/op 1.51
phase0 processBlock - 250000 vs - 7PWei worstcase 29.731 ms/op 27.415 ms/op 1.08
altair processEth1Data - 250000 vs - 7PWei normalcase 643.74 us/op 473.83 us/op 1.36
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 12.889 us/op 8.7170 us/op 1.48
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 63.052 us/op 46.887 us/op 1.34
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 19.550 us/op 12.495 us/op 1.56
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 14.319 us/op 8.4240 us/op 1.70
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 224.87 us/op 159.94 us/op 1.41
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.9392 ms/op 1.1986 ms/op 1.62
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.3725 ms/op 1.5374 ms/op 1.54
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.4868 ms/op 1.6102 ms/op 1.54
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 7.9740 ms/op 5.2909 ms/op 1.51
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.7127 ms/op 2.1589 ms/op 1.26
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 7.5332 ms/op 6.9885 ms/op 1.08
Tree 40 250000 create 608.63 ms/op 498.68 ms/op 1.22
Tree 40 250000 get(125000) 180.06 ns/op 168.84 ns/op 1.07
Tree 40 250000 set(125000) 2.0876 us/op 896.92 ns/op 2.33
Tree 40 250000 toArray() 28.721 ms/op 22.257 ms/op 1.29
Tree 40 250000 iterate all - toArray() + loop 27.162 ms/op 21.142 ms/op 1.28
Tree 40 250000 iterate all - get(i) 79.232 ms/op 58.877 ms/op 1.35
Array 250000 create 5.0298 ms/op 3.7013 ms/op 1.36
Array 250000 clone - spread 4.1591 ms/op 1.4969 ms/op 2.78
Array 250000 get(125000) 0.61300 ns/op 0.44800 ns/op 1.37
Array 250000 set(125000) 0.65000 ns/op 0.46800 ns/op 1.39
Array 250000 iterate all - loop 108.88 us/op 119.45 us/op 0.91
phase0 afterProcessEpoch - 250000 vs - 7PWei 61.440 ms/op 59.378 ms/op 1.03
Array.fill - length 1000000 7.9939 ms/op 5.3868 ms/op 1.48
Array push - length 1000000 29.874 ms/op 24.708 ms/op 1.21
Array.get 0.35620 ns/op 0.30607 ns/op 1.16
Uint8Array.get 0.49254 ns/op 0.46168 ns/op 1.07
phase0 beforeProcessEpoch - 250000 vs - 7PWei 27.922 ms/op 21.486 ms/op 1.30
altair processEpoch - mainnet_e81889 392.61 ms/op 298.65 ms/op 1.31
mainnet_e81889 - altair beforeProcessEpoch 27.417 ms/op 23.125 ms/op 1.19
mainnet_e81889 - altair processJustificationAndFinalization 26.173 us/op 14.130 us/op 1.85
mainnet_e81889 - altair processInactivityUpdates 9.5526 ms/op 5.6655 ms/op 1.69
mainnet_e81889 - altair processRewardsAndPenalties 69.967 ms/op 39.194 ms/op 1.79
mainnet_e81889 - altair processRegistryUpdates 5.9290 us/op 1.8240 us/op 3.25
mainnet_e81889 - altair processSlashings 1.1720 us/op 373.00 ns/op 3.14
mainnet_e81889 - altair processEth1DataReset 1.0830 us/op 328.00 ns/op 3.30
mainnet_e81889 - altair processEffectiveBalanceUpdates 2.6555 ms/op 1.9304 ms/op 1.38
mainnet_e81889 - altair processSlashingsReset 10.013 us/op 4.1020 us/op 2.44
mainnet_e81889 - altair processRandaoMixesReset 10.620 us/op 4.0540 us/op 2.62
mainnet_e81889 - altair processHistoricalRootsUpdate 1.2640 us/op 516.00 ns/op 2.45
mainnet_e81889 - altair processParticipationFlagUpdates 7.1280 us/op 2.0380 us/op 3.50
mainnet_e81889 - altair processSyncCommitteeUpdates 827.00 ns/op 413.00 ns/op 2.00
mainnet_e81889 - altair afterProcessEpoch 58.867 ms/op 52.180 ms/op 1.13
capella processEpoch - mainnet_e217614 1.3425 s/op 1.1711 s/op 1.15
mainnet_e217614 - capella beforeProcessEpoch 84.850 ms/op 75.055 ms/op 1.13
mainnet_e217614 - capella processJustificationAndFinalization 23.741 us/op 18.854 us/op 1.26
mainnet_e217614 - capella processInactivityUpdates 20.059 ms/op 18.274 ms/op 1.10
mainnet_e217614 - capella processRewardsAndPenalties 253.42 ms/op 241.75 ms/op 1.05
mainnet_e217614 - capella processRegistryUpdates 19.214 us/op 17.271 us/op 1.11
mainnet_e217614 - capella processSlashings 576.00 ns/op 627.00 ns/op 0.92
mainnet_e217614 - capella processEth1DataReset 462.00 ns/op 1.3510 us/op 0.34
mainnet_e217614 - capella processEffectiveBalanceUpdates 16.783 ms/op 17.287 ms/op 0.97
mainnet_e217614 - capella processSlashingsReset 5.1640 us/op 7.6330 us/op 0.68
mainnet_e217614 - capella processRandaoMixesReset 9.3510 us/op 11.348 us/op 0.82
mainnet_e217614 - capella processHistoricalRootsUpdate 1.0340 us/op 594.00 ns/op 1.74
mainnet_e217614 - capella processParticipationFlagUpdates 4.4160 us/op 3.2850 us/op 1.34
mainnet_e217614 - capella afterProcessEpoch 131.57 ms/op 125.84 ms/op 1.05
phase0 processEpoch - mainnet_e58758 407.35 ms/op 378.82 ms/op 1.08
mainnet_e58758 - phase0 beforeProcessEpoch 111.03 ms/op 87.824 ms/op 1.26
mainnet_e58758 - phase0 processJustificationAndFinalization 18.304 us/op 24.926 us/op 0.73
mainnet_e58758 - phase0 processRewardsAndPenalties 26.121 ms/op 29.192 ms/op 0.89
mainnet_e58758 - phase0 processRegistryUpdates 9.3950 us/op 11.160 us/op 0.84
mainnet_e58758 - phase0 processSlashings 377.00 ns/op 536.00 ns/op 0.70
mainnet_e58758 - phase0 processEth1DataReset 545.00 ns/op 479.00 ns/op 1.14
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.5471 ms/op 1.2265 ms/op 1.26
mainnet_e58758 - phase0 processSlashingsReset 4.5960 us/op 6.5320 us/op 0.70
mainnet_e58758 - phase0 processRandaoMixesReset 7.8820 us/op 7.9140 us/op 1.00
mainnet_e58758 - phase0 processHistoricalRootsUpdate 763.00 ns/op 667.00 ns/op 1.14
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.6860 us/op 4.5840 us/op 1.02
mainnet_e58758 - phase0 afterProcessEpoch 43.604 ms/op 50.219 ms/op 0.87
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.5369 ms/op 2.1542 ms/op 0.71
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.9492 ms/op 3.2897 ms/op 0.90
altair processInactivityUpdates - 250000 normalcase 20.014 ms/op 16.300 ms/op 1.23
altair processInactivityUpdates - 250000 worstcase 19.961 ms/op 17.369 ms/op 1.15
phase0 processRegistryUpdates - 250000 normalcase 7.7040 us/op 10.690 us/op 0.72
phase0 processRegistryUpdates - 250000 badcase_full_deposits 342.50 us/op 425.20 us/op 0.81
phase0 processRegistryUpdates - 250000 worstcase 0.5 123.92 ms/op 136.72 ms/op 0.91
altair processRewardsAndPenalties - 250000 normalcase 46.993 ms/op 36.774 ms/op 1.28
altair processRewardsAndPenalties - 250000 worstcase 46.325 ms/op 39.606 ms/op 1.17
phase0 getAttestationDeltas - 250000 normalcase 8.1887 ms/op 8.0003 ms/op 1.02
phase0 getAttestationDeltas - 250000 worstcase 7.8152 ms/op 9.0000 ms/op 0.87
phase0 processSlashings - 250000 worstcase 129.81 us/op 98.554 us/op 1.32
altair processSyncCommitteeUpdates - 250000 120.11 ms/op 131.13 ms/op 0.92
BeaconState.hashTreeRoot - No change 227.00 ns/op 259.00 ns/op 0.88
BeaconState.hashTreeRoot - 1 full validator 96.171 us/op 145.97 us/op 0.66
BeaconState.hashTreeRoot - 32 full validator 956.26 us/op 1.4020 ms/op 0.68
BeaconState.hashTreeRoot - 512 full validator 10.527 ms/op 16.788 ms/op 0.63
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 113.72 us/op 242.88 us/op 0.47
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.1272 ms/op 2.5610 ms/op 0.83
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 23.812 ms/op 30.703 ms/op 0.78
BeaconState.hashTreeRoot - 1 balances 91.482 us/op 123.08 us/op 0.74
BeaconState.hashTreeRoot - 32 balances 749.54 us/op 1.3484 ms/op 0.56
BeaconState.hashTreeRoot - 512 balances 6.6304 ms/op 9.2534 ms/op 0.72
BeaconState.hashTreeRoot - 250000 balances 200.83 ms/op 177.50 ms/op 1.13
aggregationBits - 2048 els - zipIndexesInBitList 24.406 us/op 41.199 us/op 0.59
byteArrayEquals 32 54.462 ns/op 55.980 ns/op 0.97
Buffer.compare 32 17.242 ns/op 18.372 ns/op 0.94
byteArrayEquals 1024 1.5984 us/op 1.6416 us/op 0.97
Buffer.compare 1024 24.628 ns/op 26.106 ns/op 0.94
byteArrayEquals 16384 25.464 us/op 25.866 us/op 0.98
Buffer.compare 16384 210.49 ns/op 205.60 ns/op 1.02
byteArrayEquals 123687377 193.02 ms/op 200.98 ms/op 0.96
Buffer.compare 123687377 7.5919 ms/op 12.316 ms/op 0.62
byteArrayEquals 32 - diff last byte 53.584 ns/op 56.603 ns/op 0.95
Buffer.compare 32 - diff last byte 18.456 ns/op 20.651 ns/op 0.89
byteArrayEquals 1024 - diff last byte 1.6223 us/op 1.7062 us/op 0.95
Buffer.compare 1024 - diff last byte 25.908 ns/op 30.799 ns/op 0.84
byteArrayEquals 16384 - diff last byte 25.996 us/op 27.141 us/op 0.96
Buffer.compare 16384 - diff last byte 189.52 ns/op 204.68 ns/op 0.93
byteArrayEquals 123687377 - diff last byte 194.99 ms/op 196.95 ms/op 0.99
Buffer.compare 123687377 - diff last byte 8.8642 ms/op 12.184 ms/op 0.73
byteArrayEquals 32 - random bytes 5.3710 ns/op 5.6000 ns/op 0.96
Buffer.compare 32 - random bytes 17.652 ns/op 17.791 ns/op 0.99
byteArrayEquals 1024 - random bytes 5.4320 ns/op 5.4780 ns/op 0.99
Buffer.compare 1024 - random bytes 18.153 ns/op 17.877 ns/op 1.02
byteArrayEquals 16384 - random bytes 5.4960 ns/op 5.4430 ns/op 1.01
Buffer.compare 16384 - random bytes 17.984 ns/op 17.976 ns/op 1.00
byteArrayEquals 123687377 - random bytes 7.1000 ns/op 7.0200 ns/op 1.01
Buffer.compare 123687377 - random bytes 20.160 ns/op 21.030 ns/op 0.96
regular array get 100000 times 35.851 us/op 38.988 us/op 0.92
wrappedArray get 100000 times 35.340 us/op 34.786 us/op 1.02
arrayWithProxy get 100000 times 13.539 ms/op 15.557 ms/op 0.87
ssz.Root.equals 48.828 ns/op 50.649 ns/op 0.96
byteArrayEquals 46.976 ns/op 47.068 ns/op 1.00
Buffer.compare 11.069 ns/op 11.168 ns/op 0.99
processSlot - 1 slots 17.258 us/op 18.765 us/op 0.92
processSlot - 32 slots 4.0217 ms/op 3.4828 ms/op 1.15
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 44.710 ms/op 45.985 ms/op 0.97
getCommitteeAssignments - req 1 vs - 250000 vc 2.5507 ms/op 2.3197 ms/op 1.10
getCommitteeAssignments - req 100 vs - 250000 vc 4.5211 ms/op 4.3325 ms/op 1.04
getCommitteeAssignments - req 1000 vs - 250000 vc 4.8720 ms/op 4.6188 ms/op 1.05
findModifiedValidators - 10000 modified validators 362.47 ms/op 436.83 ms/op 0.83
findModifiedValidators - 1000 modified validators 257.71 ms/op 280.08 ms/op 0.92
findModifiedValidators - 100 modified validators 246.07 ms/op 272.35 ms/op 0.90
findModifiedValidators - 10 modified validators 264.59 ms/op 255.08 ms/op 1.04
findModifiedValidators - 1 modified validators 262.92 ms/op 248.12 ms/op 1.06
findModifiedValidators - no difference 261.96 ms/op 272.59 ms/op 0.96
compare ViewDUs 3.7995 s/op 4.4777 s/op 0.85
compare each validator Uint8Array 1.6302 s/op 1.8951 s/op 0.86
compare ViewDU to Uint8Array 1.1891 s/op 1.5755 s/op 0.75
migrate state 1000000 validators, 24 modified, 0 new 736.76 ms/op 920.29 ms/op 0.80
migrate state 1000000 validators, 1700 modified, 1000 new 1.0439 s/op 1.1293 s/op 0.92
migrate state 1000000 validators, 3400 modified, 2000 new 1.3485 s/op 1.1691 s/op 1.15
migrate state 1500000 validators, 24 modified, 0 new 800.10 ms/op 817.73 ms/op 0.98
migrate state 1500000 validators, 1700 modified, 1000 new 1.0750 s/op 1.1398 s/op 0.94
migrate state 1500000 validators, 3400 modified, 2000 new 1.2609 s/op 1.3452 s/op 0.94
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.0100 ns/op 5.3200 ns/op 0.94
state getBlockRootAtSlot - 250000 vs - 7PWei 657.65 ns/op 809.72 ns/op 0.81
computeProposers - vc 250000 7.3645 ms/op 8.8323 ms/op 0.83
computeEpochShuffling - vc 250000 43.222 ms/op 45.493 ms/op 0.95
getNextSyncCommittee - vc 250000 125.18 ms/op 149.76 ms/op 0.84
computeSigningRoot for AttestationData 19.579 us/op 27.818 us/op 0.70
hash AttestationData serialized data then Buffer.toString(base64) 1.6319 us/op 1.8196 us/op 0.90
toHexString serialized data 978.36 ns/op 1.1077 us/op 0.88
Buffer.toString(base64) 209.54 ns/op 237.26 ns/op 0.88
nodejs block root to RootHex using toHex 186.88 ns/op 192.90 ns/op 0.97
nodejs block root to RootHex using toRootHex 115.09 ns/op 113.64 ns/op 1.01
browser block root to RootHex using the deprecated toHexString 243.69 ns/op 297.06 ns/op 0.82
browser block root to RootHex using toHex 200.56 ns/op 243.37 ns/op 0.82
browser block root to RootHex using toRootHex 177.48 ns/op 177.36 ns/op 1.00

by benchmarkbot/action

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.51%. Comparing base (64eb015) to head (9e1ca03).
Report is 2 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #7275   +/-   ##
=========================================
  Coverage     48.51%   48.51%           
=========================================
  Files           600      600           
  Lines         40138    40142    +4     
  Branches       2058     2058           
=========================================
+ Hits          19471    19475    +4     
  Misses        20629    20629           
  Partials         38       38           

wemeetagain added a commit that referenced this pull request Dec 20, 2024
* feat: add keymanager endpoint to retrieve proposer config (#7210)

* feat: add keymanager endpoint to retrieve proposer config

* Do not return empty builder config

* Check all builder proposer config values

* Fix settings builder config if undefined

* Fix builder config parsing

* Use ssz type to handle json serialization

Default parsing can't handle BigInt

* Revert "Use ssz type to handle json serialization"

This reverts commit 01fcea7.

* Fix boost factor json serialization

* Remove unused import

* Update test data

* Update proposer config test

* feat: add mekong network option (#7212)

* chore: fix import order with biome syntax (#7211)

Fix import order

* fix: consistently validate pubkey and throw 404 if not found (#7214)

* Throw error if pubkey is unknown when getting graffiti

* Consistently validate pubkey and throw 404 if not found

* fix: only return local keys from /eth/v1/keystores (#7215)

* fix: only return local keys from /eth/v1/keystores

* Fix fetching remote keys in node assertion

* feat: add and use getBlobsV1 to expedite gossip import (#7134)

* hookup the getblobs api to get bob and proof data from el

remove unused

fix import

metrics overhault, test, debugging testing, some feeback

fix

add nethermind bug dicussion link

fix

resolve conflicts

* deblobs timeout

* fix metric

* chore: revert async aggregate with randomness (#7218)

Revert "feat: asyncAggregateWithRandomness (#7204)"

This reverts commit e31d535.

* fix: update config for relaunched mekong network (#7220)

* fix: light client generating `LightClientUpdate` with wrong length of branches (#7187)

* initial commit

* Rewrite SyncCommitteeWitnessRepository

* Fix finality branch

* Update unit test

* fix e2e

* Review PR

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>

* fix: archive finalized state when shutting down beacon node (#7221)

* Fix typo

* feat: remove unfinalized pubkey cache (#7230)

* Remove unfinalized pubkey cache

* lint

* Fix unit test

* chore: skip web3_provider unit tests (#7252)

* fix: prune checkpoint states at syncing time (#7241)

* fix: prune checkpoint states at syncing time

* fix: lint

* fix: check-types in test

* fix: sync cached isCompoundingValidatorArr at epoch transition (#7247)

* fix: handle outOfRangeData when range sync Deneb (#7249)

* fix: handle outOfRangeData for beaconBlocksMaybeBlobsByRange()

* fix: lint

* fix: archiveBlocks - handle deneb outOfRangeData block

* fix: sync cached balance when adding new validator to registry (#7255)

* fix: sync cached balance when adding new validator to registry

* chore: add more comments

* fix: remove persisted checkpoint states from the previous run at startup

* fix: do not throw error when trying to prune missing directory (#7257)

* docs: update documentation Oct 2024 (#7178)

* docs update oct 2024 init

* Reconfig quickstart nav and minor fixes

* fix lint

* spelling fixes

* minor fixes and add to wordlist

* prettier fix

* add to wordlist

* sort wordlist

* modify dominance to include lighthouse

* fix typescript casing and add recommendation

* add selection and boost_factor with keymanager notice

* update wordlist

* remove builder enabled and add keymanager api

* spelling

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>

* chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 in /docs (#7268)

Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](moxystudio/node-cross-spawn@v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: add error log to notifier if execution client auth failed (#7239)

* feat: add error log to notifier if execution client auth failed

* Update packages/beacon-node/src/node/notifier.ts

---------

Co-authored-by: NC <17676176+ensi321@users.noreply.github.com>

* docs: display rcConfig flag on CLI reference page (#7270)

* docs: display rcConfig flag on CLI reference page

* Update word list

* chore: remove prettier as default formatter for all file types (#7275)

* chore: unhide flags relevant for devnets / testing (#7271)

* feat: debug too many shuffling promises (#7251)

* feat: add asyncShufflingCalculation to StateTransitionOpts

* feat: add asyncShufflingCalculation to all regen / processSlots consumers

* fix: default to false for async shuffling and remove unnecessary props

* fix: remove unnecessary flags from stateTransition

* feat: implement conditional build of shuffling for prepareNextSlot

* fix: spec test bug where shufflingCache is present from BeaconChain constructor

* feat: sync build next shuffling if not queued async

* fix: use getSync to pull next shuffling correctly

* docs: add comment to prepareNextSlot

* refactor: rename StateCloneOpts to StateRegenerationOpts

* feat: pass asyncShufflingCalculation through to afterProcessEpoch and refactor conditional to run purely sync

* docs: add issue number to comment

* chore: lint

* chore: unpin nodejs version from 22.4 (#6982)

* Revert "chore: pin nodejs version to 22.4 (#6964)"

This reverts commit f20484b.

* Don't revert formatting changes

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
Co-authored-by: Cayman <caymannava@gmail.com>

* chore: update bootnodes file url for holesky and sepolia (#7276)

* feat: add `debug_getHistoricalSummaries` endpoint (#7245)

* feat: add new getHistoricalSummaries endpoint to debug namespace

* Add JSON response

* Restructure to use stateId and add proof to response

* add test scaffolding

* Address feedback

* Move getHistoricalSummaries to lodestar namespace

* add lodestar namespace unit test

* update route name to lodestar namespace

* cast state object as Capella state

* Lint

* json properties need to be lower case

* Make it v1 since it's now part of lodestar namespace

* Group with other /lodestar endpoints

* Simplify beacon node impl

* Rename return type

* Update test description

* Fix variable name

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>

* chore: log sync committee signature errors as `error` (#7283)

* fix: update engine_getClientVersionV1 commit encoding (#7282)

* fix: check pubkey or validator index known to a state (#7284)

* fix: check pubkey or validator index known to a state

* chore: add more comments

* feat: lodestar script setup (#7254)

* feat: lodestar_setup

* feat: script_updates + docs

* feat: script_addition_in_docs + command_update

* Remove duplicate script from docs folder

* Minor script updates

* Update script to prepare docs and ignore copied file

* Update installation page

* Wording

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>

* feat: add terminal-sized Electra giraffe banner (#7286)

* Create giraffeBanners.ts

* Wire in banner

* Fix file name

* lint

* Address @nflaig's comment

---------

Co-authored-by: NC <17676176+ensi321@users.noreply.github.com>

* chore: pin nodejs version to 22.4 (#7291)

Revert "chore: unpin nodejs version from 22.4 (#6982)"

This reverts commit 69ae688.

* feat: expose `DOMAIN_APPLICATION_MASK` in config/spec api (#7296)

* feat: expose DOMAIN_APPLICATION_MASK in config/spec api

* Lint

* feat: make `MAX_REQUEST_BLOB_SIDECARS` and `MAX_BLOBS_PER_BLOCK` configurable (#7294)

* Init commit

* Fix check-types

* Add comment on how MAX_REQUEST_BLOB_SIDECARS is calculated

* Ensure proper config object is passed

* Address comment

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>

* feat: use `BLOB_SIDECAR_SUBNET_COUNT` to configure blob subnets (#7297)

feat: use BLOB_SIDECAR_SUBNET_COUNT to configure blob subnets

* chore: log sync aggregate participants when producing beacon block body (#7300)

* chore: log sync aggregate participants when producing beacon block body

* Use isForkLightClient instead of ForkSeq

* Fix produce block unit tests

* chore: print graffiti when producing beacon block body (#7303)

* fix: warn if engine / builder failed to produce block within cutoff time (#7305)

* feat: add kzg commitment length check when validating gossip blocks (#7302)

* feat: add blob sidecar index check (#7313)

Validate blobSidecar index

* fix: fix blob sidecar index check (#7315)

Fix index check

* chore: fix format of printed graffiti from hex to utf-8 (#7306)

* chore: fix format of printed graffiti from hex to utf-8

* Use Buffer.from no copy with offset

* docs: batch commit typos and update contributor readme (#7312)

* batch commit typos and update contributor readme

* update donation text

Co-authored-by: Nico Flaig <nflaig@protonmail.com>

* correct spelling

Co-authored-by: Nico Flaig <nflaig@protonmail.com>

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>

* chore: remove trailing null bytes from printed graffiti (#7320)

* chore: remove trailing null bytes from printed graffiti

* Use replaceAll instead of regex

* chore: unpin nodejs version from 22.4 (#7324)

Revert "chore: pin nodejs version to 22.4 (#7291)"

This reverts commit 99794d3.

* chore: bump package versions to 1.24.0

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Nico Flaig <nflaig@protonmail.com>
Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
Co-authored-by: g11tech <develop@g11tech.io>
Co-authored-by: Matthew Keil <me@matthewkeil.com>
Co-authored-by: NC <17676176+ensi321@users.noreply.github.com>
Co-authored-by: twoeths <tuyen@chainsafe.io>
Co-authored-by: Phil Ngo <58080811+philknows@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>
Co-authored-by: Varun Guleria <152203177+varunguleriaCodes@users.noreply.github.com>
Co-authored-by: ClockworkYuzu <yvetteheh@gmail.com>
@wemeetagain
Copy link
Member

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

3 participants