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: fix import order with biome syntax #7211

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

nazarhussain
Copy link
Contributor

Motivation

Avoid use related mistakes.

Description

  • Fix the import order
  • Enable import related linting settings

Steps to test or reproduce

  • Run all tests

@nazarhussain nazarhussain requested a review from a team as a code owner October 30, 2024 11:44
@nazarhussain nazarhussain self-assigned this Oct 30, 2024
Copy link
Contributor

github-actions bot commented Oct 30, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 5dd5d30 Previous: 794e5ef Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.9984 ms/op 2.0822 ms/op 0.96
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 50.748 us/op 46.744 us/op 1.09
BLS verify - blst 844.39 us/op 1.2001 ms/op 0.70
BLS verifyMultipleSignatures 3 - blst 1.2559 ms/op 2.1737 ms/op 0.58
BLS verifyMultipleSignatures 8 - blst 1.6397 ms/op 2.4620 ms/op 0.67
BLS verifyMultipleSignatures 32 - blst 4.8273 ms/op 7.1653 ms/op 0.67
BLS verifyMultipleSignatures 64 - blst 8.8977 ms/op 11.014 ms/op 0.81
BLS verifyMultipleSignatures 128 - blst 17.211 ms/op 17.412 ms/op 0.99
BLS deserializing 10000 signatures 692.35 ms/op 709.08 ms/op 0.98
BLS deserializing 100000 signatures 6.8470 s/op 6.9998 s/op 0.98
BLS verifyMultipleSignatures - same message - 3 - blst 796.04 us/op 892.86 us/op 0.89
BLS verifyMultipleSignatures - same message - 8 - blst 952.87 us/op 1.3421 ms/op 0.71
BLS verifyMultipleSignatures - same message - 32 - blst 1.6523 ms/op 1.7775 ms/op 0.93
BLS verifyMultipleSignatures - same message - 64 - blst 2.5610 ms/op 2.6496 ms/op 0.97
BLS verifyMultipleSignatures - same message - 128 - blst 4.2293 ms/op 4.3765 ms/op 0.97
BLS aggregatePubkeys 32 - blst 19.413 us/op 19.968 us/op 0.97
BLS aggregatePubkeys 128 - blst 69.017 us/op 70.563 us/op 0.98
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 61.626 ms/op 80.272 ms/op 0.77
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 51.931 ms/op 81.450 ms/op 0.64
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 38.329 ms/op 51.250 ms/op 0.75
getSlashingsAndExits - default max 81.280 us/op 92.184 us/op 0.88
getSlashingsAndExits - 2k 248.03 us/op 349.29 us/op 0.71
proposeBlockBody type=full, size=empty 5.6310 ms/op 6.4142 ms/op 0.88
isKnown best case - 1 super set check 291.00 ns/op 296.00 ns/op 0.98
isKnown normal case - 2 super set checks 288.00 ns/op 303.00 ns/op 0.95
isKnown worse case - 16 super set checks 268.00 ns/op 303.00 ns/op 0.88
InMemoryCheckpointStateCache - add get delete 2.7050 us/op 3.4540 us/op 0.78
updateUnfinalizedPubkeys - updating 10 pubkeys 764.19 us/op 1.4156 ms/op 0.54
updateUnfinalizedPubkeys - updating 100 pubkeys 3.0204 ms/op 3.4637 ms/op 0.87
updateUnfinalizedPubkeys - updating 1000 pubkeys 47.419 ms/op 48.915 ms/op 0.97
validate api signedAggregateAndProof - struct 1.3282 ms/op 2.3712 ms/op 0.56
validate gossip signedAggregateAndProof - struct 1.3197 ms/op 2.5861 ms/op 0.51
batch validate gossip attestation - vc 640000 - chunk 32 121.01 us/op 135.40 us/op 0.89
batch validate gossip attestation - vc 640000 - chunk 64 104.99 us/op 113.72 us/op 0.92
batch validate gossip attestation - vc 640000 - chunk 128 104.75 us/op 107.82 us/op 0.97
batch validate gossip attestation - vc 640000 - chunk 256 102.99 us/op 105.32 us/op 0.98
pickEth1Vote - no votes 1.0990 ms/op 1.0256 ms/op 1.07
pickEth1Vote - max votes 5.9125 ms/op 6.5448 ms/op 0.90
pickEth1Vote - Eth1Data hashTreeRoot value x2048 13.237 ms/op 15.395 ms/op 0.86
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 21.478 ms/op 25.438 ms/op 0.84
pickEth1Vote - Eth1Data fastSerialize value x2048 446.67 us/op 509.42 us/op 0.88
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.6938 ms/op 3.3807 ms/op 0.80
bytes32 toHexString 451.00 ns/op 431.00 ns/op 1.05
bytes32 Buffer.toString(hex) 294.00 ns/op 241.00 ns/op 1.22
bytes32 Buffer.toString(hex) from Uint8Array 433.00 ns/op 372.00 ns/op 1.16
bytes32 Buffer.toString(hex) + 0x 261.00 ns/op 244.00 ns/op 1.07
Object access 1 prop 0.15700 ns/op 0.13200 ns/op 1.19
Map access 1 prop 0.14300 ns/op 0.13100 ns/op 1.09
Object get x1000 6.2770 ns/op 5.8730 ns/op 1.07
Map get x1000 6.5220 ns/op 6.1890 ns/op 1.05
Object set x1000 38.999 ns/op 31.789 ns/op 1.23
Map set x1000 25.834 ns/op 21.137 ns/op 1.22
Return object 10000 times 0.30070 ns/op 0.28400 ns/op 1.06
Throw Error 10000 times 3.4351 us/op 3.4193 us/op 1.00
toHex 155.96 ns/op 136.23 ns/op 1.14
Buffer.from 135.25 ns/op 136.62 ns/op 0.99
shared Buffer 91.575 ns/op 88.793 ns/op 1.03
fastMsgIdFn sha256 / 200 bytes 2.3070 us/op 2.1540 us/op 1.07
fastMsgIdFn h32 xxhash / 200 bytes 258.00 ns/op 221.00 ns/op 1.17
fastMsgIdFn h64 xxhash / 200 bytes 274.00 ns/op 255.00 ns/op 1.07
fastMsgIdFn sha256 / 1000 bytes 7.3870 us/op 7.3530 us/op 1.00
fastMsgIdFn h32 xxhash / 1000 bytes 374.00 ns/op 359.00 ns/op 1.04
fastMsgIdFn h64 xxhash / 1000 bytes 348.00 ns/op 330.00 ns/op 1.05
fastMsgIdFn sha256 / 10000 bytes 64.929 us/op 63.285 us/op 1.03
fastMsgIdFn h32 xxhash / 10000 bytes 1.9000 us/op 1.8010 us/op 1.05
fastMsgIdFn h64 xxhash / 10000 bytes 1.2290 us/op 1.1990 us/op 1.03
send data - 1000 256B messages 13.034 ms/op 12.288 ms/op 1.06
send data - 1000 512B messages 16.674 ms/op 16.850 ms/op 0.99
send data - 1000 1024B messages 26.448 ms/op 25.280 ms/op 1.05
send data - 1000 1200B messages 26.296 ms/op 27.782 ms/op 0.95
send data - 1000 2048B messages 33.294 ms/op 33.567 ms/op 0.99
send data - 1000 4096B messages 34.618 ms/op 33.039 ms/op 1.05
send data - 1000 16384B messages 75.384 ms/op 71.904 ms/op 1.05
send data - 1000 65536B messages 217.10 ms/op 200.06 ms/op 1.09
enrSubnets - fastDeserialize 64 bits 1.1540 us/op 1.0560 us/op 1.09
enrSubnets - ssz BitVector 64 bits 362.00 ns/op 347.00 ns/op 1.04
enrSubnets - fastDeserialize 4 bits 148.00 ns/op 140.00 ns/op 1.06
enrSubnets - ssz BitVector 4 bits 353.00 ns/op 345.00 ns/op 1.02
prioritizePeers score -10:0 att 32-0.1 sync 2-0 154.22 us/op 145.34 us/op 1.06
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 154.37 us/op 167.03 us/op 0.92
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 266.69 us/op 453.89 us/op 0.59
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 412.74 us/op 786.56 us/op 0.52
prioritizePeers score 0:0 att 64-1 sync 4-1 663.86 us/op 907.52 us/op 0.73
array of 16000 items push then shift 1.6292 us/op 1.6146 us/op 1.01
LinkedList of 16000 items push then shift 7.3300 ns/op 7.1620 ns/op 1.02
array of 16000 items push then pop 124.89 ns/op 118.49 ns/op 1.05
LinkedList of 16000 items push then pop 7.1240 ns/op 6.9240 ns/op 1.03
array of 24000 items push then shift 2.3915 us/op 2.3810 us/op 1.00
LinkedList of 24000 items push then shift 7.6730 ns/op 7.0290 ns/op 1.09
array of 24000 items push then pop 156.06 ns/op 141.74 ns/op 1.10
LinkedList of 24000 items push then pop 7.3660 ns/op 6.8300 ns/op 1.08
intersect bitArray bitLen 8 6.4160 ns/op 6.3480 ns/op 1.01
intersect array and set length 8 47.572 ns/op 47.461 ns/op 1.00
intersect bitArray bitLen 128 29.668 ns/op 29.506 ns/op 1.01
intersect array and set length 128 697.10 ns/op 676.16 ns/op 1.03
bitArray.getTrueBitIndexes() bitLen 128 2.1640 us/op 2.4310 us/op 0.89
bitArray.getTrueBitIndexes() bitLen 248 2.8180 us/op 3.5450 us/op 0.79
bitArray.getTrueBitIndexes() bitLen 512 6.4980 us/op 9.5130 us/op 0.68
Buffer.concat 32 items 931.00 ns/op 952.00 ns/op 0.98
Uint8Array.set 32 items 1.4620 us/op 1.9850 us/op 0.74
Buffer.copy 1.6440 us/op 2.2860 us/op 0.72
Uint8Array.set - with subarray 2.5670 us/op 2.9120 us/op 0.88
Uint8Array.set - without subarray 1.2840 us/op 1.7160 us/op 0.75
getUint32 - dataview 242.00 ns/op 233.00 ns/op 1.04
getUint32 - manual 162.00 ns/op 153.00 ns/op 1.06
Set add up to 64 items then delete first 2.2850 us/op 2.2166 us/op 1.03
OrderedSet add up to 64 items then delete first 3.3797 us/op 3.5107 us/op 0.96
Set add up to 64 items then delete last 2.6623 us/op 2.5689 us/op 1.04
OrderedSet add up to 64 items then delete last 4.0326 us/op 3.9491 us/op 1.02
Set add up to 64 items then delete middle 2.6205 us/op 2.6712 us/op 0.98
OrderedSet add up to 64 items then delete middle 5.4415 us/op 5.4032 us/op 1.01
Set add up to 128 items then delete first 5.2133 us/op 5.0232 us/op 1.04
OrderedSet add up to 128 items then delete first 7.8279 us/op 7.8043 us/op 1.00
Set add up to 128 items then delete last 5.2216 us/op 5.1409 us/op 1.02
OrderedSet add up to 128 items then delete last 8.1847 us/op 7.8141 us/op 1.05
Set add up to 128 items then delete middle 4.9841 us/op 4.9976 us/op 1.00
OrderedSet add up to 128 items then delete middle 13.332 us/op 13.824 us/op 0.96
Set add up to 256 items then delete first 9.9102 us/op 10.520 us/op 0.94
OrderedSet add up to 256 items then delete first 15.437 us/op 15.700 us/op 0.98
Set add up to 256 items then delete last 9.6274 us/op 10.152 us/op 0.95
OrderedSet add up to 256 items then delete last 15.315 us/op 15.873 us/op 0.96
Set add up to 256 items then delete middle 11.457 us/op 9.8726 us/op 1.16
OrderedSet add up to 256 items then delete middle 40.170 us/op 41.137 us/op 0.98
transfer serialized Status (84 B) 1.4060 us/op 1.5390 us/op 0.91
copy serialized Status (84 B) 1.0860 us/op 1.2510 us/op 0.87
transfer serialized SignedVoluntaryExit (112 B) 1.4250 us/op 1.7150 us/op 0.83
copy serialized SignedVoluntaryExit (112 B) 1.2670 us/op 1.3290 us/op 0.95
transfer serialized ProposerSlashing (416 B) 2.1300 us/op 1.9500 us/op 1.09
copy serialized ProposerSlashing (416 B) 1.6060 us/op 1.6960 us/op 0.95
transfer serialized Attestation (485 B) 2.0140 us/op 1.5370 us/op 1.31
copy serialized Attestation (485 B) 1.7280 us/op 2.0160 us/op 0.86
transfer serialized AttesterSlashing (33232 B) 2.2540 us/op 1.9890 us/op 1.13
copy serialized AttesterSlashing (33232 B) 5.3100 us/op 5.4320 us/op 0.98
transfer serialized Small SignedBeaconBlock (128000 B) 2.9820 us/op 3.4920 us/op 0.85
copy serialized Small SignedBeaconBlock (128000 B) 14.402 us/op 15.800 us/op 0.91
transfer serialized Avg SignedBeaconBlock (200000 B) 3.5450 us/op 3.4430 us/op 1.03
copy serialized Avg SignedBeaconBlock (200000 B) 20.301 us/op 25.774 us/op 0.79
transfer serialized BlobsSidecar (524380 B) 2.7630 us/op 2.9940 us/op 0.92
copy serialized BlobsSidecar (524380 B) 82.954 us/op 82.911 us/op 1.00
transfer serialized Big SignedBeaconBlock (1000000 B) 2.7300 us/op 3.0150 us/op 0.91
copy serialized Big SignedBeaconBlock (1000000 B) 346.88 us/op 141.46 us/op 2.45
pass gossip attestations to forkchoice per slot 2.7976 ms/op 2.7794 ms/op 1.01
forkChoice updateHead vc 100000 bc 64 eq 0 448.66 us/op 454.51 us/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 0 2.7741 ms/op 3.1670 ms/op 0.88
forkChoice updateHead vc 1000000 bc 64 eq 0 4.7120 ms/op 4.8269 ms/op 0.98
forkChoice updateHead vc 600000 bc 320 eq 0 2.7695 ms/op 2.6954 ms/op 1.03
forkChoice updateHead vc 600000 bc 1200 eq 0 2.7870 ms/op 2.7609 ms/op 1.01
forkChoice updateHead vc 600000 bc 7200 eq 0 3.1590 ms/op 3.2106 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 1000 10.648 ms/op 10.416 ms/op 1.02
forkChoice updateHead vc 600000 bc 64 eq 10000 10.094 ms/op 10.064 ms/op 1.00
forkChoice updateHead vc 600000 bc 64 eq 300000 13.872 ms/op 13.762 ms/op 1.01
computeDeltas 500000 validators 300 proto nodes 3.9243 ms/op 3.8876 ms/op 1.01
computeDeltas 500000 validators 1200 proto nodes 3.9068 ms/op 4.0912 ms/op 0.95
computeDeltas 500000 validators 7200 proto nodes 3.9051 ms/op 4.1143 ms/op 0.95
computeDeltas 750000 validators 300 proto nodes 5.9206 ms/op 6.3568 ms/op 0.93
computeDeltas 750000 validators 1200 proto nodes 5.8853 ms/op 6.2474 ms/op 0.94
computeDeltas 750000 validators 7200 proto nodes 5.8463 ms/op 6.2229 ms/op 0.94
computeDeltas 1400000 validators 300 proto nodes 11.135 ms/op 11.208 ms/op 0.99
computeDeltas 1400000 validators 1200 proto nodes 11.228 ms/op 11.408 ms/op 0.98
computeDeltas 1400000 validators 7200 proto nodes 11.021 ms/op 11.061 ms/op 1.00
computeDeltas 2100000 validators 300 proto nodes 16.656 ms/op 17.145 ms/op 0.97
computeDeltas 2100000 validators 1200 proto nodes 16.544 ms/op 17.072 ms/op 0.97
computeDeltas 2100000 validators 7200 proto nodes 16.708 ms/op 17.304 ms/op 0.97
altair processAttestation - 250000 vs - 7PWei normalcase 1.8715 ms/op 1.7977 ms/op 1.04
altair processAttestation - 250000 vs - 7PWei worstcase 2.6801 ms/op 2.6832 ms/op 1.00
altair processAttestation - setStatus - 1/6 committees join 130.55 us/op 118.61 us/op 1.10
altair processAttestation - setStatus - 1/3 committees join 240.63 us/op 227.65 us/op 1.06
altair processAttestation - setStatus - 1/2 committees join 334.04 us/op 326.76 us/op 1.02
altair processAttestation - setStatus - 2/3 committees join 431.60 us/op 419.28 us/op 1.03
altair processAttestation - setStatus - 4/5 committees join 587.45 us/op 573.81 us/op 1.02
altair processAttestation - setStatus - 100% committees join 704.75 us/op 675.58 us/op 1.04
altair processBlock - 250000 vs - 7PWei normalcase 4.2790 ms/op 4.3790 ms/op 0.98
altair processBlock - 250000 vs - 7PWei normalcase hashState 25.289 ms/op 32.166 ms/op 0.79
altair processBlock - 250000 vs - 7PWei worstcase 33.268 ms/op 48.586 ms/op 0.68
altair processBlock - 250000 vs - 7PWei worstcase hashState 64.859 ms/op 85.469 ms/op 0.76
phase0 processBlock - 250000 vs - 7PWei normalcase 1.7382 ms/op 2.3633 ms/op 0.74
phase0 processBlock - 250000 vs - 7PWei worstcase 20.366 ms/op 27.783 ms/op 0.73
altair processEth1Data - 250000 vs - 7PWei normalcase 306.19 us/op 319.69 us/op 0.96
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 4.8160 us/op 7.6620 us/op 0.63
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 27.714 us/op 43.049 us/op 0.64
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.4970 us/op 11.398 us/op 0.75
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 5.0830 us/op 7.7560 us/op 0.66
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 107.46 us/op 144.71 us/op 0.74
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.0918 ms/op 1.9841 ms/op 0.55
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.4346 ms/op 1.5573 ms/op 0.92
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.5659 ms/op 1.5357 ms/op 1.02
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.7405 ms/op 5.9394 ms/op 0.63
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5692 ms/op 1.5741 ms/op 1.00
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.5838 ms/op 3.7261 ms/op 0.96
Tree 40 250000 create 205.89 ms/op 217.57 ms/op 0.95
Tree 40 250000 get(125000) 135.95 ns/op 153.16 ns/op 0.89
Tree 40 250000 set(125000) 653.26 ns/op 749.81 ns/op 0.87
Tree 40 250000 toArray() 16.113 ms/op 22.242 ms/op 0.72
Tree 40 250000 iterate all - toArray() + loop 15.505 ms/op 17.310 ms/op 0.90
Tree 40 250000 iterate all - get(i) 53.484 ms/op 54.757 ms/op 0.98
Array 250000 create 2.9300 ms/op 2.8872 ms/op 1.01
Array 250000 clone - spread 1.4109 ms/op 1.5207 ms/op 0.93
Array 250000 get(125000) 0.40100 ns/op 0.41900 ns/op 0.96
Array 250000 set(125000) 0.41600 ns/op 0.43300 ns/op 0.96
Array 250000 iterate all - loop 78.331 us/op 108.80 us/op 0.72
phase0 afterProcessEpoch - 250000 vs - 7PWei 48.327 ms/op 49.801 ms/op 0.97
Array.fill - length 1000000 3.4110 ms/op 3.7618 ms/op 0.91
Array push - length 1000000 12.543 ms/op 12.971 ms/op 0.97
Array.get 0.28216 ns/op 0.28441 ns/op 0.99
Uint8Array.get 0.44191 ns/op 0.44793 ns/op 0.99
phase0 beforeProcessEpoch - 250000 vs - 7PWei 21.227 ms/op 17.402 ms/op 1.22
altair processEpoch - mainnet_e81889 279.41 ms/op 294.25 ms/op 0.95
mainnet_e81889 - altair beforeProcessEpoch 19.744 ms/op 18.829 ms/op 1.05
mainnet_e81889 - altair processJustificationAndFinalization 11.826 us/op 19.096 us/op 0.62
mainnet_e81889 - altair processInactivityUpdates 5.7190 ms/op 5.1721 ms/op 1.11
mainnet_e81889 - altair processRewardsAndPenalties 35.112 ms/op 56.393 ms/op 0.62
mainnet_e81889 - altair processRegistryUpdates 2.1740 us/op 3.4540 us/op 0.63
mainnet_e81889 - altair processSlashings 421.00 ns/op 640.00 ns/op 0.66
mainnet_e81889 - altair processEth1DataReset 345.00 ns/op 557.00 ns/op 0.62
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.4902 ms/op 2.5594 ms/op 0.58
mainnet_e81889 - altair processSlashingsReset 2.5870 us/op 4.8540 us/op 0.53
mainnet_e81889 - altair processRandaoMixesReset 4.2380 us/op 5.7290 us/op 0.74
mainnet_e81889 - altair processHistoricalRootsUpdate 474.00 ns/op 1.5360 us/op 0.31
mainnet_e81889 - altair processParticipationFlagUpdates 2.1330 us/op 3.1860 us/op 0.67
mainnet_e81889 - altair processSyncCommitteeUpdates 410.00 ns/op 880.00 ns/op 0.47
mainnet_e81889 - altair afterProcessEpoch 51.692 ms/op 50.522 ms/op 1.02
capella processEpoch - mainnet_e217614 982.00 ms/op 1.1299 s/op 0.87
mainnet_e217614 - capella beforeProcessEpoch 69.134 ms/op 72.064 ms/op 0.96
mainnet_e217614 - capella processJustificationAndFinalization 12.848 us/op 13.709 us/op 0.94
mainnet_e217614 - capella processInactivityUpdates 17.415 ms/op 17.032 ms/op 1.02
mainnet_e217614 - capella processRewardsAndPenalties 214.10 ms/op 258.72 ms/op 0.83
mainnet_e217614 - capella processRegistryUpdates 11.375 us/op 19.446 us/op 0.58
mainnet_e217614 - capella processSlashings 400.00 ns/op 630.00 ns/op 0.63
mainnet_e217614 - capella processEth1DataReset 293.00 ns/op 572.00 ns/op 0.51
mainnet_e217614 - capella processEffectiveBalanceUpdates 12.684 ms/op 11.766 ms/op 1.08
mainnet_e217614 - capella processSlashingsReset 3.6710 us/op 5.7100 us/op 0.64
mainnet_e217614 - capella processRandaoMixesReset 3.3090 us/op 6.1290 us/op 0.54
mainnet_e217614 - capella processHistoricalRootsUpdate 300.00 ns/op 561.00 ns/op 0.53
mainnet_e217614 - capella processParticipationFlagUpdates 6.3770 us/op 2.9380 us/op 2.17
mainnet_e217614 - capella afterProcessEpoch 124.11 ms/op 119.60 ms/op 1.04
phase0 processEpoch - mainnet_e58758 297.36 ms/op 349.33 ms/op 0.85
mainnet_e58758 - phase0 beforeProcessEpoch 72.899 ms/op 88.196 ms/op 0.83
mainnet_e58758 - phase0 processJustificationAndFinalization 21.770 us/op 19.944 us/op 1.09
mainnet_e58758 - phase0 processRewardsAndPenalties 32.056 ms/op 43.541 ms/op 0.74
mainnet_e58758 - phase0 processRegistryUpdates 8.1740 us/op 10.749 us/op 0.76
mainnet_e58758 - phase0 processSlashings 420.00 ns/op 662.00 ns/op 0.63
mainnet_e58758 - phase0 processEth1DataReset 414.00 ns/op 484.00 ns/op 0.86
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.6735 ms/op 2.2927 ms/op 0.73
mainnet_e58758 - phase0 processSlashingsReset 3.1140 us/op 4.3320 us/op 0.72
mainnet_e58758 - phase0 processRandaoMixesReset 5.0170 us/op 5.6980 us/op 0.88
mainnet_e58758 - phase0 processHistoricalRootsUpdate 377.00 ns/op 565.00 ns/op 0.67
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.3350 us/op 4.8170 us/op 0.69
mainnet_e58758 - phase0 afterProcessEpoch 44.492 ms/op 42.857 ms/op 1.04
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.9379 ms/op 2.3042 ms/op 0.84
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.7234 ms/op 2.2367 ms/op 1.22
altair processInactivityUpdates - 250000 normalcase 15.055 ms/op 20.839 ms/op 0.72
altair processInactivityUpdates - 250000 worstcase 17.719 ms/op 23.409 ms/op 0.76
phase0 processRegistryUpdates - 250000 normalcase 7.5520 us/op 7.5130 us/op 1.01
phase0 processRegistryUpdates - 250000 badcase_full_deposits 318.12 us/op 439.75 us/op 0.72
phase0 processRegistryUpdates - 250000 worstcase 0.5 119.62 ms/op 140.52 ms/op 0.85
altair processRewardsAndPenalties - 250000 normalcase 43.199 ms/op 49.588 ms/op 0.87
altair processRewardsAndPenalties - 250000 worstcase 35.925 ms/op 42.678 ms/op 0.84
phase0 getAttestationDeltas - 250000 normalcase 7.9932 ms/op 7.1706 ms/op 1.11
phase0 getAttestationDeltas - 250000 worstcase 7.4395 ms/op 7.2216 ms/op 1.03
phase0 processSlashings - 250000 worstcase 92.687 us/op 123.43 us/op 0.75
altair processSyncCommitteeUpdates - 250000 131.25 ms/op 121.16 ms/op 1.08
BeaconState.hashTreeRoot - No change 279.00 ns/op 248.00 ns/op 1.13
BeaconState.hashTreeRoot - 1 full validator 91.230 us/op 120.31 us/op 0.76
BeaconState.hashTreeRoot - 32 full validator 874.12 us/op 1.3589 ms/op 0.64
BeaconState.hashTreeRoot - 512 full validator 9.7674 ms/op 11.068 ms/op 0.88
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 131.25 us/op 161.86 us/op 0.81
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.9222 ms/op 2.1610 ms/op 0.89
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 20.394 ms/op 25.645 ms/op 0.80
BeaconState.hashTreeRoot - 1 balances 86.943 us/op 111.58 us/op 0.78
BeaconState.hashTreeRoot - 32 balances 763.54 us/op 1.2480 ms/op 0.61
BeaconState.hashTreeRoot - 512 balances 7.5884 ms/op 7.1646 ms/op 1.06
BeaconState.hashTreeRoot - 250000 balances 158.54 ms/op 172.12 ms/op 0.92
aggregationBits - 2048 els - zipIndexesInBitList 23.863 us/op 23.432 us/op 1.02
byteArrayEquals 32 54.029 ns/op 52.783 ns/op 1.02
Buffer.compare 32 17.497 ns/op 17.620 ns/op 0.99
byteArrayEquals 1024 1.6113 us/op 1.5671 us/op 1.03
Buffer.compare 1024 24.903 ns/op 25.567 ns/op 0.97
byteArrayEquals 16384 25.469 us/op 24.785 us/op 1.03
Buffer.compare 16384 199.23 ns/op 204.69 ns/op 0.97
byteArrayEquals 123687377 191.71 ms/op 187.06 ms/op 1.02
Buffer.compare 123687377 7.1274 ms/op 6.3298 ms/op 1.13
byteArrayEquals 32 - diff last byte 52.841 ns/op 51.924 ns/op 1.02
Buffer.compare 32 - diff last byte 17.278 ns/op 16.943 ns/op 1.02
byteArrayEquals 1024 - diff last byte 1.5915 us/op 1.5542 us/op 1.02
Buffer.compare 1024 - diff last byte 26.208 ns/op 25.345 ns/op 1.03
byteArrayEquals 16384 - diff last byte 25.399 us/op 24.744 us/op 1.03
Buffer.compare 16384 - diff last byte 206.79 ns/op 195.14 ns/op 1.06
byteArrayEquals 123687377 - diff last byte 192.21 ms/op 186.82 ms/op 1.03
Buffer.compare 123687377 - diff last byte 6.1375 ms/op 6.3148 ms/op 0.97
byteArrayEquals 32 - random bytes 5.1730 ns/op 5.0500 ns/op 1.02
Buffer.compare 32 - random bytes 17.152 ns/op 16.948 ns/op 1.01
byteArrayEquals 1024 - random bytes 5.1430 ns/op 5.1520 ns/op 1.00
Buffer.compare 1024 - random bytes 17.154 ns/op 17.154 ns/op 1.00
byteArrayEquals 16384 - random bytes 5.1320 ns/op 5.0750 ns/op 1.01
Buffer.compare 16384 - random bytes 17.261 ns/op 16.998 ns/op 1.02
byteArrayEquals 123687377 - random bytes 6.4700 ns/op 6.4200 ns/op 1.01
Buffer.compare 123687377 - random bytes 18.460 ns/op 18.290 ns/op 1.01
regular array get 100000 times 42.933 us/op 40.491 us/op 1.06
wrappedArray get 100000 times 38.063 us/op 33.614 us/op 1.13
arrayWithProxy get 100000 times 14.363 ms/op 14.705 ms/op 0.98
ssz.Root.equals 45.969 ns/op 46.141 ns/op 1.00
byteArrayEquals 45.186 ns/op 45.460 ns/op 0.99
Buffer.compare 10.353 ns/op 10.489 ns/op 0.99
processSlot - 1 slots 13.555 us/op 11.553 us/op 1.17
processSlot - 32 slots 2.5981 ms/op 2.6053 ms/op 1.00
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 37.065 ms/op 35.872 ms/op 1.03
getCommitteeAssignments - req 1 vs - 250000 vc 2.0997 ms/op 2.0551 ms/op 1.02
getCommitteeAssignments - req 100 vs - 250000 vc 4.0879 ms/op 3.9912 ms/op 1.02
getCommitteeAssignments - req 1000 vs - 250000 vc 4.3410 ms/op 4.2431 ms/op 1.02
findModifiedValidators - 10000 modified validators 260.32 ms/op 279.88 ms/op 0.93
findModifiedValidators - 1000 modified validators 159.47 ms/op 194.20 ms/op 0.82
findModifiedValidators - 100 modified validators 152.82 ms/op 175.31 ms/op 0.87
findModifiedValidators - 10 modified validators 146.68 ms/op 187.72 ms/op 0.78
findModifiedValidators - 1 modified validators 159.23 ms/op 168.16 ms/op 0.95
findModifiedValidators - no difference 169.22 ms/op 176.32 ms/op 0.96
compare ViewDUs 3.1904 s/op 3.1016 s/op 1.03
compare each validator Uint8Array 1.3923 s/op 1.7851 s/op 0.78
compare ViewDU to Uint8Array 1.1259 s/op 934.65 ms/op 1.20
migrate state 1000000 validators, 24 modified, 0 new 697.77 ms/op 765.18 ms/op 0.91
migrate state 1000000 validators, 1700 modified, 1000 new 892.30 ms/op 1.0571 s/op 0.84
migrate state 1000000 validators, 3400 modified, 2000 new 1.2392 s/op 1.2661 s/op 0.98
migrate state 1500000 validators, 24 modified, 0 new 773.83 ms/op 809.69 ms/op 0.96
migrate state 1500000 validators, 1700 modified, 1000 new 955.28 ms/op 1.0275 s/op 0.93
migrate state 1500000 validators, 3400 modified, 2000 new 1.2046 s/op 1.2673 s/op 0.95
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.5400 ns/op 4.3500 ns/op 1.04
state getBlockRootAtSlot - 250000 vs - 7PWei 712.00 ns/op 709.14 ns/op 1.00
computeProposers - vc 250000 8.1133 ms/op 7.9008 ms/op 1.03
computeEpochShuffling - vc 250000 42.692 ms/op 41.656 ms/op 1.02
getNextSyncCommittee - vc 250000 134.27 ms/op 136.49 ms/op 0.98
computeSigningRoot for AttestationData 20.438 us/op 28.049 us/op 0.73
hash AttestationData serialized data then Buffer.toString(base64) 1.5932 us/op 1.5479 us/op 1.03
toHexString serialized data 919.65 ns/op 885.51 ns/op 1.04
Buffer.toString(base64) 186.20 ns/op 180.38 ns/op 1.03
nodejs block root to RootHex using toHex 189.39 ns/op 149.77 ns/op 1.26
nodejs block root to RootHex using toRootHex 102.32 ns/op 91.744 ns/op 1.12
browser block root to RootHex using the deprecated toHexString 246.72 ns/op 225.41 ns/op 1.09
browser block root to RootHex using toHex 190.71 ns/op 177.98 ns/op 1.07
browser block root to RootHex using toRootHex 171.43 ns/op 156.59 ns/op 1.09

by benchmarkbot/action

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.38%. Comparing base (99c0dcb) to head (6c561d8).
Report is 2 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #7211      +/-   ##
============================================
+ Coverage     49.21%   49.38%   +0.16%     
============================================
  Files           598      599       +1     
  Lines         39820    39956     +136     
  Branches       2096     2097       +1     
============================================
+ Hits          19599    19733     +134     
- Misses        20183    20185       +2     
  Partials         38       38              

Copy link
Member

@nflaig nflaig left a comment

Choose a reason for hiding this comment

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

LGTM

@nazarhussain nazarhussain merged commit 06b4c2d into unstable Nov 1, 2024
19 of 20 checks passed
@nazarhussain nazarhussain deleted the nh/biome-import-order branch November 1, 2024 16:14
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