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 various imports #7583

Merged
merged 1 commit into from
Mar 15, 2025
Merged

chore: fix various imports #7583

merged 1 commit into from
Mar 15, 2025

Conversation

ensi321
Copy link
Contributor

@ensi321 ensi321 commented Mar 14, 2025

Fixing multiple imports especially those that are referencing js files

@ensi321 ensi321 requested a review from a team as a code owner March 14, 2025 23:21
Copy link

codecov bot commented Mar 14, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 50.20%. Comparing base (3cb84a8) to head (48a24cc).
Report is 2 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #7583      +/-   ##
============================================
- Coverage     50.21%   50.20%   -0.02%     
============================================
  Files           603      603              
  Lines         40509    40509              
  Branches       2244     2238       -6     
============================================
- Hits          20343    20337       -6     
- Misses        20126    20132       +6     
  Partials         40       40              
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

Performance Report

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 798516d Previous: 8448e83 Ratio
getSlashingsAndExits - default max 77.737 us/op 309.48 us/op 0.25
pickEth1Vote - max votes 5.3436 ms/op 19.365 ms/op 0.28
Full benchmark results
Benchmark suite Current: 798516d Previous: 8448e83 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.0081 ms/op 1.4846 ms/op 0.68
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 37.041 us/op 46.005 us/op 0.81
BLS verify - blst 816.94 us/op 1.0121 ms/op 0.81
BLS verifyMultipleSignatures 3 - blst 1.2781 ms/op 1.4198 ms/op 0.90
BLS verifyMultipleSignatures 8 - blst 1.8714 ms/op 2.2074 ms/op 0.85
BLS verifyMultipleSignatures 32 - blst 4.9965 ms/op 6.3216 ms/op 0.79
BLS verifyMultipleSignatures 64 - blst 9.2306 ms/op 11.506 ms/op 0.80
BLS verifyMultipleSignatures 128 - blst 17.623 ms/op 19.264 ms/op 0.91
BLS deserializing 10000 signatures 706.99 ms/op 794.19 ms/op 0.89
BLS deserializing 100000 signatures 7.0672 s/op 8.4141 s/op 0.84
BLS verifyMultipleSignatures - same message - 3 - blst 1.0098 ms/op 1.4408 ms/op 0.70
BLS verifyMultipleSignatures - same message - 8 - blst 1.1784 ms/op 1.3800 ms/op 0.85
BLS verifyMultipleSignatures - same message - 32 - blst 1.8172 ms/op 2.0906 ms/op 0.87
BLS verifyMultipleSignatures - same message - 64 - blst 2.7289 ms/op 3.7919 ms/op 0.72
BLS verifyMultipleSignatures - same message - 128 - blst 4.5571 ms/op 6.7416 ms/op 0.68
BLS aggregatePubkeys 32 - blst 20.169 us/op 27.457 us/op 0.73
BLS aggregatePubkeys 128 - blst 72.114 us/op 98.114 us/op 0.74
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 55.022 ms/op 95.390 ms/op 0.58
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 50.764 ms/op 85.999 ms/op 0.59
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 38.340 ms/op 65.904 ms/op 0.58
getSlashingsAndExits - default max 77.737 us/op 309.48 us/op 0.25
getSlashingsAndExits - 2k 345.50 us/op 619.17 us/op 0.56
proposeBlockBody type=full, size=empty 4.9685 ms/op 6.0410 ms/op 0.82
isKnown best case - 1 super set check 211.00 ns/op 225.00 ns/op 0.94
isKnown normal case - 2 super set checks 204.00 ns/op 221.00 ns/op 0.92
isKnown worse case - 16 super set checks 205.00 ns/op 222.00 ns/op 0.92
InMemoryCheckpointStateCache - add get delete 2.3260 us/op 2.6860 us/op 0.87
validate api signedAggregateAndProof - struct 1.4133 ms/op 1.8163 ms/op 0.78
validate gossip signedAggregateAndProof - struct 1.5236 ms/op 1.4621 ms/op 1.04
batch validate gossip attestation - vc 640000 - chunk 32 119.12 us/op 148.49 us/op 0.80
batch validate gossip attestation - vc 640000 - chunk 64 105.24 us/op 123.19 us/op 0.85
batch validate gossip attestation - vc 640000 - chunk 128 97.384 us/op 127.27 us/op 0.77
batch validate gossip attestation - vc 640000 - chunk 256 97.496 us/op 130.17 us/op 0.75
pickEth1Vote - no votes 928.64 us/op 1.8097 ms/op 0.51
pickEth1Vote - max votes 5.3436 ms/op 19.365 ms/op 0.28
pickEth1Vote - Eth1Data hashTreeRoot value x2048 11.343 ms/op 23.551 ms/op 0.48
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 15.618 ms/op 64.513 ms/op 0.24
pickEth1Vote - Eth1Data fastSerialize value x2048 438.56 us/op 696.64 us/op 0.63
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.3363 ms/op 13.710 ms/op 0.17
bytes32 toHexString 374.00 ns/op 465.00 ns/op 0.80
bytes32 Buffer.toString(hex) 232.00 ns/op 368.00 ns/op 0.63
bytes32 Buffer.toString(hex) from Uint8Array 328.00 ns/op 353.00 ns/op 0.93
bytes32 Buffer.toString(hex) + 0x 232.00 ns/op 243.00 ns/op 0.95
Object access 1 prop 0.11700 ns/op 0.14100 ns/op 0.83
Map access 1 prop 0.12600 ns/op 0.12700 ns/op 0.99
Object get x1000 6.0030 ns/op 6.3410 ns/op 0.95
Map get x1000 6.3690 ns/op 6.4770 ns/op 0.98
Object set x1000 27.959 ns/op 33.466 ns/op 0.84
Map set x1000 19.273 ns/op 21.890 ns/op 0.88
Return object 10000 times 0.28900 ns/op 0.29740 ns/op 0.97
Throw Error 10000 times 4.2818 us/op 4.6671 us/op 0.92
toHex 134.50 ns/op 145.91 ns/op 0.92
Buffer.from 123.22 ns/op 134.76 ns/op 0.91
shared Buffer 78.757 ns/op 80.202 ns/op 0.98
fastMsgIdFn sha256 / 200 bytes 2.1730 us/op 2.3010 us/op 0.94
fastMsgIdFn h32 xxhash / 200 bytes 206.00 ns/op 217.00 ns/op 0.95
fastMsgIdFn h64 xxhash / 200 bytes 270.00 ns/op 301.00 ns/op 0.90
fastMsgIdFn sha256 / 1000 bytes 7.1560 us/op 7.4900 us/op 0.96
fastMsgIdFn h32 xxhash / 1000 bytes 337.00 ns/op 354.00 ns/op 0.95
fastMsgIdFn h64 xxhash / 1000 bytes 348.00 ns/op 391.00 ns/op 0.89
fastMsgIdFn sha256 / 10000 bytes 64.741 us/op 67.079 us/op 0.97
fastMsgIdFn h32 xxhash / 10000 bytes 1.8440 us/op 2.0280 us/op 0.91
fastMsgIdFn h64 xxhash / 10000 bytes 1.2360 us/op 1.2880 us/op 0.96
send data - 1000 256B messages 12.299 ms/op 14.283 ms/op 0.86
send data - 1000 512B messages 17.156 ms/op 18.175 ms/op 0.94
send data - 1000 1024B messages 25.581 ms/op 31.241 ms/op 0.82
send data - 1000 1200B messages 18.721 ms/op 28.681 ms/op 0.65
send data - 1000 2048B messages 19.556 ms/op 28.354 ms/op 0.69
send data - 1000 4096B messages 23.235 ms/op 34.174 ms/op 0.68
send data - 1000 16384B messages 66.009 ms/op 62.366 ms/op 1.06
send data - 1000 65536B messages 197.21 ms/op 227.04 ms/op 0.87
enrSubnets - fastDeserialize 64 bits 880.00 ns/op 921.00 ns/op 0.96
enrSubnets - ssz BitVector 64 bits 327.00 ns/op 349.00 ns/op 0.94
enrSubnets - fastDeserialize 4 bits 131.00 ns/op 137.00 ns/op 0.96
enrSubnets - ssz BitVector 4 bits 330.00 ns/op 345.00 ns/op 0.96
prioritizePeers score -10:0 att 32-0.1 sync 2-0 117.39 us/op 124.85 us/op 0.94
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 139.83 us/op 149.35 us/op 0.94
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 199.44 us/op 214.55 us/op 0.93
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 371.53 us/op 398.64 us/op 0.93
prioritizePeers score 0:0 att 64-1 sync 4-1 455.96 us/op 479.74 us/op 0.95
array of 16000 items push then shift 1.6409 us/op 1.6582 us/op 0.99
LinkedList of 16000 items push then shift 6.9820 ns/op 9.7920 ns/op 0.71
array of 16000 items push then pop 74.435 ns/op 83.187 ns/op 0.89
LinkedList of 16000 items push then pop 6.8460 ns/op 7.7080 ns/op 0.89
array of 24000 items push then shift 2.3876 us/op 2.4570 us/op 0.97
LinkedList of 24000 items push then shift 7.0450 ns/op 9.2360 ns/op 0.76
array of 24000 items push then pop 101.87 ns/op 116.98 ns/op 0.87
LinkedList of 24000 items push then pop 6.9040 ns/op 7.8130 ns/op 0.88
intersect bitArray bitLen 8 6.4510 ns/op 6.5730 ns/op 0.98
intersect array and set length 8 37.947 ns/op 39.400 ns/op 0.96
intersect bitArray bitLen 128 29.858 ns/op 31.308 ns/op 0.95
intersect array and set length 128 630.71 ns/op 654.75 ns/op 0.96
bitArray.getTrueBitIndexes() bitLen 128 1.0420 us/op 1.2120 us/op 0.86
bitArray.getTrueBitIndexes() bitLen 248 1.8560 us/op 1.9160 us/op 0.97
bitArray.getTrueBitIndexes() bitLen 512 3.8640 us/op 4.2010 us/op 0.92
Buffer.concat 32 items 606.00 ns/op 652.00 ns/op 0.93
Uint8Array.set 32 items 991.00 ns/op 2.0140 us/op 0.49
Buffer.copy 1.9720 us/op 2.9100 us/op 0.68
Uint8Array.set - with subarray 1.5670 us/op 2.8180 us/op 0.56
Uint8Array.set - without subarray 947.00 ns/op 2.0910 us/op 0.45
getUint32 - dataview 195.00 ns/op 208.00 ns/op 0.94
getUint32 - manual 120.00 ns/op 122.00 ns/op 0.98
Set add up to 64 items then delete first 2.2078 us/op 2.4566 us/op 0.90
OrderedSet add up to 64 items then delete first 3.3228 us/op 3.6513 us/op 0.91
Set add up to 64 items then delete last 2.4883 us/op 2.8669 us/op 0.87
OrderedSet add up to 64 items then delete last 3.6013 us/op 4.9469 us/op 0.73
Set add up to 64 items then delete middle 2.5010 us/op 3.1879 us/op 0.78
OrderedSet add up to 64 items then delete middle 5.2391 us/op 6.6485 us/op 0.79
Set add up to 128 items then delete first 5.0730 us/op 6.3030 us/op 0.80
OrderedSet add up to 128 items then delete first 7.8467 us/op 10.016 us/op 0.78
Set add up to 128 items then delete last 4.9574 us/op 5.8253 us/op 0.85
OrderedSet add up to 128 items then delete last 7.3242 us/op 9.5846 us/op 0.76
Set add up to 128 items then delete middle 5.1014 us/op 5.6897 us/op 0.90
OrderedSet add up to 128 items then delete middle 14.041 us/op 17.631 us/op 0.80
Set add up to 256 items then delete first 10.593 us/op 11.889 us/op 0.89
OrderedSet add up to 256 items then delete first 16.330 us/op 17.321 us/op 0.94
Set add up to 256 items then delete last 9.7346 us/op 11.955 us/op 0.81
OrderedSet add up to 256 items then delete last 14.511 us/op 19.268 us/op 0.75
Set add up to 256 items then delete middle 9.5968 us/op 12.993 us/op 0.74
OrderedSet add up to 256 items then delete middle 41.439 us/op 46.515 us/op 0.89
transfer serialized Status (84 B) 2.2990 us/op 2.7360 us/op 0.84
copy serialized Status (84 B) 1.2400 us/op 1.8140 us/op 0.68
transfer serialized SignedVoluntaryExit (112 B) 2.3350 us/op 2.7990 us/op 0.83
copy serialized SignedVoluntaryExit (112 B) 1.2650 us/op 1.9440 us/op 0.65
transfer serialized ProposerSlashing (416 B) 2.4240 us/op 3.4330 us/op 0.71
copy serialized ProposerSlashing (416 B) 1.3370 us/op 2.5090 us/op 0.53
transfer serialized Attestation (485 B) 2.4240 us/op 3.5090 us/op 0.69
copy serialized Attestation (485 B) 1.3520 us/op 2.5390 us/op 0.53
transfer serialized AttesterSlashing (33232 B) 2.6170 us/op 3.1450 us/op 0.83
copy serialized AttesterSlashing (33232 B) 3.7770 us/op 5.4450 us/op 0.69
transfer serialized Small SignedBeaconBlock (128000 B) 3.0880 us/op 3.9570 us/op 0.78
copy serialized Small SignedBeaconBlock (128000 B) 9.3720 us/op 13.013 us/op 0.72
transfer serialized Avg SignedBeaconBlock (200000 B) 3.8430 us/op 4.6780 us/op 0.82
copy serialized Avg SignedBeaconBlock (200000 B) 15.195 us/op 27.555 us/op 0.55
transfer serialized BlobsSidecar (524380 B) 3.8190 us/op 5.7850 us/op 0.66
copy serialized BlobsSidecar (524380 B) 116.75 us/op 76.585 us/op 1.52
transfer serialized Big SignedBeaconBlock (1000000 B) 3.8900 us/op 5.3270 us/op 0.73
copy serialized Big SignedBeaconBlock (1000000 B) 114.51 us/op 134.06 us/op 0.85
pass gossip attestations to forkchoice per slot 2.7660 ms/op 2.9421 ms/op 0.94
forkChoice updateHead vc 100000 bc 64 eq 0 454.43 us/op 465.93 us/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 0 2.8306 ms/op 3.6900 ms/op 0.77
forkChoice updateHead vc 1000000 bc 64 eq 0 4.8202 ms/op 5.7143 ms/op 0.84
forkChoice updateHead vc 600000 bc 320 eq 0 2.8131 ms/op 3.1046 ms/op 0.91
forkChoice updateHead vc 600000 bc 1200 eq 0 2.8457 ms/op 3.6515 ms/op 0.78
forkChoice updateHead vc 600000 bc 7200 eq 0 3.1485 ms/op 5.7937 ms/op 0.54
forkChoice updateHead vc 600000 bc 64 eq 1000 10.564 ms/op 10.818 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 10000 10.578 ms/op 10.792 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 300000 13.729 ms/op 23.605 ms/op 0.58
computeDeltas 500000 validators 300 proto nodes 3.9619 ms/op 4.1429 ms/op 0.96
computeDeltas 500000 validators 1200 proto nodes 3.9483 ms/op 4.2835 ms/op 0.92
computeDeltas 500000 validators 7200 proto nodes 3.9559 ms/op 4.4623 ms/op 0.89
computeDeltas 750000 validators 300 proto nodes 5.8953 ms/op 6.8232 ms/op 0.86
computeDeltas 750000 validators 1200 proto nodes 5.9208 ms/op 6.7978 ms/op 0.87
computeDeltas 750000 validators 7200 proto nodes 5.8571 ms/op 6.6898 ms/op 0.88
computeDeltas 1400000 validators 300 proto nodes 10.958 ms/op 11.506 ms/op 0.95
computeDeltas 1400000 validators 1200 proto nodes 10.911 ms/op 11.835 ms/op 0.92
computeDeltas 1400000 validators 7200 proto nodes 11.046 ms/op 11.916 ms/op 0.93
computeDeltas 2100000 validators 300 proto nodes 16.718 ms/op 20.228 ms/op 0.83
computeDeltas 2100000 validators 1200 proto nodes 16.957 ms/op 20.609 ms/op 0.82
computeDeltas 2100000 validators 7200 proto nodes 16.898 ms/op 19.420 ms/op 0.87
altair processAttestation - 250000 vs - 7PWei normalcase 2.2913 ms/op 3.7049 ms/op 0.62
altair processAttestation - 250000 vs - 7PWei worstcase 3.0746 ms/op 4.1395 ms/op 0.74
altair processAttestation - setStatus - 1/6 committees join 129.92 us/op 145.57 us/op 0.89
altair processAttestation - setStatus - 1/3 committees join 232.58 us/op 273.43 us/op 0.85
altair processAttestation - setStatus - 1/2 committees join 326.02 us/op 383.32 us/op 0.85
altair processAttestation - setStatus - 2/3 committees join 421.63 us/op 479.35 us/op 0.88
altair processAttestation - setStatus - 4/5 committees join 590.50 us/op 640.88 us/op 0.92
altair processAttestation - setStatus - 100% committees join 702.23 us/op 780.03 us/op 0.90
altair processBlock - 250000 vs - 7PWei normalcase 4.2466 ms/op 10.937 ms/op 0.39
altair processBlock - 250000 vs - 7PWei normalcase hashState 29.088 ms/op 43.561 ms/op 0.67
altair processBlock - 250000 vs - 7PWei worstcase 32.991 ms/op 52.616 ms/op 0.63
altair processBlock - 250000 vs - 7PWei worstcase hashState 77.066 ms/op 110.62 ms/op 0.70
phase0 processBlock - 250000 vs - 7PWei normalcase 1.6678 ms/op 2.1238 ms/op 0.79
phase0 processBlock - 250000 vs - 7PWei worstcase 20.156 ms/op 29.176 ms/op 0.69
altair processEth1Data - 250000 vs - 7PWei normalcase 342.12 us/op 351.99 us/op 0.97
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 5.0340 us/op 6.0500 us/op 0.83
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 34.115 us/op 38.644 us/op 0.88
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 9.0350 us/op 9.6310 us/op 0.94
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 5.7120 us/op 6.4710 us/op 0.88
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 147.04 us/op 163.69 us/op 0.90
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.0997 ms/op 1.2484 ms/op 0.88
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.4759 ms/op 1.7342 ms/op 0.85
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.4597 ms/op 1.8209 ms/op 0.80
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.3569 ms/op 3.8798 ms/op 0.87
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5002 ms/op 1.9903 ms/op 0.75
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.4223 ms/op 5.6848 ms/op 0.60
Tree 40 250000 create 471.26 ms/op 459.73 ms/op 1.03
Tree 40 250000 get(125000) 146.78 ns/op 163.58 ns/op 0.90
Tree 40 250000 set(125000) 1.6744 us/op 1.5913 us/op 1.05
Tree 40 250000 toArray() 16.012 ms/op 21.658 ms/op 0.74
Tree 40 250000 iterate all - toArray() + loop 16.435 ms/op 20.999 ms/op 0.78
Tree 40 250000 iterate all - get(i) 52.942 ms/op 61.942 ms/op 0.85
Array 250000 create 2.4470 ms/op 2.5138 ms/op 0.97
Array 250000 clone - spread 810.49 us/op 1.6669 ms/op 0.49
Array 250000 get(125000) 0.40800 ns/op 0.42800 ns/op 0.95
Array 250000 set(125000) 0.43600 ns/op 0.44500 ns/op 0.98
Array 250000 iterate all - loop 111.30 us/op 86.875 us/op 1.28
phase0 afterProcessEpoch - 250000 vs - 7PWei 49.892 ms/op 51.456 ms/op 0.97
Array.fill - length 1000000 3.5988 ms/op 3.9558 ms/op 0.91
Array push - length 1000000 13.333 ms/op 14.757 ms/op 0.90
Array.get 0.27753 ns/op 0.27813 ns/op 1.00
Uint8Array.get 0.44506 ns/op 0.44596 ns/op 1.00
phase0 beforeProcessEpoch - 250000 vs - 7PWei 19.170 ms/op 20.717 ms/op 0.93
altair processEpoch - mainnet_e81889 281.49 ms/op 348.22 ms/op 0.81
mainnet_e81889 - altair beforeProcessEpoch 20.185 ms/op 22.675 ms/op 0.89
mainnet_e81889 - altair processJustificationAndFinalization 5.4580 us/op 6.6670 us/op 0.82
mainnet_e81889 - altair processInactivityUpdates 4.3978 ms/op 4.4648 ms/op 0.98
mainnet_e81889 - altair processRewardsAndPenalties 41.947 ms/op 47.189 ms/op 0.89
mainnet_e81889 - altair processRegistryUpdates 704.00 ns/op 839.00 ns/op 0.84
mainnet_e81889 - altair processSlashings 179.00 ns/op 204.00 ns/op 0.88
mainnet_e81889 - altair processEth1DataReset 173.00 ns/op 180.00 ns/op 0.96
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2664 ms/op 1.2870 ms/op 0.98
mainnet_e81889 - altair processSlashingsReset 878.00 ns/op 957.00 ns/op 0.92
mainnet_e81889 - altair processRandaoMixesReset 1.1490 us/op 1.2660 us/op 0.91
mainnet_e81889 - altair processHistoricalRootsUpdate 176.00 ns/op 195.00 ns/op 0.90
mainnet_e81889 - altair processParticipationFlagUpdates 520.00 ns/op 563.00 ns/op 0.92
mainnet_e81889 - altair processSyncCommitteeUpdates 137.00 ns/op 143.00 ns/op 0.96
mainnet_e81889 - altair afterProcessEpoch 52.268 ms/op 55.998 ms/op 0.93
capella processEpoch - mainnet_e217614 949.77 ms/op 1.0268 s/op 0.93
mainnet_e217614 - capella beforeProcessEpoch 67.863 ms/op 78.176 ms/op 0.87
mainnet_e217614 - capella processJustificationAndFinalization 5.4680 us/op 5.4280 us/op 1.01
mainnet_e217614 - capella processInactivityUpdates 16.500 ms/op 19.230 ms/op 0.86
mainnet_e217614 - capella processRewardsAndPenalties 167.68 ms/op 197.91 ms/op 0.85
mainnet_e217614 - capella processRegistryUpdates 6.3580 us/op 6.8820 us/op 0.92
mainnet_e217614 - capella processSlashings 176.00 ns/op 190.00 ns/op 0.93
mainnet_e217614 - capella processEth1DataReset 172.00 ns/op 219.00 ns/op 0.79
mainnet_e217614 - capella processEffectiveBalanceUpdates 10.284 ms/op 14.969 ms/op 0.69
mainnet_e217614 - capella processSlashingsReset 877.00 ns/op 1.0450 us/op 0.84
mainnet_e217614 - capella processRandaoMixesReset 1.2120 us/op 1.3090 us/op 0.93
mainnet_e217614 - capella processHistoricalRootsUpdate 175.00 ns/op 200.00 ns/op 0.88
mainnet_e217614 - capella processParticipationFlagUpdates 517.00 ns/op 539.00 ns/op 0.96
mainnet_e217614 - capella afterProcessEpoch 124.31 ms/op 132.63 ms/op 0.94
phase0 processEpoch - mainnet_e58758 271.36 ms/op 328.47 ms/op 0.83
mainnet_e58758 - phase0 beforeProcessEpoch 67.630 ms/op 84.513 ms/op 0.80
mainnet_e58758 - phase0 processJustificationAndFinalization 5.7170 us/op 11.293 us/op 0.51
mainnet_e58758 - phase0 processRewardsAndPenalties 33.617 ms/op 38.467 ms/op 0.87
mainnet_e58758 - phase0 processRegistryUpdates 3.1320 us/op 3.8940 us/op 0.80
mainnet_e58758 - phase0 processSlashings 173.00 ns/op 202.00 ns/op 0.86
mainnet_e58758 - phase0 processEth1DataReset 170.00 ns/op 191.00 ns/op 0.89
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0158 ms/op 1.0742 ms/op 0.95
mainnet_e58758 - phase0 processSlashingsReset 885.00 ns/op 1.1070 us/op 0.80
mainnet_e58758 - phase0 processRandaoMixesReset 1.1760 us/op 1.4340 us/op 0.82
mainnet_e58758 - phase0 processHistoricalRootsUpdate 173.00 ns/op 200.00 ns/op 0.86
mainnet_e58758 - phase0 processParticipationRecordUpdates 919.00 ns/op 958.00 ns/op 0.96
mainnet_e58758 - phase0 afterProcessEpoch 44.120 ms/op 47.097 ms/op 0.94
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.3579 ms/op 1.6818 ms/op 0.81
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.9319 ms/op 2.4322 ms/op 0.79
altair processInactivityUpdates - 250000 normalcase 17.176 ms/op 20.315 ms/op 0.85
altair processInactivityUpdates - 250000 worstcase 18.248 ms/op 22.119 ms/op 0.82
phase0 processRegistryUpdates - 250000 normalcase 6.4410 us/op 6.1920 us/op 1.04
phase0 processRegistryUpdates - 250000 badcase_full_deposits 250.57 us/op 358.77 us/op 0.70
phase0 processRegistryUpdates - 250000 worstcase 0.5 100.69 ms/op 121.39 ms/op 0.83
altair processRewardsAndPenalties - 250000 normalcase 44.582 ms/op 38.254 ms/op 1.17
altair processRewardsAndPenalties - 250000 worstcase 40.957 ms/op 53.001 ms/op 0.77
phase0 getAttestationDeltas - 250000 normalcase 7.0874 ms/op 8.5960 ms/op 0.82
phase0 getAttestationDeltas - 250000 worstcase 5.9850 ms/op 8.6730 ms/op 0.69
phase0 processSlashings - 250000 worstcase 85.531 us/op 109.02 us/op 0.78
altair processSyncCommitteeUpdates - 250000 125.80 ms/op 162.84 ms/op 0.77
BeaconState.hashTreeRoot - No change 208.00 ns/op 267.00 ns/op 0.78
BeaconState.hashTreeRoot - 1 full validator 79.352 us/op 95.231 us/op 0.83
BeaconState.hashTreeRoot - 32 full validator 1.1255 ms/op 1.0334 ms/op 1.09
BeaconState.hashTreeRoot - 512 full validator 10.215 ms/op 14.851 ms/op 0.69
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 103.96 us/op 108.90 us/op 0.95
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.4947 ms/op 3.2949 ms/op 0.45
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 18.832 ms/op 37.697 ms/op 0.50
BeaconState.hashTreeRoot - 1 balances 71.782 us/op 143.73 us/op 0.50
BeaconState.hashTreeRoot - 32 balances 677.75 us/op 1.7145 ms/op 0.40
BeaconState.hashTreeRoot - 512 balances 6.8948 ms/op 10.062 ms/op 0.69
BeaconState.hashTreeRoot - 250000 balances 148.54 ms/op 218.10 ms/op 0.68
aggregationBits - 2048 els - zipIndexesInBitList 21.778 us/op 26.697 us/op 0.82
byteArrayEquals 32 54.408 ns/op 57.863 ns/op 0.94
Buffer.compare 32 17.247 ns/op 23.637 ns/op 0.73
byteArrayEquals 1024 1.6013 us/op 1.9214 us/op 0.83
Buffer.compare 1024 25.903 ns/op 25.747 ns/op 1.01
byteArrayEquals 16384 25.518 us/op 25.869 us/op 0.99
Buffer.compare 16384 191.07 ns/op 196.23 ns/op 0.97
byteArrayEquals 123687377 192.56 ms/op 227.98 ms/op 0.84
Buffer.compare 123687377 6.6216 ms/op 8.6523 ms/op 0.77
byteArrayEquals 32 - diff last byte 52.947 ns/op 55.577 ns/op 0.95
Buffer.compare 32 - diff last byte 17.180 ns/op 18.517 ns/op 0.93
byteArrayEquals 1024 - diff last byte 1.5954 us/op 1.6708 us/op 0.95
Buffer.compare 1024 - diff last byte 25.134 ns/op 27.476 ns/op 0.91
byteArrayEquals 16384 - diff last byte 25.442 us/op 26.497 us/op 0.96
Buffer.compare 16384 - diff last byte 194.29 ns/op 216.37 ns/op 0.90
byteArrayEquals 123687377 - diff last byte 192.29 ms/op 205.38 ms/op 0.94
Buffer.compare 123687377 - diff last byte 6.6867 ms/op 8.4483 ms/op 0.79
byteArrayEquals 32 - random bytes 5.2750 ns/op 5.1330 ns/op 1.03
Buffer.compare 32 - random bytes 17.167 ns/op 17.523 ns/op 0.98
byteArrayEquals 1024 - random bytes 5.2540 ns/op 5.1940 ns/op 1.01
Buffer.compare 1024 - random bytes 17.156 ns/op 17.401 ns/op 0.99
byteArrayEquals 16384 - random bytes 5.2540 ns/op 5.1920 ns/op 1.01
Buffer.compare 16384 - random bytes 17.180 ns/op 17.672 ns/op 0.97
byteArrayEquals 123687377 - random bytes 6.4800 ns/op 6.6100 ns/op 0.98
Buffer.compare 123687377 - random bytes 18.370 ns/op 18.860 ns/op 0.97
regular array get 100000 times 33.144 us/op 45.735 us/op 0.72
wrappedArray get 100000 times 44.129 us/op 34.267 us/op 1.29
arrayWithProxy get 100000 times 12.855 ms/op 13.446 ms/op 0.96
ssz.Root.equals 48.025 ns/op 47.711 ns/op 1.01
byteArrayEquals 45.487 ns/op 46.797 ns/op 0.97
Buffer.compare 10.314 ns/op 10.664 ns/op 0.97
processSlot - 1 slots 11.745 us/op 12.055 us/op 0.97
processSlot - 32 slots 2.5676 ms/op 2.1620 ms/op 1.19
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 50.708 ms/op 77.454 ms/op 0.65
getCommitteeAssignments - req 1 vs - 250000 vc 2.1347 ms/op 3.2484 ms/op 0.66
getCommitteeAssignments - req 100 vs - 250000 vc 4.1372 ms/op 5.3972 ms/op 0.77
getCommitteeAssignments - req 1000 vs - 250000 vc 4.4010 ms/op 4.9131 ms/op 0.90
findModifiedValidators - 10000 modified validators 765.35 ms/op 933.29 ms/op 0.82
findModifiedValidators - 1000 modified validators 651.08 ms/op 811.46 ms/op 0.80
findModifiedValidators - 100 modified validators 252.91 ms/op 295.73 ms/op 0.86
findModifiedValidators - 10 modified validators 167.92 ms/op 174.96 ms/op 0.96
findModifiedValidators - 1 modified validators 136.89 ms/op 157.61 ms/op 0.87
findModifiedValidators - no difference 149.21 ms/op 159.68 ms/op 0.93
compare ViewDUs 6.1610 s/op 6.2525 s/op 0.99
compare each validator Uint8Array 1.4596 s/op 1.4316 s/op 1.02
compare ViewDU to Uint8Array 989.14 ms/op 966.79 ms/op 1.02
migrate state 1000000 validators, 24 modified, 0 new 872.54 ms/op 887.31 ms/op 0.98
migrate state 1000000 validators, 1700 modified, 1000 new 1.1078 s/op 1.1902 s/op 0.93
migrate state 1000000 validators, 3400 modified, 2000 new 1.2160 s/op 1.3981 s/op 0.87
migrate state 1500000 validators, 24 modified, 0 new 770.21 ms/op 947.96 ms/op 0.81
migrate state 1500000 validators, 1700 modified, 1000 new 1.0570 s/op 1.1717 s/op 0.90
migrate state 1500000 validators, 3400 modified, 2000 new 1.1660 s/op 1.4242 s/op 0.82
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.2100 ns/op 4.2800 ns/op 0.98
state getBlockRootAtSlot - 250000 vs - 7PWei 520.82 ns/op 589.77 ns/op 0.88
naive computeProposerIndex 100000 validators 49.060 ms/op 52.470 ms/op 0.94
computeProposerIndex 100000 validators 8.7604 ms/op 9.5721 ms/op 0.92
naiveGetNextSyncCommitteeIndices 1000 validators 7.2210 s/op 8.0875 s/op 0.89
getNextSyncCommitteeIndices 1000 validators 241.78 ms/op 288.77 ms/op 0.84
naiveGetNextSyncCommitteeIndices 10000 validators 7.1395 s/op 7.9195 s/op 0.90
getNextSyncCommitteeIndices 10000 validators 239.39 ms/op 352.25 ms/op 0.68
naiveGetNextSyncCommitteeIndices 100000 validators 7.3228 s/op 9.1522 s/op 0.80
getNextSyncCommitteeIndices 100000 validators 236.84 ms/op 433.80 ms/op 0.55
naive computeShuffledIndex 100000 validators 21.324 s/op 28.311 s/op 0.75
cached computeShuffledIndex 100000 validators 547.97 ms/op 596.23 ms/op 0.92
naive computeShuffledIndex 2000000 validators 466.65 s/op 489.88 s/op 0.95
cached computeShuffledIndex 2000000 validators 35.496 s/op 42.954 s/op 0.83
computeProposers - vc 250000 10.786 ms/op 10.142 ms/op 1.06
computeEpochShuffling - vc 250000 43.184 ms/op 44.270 ms/op 0.98
getNextSyncCommittee - vc 250000 155.73 ms/op 154.80 ms/op 1.01
computeSigningRoot for AttestationData 23.448 us/op 20.408 us/op 1.15
hash AttestationData serialized data then Buffer.toString(base64) 1.5833 us/op 1.5838 us/op 1.00
toHexString serialized data 1.2674 us/op 1.1157 us/op 1.14
Buffer.toString(base64) 172.39 ns/op 151.48 ns/op 1.14
nodejs block root to RootHex using toHex 134.09 ns/op 143.27 ns/op 0.94
nodejs block root to RootHex using toRootHex 82.297 ns/op 84.065 ns/op 0.98
browser block root to RootHex using the deprecated toHexString 214.24 ns/op 207.34 ns/op 1.03
browser block root to RootHex using toHex 172.98 ns/op 169.46 ns/op 1.02
browser block root to RootHex using toRootHex 166.47 ns/op 157.52 ns/op 1.06

by benchmarkbot/action

import {ProducedBlockSource} from "@lodestar/types";
import {
BlockSelectionResult,
BuilderBlockSelectionReason,
Copy link
Member

Choose a reason for hiding this comment

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

since we switched to biomjs we no longer catch unused imports with linters this is a bit annoying, I noticed so many unused imports everywhere as well

@nflaig nflaig changed the title fix: fix various imports chore: fix various imports Mar 15, 2025
@nflaig nflaig merged commit 2269558 into unstable Mar 15, 2025
21 checks passed
@nflaig nflaig deleted the nc/fix-various-imports branch March 15, 2025 06:49
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