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

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

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

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 4547c31 Previous: 558ec2f Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 2.3839 ms/op 1.8128 ms/op 1.32
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 60.852 us/op 48.881 us/op 1.24
BLS verify - blst 876.77 us/op 834.47 us/op 1.05
BLS verifyMultipleSignatures 3 - blst 1.3051 ms/op 1.2204 ms/op 1.07
BLS verifyMultipleSignatures 8 - blst 1.8424 ms/op 1.6628 ms/op 1.11
BLS verifyMultipleSignatures 32 - blst 5.7310 ms/op 4.8985 ms/op 1.17
BLS verifyMultipleSignatures 64 - blst 10.107 ms/op 8.8855 ms/op 1.14
BLS verifyMultipleSignatures 128 - blst 19.543 ms/op 17.142 ms/op 1.14
BLS deserializing 10000 signatures 747.63 ms/op 681.01 ms/op 1.10
BLS deserializing 100000 signatures 7.7752 s/op 6.9392 s/op 1.12
BLS verifyMultipleSignatures - same message - 3 - blst 1.2176 ms/op 944.15 us/op 1.29
BLS verifyMultipleSignatures - same message - 8 - blst 1.2996 ms/op 1.1259 ms/op 1.15
BLS verifyMultipleSignatures - same message - 32 - blst 2.0689 ms/op 1.8836 ms/op 1.10
BLS verifyMultipleSignatures - same message - 64 - blst 3.2001 ms/op 2.7701 ms/op 1.16
BLS verifyMultipleSignatures - same message - 128 - blst 5.1193 ms/op 4.4765 ms/op 1.14
BLS aggregatePubkeys 32 - blst 22.534 us/op 20.853 us/op 1.08
BLS aggregatePubkeys 128 - blst 79.295 us/op 72.497 us/op 1.09
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 100.79 ms/op 57.309 ms/op 1.76
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 77.961 ms/op 57.738 ms/op 1.35
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 55.584 ms/op 52.412 ms/op 1.06
getSlashingsAndExits - default max 187.86 us/op 106.19 us/op 1.77
getSlashingsAndExits - 2k 470.98 us/op 328.95 us/op 1.43
proposeBlockBody type=full, size=empty 8.1272 ms/op 7.6912 ms/op 1.06
isKnown best case - 1 super set check 810.00 ns/op 491.00 ns/op 1.65
isKnown normal case - 2 super set checks 681.00 ns/op 447.00 ns/op 1.52
isKnown worse case - 16 super set checks 675.00 ns/op 477.00 ns/op 1.42
InMemoryCheckpointStateCache - add get delete 4.0180 us/op 3.4140 us/op 1.18
updateUnfinalizedPubkeys - updating 10 pubkeys 1.7301 ms/op 1.4364 ms/op 1.20
updateUnfinalizedPubkeys - updating 100 pubkeys 4.7590 ms/op 3.8202 ms/op 1.25
updateUnfinalizedPubkeys - updating 1000 pubkeys 64.228 ms/op 58.064 ms/op 1.11
validate api signedAggregateAndProof - struct 1.7182 ms/op 1.5093 ms/op 1.14
validate gossip signedAggregateAndProof - struct 1.6390 ms/op 1.5061 ms/op 1.09
batch validate gossip attestation - vc 640000 - chunk 32 161.01 us/op 156.58 us/op 1.03
batch validate gossip attestation - vc 640000 - chunk 64 170.51 us/op 143.72 us/op 1.19
batch validate gossip attestation - vc 640000 - chunk 128 172.49 us/op 136.83 us/op 1.26
batch validate gossip attestation - vc 640000 - chunk 256 154.53 us/op 134.85 us/op 1.15
pickEth1Vote - no votes 1.4550 ms/op 1.3662 ms/op 1.07
pickEth1Vote - max votes 11.862 ms/op 8.8989 ms/op 1.33
pickEth1Vote - Eth1Data hashTreeRoot value x2048 18.717 ms/op 21.928 ms/op 0.85
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 27.196 ms/op 32.162 ms/op 0.85
pickEth1Vote - Eth1Data fastSerialize value x2048 622.05 us/op 605.68 us/op 1.03
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.7922 ms/op 3.4028 ms/op 1.11
bytes32 toHexString 750.00 ns/op 649.00 ns/op 1.16
bytes32 Buffer.toString(hex) 330.00 ns/op 302.00 ns/op 1.09
bytes32 Buffer.toString(hex) from Uint8Array 540.00 ns/op 519.00 ns/op 1.04
bytes32 Buffer.toString(hex) + 0x 307.00 ns/op 289.00 ns/op 1.06
Object access 1 prop 0.23300 ns/op 0.19700 ns/op 1.18
Map access 1 prop 0.18200 ns/op 0.16300 ns/op 1.12
Object get x1000 8.7540 ns/op 7.3500 ns/op 1.19
Map get x1000 7.4950 ns/op 7.0140 ns/op 1.07
Object set x1000 57.853 ns/op 56.050 ns/op 1.03
Map set x1000 34.201 ns/op 40.295 ns/op 0.85
Return object 10000 times 0.33710 ns/op 0.35680 ns/op 0.94
Throw Error 10000 times 3.5764 us/op 4.4255 us/op 0.81
toHex 173.58 ns/op 224.74 ns/op 0.77
Buffer.from 156.81 ns/op 197.41 ns/op 0.79
shared Buffer 110.24 ns/op 113.30 ns/op 0.97
fastMsgIdFn sha256 / 200 bytes 2.4060 us/op 2.6630 us/op 0.90
fastMsgIdFn h32 xxhash / 200 bytes 320.00 ns/op 330.00 ns/op 0.97
fastMsgIdFn h64 xxhash / 200 bytes 330.00 ns/op 317.00 ns/op 1.04
fastMsgIdFn sha256 / 1000 bytes 9.2920 us/op 8.5910 us/op 1.08
fastMsgIdFn h32 xxhash / 1000 bytes 485.00 ns/op 474.00 ns/op 1.02
fastMsgIdFn h64 xxhash / 1000 bytes 395.00 ns/op 386.00 ns/op 1.02
fastMsgIdFn sha256 / 10000 bytes 74.194 us/op 74.776 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 2.1330 us/op 2.0920 us/op 1.02
fastMsgIdFn h64 xxhash / 10000 bytes 1.3780 us/op 1.3560 us/op 1.02
send data - 1000 256B messages 15.203 ms/op 16.075 ms/op 0.95
send data - 1000 512B messages 21.948 ms/op 22.137 ms/op 0.99
send data - 1000 1024B messages 33.356 ms/op 35.662 ms/op 0.94
send data - 1000 1200B messages 29.130 ms/op 35.352 ms/op 0.82
send data - 1000 2048B messages 34.328 ms/op 39.380 ms/op 0.87
send data - 1000 4096B messages 35.058 ms/op 40.439 ms/op 0.87
send data - 1000 16384B messages 76.981 ms/op 100.88 ms/op 0.76
send data - 1000 65536B messages 234.09 ms/op 280.37 ms/op 0.83
enrSubnets - fastDeserialize 64 bits 1.2190 us/op 1.6020 us/op 0.76
enrSubnets - ssz BitVector 64 bits 389.00 ns/op 578.00 ns/op 0.67
enrSubnets - fastDeserialize 4 bits 175.00 ns/op 272.00 ns/op 0.64
enrSubnets - ssz BitVector 4 bits 450.00 ns/op 561.00 ns/op 0.80
prioritizePeers score -10:0 att 32-0.1 sync 2-0 174.54 us/op 222.93 us/op 0.78
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 157.71 us/op 222.18 us/op 0.71
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 263.79 us/op 439.87 us/op 0.60
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 405.13 us/op 476.52 us/op 0.85
prioritizePeers score 0:0 att 64-1 sync 4-1 811.26 us/op 1.0838 ms/op 0.75
array of 16000 items push then shift 1.8334 us/op 1.8060 us/op 1.02
LinkedList of 16000 items push then shift 7.9110 ns/op 10.100 ns/op 0.78
array of 16000 items push then pop 140.93 ns/op 199.87 ns/op 0.71
LinkedList of 16000 items push then pop 7.6030 ns/op 13.962 ns/op 0.54
array of 24000 items push then shift 2.5722 us/op 2.9061 us/op 0.89
LinkedList of 24000 items push then shift 7.9050 ns/op 13.565 ns/op 0.58
array of 24000 items push then pop 184.46 ns/op 223.89 ns/op 0.82
LinkedList of 24000 items push then pop 7.5720 ns/op 11.656 ns/op 0.65
intersect bitArray bitLen 8 6.6270 ns/op 10.494 ns/op 0.63
intersect array and set length 8 51.494 ns/op 117.79 ns/op 0.44
intersect bitArray bitLen 128 30.665 ns/op 38.758 ns/op 0.79
intersect array and set length 128 735.34 ns/op 1.0739 us/op 0.68
bitArray.getTrueBitIndexes() bitLen 128 2.0110 us/op 2.8400 us/op 0.71
bitArray.getTrueBitIndexes() bitLen 248 3.5820 us/op 5.2560 us/op 0.68
bitArray.getTrueBitIndexes() bitLen 512 6.7850 us/op 12.385 us/op 0.55
Buffer.concat 32 items 1.0730 us/op 1.2090 us/op 0.89
Uint8Array.set 32 items 1.5720 us/op 2.0270 us/op 0.78
Buffer.copy 1.6550 us/op 2.4230 us/op 0.68
Uint8Array.set - with subarray 2.5850 us/op 4.2350 us/op 0.61
Uint8Array.set - without subarray 1.4360 us/op 2.0910 us/op 0.69
getUint32 - dataview 260.00 ns/op 389.00 ns/op 0.67
getUint32 - manual 170.00 ns/op 346.00 ns/op 0.49
Set add up to 64 items then delete first 2.4891 us/op 4.2833 us/op 0.58
OrderedSet add up to 64 items then delete first 3.7143 us/op 6.6868 us/op 0.56
Set add up to 64 items then delete last 3.1853 us/op 4.2365 us/op 0.75
OrderedSet add up to 64 items then delete last 4.4646 us/op 6.4645 us/op 0.69
Set add up to 64 items then delete middle 2.7705 us/op 4.2279 us/op 0.66
OrderedSet add up to 64 items then delete middle 5.7355 us/op 7.8873 us/op 0.73
Set add up to 128 items then delete first 5.4702 us/op 8.0824 us/op 0.68
OrderedSet add up to 128 items then delete first 7.9944 us/op 13.715 us/op 0.58
Set add up to 128 items then delete last 5.4613 us/op 8.2653 us/op 0.66
OrderedSet add up to 128 items then delete last 8.4320 us/op 12.790 us/op 0.66
Set add up to 128 items then delete middle 6.0523 us/op 8.6188 us/op 0.70
OrderedSet add up to 128 items then delete middle 16.939 us/op 20.475 us/op 0.83
Set add up to 256 items then delete first 11.902 us/op 16.423 us/op 0.72
OrderedSet add up to 256 items then delete first 16.932 us/op 26.977 us/op 0.63
Set add up to 256 items then delete last 10.943 us/op 17.403 us/op 0.63
OrderedSet add up to 256 items then delete last 17.241 us/op 27.114 us/op 0.64
Set add up to 256 items then delete middle 10.988 us/op 16.606 us/op 0.66
OrderedSet add up to 256 items then delete middle 44.794 us/op 55.088 us/op 0.81
transfer serialized Status (84 B) 1.4380 us/op 1.8380 us/op 0.78
copy serialized Status (84 B) 1.2650 us/op 1.6270 us/op 0.78
transfer serialized SignedVoluntaryExit (112 B) 1.5890 us/op 1.9820 us/op 0.80
copy serialized SignedVoluntaryExit (112 B) 1.3770 us/op 1.6490 us/op 0.84
transfer serialized ProposerSlashing (416 B) 1.7510 us/op 2.5680 us/op 0.68
copy serialized ProposerSlashing (416 B) 1.7060 us/op 2.5680 us/op 0.66
transfer serialized Attestation (485 B) 1.7310 us/op 2.2250 us/op 0.78
copy serialized Attestation (485 B) 1.6650 us/op 2.2090 us/op 0.75
transfer serialized AttesterSlashing (33232 B) 1.9150 us/op 2.4770 us/op 0.77
copy serialized AttesterSlashing (33232 B) 6.4670 us/op 14.131 us/op 0.46
transfer serialized Small SignedBeaconBlock (128000 B) 2.9790 us/op 3.6240 us/op 0.82
copy serialized Small SignedBeaconBlock (128000 B) 20.007 us/op 48.689 us/op 0.41
transfer serialized Avg SignedBeaconBlock (200000 B) 3.6320 us/op 4.7570 us/op 0.76
copy serialized Avg SignedBeaconBlock (200000 B) 35.423 us/op 47.247 us/op 0.75
transfer serialized BlobsSidecar (524380 B) 3.2910 us/op 4.6720 us/op 0.70
copy serialized BlobsSidecar (524380 B) 80.430 us/op 182.30 us/op 0.44
transfer serialized Big SignedBeaconBlock (1000000 B) 3.1190 us/op 12.202 us/op 0.26
copy serialized Big SignedBeaconBlock (1000000 B) 223.81 us/op 322.74 us/op 0.69
pass gossip attestations to forkchoice per slot 3.0451 ms/op 3.7746 ms/op 0.81
forkChoice updateHead vc 100000 bc 64 eq 0 508.76 us/op 658.45 us/op 0.77
forkChoice updateHead vc 600000 bc 64 eq 0 3.1591 ms/op 4.6199 ms/op 0.68
forkChoice updateHead vc 1000000 bc 64 eq 0 5.5599 ms/op 7.3518 ms/op 0.76
forkChoice updateHead vc 600000 bc 320 eq 0 3.1459 ms/op 4.2606 ms/op 0.74
forkChoice updateHead vc 600000 bc 1200 eq 0 3.0751 ms/op 5.0303 ms/op 0.61
forkChoice updateHead vc 600000 bc 7200 eq 0 4.1309 ms/op 5.8325 ms/op 0.71
forkChoice updateHead vc 600000 bc 64 eq 1000 10.852 ms/op 11.727 ms/op 0.93
forkChoice updateHead vc 600000 bc 64 eq 10000 11.144 ms/op 12.161 ms/op 0.92
forkChoice updateHead vc 600000 bc 64 eq 300000 28.224 ms/op 51.362 ms/op 0.55
computeDeltas 500000 validators 300 proto nodes 4.5117 ms/op 5.7635 ms/op 0.78
computeDeltas 500000 validators 1200 proto nodes 4.5447 ms/op 4.5034 ms/op 1.01
computeDeltas 500000 validators 7200 proto nodes 4.7553 ms/op 4.3393 ms/op 1.10
computeDeltas 750000 validators 300 proto nodes 7.4763 ms/op 6.3750 ms/op 1.17
computeDeltas 750000 validators 1200 proto nodes 7.8964 ms/op 6.2290 ms/op 1.27
computeDeltas 750000 validators 7200 proto nodes 8.8224 ms/op 6.2800 ms/op 1.40
computeDeltas 1400000 validators 300 proto nodes 15.106 ms/op 11.346 ms/op 1.33
computeDeltas 1400000 validators 1200 proto nodes 14.932 ms/op 11.980 ms/op 1.25
computeDeltas 1400000 validators 7200 proto nodes 16.601 ms/op 11.762 ms/op 1.41
computeDeltas 2100000 validators 300 proto nodes 26.549 ms/op 16.862 ms/op 1.57
computeDeltas 2100000 validators 1200 proto nodes 28.360 ms/op 17.571 ms/op 1.61
computeDeltas 2100000 validators 7200 proto nodes 23.166 ms/op 17.535 ms/op 1.32
altair processAttestation - 250000 vs - 7PWei normalcase 3.2561 ms/op 2.0283 ms/op 1.61
altair processAttestation - 250000 vs - 7PWei worstcase 4.8030 ms/op 3.9519 ms/op 1.22
altair processAttestation - setStatus - 1/6 committees join 162.76 us/op 106.39 us/op 1.53
altair processAttestation - setStatus - 1/3 committees join 222.73 us/op 180.57 us/op 1.23
altair processAttestation - setStatus - 1/2 committees join 316.59 us/op 255.89 us/op 1.24
altair processAttestation - setStatus - 2/3 committees join 360.15 us/op 363.91 us/op 0.99
altair processAttestation - setStatus - 4/5 committees join 520.90 us/op 492.84 us/op 1.06
altair processAttestation - setStatus - 100% committees join 630.54 us/op 607.37 us/op 1.04
altair processBlock - 250000 vs - 7PWei normalcase 4.8460 ms/op 8.5337 ms/op 0.57
altair processBlock - 250000 vs - 7PWei normalcase hashState 23.688 ms/op 28.307 ms/op 0.84
altair processBlock - 250000 vs - 7PWei worstcase 34.407 ms/op 42.287 ms/op 0.81
altair processBlock - 250000 vs - 7PWei worstcase hashState 71.559 ms/op 77.951 ms/op 0.92
phase0 processBlock - 250000 vs - 7PWei normalcase 1.8572 ms/op 2.1719 ms/op 0.86
phase0 processBlock - 250000 vs - 7PWei worstcase 20.857 ms/op 23.994 ms/op 0.87
altair processEth1Data - 250000 vs - 7PWei normalcase 338.65 us/op 509.83 us/op 0.66
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 6.9290 us/op 7.7840 us/op 0.89
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 36.345 us/op 48.967 us/op 0.74
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 10.471 us/op 11.586 us/op 0.90
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.3810 us/op 8.5950 us/op 0.74
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 145.93 us/op 171.23 us/op 0.85
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1863 ms/op 1.2241 ms/op 0.97
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.6393 ms/op 1.6217 ms/op 1.01
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.5606 ms/op 1.6701 ms/op 0.93
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.0038 ms/op 4.1393 ms/op 0.97
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.6257 ms/op 1.6666 ms/op 0.98
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.9249 ms/op 4.2471 ms/op 0.92
Tree 40 250000 create 259.05 ms/op 272.95 ms/op 0.95
Tree 40 250000 get(125000) 170.78 ns/op 163.93 ns/op 1.04
Tree 40 250000 set(125000) 693.02 ns/op 747.66 ns/op 0.93
Tree 40 250000 toArray() 20.716 ms/op 22.922 ms/op 0.90
Tree 40 250000 iterate all - toArray() + loop 19.876 ms/op 23.477 ms/op 0.85
Tree 40 250000 iterate all - get(i) 56.626 ms/op 65.546 ms/op 0.86
Array 250000 create 3.0000 ms/op 4.0295 ms/op 0.74
Array 250000 clone - spread 1.4621 ms/op 1.8829 ms/op 0.78
Array 250000 get(125000) 0.43000 ns/op 0.48300 ns/op 0.89
Array 250000 set(125000) 0.44500 ns/op 0.49400 ns/op 0.90
Array 250000 iterate all - loop 106.67 us/op 117.91 us/op 0.90
phase0 afterProcessEpoch - 250000 vs - 7PWei 52.989 ms/op 56.505 ms/op 0.94
Array.fill - length 1000000 3.7246 ms/op 4.5277 ms/op 0.82
Array push - length 1000000 18.670 ms/op 19.962 ms/op 0.94
Array.get 0.28974 ns/op 0.30565 ns/op 0.95
Uint8Array.get 0.44861 ns/op 0.47308 ns/op 0.95
phase0 beforeProcessEpoch - 250000 vs - 7PWei 20.854 ms/op 21.472 ms/op 0.97
altair processEpoch - mainnet_e81889 289.87 ms/op 336.82 ms/op 0.86
mainnet_e81889 - altair beforeProcessEpoch 19.712 ms/op 23.500 ms/op 0.84
mainnet_e81889 - altair processJustificationAndFinalization 13.364 us/op 18.573 us/op 0.72
mainnet_e81889 - altair processInactivityUpdates 5.5291 ms/op 7.2852 ms/op 0.76
mainnet_e81889 - altair processRewardsAndPenalties 35.925 ms/op 43.194 ms/op 0.83
mainnet_e81889 - altair processRegistryUpdates 1.6730 us/op 2.5270 us/op 0.66
mainnet_e81889 - altair processSlashings 396.00 ns/op 516.00 ns/op 0.77
mainnet_e81889 - altair processEth1DataReset 360.00 ns/op 548.00 ns/op 0.66
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.9387 ms/op 1.5290 ms/op 1.27
mainnet_e81889 - altair processSlashingsReset 2.6910 us/op 5.5320 us/op 0.49
mainnet_e81889 - altair processRandaoMixesReset 3.4430 us/op 11.046 us/op 0.31
mainnet_e81889 - altair processHistoricalRootsUpdate 924.00 ns/op 755.00 ns/op 1.22
mainnet_e81889 - altair processParticipationFlagUpdates 1.8600 us/op 3.9910 us/op 0.47
mainnet_e81889 - altair processSyncCommitteeUpdates 414.00 ns/op 836.00 ns/op 0.50
mainnet_e81889 - altair afterProcessEpoch 51.973 ms/op 54.902 ms/op 0.95
capella processEpoch - mainnet_e217614 1.0173 s/op 1.1815 s/op 0.86
mainnet_e217614 - capella beforeProcessEpoch 68.383 ms/op 81.092 ms/op 0.84
mainnet_e217614 - capella processJustificationAndFinalization 15.211 us/op 19.352 us/op 0.79
mainnet_e217614 - capella processInactivityUpdates 17.251 ms/op 19.617 ms/op 0.88
mainnet_e217614 - capella processRewardsAndPenalties 217.05 ms/op 255.82 ms/op 0.85
mainnet_e217614 - capella processRegistryUpdates 12.460 us/op 22.312 us/op 0.56
mainnet_e217614 - capella processSlashings 360.00 ns/op 1.1270 us/op 0.32
mainnet_e217614 - capella processEth1DataReset 292.00 ns/op 719.00 ns/op 0.41
mainnet_e217614 - capella processEffectiveBalanceUpdates 11.775 ms/op 18.669 ms/op 0.63
mainnet_e217614 - capella processSlashingsReset 3.3520 us/op 6.0880 us/op 0.55
mainnet_e217614 - capella processRandaoMixesReset 3.7010 us/op 12.248 us/op 0.30
mainnet_e217614 - capella processHistoricalRootsUpdate 335.00 ns/op 1.1470 us/op 0.29
mainnet_e217614 - capella processParticipationFlagUpdates 1.6780 us/op 3.5780 us/op 0.47
mainnet_e217614 - capella afterProcessEpoch 121.42 ms/op 131.83 ms/op 0.92
phase0 processEpoch - mainnet_e58758 310.99 ms/op 367.03 ms/op 0.85
mainnet_e58758 - phase0 beforeProcessEpoch 79.536 ms/op 102.91 ms/op 0.77
mainnet_e58758 - phase0 processJustificationAndFinalization 12.638 us/op 22.999 us/op 0.55
mainnet_e58758 - phase0 processRewardsAndPenalties 21.025 ms/op 30.964 ms/op 0.68
mainnet_e58758 - phase0 processRegistryUpdates 6.7680 us/op 12.023 us/op 0.56
mainnet_e58758 - phase0 processSlashings 368.00 ns/op 600.00 ns/op 0.61
mainnet_e58758 - phase0 processEth1DataReset 301.00 ns/op 1.4260 us/op 0.21
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.1527 ms/op 1.4508 ms/op 0.79
mainnet_e58758 - phase0 processSlashingsReset 2.8870 us/op 5.7440 us/op 0.50
mainnet_e58758 - phase0 processRandaoMixesReset 3.6890 us/op 8.4070 us/op 0.44
mainnet_e58758 - phase0 processHistoricalRootsUpdate 563.00 ns/op 1.1300 us/op 0.50
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.0350 us/op 6.4070 us/op 0.47
mainnet_e58758 - phase0 afterProcessEpoch 41.824 ms/op 49.570 ms/op 0.84
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.8321 ms/op 1.7527 ms/op 1.05
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.4658 ms/op 2.2092 ms/op 1.12
altair processInactivityUpdates - 250000 normalcase 15.330 ms/op 19.631 ms/op 0.78
altair processInactivityUpdates - 250000 worstcase 14.377 ms/op 20.415 ms/op 0.70
phase0 processRegistryUpdates - 250000 normalcase 6.3570 us/op 12.897 us/op 0.49
phase0 processRegistryUpdates - 250000 badcase_full_deposits 254.01 us/op 356.66 us/op 0.71
phase0 processRegistryUpdates - 250000 worstcase 0.5 108.12 ms/op 122.76 ms/op 0.88
altair processRewardsAndPenalties - 250000 normalcase 38.368 ms/op 44.413 ms/op 0.86
altair processRewardsAndPenalties - 250000 worstcase 37.518 ms/op 51.845 ms/op 0.72
phase0 getAttestationDeltas - 250000 normalcase 7.4878 ms/op 9.8066 ms/op 0.76
phase0 getAttestationDeltas - 250000 worstcase 7.1683 ms/op 10.437 ms/op 0.69
phase0 processSlashings - 250000 worstcase 77.121 us/op 121.22 us/op 0.64
altair processSyncCommitteeUpdates - 250000 119.53 ms/op 178.84 ms/op 0.67
BeaconState.hashTreeRoot - No change 246.00 ns/op 401.00 ns/op 0.61
BeaconState.hashTreeRoot - 1 full validator 102.66 us/op 136.48 us/op 0.75
BeaconState.hashTreeRoot - 32 full validator 1.4089 ms/op 1.2506 ms/op 1.13
BeaconState.hashTreeRoot - 512 full validator 9.9053 ms/op 12.324 ms/op 0.80
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 131.44 us/op 151.26 us/op 0.87
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.9716 ms/op 1.7160 ms/op 1.15
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 23.965 ms/op 22.434 ms/op 1.07
BeaconState.hashTreeRoot - 1 balances 107.23 us/op 107.03 us/op 1.00
BeaconState.hashTreeRoot - 32 balances 1.0243 ms/op 1.3836 ms/op 0.74
BeaconState.hashTreeRoot - 512 balances 7.5688 ms/op 9.8484 ms/op 0.77
BeaconState.hashTreeRoot - 250000 balances 171.75 ms/op 161.79 ms/op 1.06
aggregationBits - 2048 els - zipIndexesInBitList 23.278 us/op 32.695 us/op 0.71
byteArrayEquals 32 52.964 ns/op 58.961 ns/op 0.90
Buffer.compare 32 16.899 ns/op 19.646 ns/op 0.86
byteArrayEquals 1024 1.5654 us/op 1.7849 us/op 0.88
Buffer.compare 1024 24.280 ns/op 27.787 ns/op 0.87
byteArrayEquals 16384 24.944 us/op 27.154 us/op 0.92
Buffer.compare 16384 202.85 ns/op 216.25 ns/op 0.94
byteArrayEquals 123687377 194.75 ms/op 195.98 ms/op 0.99
Buffer.compare 123687377 7.6366 ms/op 7.8371 ms/op 0.97
byteArrayEquals 32 - diff last byte 54.747 ns/op 53.895 ns/op 1.02
Buffer.compare 32 - diff last byte 18.582 ns/op 17.629 ns/op 1.05
byteArrayEquals 1024 - diff last byte 1.6491 us/op 1.6263 us/op 1.01
Buffer.compare 1024 - diff last byte 26.559 ns/op 26.045 ns/op 1.02
byteArrayEquals 16384 - diff last byte 26.456 us/op 25.868 us/op 1.02
Buffer.compare 16384 - diff last byte 220.79 ns/op 185.91 ns/op 1.19
byteArrayEquals 123687377 - diff last byte 198.68 ms/op 194.06 ms/op 1.02
Buffer.compare 123687377 - diff last byte 7.5589 ms/op 6.8421 ms/op 1.10
byteArrayEquals 32 - random bytes 5.5090 ns/op 5.3570 ns/op 1.03
Buffer.compare 32 - random bytes 18.133 ns/op 17.470 ns/op 1.04
byteArrayEquals 1024 - random bytes 5.3440 ns/op 5.5210 ns/op 0.97
Buffer.compare 1024 - random bytes 18.426 ns/op 17.806 ns/op 1.03
byteArrayEquals 16384 - random bytes 5.3020 ns/op 5.3590 ns/op 0.99
Buffer.compare 16384 - random bytes 17.963 ns/op 17.769 ns/op 1.01
byteArrayEquals 123687377 - random bytes 6.5000 ns/op 6.7500 ns/op 0.96
Buffer.compare 123687377 - random bytes 18.900 ns/op 19.060 ns/op 0.99
regular array get 100000 times 37.873 us/op 45.107 us/op 0.84
wrappedArray get 100000 times 33.757 us/op 33.966 us/op 0.99
arrayWithProxy get 100000 times 14.546 ms/op 15.348 ms/op 0.95
ssz.Root.equals 48.128 ns/op 48.114 ns/op 1.00
byteArrayEquals 46.704 ns/op 46.071 ns/op 1.01
Buffer.compare 10.672 ns/op 10.431 ns/op 1.02
processSlot - 1 slots 14.665 us/op 16.621 us/op 0.88
processSlot - 32 slots 2.7038 ms/op 3.0612 ms/op 0.88
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 36.910 ms/op 38.334 ms/op 0.96
getCommitteeAssignments - req 1 vs - 250000 vc 2.1923 ms/op 2.2818 ms/op 0.96
getCommitteeAssignments - req 100 vs - 250000 vc 4.2160 ms/op 4.3758 ms/op 0.96
getCommitteeAssignments - req 1000 vs - 250000 vc 4.4634 ms/op 4.6412 ms/op 0.96
findModifiedValidators - 10000 modified validators 233.09 ms/op 287.27 ms/op 0.81
findModifiedValidators - 1000 modified validators 183.55 ms/op 204.34 ms/op 0.90
findModifiedValidators - 100 modified validators 150.39 ms/op 205.72 ms/op 0.73
findModifiedValidators - 10 modified validators 150.66 ms/op 215.93 ms/op 0.70
findModifiedValidators - 1 modified validators 164.00 ms/op 195.48 ms/op 0.84
findModifiedValidators - no difference 175.48 ms/op 198.21 ms/op 0.89
compare ViewDUs 3.2248 s/op 3.4022 s/op 0.95
compare each validator Uint8Array 1.4177 s/op 1.5343 s/op 0.92
compare ViewDU to Uint8Array 1.2651 s/op 1.2391 s/op 1.02
migrate state 1000000 validators, 24 modified, 0 new 718.29 ms/op 760.93 ms/op 0.94
migrate state 1000000 validators, 1700 modified, 1000 new 980.84 ms/op 952.66 ms/op 1.03
migrate state 1000000 validators, 3400 modified, 2000 new 1.3304 s/op 1.1375 s/op 1.17
migrate state 1500000 validators, 24 modified, 0 new 853.44 ms/op 707.30 ms/op 1.21
migrate state 1500000 validators, 1700 modified, 1000 new 1.2514 s/op 862.99 ms/op 1.45
migrate state 1500000 validators, 3400 modified, 2000 new 1.6987 s/op 981.79 ms/op 1.73
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.9400 ns/op 4.4300 ns/op 1.57
state getBlockRootAtSlot - 250000 vs - 7PWei 1.4098 us/op 586.48 ns/op 2.40
computeProposers - vc 250000 10.887 ms/op 7.1967 ms/op 1.51
computeEpochShuffling - vc 250000 51.042 ms/op 42.083 ms/op 1.21
getNextSyncCommittee - vc 250000 202.81 ms/op 123.04 ms/op 1.65
computeSigningRoot for AttestationData 30.539 us/op 23.016 us/op 1.33
hash AttestationData serialized data then Buffer.toString(base64) 2.1456 us/op 1.5359 us/op 1.40
toHexString serialized data 1.7941 us/op 871.52 ns/op 2.06
Buffer.toString(base64) 308.83 ns/op 171.00 ns/op 1.81
nodejs block root to RootHex using toHex 280.97 ns/op 164.45 ns/op 1.71
nodejs block root to RootHex using toRootHex 164.84 ns/op 92.257 ns/op 1.79
browser block root to RootHex using the deprecated toHexString 428.18 ns/op 225.50 ns/op 1.90
browser block root to RootHex using toHex 425.58 ns/op 186.09 ns/op 2.29
browser block root to RootHex using toRootHex 233.78 ns/op 160.59 ns/op 1.46

by benchmarkbot/action

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.

1 participant