Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add vscode settings to split prettier and biome #7149

Merged
merged 3 commits into from
Oct 11, 2024

Conversation

nazarhussain
Copy link
Contributor

Motivation

Make sure the prettier and biome don't override each other.

Description

The biome formatter works with JS/TS files only (will be extended later). So we keep prettier for rest of the file types.

Steps to test or reproduce

  • Experience in the VSCode.

@nazarhussain nazarhussain requested a review from a team as a code owner October 11, 2024 10:52
@@ -0,0 +1,12 @@
{
"settings": {
"window.title": "${activeEditorShort}${separator}${rootName}${separator}${profileName}${separator}[${activeRepositoryBranchName}]${separator}[${activeRepositoryBranchName}]",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I personally like having this settings when I have multiple windows of VSCode open. Thought to share with everyone.

Copy link
Member

Choose a reason for hiding this comment

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

can you share a screenshot how this looks like

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.12%. Comparing base (4b7d871) to head (4f9e392).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #7149   +/-   ##
=========================================
  Coverage     49.12%   49.12%           
=========================================
  Files           597      597           
  Lines         39718    39718           
  Branches       2085     2080    -5     
=========================================
  Hits          19512    19512           
  Misses        20165    20165           
  Partials         41       41           

Copy link
Contributor

github-actions bot commented Oct 11, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 4bc2de3 Previous: a570048 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.8358 ms/op 1.8049 ms/op 1.02
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 54.681 us/op 39.305 us/op 1.39
BLS verify - blst 912.70 us/op 1.0244 ms/op 0.89
BLS verifyMultipleSignatures 3 - blst 1.3469 ms/op 1.3309 ms/op 1.01
BLS verifyMultipleSignatures 8 - blst 1.7168 ms/op 2.0684 ms/op 0.83
BLS verifyMultipleSignatures 32 - blst 4.8681 ms/op 4.4314 ms/op 1.10
BLS verifyMultipleSignatures 64 - blst 8.2443 ms/op 8.2348 ms/op 1.00
BLS verifyMultipleSignatures 128 - blst 15.639 ms/op 15.852 ms/op 0.99
BLS deserializing 10000 signatures 637.97 ms/op 585.60 ms/op 1.09
BLS deserializing 100000 signatures 6.3908 s/op 6.0973 s/op 1.05
BLS verifyMultipleSignatures - same message - 3 - blst 909.03 us/op 932.28 us/op 0.98
BLS verifyMultipleSignatures - same message - 8 - blst 1.0826 ms/op 1.0502 ms/op 1.03
BLS verifyMultipleSignatures - same message - 32 - blst 1.6872 ms/op 1.6550 ms/op 1.02
BLS verifyMultipleSignatures - same message - 64 - blst 2.3848 ms/op 2.5295 ms/op 0.94
BLS verifyMultipleSignatures - same message - 128 - blst 4.1690 ms/op 4.1511 ms/op 1.00
BLS aggregatePubkeys 32 - blst 18.674 us/op 18.098 us/op 1.03
BLS aggregatePubkeys 128 - blst 65.686 us/op 62.286 us/op 1.05
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 62.244 ms/op 58.915 ms/op 1.06
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 52.746 ms/op 42.268 ms/op 1.25
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 34.078 ms/op 28.409 ms/op 1.20
getSlashingsAndExits - default max 126.66 us/op 70.900 us/op 1.79
getSlashingsAndExits - 2k 369.10 us/op 254.83 us/op 1.45
proposeBlockBody type=full, size=empty 5.9507 ms/op 4.7475 ms/op 1.25
isKnown best case - 1 super set check 526.00 ns/op 468.00 ns/op 1.12
isKnown normal case - 2 super set checks 492.00 ns/op 435.00 ns/op 1.13
isKnown worse case - 16 super set checks 537.00 ns/op 434.00 ns/op 1.24
InMemoryCheckpointStateCache - add get delete 3.3540 us/op 2.8940 us/op 1.16
updateUnfinalizedPubkeys - updating 10 pubkeys 992.72 us/op 953.07 us/op 1.04
updateUnfinalizedPubkeys - updating 100 pubkeys 4.2025 ms/op 2.5990 ms/op 1.62
updateUnfinalizedPubkeys - updating 1000 pubkeys 54.669 ms/op 36.919 ms/op 1.48
validate api signedAggregateAndProof - struct 1.5292 ms/op 1.5833 ms/op 0.97
validate gossip signedAggregateAndProof - struct 1.5339 ms/op 1.4578 ms/op 1.05
batch validate gossip attestation - vc 640000 - chunk 32 135.25 us/op 118.35 us/op 1.14
batch validate gossip attestation - vc 640000 - chunk 64 124.64 us/op 100.77 us/op 1.24
batch validate gossip attestation - vc 640000 - chunk 128 115.88 us/op 95.188 us/op 1.22
batch validate gossip attestation - vc 640000 - chunk 256 111.34 us/op 91.632 us/op 1.22
pickEth1Vote - no votes 899.16 us/op 758.82 us/op 1.18
pickEth1Vote - max votes 4.7530 ms/op 5.3807 ms/op 0.88
pickEth1Vote - Eth1Data hashTreeRoot value x2048 9.9632 ms/op 12.170 ms/op 0.82
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 16.394 ms/op 17.734 ms/op 0.92
pickEth1Vote - Eth1Data fastSerialize value x2048 378.49 us/op 313.01 us/op 1.21
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.1107 ms/op 2.9080 ms/op 0.73
bytes32 toHexString 683.00 ns/op 519.00 ns/op 1.32
bytes32 Buffer.toString(hex) 504.00 ns/op 385.00 ns/op 1.31
bytes32 Buffer.toString(hex) from Uint8Array 679.00 ns/op 470.00 ns/op 1.44
bytes32 Buffer.toString(hex) + 0x 501.00 ns/op 397.00 ns/op 1.26
Object access 1 prop 0.41900 ns/op 0.29700 ns/op 1.41
Map access 1 prop 0.34100 ns/op 0.29700 ns/op 1.15
Object get x1000 5.4930 ns/op 4.7240 ns/op 1.16
Map get x1000 6.5370 ns/op 5.3120 ns/op 1.23
Object set x1000 23.591 ns/op 22.514 ns/op 1.05
Map set x1000 19.831 ns/op 18.219 ns/op 1.09
Return object 10000 times 0.31050 ns/op 0.27920 ns/op 1.11
Throw Error 10000 times 2.7963 us/op 2.5346 us/op 1.10
toHex 115.23 ns/op 98.833 ns/op 1.17
Buffer.from 105.92 ns/op 90.148 ns/op 1.17
shared Buffer 75.964 ns/op 61.153 ns/op 1.24
fastMsgIdFn sha256 / 200 bytes 2.1570 us/op 1.8620 us/op 1.16
fastMsgIdFn h32 xxhash / 200 bytes 520.00 ns/op 372.00 ns/op 1.40
fastMsgIdFn h64 xxhash / 200 bytes 495.00 ns/op 411.00 ns/op 1.20
fastMsgIdFn sha256 / 1000 bytes 6.2100 us/op 5.3520 us/op 1.16
fastMsgIdFn h32 xxhash / 1000 bytes 624.00 ns/op 506.00 ns/op 1.23
fastMsgIdFn h64 xxhash / 1000 bytes 557.00 ns/op 484.00 ns/op 1.15
fastMsgIdFn sha256 / 10000 bytes 50.486 us/op 44.031 us/op 1.15
fastMsgIdFn h32 xxhash / 10000 bytes 2.0230 us/op 1.7440 us/op 1.16
fastMsgIdFn h64 xxhash / 10000 bytes 1.3850 us/op 1.2090 us/op 1.15
send data - 1000 256B messages 11.682 ms/op 9.7665 ms/op 1.20
send data - 1000 512B messages 15.687 ms/op 12.588 ms/op 1.25
send data - 1000 1024B messages 23.564 ms/op 19.670 ms/op 1.20
send data - 1000 1200B messages 28.741 ms/op 24.510 ms/op 1.17
send data - 1000 2048B messages 34.226 ms/op 29.250 ms/op 1.17
send data - 1000 4096B messages 33.549 ms/op 26.508 ms/op 1.27
send data - 1000 16384B messages 77.516 ms/op 69.813 ms/op 1.11
send data - 1000 65536B messages 310.36 ms/op 260.12 ms/op 1.19
enrSubnets - fastDeserialize 64 bits 1.8160 us/op 1.1790 us/op 1.54
enrSubnets - ssz BitVector 64 bits 667.00 ns/op 506.00 ns/op 1.32
enrSubnets - fastDeserialize 4 bits 408.00 ns/op 348.00 ns/op 1.17
enrSubnets - ssz BitVector 4 bits 676.00 ns/op 540.00 ns/op 1.25
prioritizePeers score -10:0 att 32-0.1 sync 2-0 184.42 us/op 126.35 us/op 1.46
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 167.67 us/op 157.68 us/op 1.06
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 340.43 us/op 295.03 us/op 1.15
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 475.05 us/op 452.79 us/op 1.05
prioritizePeers score 0:0 att 64-1 sync 4-1 989.33 us/op 699.83 us/op 1.41
array of 16000 items push then shift 1.3359 us/op 1.2327 us/op 1.08
LinkedList of 16000 items push then shift 10.831 ns/op 7.1390 ns/op 1.52
array of 16000 items push then pop 140.36 ns/op 85.239 ns/op 1.65
LinkedList of 16000 items push then pop 10.645 ns/op 6.1050 ns/op 1.74
array of 24000 items push then shift 2.0151 us/op 1.7810 us/op 1.13
LinkedList of 24000 items push then shift 9.3860 ns/op 6.7200 ns/op 1.40
array of 24000 items push then pop 192.49 ns/op 110.97 ns/op 1.73
LinkedList of 24000 items push then pop 9.6170 ns/op 5.9730 ns/op 1.61
intersect bitArray bitLen 8 5.9530 ns/op 5.0640 ns/op 1.18
intersect array and set length 8 70.070 ns/op 37.792 ns/op 1.85
intersect bitArray bitLen 128 28.095 ns/op 24.980 ns/op 1.12
intersect array and set length 128 885.41 ns/op 553.50 ns/op 1.60
bitArray.getTrueBitIndexes() bitLen 128 2.5780 us/op 2.4790 us/op 1.04
bitArray.getTrueBitIndexes() bitLen 248 4.8670 us/op 3.4060 us/op 1.43
bitArray.getTrueBitIndexes() bitLen 512 9.8220 us/op 8.1900 us/op 1.20
Buffer.concat 32 items 1.2370 us/op 1.0220 us/op 1.21
Uint8Array.set 32 items 1.8540 us/op 2.0600 us/op 0.90
Buffer.copy 2.1750 us/op 2.0710 us/op 1.05
Uint8Array.set - with subarray 3.8090 us/op 2.3430 us/op 1.63
Uint8Array.set - without subarray 1.9580 us/op 1.6860 us/op 1.16
getUint32 - dataview 481.00 ns/op 431.00 ns/op 1.12
getUint32 - manual 504.00 ns/op 335.00 ns/op 1.50
Set add up to 64 items then delete first 2.8349 us/op 1.7809 us/op 1.59
OrderedSet add up to 64 items then delete first 4.5999 us/op 2.7297 us/op 1.69
Set add up to 64 items then delete last 2.9919 us/op 1.9343 us/op 1.55
OrderedSet add up to 64 items then delete last 4.9684 us/op 3.0306 us/op 1.64
Set add up to 64 items then delete middle 3.0358 us/op 1.9379 us/op 1.57
OrderedSet add up to 64 items then delete middle 6.2981 us/op 4.6877 us/op 1.34
Set add up to 128 items then delete first 4.5584 us/op 3.9699 us/op 1.15
OrderedSet add up to 128 items then delete first 6.1261 us/op 5.9907 us/op 1.02
Set add up to 128 items then delete last 4.0745 us/op 3.9562 us/op 1.03
OrderedSet add up to 128 items then delete last 6.4256 us/op 6.1849 us/op 1.04
Set add up to 128 items then delete middle 4.2015 us/op 3.9506 us/op 1.06
OrderedSet add up to 128 items then delete middle 12.143 us/op 11.611 us/op 1.05
Set add up to 256 items then delete first 7.9689 us/op 7.8321 us/op 1.02
OrderedSet add up to 256 items then delete first 12.272 us/op 11.959 us/op 1.03
Set add up to 256 items then delete last 10.245 us/op 7.8332 us/op 1.31
OrderedSet add up to 256 items then delete last 17.772 us/op 12.337 us/op 1.44
Set add up to 256 items then delete middle 9.3909 us/op 7.7443 us/op 1.21
OrderedSet add up to 256 items then delete middle 40.883 us/op 34.444 us/op 1.19
transfer serialized Status (84 B) 1.4370 us/op 1.4550 us/op 0.99
copy serialized Status (84 B) 1.3390 us/op 1.2380 us/op 1.08
transfer serialized SignedVoluntaryExit (112 B) 1.4570 us/op 1.5340 us/op 0.95
copy serialized SignedVoluntaryExit (112 B) 1.3820 us/op 1.2890 us/op 1.07
transfer serialized ProposerSlashing (416 B) 1.7600 us/op 2.1400 us/op 0.82
copy serialized ProposerSlashing (416 B) 1.8210 us/op 1.9350 us/op 0.94
transfer serialized Attestation (485 B) 1.8480 us/op 2.3330 us/op 0.79
copy serialized Attestation (485 B) 1.9650 us/op 1.9360 us/op 1.01
transfer serialized AttesterSlashing (33232 B) 2.0450 us/op 2.4920 us/op 0.82
copy serialized AttesterSlashing (33232 B) 9.3360 us/op 4.5360 us/op 2.06
transfer serialized Small SignedBeaconBlock (128000 B) 3.3820 us/op 2.8030 us/op 1.21
copy serialized Small SignedBeaconBlock (128000 B) 30.097 us/op 14.554 us/op 2.07
transfer serialized Avg SignedBeaconBlock (200000 B) 4.0890 us/op 2.6950 us/op 1.52
copy serialized Avg SignedBeaconBlock (200000 B) 42.018 us/op 13.388 us/op 3.14
transfer serialized BlobsSidecar (524380 B) 4.0930 us/op 2.3590 us/op 1.74
copy serialized BlobsSidecar (524380 B) 116.61 us/op 71.766 us/op 1.62
transfer serialized Big SignedBeaconBlock (1000000 B) 4.3770 us/op 3.1960 us/op 1.37
copy serialized Big SignedBeaconBlock (1000000 B) 212.24 us/op 141.32 us/op 1.50
pass gossip attestations to forkchoice per slot 2.4852 ms/op 2.3942 ms/op 1.04
forkChoice updateHead vc 100000 bc 64 eq 0 347.95 us/op 383.92 us/op 0.91
forkChoice updateHead vc 600000 bc 64 eq 0 2.4052 ms/op 2.4086 ms/op 1.00
forkChoice updateHead vc 1000000 bc 64 eq 0 4.2372 ms/op 3.9508 ms/op 1.07
forkChoice updateHead vc 600000 bc 320 eq 0 3.9621 ms/op 2.2910 ms/op 1.73
forkChoice updateHead vc 600000 bc 1200 eq 0 2.4519 ms/op 2.3869 ms/op 1.03
forkChoice updateHead vc 600000 bc 7200 eq 0 3.1278 ms/op 2.5468 ms/op 1.23
forkChoice updateHead vc 600000 bc 64 eq 1000 9.3678 ms/op 9.3361 ms/op 1.00
forkChoice updateHead vc 600000 bc 64 eq 10000 9.3822 ms/op 9.3281 ms/op 1.01
forkChoice updateHead vc 600000 bc 64 eq 300000 11.480 ms/op 11.328 ms/op 1.01
computeDeltas 500000 validators 300 proto nodes 3.3948 ms/op 3.2349 ms/op 1.05
computeDeltas 500000 validators 1200 proto nodes 3.4332 ms/op 3.1966 ms/op 1.07
computeDeltas 500000 validators 7200 proto nodes 3.4785 ms/op 3.2073 ms/op 1.08
computeDeltas 750000 validators 300 proto nodes 5.2592 ms/op 5.1050 ms/op 1.03
computeDeltas 750000 validators 1200 proto nodes 5.1888 ms/op 5.1589 ms/op 1.01
computeDeltas 750000 validators 7200 proto nodes 4.9072 ms/op 4.9629 ms/op 0.99
computeDeltas 1400000 validators 300 proto nodes 9.6648 ms/op 9.1185 ms/op 1.06
computeDeltas 1400000 validators 1200 proto nodes 9.2573 ms/op 9.0294 ms/op 1.03
computeDeltas 1400000 validators 7200 proto nodes 9.1488 ms/op 9.2023 ms/op 0.99
computeDeltas 2100000 validators 300 proto nodes 13.449 ms/op 13.371 ms/op 1.01
computeDeltas 2100000 validators 1200 proto nodes 13.468 ms/op 13.907 ms/op 0.97
computeDeltas 2100000 validators 7200 proto nodes 13.845 ms/op 13.657 ms/op 1.01
altair processAttestation - 250000 vs - 7PWei normalcase 1.5363 ms/op 1.4204 ms/op 1.08
altair processAttestation - 250000 vs - 7PWei worstcase 2.2561 ms/op 2.1261 ms/op 1.06
altair processAttestation - setStatus - 1/6 committees join 76.731 us/op 62.742 us/op 1.22
altair processAttestation - setStatus - 1/3 committees join 137.54 us/op 124.69 us/op 1.10
altair processAttestation - setStatus - 1/2 committees join 207.07 us/op 195.32 us/op 1.06
altair processAttestation - setStatus - 2/3 committees join 278.18 us/op 248.24 us/op 1.12
altair processAttestation - setStatus - 4/5 committees join 393.43 us/op 372.33 us/op 1.06
altair processAttestation - setStatus - 100% committees join 455.02 us/op 470.86 us/op 0.97
altair processBlock - 250000 vs - 7PWei normalcase 3.0865 ms/op 3.5819 ms/op 0.86
altair processBlock - 250000 vs - 7PWei normalcase hashState 24.551 ms/op 25.542 ms/op 0.96
altair processBlock - 250000 vs - 7PWei worstcase 36.276 ms/op 34.484 ms/op 1.05
altair processBlock - 250000 vs - 7PWei worstcase hashState 74.887 ms/op 81.037 ms/op 0.92
phase0 processBlock - 250000 vs - 7PWei normalcase 1.8290 ms/op 1.8043 ms/op 1.01
phase0 processBlock - 250000 vs - 7PWei worstcase 22.221 ms/op 22.309 ms/op 1.00
altair processEth1Data - 250000 vs - 7PWei normalcase 290.05 us/op 231.49 us/op 1.25
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 3.3770 us/op 4.5550 us/op 0.74
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 33.113 us/op 32.201 us/op 1.03
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.6040 us/op 6.2690 us/op 1.37
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 5.0290 us/op 2.7590 us/op 1.82
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 70.020 us/op 129.00 us/op 0.54
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.3597 ms/op 1.4316 ms/op 0.95
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.0813 ms/op 1.2222 ms/op 0.88
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.0975 ms/op 1.2098 ms/op 0.91
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.8774 ms/op 2.6163 ms/op 1.10
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.2376 ms/op 1.0913 ms/op 1.13
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.0942 ms/op 2.6849 ms/op 1.15
Tree 40 250000 create 196.13 ms/op 184.37 ms/op 1.06
Tree 40 250000 get(125000) 123.41 ns/op 115.89 ns/op 1.06
Tree 40 250000 set(125000) 567.15 ns/op 539.74 ns/op 1.05
Tree 40 250000 toArray() 12.672 ms/op 9.8652 ms/op 1.28
Tree 40 250000 iterate all - toArray() + loop 12.110 ms/op 9.9438 ms/op 1.22
Tree 40 250000 iterate all - get(i) 44.999 ms/op 41.313 ms/op 1.09
Array 250000 create 2.7141 ms/op 2.3976 ms/op 1.13
Array 250000 clone - spread 1.2565 ms/op 1.3257 ms/op 0.95
Array 250000 get(125000) 0.59500 ns/op 0.57400 ns/op 1.04
Array 250000 set(125000) 0.59200 ns/op 0.58300 ns/op 1.02
Array 250000 iterate all - loop 73.646 us/op 77.376 us/op 0.95
phase0 afterProcessEpoch - 250000 vs - 7PWei 79.194 ms/op 77.308 ms/op 1.02
Array.fill - length 1000000 2.7262 ms/op 2.5677 ms/op 1.06
Array push - length 1000000 11.241 ms/op 13.959 ms/op 0.81
Array.get 0.25603 ns/op 0.26071 ns/op 0.98
Uint8Array.get 0.34451 ns/op 0.34350 ns/op 1.00
phase0 beforeProcessEpoch - 250000 vs - 7PWei 13.584 ms/op 13.688 ms/op 0.99
altair processEpoch - mainnet_e81889 317.14 ms/op 308.92 ms/op 1.03
mainnet_e81889 - altair beforeProcessEpoch 18.943 ms/op 18.738 ms/op 1.01
mainnet_e81889 - altair processJustificationAndFinalization 11.548 us/op 12.158 us/op 0.95
mainnet_e81889 - altair processInactivityUpdates 4.3782 ms/op 4.5184 ms/op 0.97
mainnet_e81889 - altair processRewardsAndPenalties 46.436 ms/op 50.907 ms/op 0.91
mainnet_e81889 - altair processRegistryUpdates 1.9190 us/op 1.8220 us/op 1.05
mainnet_e81889 - altair processSlashings 801.00 ns/op 699.00 ns/op 1.15
mainnet_e81889 - altair processEth1DataReset 728.00 ns/op 676.00 ns/op 1.08
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.4769 ms/op 1.0608 ms/op 1.39
mainnet_e81889 - altair processSlashingsReset 3.6260 us/op 1.4440 us/op 2.51
mainnet_e81889 - altair processRandaoMixesReset 4.7010 us/op 2.6280 us/op 1.79
mainnet_e81889 - altair processHistoricalRootsUpdate 816.00 ns/op 662.00 ns/op 1.23
mainnet_e81889 - altair processParticipationFlagUpdates 3.2390 us/op 3.5820 us/op 0.90
mainnet_e81889 - altair processSyncCommitteeUpdates 829.00 ns/op 750.00 ns/op 1.11
mainnet_e81889 - altair afterProcessEpoch 77.279 ms/op 79.755 ms/op 0.97
capella processEpoch - mainnet_e217614 1.1033 s/op 1.0961 s/op 1.01
mainnet_e217614 - capella beforeProcessEpoch 70.239 ms/op 67.976 ms/op 1.03
mainnet_e217614 - capella processJustificationAndFinalization 20.330 us/op 16.637 us/op 1.22
mainnet_e217614 - capella processInactivityUpdates 12.190 ms/op 16.527 ms/op 0.74
mainnet_e217614 - capella processRewardsAndPenalties 223.17 ms/op 238.52 ms/op 0.94
mainnet_e217614 - capella processRegistryUpdates 13.884 us/op 11.653 us/op 1.19
mainnet_e217614 - capella processSlashings 950.00 ns/op 706.00 ns/op 1.35
mainnet_e217614 - capella processEth1DataReset 753.00 ns/op 751.00 ns/op 1.00
mainnet_e217614 - capella processEffectiveBalanceUpdates 6.7333 ms/op 6.4533 ms/op 1.04
mainnet_e217614 - capella processSlashingsReset 4.4190 us/op 4.0910 us/op 1.08
mainnet_e217614 - capella processRandaoMixesReset 11.055 us/op 4.8200 us/op 2.29
mainnet_e217614 - capella processHistoricalRootsUpdate 907.00 ns/op 800.00 ns/op 1.13
mainnet_e217614 - capella processParticipationFlagUpdates 2.2970 us/op 1.7750 us/op 1.29
mainnet_e217614 - capella afterProcessEpoch 204.04 ms/op 213.34 ms/op 0.96
phase0 processEpoch - mainnet_e58758 339.28 ms/op 338.84 ms/op 1.00
mainnet_e58758 - phase0 beforeProcessEpoch 78.743 ms/op 87.292 ms/op 0.90
mainnet_e58758 - phase0 processJustificationAndFinalization 16.643 us/op 20.516 us/op 0.81
mainnet_e58758 - phase0 processRewardsAndPenalties 28.770 ms/op 32.480 ms/op 0.89
mainnet_e58758 - phase0 processRegistryUpdates 7.1050 us/op 6.8280 us/op 1.04
mainnet_e58758 - phase0 processSlashings 844.00 ns/op 747.00 ns/op 1.13
mainnet_e58758 - phase0 processEth1DataReset 848.00 ns/op 764.00 ns/op 1.11
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 813.22 us/op 814.76 us/op 1.00
mainnet_e58758 - phase0 processSlashingsReset 3.4070 us/op 4.0190 us/op 0.85
mainnet_e58758 - phase0 processRandaoMixesReset 3.3220 us/op 5.5030 us/op 0.60
mainnet_e58758 - phase0 processHistoricalRootsUpdate 947.00 ns/op 1.0070 us/op 0.94
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.5450 us/op 4.5650 us/op 1.00
mainnet_e58758 - phase0 afterProcessEpoch 65.503 ms/op 65.371 ms/op 1.00
phase0 processEffectiveBalanceUpdates - 250000 normalcase 993.57 us/op 971.62 us/op 1.02
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.7247 ms/op 1.9104 ms/op 0.90
altair processInactivityUpdates - 250000 normalcase 17.786 ms/op 16.615 ms/op 1.07
altair processInactivityUpdates - 250000 worstcase 17.766 ms/op 17.515 ms/op 1.01
phase0 processRegistryUpdates - 250000 normalcase 5.6070 us/op 6.9370 us/op 0.81
phase0 processRegistryUpdates - 250000 badcase_full_deposits 309.90 us/op 288.86 us/op 1.07
phase0 processRegistryUpdates - 250000 worstcase 0.5 129.39 ms/op 117.88 ms/op 1.10
altair processRewardsAndPenalties - 250000 normalcase 34.924 ms/op 43.877 ms/op 0.80
altair processRewardsAndPenalties - 250000 worstcase 38.736 ms/op 46.136 ms/op 0.84
phase0 getAttestationDeltas - 250000 normalcase 6.6055 ms/op 6.6549 ms/op 0.99
phase0 getAttestationDeltas - 250000 worstcase 6.3196 ms/op 6.3393 ms/op 1.00
phase0 processSlashings - 250000 worstcase 90.833 us/op 80.821 us/op 1.12
altair processSyncCommitteeUpdates - 250000 107.68 ms/op 108.05 ms/op 1.00
BeaconState.hashTreeRoot - No change 455.00 ns/op 487.00 ns/op 0.93
BeaconState.hashTreeRoot - 1 full validator 147.14 us/op 123.42 us/op 1.19
BeaconState.hashTreeRoot - 32 full validator 1.3283 ms/op 1.0703 ms/op 1.24
BeaconState.hashTreeRoot - 512 full validator 11.985 ms/op 8.4177 ms/op 1.42
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 104.22 us/op 98.233 us/op 1.06
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.5605 ms/op 1.2825 ms/op 1.22
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 18.924 ms/op 15.766 ms/op 1.20
BeaconState.hashTreeRoot - 1 balances 75.978 us/op 68.438 us/op 1.11
BeaconState.hashTreeRoot - 32 balances 854.89 us/op 628.03 us/op 1.36
BeaconState.hashTreeRoot - 512 balances 8.1381 ms/op 8.7858 ms/op 0.93
BeaconState.hashTreeRoot - 250000 balances 143.10 ms/op 128.97 ms/op 1.11
aggregationBits - 2048 els - zipIndexesInBitList 25.023 us/op 20.524 us/op 1.22
byteArrayEquals 32 47.333 ns/op 49.036 ns/op 0.97
Buffer.compare 32 15.961 ns/op 15.822 ns/op 1.01
byteArrayEquals 1024 1.2694 us/op 1.2905 us/op 0.98
Buffer.compare 1024 26.745 ns/op 23.388 ns/op 1.14
byteArrayEquals 16384 19.868 us/op 20.422 us/op 0.97
Buffer.compare 16384 175.76 ns/op 195.40 ns/op 0.90
byteArrayEquals 123687377 148.61 ms/op 159.39 ms/op 0.93
Buffer.compare 123687377 4.1026 ms/op 8.0144 ms/op 0.51
byteArrayEquals 32 - diff last byte 45.122 ns/op 49.089 ns/op 0.92
Buffer.compare 32 - diff last byte 16.807 ns/op 17.036 ns/op 0.99
byteArrayEquals 1024 - diff last byte 1.2353 us/op 1.3248 us/op 0.93
Buffer.compare 1024 - diff last byte 23.137 ns/op 22.683 ns/op 1.02
byteArrayEquals 16384 - diff last byte 19.545 us/op 21.375 us/op 0.91
Buffer.compare 16384 - diff last byte 205.54 ns/op 181.16 ns/op 1.13
byteArrayEquals 123687377 - diff last byte 146.83 ms/op 156.57 ms/op 0.94
Buffer.compare 123687377 - diff last byte 5.5251 ms/op 7.7598 ms/op 0.71
byteArrayEquals 32 - random bytes 4.7600 ns/op 5.2390 ns/op 0.91
Buffer.compare 32 - random bytes 16.162 ns/op 17.101 ns/op 0.95
byteArrayEquals 1024 - random bytes 4.7230 ns/op 5.1420 ns/op 0.92
Buffer.compare 1024 - random bytes 15.810 ns/op 16.155 ns/op 0.98
byteArrayEquals 16384 - random bytes 4.7400 ns/op 5.1480 ns/op 0.92
Buffer.compare 16384 - random bytes 15.818 ns/op 16.556 ns/op 0.96
byteArrayEquals 123687377 - random bytes 7.6400 ns/op 8.1000 ns/op 0.94
Buffer.compare 123687377 - random bytes 18.630 ns/op 19.110 ns/op 0.97
regular array get 100000 times 29.494 us/op 31.952 us/op 0.92
wrappedArray get 100000 times 29.348 us/op 32.739 us/op 0.90
arrayWithProxy get 100000 times 9.7397 ms/op 10.190 ms/op 0.96
ssz.Root.equals 37.536 ns/op 40.610 ns/op 0.92
byteArrayEquals 40.814 ns/op 43.989 ns/op 0.93
Buffer.compare 8.6470 ns/op 9.3580 ns/op 0.92
shuffle list - 16384 els 5.3778 ms/op 5.5209 ms/op 0.97
shuffle list - 250000 els 74.354 ms/op 83.397 ms/op 0.89
processSlot - 1 slots 13.490 us/op 10.919 us/op 1.24
processSlot - 32 slots 2.5959 ms/op 3.8342 ms/op 0.68
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 42.414 ms/op 37.853 ms/op 1.12
getCommitteeAssignments - req 1 vs - 250000 vc 1.8143 ms/op 1.8751 ms/op 0.97
getCommitteeAssignments - req 100 vs - 250000 vc 3.4968 ms/op 3.5188 ms/op 0.99
getCommitteeAssignments - req 1000 vs - 250000 vc 3.7537 ms/op 3.7429 ms/op 1.00
findModifiedValidators - 10000 modified validators 234.30 ms/op 361.60 ms/op 0.65
findModifiedValidators - 1000 modified validators 160.65 ms/op 185.57 ms/op 0.87
findModifiedValidators - 100 modified validators 135.45 ms/op 169.93 ms/op 0.80
findModifiedValidators - 10 modified validators 157.64 ms/op 169.86 ms/op 0.93
findModifiedValidators - 1 modified validators 138.06 ms/op 152.49 ms/op 0.91
findModifiedValidators - no difference 147.76 ms/op 159.68 ms/op 0.93
compare ViewDUs 2.9416 s/op 2.6850 s/op 1.10
compare each validator Uint8Array 1.0588 s/op 1.3505 s/op 0.78
compare ViewDU to Uint8Array 721.47 ms/op 779.12 ms/op 0.93
migrate state 1000000 validators, 24 modified, 0 new 847.90 ms/op 812.38 ms/op 1.04
migrate state 1000000 validators, 1700 modified, 1000 new 1.0999 s/op 1.0098 s/op 1.09
migrate state 1000000 validators, 3400 modified, 2000 new 1.2657 s/op 1.2595 s/op 1.00
migrate state 1500000 validators, 24 modified, 0 new 853.06 ms/op 849.84 ms/op 1.00
migrate state 1500000 validators, 1700 modified, 1000 new 1.0275 s/op 1.0754 s/op 0.96
migrate state 1500000 validators, 3400 modified, 2000 new 1.2937 s/op 1.2728 s/op 1.02
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.4800 ns/op 5.8500 ns/op 1.11
state getBlockRootAtSlot - 250000 vs - 7PWei 889.62 ns/op 843.02 ns/op 1.06
computeProposers - vc 250000 6.0985 ms/op 6.4259 ms/op 0.95
computeEpochShuffling - vc 250000 81.382 ms/op 71.773 ms/op 1.13
getNextSyncCommittee - vc 250000 116.90 ms/op 107.32 ms/op 1.09
computeSigningRoot for AttestationData 27.385 us/op 22.820 us/op 1.20
hash AttestationData serialized data then Buffer.toString(base64) 1.2442 us/op 1.1169 us/op 1.11
toHexString serialized data 828.90 ns/op 675.81 ns/op 1.23
Buffer.toString(base64) 145.70 ns/op 133.91 ns/op 1.09
nodejs block root to RootHex using toHex 120.18 ns/op 117.83 ns/op 1.02
nodejs block root to RootHex using toRootHex 78.208 ns/op 75.520 ns/op 1.04
browser block root to RootHex using the deprecated toHexString 211.91 ns/op 183.59 ns/op 1.15
browser block root to RootHex using toHex 168.88 ns/op 150.16 ns/op 1.12
browser block root to RootHex using toRootHex 156.48 ns/op 134.33 ns/op 1.16

by benchmarkbot/action

@nflaig
Copy link
Member

nflaig commented Oct 11, 2024

should we fix the lint error in this PR?

@nazarhussain
Copy link
Contributor Author

should we fix the lint error in this PR?

Created one for it. #7152

@nazarhussain nazarhussain enabled auto-merge (squash) October 11, 2024 12:39
@nazarhussain nazarhussain merged commit ac6edd3 into unstable Oct 11, 2024
20 checks passed
@nazarhussain nazarhussain deleted the nh/vscode-settings branch October 11, 2024 13:08
philknows pushed a commit that referenced this pull request Oct 18, 2024
* Add vscode settings to split prettier and biome

* Add whitespace

* Fix branch name
@wemeetagain
Copy link
Member

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