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 lint error #7152

Merged
merged 1 commit into from
Oct 11, 2024
Merged

chore: fix lint error #7152

merged 1 commit into from
Oct 11, 2024

Conversation

nazarhussain
Copy link
Contributor

Motivation

Keep unstable branch free from lint errors.

Description

Fix lint error introduced in between we merged the biome PR.

Steps to test or reproduce

  • Run all tests.

@nflaig nflaig enabled auto-merge (squash) October 11, 2024 12:07
@nflaig nflaig merged commit 4b7d871 into unstable Oct 11, 2024
19 of 20 checks passed
@nflaig nflaig deleted the nh/fix-lint branch October 11, 2024 12:34
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.11%. Comparing base (a570048) to head (edfe37d).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #7152      +/-   ##
============================================
- Coverage     49.12%   49.11%   -0.01%     
============================================
  Files           597      597              
  Lines         39718    39718              
  Branches       2075     2074       -1     
============================================
- Hits          19510    19509       -1     
- Misses        20167    20168       +1     
  Partials         41       41              

Copy link
Contributor

⚠️ Performance Alert ⚠️

Possible performance regression was detected for some benchmarks.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold.

Benchmark suite Current: 12b38f7 Previous: a570048 Ratio
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 9.2060 us/op 2.7590 us/op 3.34
Full benchmark results
Benchmark suite Current: 12b38f7 Previous: a570048 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 2.0489 ms/op 1.8049 ms/op 1.14
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 54.992 us/op 39.305 us/op 1.40
BLS verify - blst 857.97 us/op 1.0244 ms/op 0.84
BLS verifyMultipleSignatures 3 - blst 1.2141 ms/op 1.3309 ms/op 0.91
BLS verifyMultipleSignatures 8 - blst 1.6737 ms/op 2.0684 ms/op 0.81
BLS verifyMultipleSignatures 32 - blst 4.8218 ms/op 4.4314 ms/op 1.09
BLS verifyMultipleSignatures 64 - blst 9.0230 ms/op 8.2348 ms/op 1.10
BLS verifyMultipleSignatures 128 - blst 16.995 ms/op 15.852 ms/op 1.07
BLS deserializing 10000 signatures 676.60 ms/op 585.60 ms/op 1.16
BLS deserializing 100000 signatures 6.8296 s/op 6.0973 s/op 1.12
BLS verifyMultipleSignatures - same message - 3 - blst 930.75 us/op 932.28 us/op 1.00
BLS verifyMultipleSignatures - same message - 8 - blst 1.0848 ms/op 1.0502 ms/op 1.03
BLS verifyMultipleSignatures - same message - 32 - blst 1.7611 ms/op 1.6550 ms/op 1.06
BLS verifyMultipleSignatures - same message - 64 - blst 2.6395 ms/op 2.5295 ms/op 1.04
BLS verifyMultipleSignatures - same message - 128 - blst 4.4116 ms/op 4.1511 ms/op 1.06
BLS aggregatePubkeys 32 - blst 20.356 us/op 18.098 us/op 1.12
BLS aggregatePubkeys 128 - blst 70.473 us/op 62.286 us/op 1.13
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 88.996 ms/op 58.915 ms/op 1.51
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 71.334 ms/op 42.268 ms/op 1.69
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 40.660 ms/op 28.409 ms/op 1.43
getSlashingsAndExits - default max 157.00 us/op 70.900 us/op 2.21
getSlashingsAndExits - 2k 356.57 us/op 254.83 us/op 1.40
proposeBlockBody type=full, size=empty 6.6157 ms/op 4.7475 ms/op 1.39
isKnown best case - 1 super set check 738.00 ns/op 468.00 ns/op 1.58
isKnown normal case - 2 super set checks 694.00 ns/op 435.00 ns/op 1.60
isKnown worse case - 16 super set checks 686.00 ns/op 434.00 ns/op 1.58
InMemoryCheckpointStateCache - add get delete 3.9030 us/op 2.8940 us/op 1.35
updateUnfinalizedPubkeys - updating 10 pubkeys 2.0612 ms/op 953.07 us/op 2.16
updateUnfinalizedPubkeys - updating 100 pubkeys 5.3870 ms/op 2.5990 ms/op 2.07
updateUnfinalizedPubkeys - updating 1000 pubkeys 61.254 ms/op 36.919 ms/op 1.66
validate api signedAggregateAndProof - struct 1.6976 ms/op 1.5833 ms/op 1.07
validate gossip signedAggregateAndProof - struct 1.3920 ms/op 1.4578 ms/op 0.95
batch validate gossip attestation - vc 640000 - chunk 32 120.38 us/op 118.35 us/op 1.02
batch validate gossip attestation - vc 640000 - chunk 64 113.08 us/op 100.77 us/op 1.12
batch validate gossip attestation - vc 640000 - chunk 128 106.63 us/op 95.188 us/op 1.12
batch validate gossip attestation - vc 640000 - chunk 256 113.46 us/op 91.632 us/op 1.24
pickEth1Vote - no votes 1.1434 ms/op 758.82 us/op 1.51
pickEth1Vote - max votes 7.5323 ms/op 5.3807 ms/op 1.40
pickEth1Vote - Eth1Data hashTreeRoot value x2048 15.946 ms/op 12.170 ms/op 1.31
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 23.435 ms/op 17.734 ms/op 1.32
pickEth1Vote - Eth1Data fastSerialize value x2048 573.41 us/op 313.01 us/op 1.83
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.7564 ms/op 2.9080 ms/op 1.29
bytes32 toHexString 539.00 ns/op 519.00 ns/op 1.04
bytes32 Buffer.toString(hex) 265.00 ns/op 385.00 ns/op 0.69
bytes32 Buffer.toString(hex) from Uint8Array 471.00 ns/op 470.00 ns/op 1.00
bytes32 Buffer.toString(hex) + 0x 273.00 ns/op 397.00 ns/op 0.69
Object access 1 prop 0.20200 ns/op 0.29700 ns/op 0.68
Map access 1 prop 0.13700 ns/op 0.29700 ns/op 0.46
Object get x1000 6.5130 ns/op 4.7240 ns/op 1.38
Map get x1000 6.6160 ns/op 5.3120 ns/op 1.25
Object set x1000 48.008 ns/op 22.514 ns/op 2.13
Map set x1000 32.146 ns/op 18.219 ns/op 1.76
Return object 10000 times 0.31740 ns/op 0.27920 ns/op 1.14
Throw Error 10000 times 3.4287 us/op 2.5346 us/op 1.35
toHex 189.81 ns/op 98.833 ns/op 1.92
Buffer.from 161.82 ns/op 90.148 ns/op 1.80
shared Buffer 100.30 ns/op 61.153 ns/op 1.64
fastMsgIdFn sha256 / 200 bytes 2.4330 us/op 1.8620 us/op 1.31
fastMsgIdFn h32 xxhash / 200 bytes 317.00 ns/op 372.00 ns/op 0.85
fastMsgIdFn h64 xxhash / 200 bytes 297.00 ns/op 411.00 ns/op 0.72
fastMsgIdFn sha256 / 1000 bytes 7.6020 us/op 5.3520 us/op 1.42
fastMsgIdFn h32 xxhash / 1000 bytes 438.00 ns/op 506.00 ns/op 0.87
fastMsgIdFn h64 xxhash / 1000 bytes 360.00 ns/op 484.00 ns/op 0.74
fastMsgIdFn sha256 / 10000 bytes 65.456 us/op 44.031 us/op 1.49
fastMsgIdFn h32 xxhash / 10000 bytes 1.9480 us/op 1.7440 us/op 1.12
fastMsgIdFn h64 xxhash / 10000 bytes 1.2610 us/op 1.2090 us/op 1.04
send data - 1000 256B messages 15.893 ms/op 9.7665 ms/op 1.63
send data - 1000 512B messages 19.709 ms/op 12.588 ms/op 1.57
send data - 1000 1024B messages 29.734 ms/op 19.670 ms/op 1.51
send data - 1000 1200B messages 29.390 ms/op 24.510 ms/op 1.20
send data - 1000 2048B messages 34.119 ms/op 29.250 ms/op 1.17
send data - 1000 4096B messages 32.764 ms/op 26.508 ms/op 1.24
send data - 1000 16384B messages 75.694 ms/op 69.813 ms/op 1.08
send data - 1000 65536B messages 233.98 ms/op 260.12 ms/op 0.90
enrSubnets - fastDeserialize 64 bits 3.1430 us/op 1.1790 us/op 2.67
enrSubnets - ssz BitVector 64 bits 459.00 ns/op 506.00 ns/op 0.91
enrSubnets - fastDeserialize 4 bits 210.00 ns/op 348.00 ns/op 0.60
enrSubnets - ssz BitVector 4 bits 399.00 ns/op 540.00 ns/op 0.74
prioritizePeers score -10:0 att 32-0.1 sync 2-0 198.41 us/op 126.35 us/op 1.57
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 172.66 us/op 157.68 us/op 1.09
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 314.77 us/op 295.03 us/op 1.07
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 425.18 us/op 452.79 us/op 0.94
prioritizePeers score 0:0 att 64-1 sync 4-1 821.56 us/op 699.83 us/op 1.17
array of 16000 items push then shift 1.6868 us/op 1.2327 us/op 1.37
LinkedList of 16000 items push then shift 7.9170 ns/op 7.1390 ns/op 1.11
array of 16000 items push then pop 136.41 ns/op 85.239 ns/op 1.60
LinkedList of 16000 items push then pop 7.4970 ns/op 6.1050 ns/op 1.23
array of 24000 items push then shift 2.4801 us/op 1.7810 us/op 1.39
LinkedList of 24000 items push then shift 8.3300 ns/op 6.7200 ns/op 1.24
array of 24000 items push then pop 188.07 ns/op 110.97 ns/op 1.69
LinkedList of 24000 items push then pop 7.7880 ns/op 5.9730 ns/op 1.30
intersect bitArray bitLen 8 6.5510 ns/op 5.0640 ns/op 1.29
intersect array and set length 8 61.809 ns/op 37.792 ns/op 1.64
intersect bitArray bitLen 128 30.549 ns/op 24.980 ns/op 1.22
intersect array and set length 128 912.88 ns/op 553.50 ns/op 1.65
bitArray.getTrueBitIndexes() bitLen 128 1.8910 us/op 2.4790 us/op 0.76
bitArray.getTrueBitIndexes() bitLen 248 3.5840 us/op 3.4060 us/op 1.05
bitArray.getTrueBitIndexes() bitLen 512 8.6210 us/op 8.1900 us/op 1.05
Buffer.concat 32 items 1.0180 us/op 1.0220 us/op 1.00
Uint8Array.set 32 items 1.6080 us/op 2.0600 us/op 0.78
Buffer.copy 2.0310 us/op 2.0710 us/op 0.98
Uint8Array.set - with subarray 3.1010 us/op 2.3430 us/op 1.32
Uint8Array.set - without subarray 1.4230 us/op 1.6860 us/op 0.84
getUint32 - dataview 242.00 ns/op 431.00 ns/op 0.56
getUint32 - manual 170.00 ns/op 335.00 ns/op 0.51
Set add up to 64 items then delete first 2.5360 us/op 1.7809 us/op 1.42
OrderedSet add up to 64 items then delete first 3.3157 us/op 2.7297 us/op 1.21
Set add up to 64 items then delete last 2.5614 us/op 1.9343 us/op 1.32
OrderedSet add up to 64 items then delete last 4.0556 us/op 3.0306 us/op 1.34
Set add up to 64 items then delete middle 2.9432 us/op 1.9379 us/op 1.52
OrderedSet add up to 64 items then delete middle 6.4269 us/op 4.6877 us/op 1.37
Set add up to 128 items then delete first 5.3589 us/op 3.9699 us/op 1.35
OrderedSet add up to 128 items then delete first 8.3150 us/op 5.9907 us/op 1.39
Set add up to 128 items then delete last 5.4186 us/op 3.9562 us/op 1.37
OrderedSet add up to 128 items then delete last 7.8411 us/op 6.1849 us/op 1.27
Set add up to 128 items then delete middle 5.3439 us/op 3.9506 us/op 1.35
OrderedSet add up to 128 items then delete middle 14.686 us/op 11.611 us/op 1.26
Set add up to 256 items then delete first 11.824 us/op 7.8321 us/op 1.51
OrderedSet add up to 256 items then delete first 19.749 us/op 11.959 us/op 1.65
Set add up to 256 items then delete last 10.581 us/op 7.8332 us/op 1.35
OrderedSet add up to 256 items then delete last 15.071 us/op 12.337 us/op 1.22
Set add up to 256 items then delete middle 9.5811 us/op 7.7443 us/op 1.24
OrderedSet add up to 256 items then delete middle 41.071 us/op 34.444 us/op 1.19
transfer serialized Status (84 B) 1.3320 us/op 1.4550 us/op 0.92
copy serialized Status (84 B) 1.0830 us/op 1.2380 us/op 0.87
transfer serialized SignedVoluntaryExit (112 B) 1.3980 us/op 1.5340 us/op 0.91
copy serialized SignedVoluntaryExit (112 B) 1.0950 us/op 1.2890 us/op 0.85
transfer serialized ProposerSlashing (416 B) 1.7350 us/op 2.1400 us/op 0.81
copy serialized ProposerSlashing (416 B) 1.5900 us/op 1.9350 us/op 0.82
transfer serialized Attestation (485 B) 1.6320 us/op 2.3330 us/op 0.70
copy serialized Attestation (485 B) 1.8090 us/op 1.9360 us/op 0.93
transfer serialized AttesterSlashing (33232 B) 1.8230 us/op 2.4920 us/op 0.73
copy serialized AttesterSlashing (33232 B) 4.6400 us/op 4.5360 us/op 1.02
transfer serialized Small SignedBeaconBlock (128000 B) 2.5710 us/op 2.8030 us/op 0.92
copy serialized Small SignedBeaconBlock (128000 B) 16.583 us/op 14.554 us/op 1.14
transfer serialized Avg SignedBeaconBlock (200000 B) 3.2790 us/op 2.6950 us/op 1.22
copy serialized Avg SignedBeaconBlock (200000 B) 21.034 us/op 13.388 us/op 1.57
transfer serialized BlobsSidecar (524380 B) 3.3940 us/op 2.3590 us/op 1.44
copy serialized BlobsSidecar (524380 B) 122.07 us/op 71.766 us/op 1.70
transfer serialized Big SignedBeaconBlock (1000000 B) 2.8900 us/op 3.1960 us/op 0.90
copy serialized Big SignedBeaconBlock (1000000 B) 151.89 us/op 141.32 us/op 1.07
pass gossip attestations to forkchoice per slot 2.7377 ms/op 2.3942 ms/op 1.14
forkChoice updateHead vc 100000 bc 64 eq 0 467.80 us/op 383.92 us/op 1.22
forkChoice updateHead vc 600000 bc 64 eq 0 3.0043 ms/op 2.4086 ms/op 1.25
forkChoice updateHead vc 1000000 bc 64 eq 0 4.7173 ms/op 3.9508 ms/op 1.19
forkChoice updateHead vc 600000 bc 320 eq 0 2.6560 ms/op 2.2910 ms/op 1.16
forkChoice updateHead vc 600000 bc 1200 eq 0 2.7440 ms/op 2.3869 ms/op 1.15
forkChoice updateHead vc 600000 bc 7200 eq 0 3.3196 ms/op 2.5468 ms/op 1.30
forkChoice updateHead vc 600000 bc 64 eq 1000 10.250 ms/op 9.3361 ms/op 1.10
forkChoice updateHead vc 600000 bc 64 eq 10000 10.373 ms/op 9.3281 ms/op 1.11
forkChoice updateHead vc 600000 bc 64 eq 300000 13.439 ms/op 11.328 ms/op 1.19
computeDeltas 500000 validators 300 proto nodes 4.0007 ms/op 3.2349 ms/op 1.24
computeDeltas 500000 validators 1200 proto nodes 4.0488 ms/op 3.1966 ms/op 1.27
computeDeltas 500000 validators 7200 proto nodes 4.0496 ms/op 3.2073 ms/op 1.26
computeDeltas 750000 validators 300 proto nodes 5.9271 ms/op 5.1050 ms/op 1.16
computeDeltas 750000 validators 1200 proto nodes 5.7588 ms/op 5.1589 ms/op 1.12
computeDeltas 750000 validators 7200 proto nodes 5.9399 ms/op 4.9629 ms/op 1.20
computeDeltas 1400000 validators 300 proto nodes 11.539 ms/op 9.1185 ms/op 1.27
computeDeltas 1400000 validators 1200 proto nodes 11.313 ms/op 9.0294 ms/op 1.25
computeDeltas 1400000 validators 7200 proto nodes 11.714 ms/op 9.2023 ms/op 1.27
computeDeltas 2100000 validators 300 proto nodes 17.786 ms/op 13.371 ms/op 1.33
computeDeltas 2100000 validators 1200 proto nodes 18.085 ms/op 13.907 ms/op 1.30
computeDeltas 2100000 validators 7200 proto nodes 18.653 ms/op 13.657 ms/op 1.37
altair processAttestation - 250000 vs - 7PWei normalcase 2.9109 ms/op 1.4204 ms/op 2.05
altair processAttestation - 250000 vs - 7PWei worstcase 3.7557 ms/op 2.1261 ms/op 1.77
altair processAttestation - setStatus - 1/6 committees join 120.72 us/op 62.742 us/op 1.92
altair processAttestation - setStatus - 1/3 committees join 202.81 us/op 124.69 us/op 1.63
altair processAttestation - setStatus - 1/2 committees join 268.44 us/op 195.32 us/op 1.37
altair processAttestation - setStatus - 2/3 committees join 364.55 us/op 248.24 us/op 1.47
altair processAttestation - setStatus - 4/5 committees join 511.04 us/op 372.33 us/op 1.37
altair processAttestation - setStatus - 100% committees join 691.84 us/op 470.86 us/op 1.47
altair processBlock - 250000 vs - 7PWei normalcase 6.8130 ms/op 3.5819 ms/op 1.90
altair processBlock - 250000 vs - 7PWei normalcase hashState 26.257 ms/op 25.542 ms/op 1.03
altair processBlock - 250000 vs - 7PWei worstcase 38.135 ms/op 34.484 ms/op 1.11
altair processBlock - 250000 vs - 7PWei worstcase hashState 84.860 ms/op 81.037 ms/op 1.05
phase0 processBlock - 250000 vs - 7PWei normalcase 2.2494 ms/op 1.8043 ms/op 1.25
phase0 processBlock - 250000 vs - 7PWei worstcase 27.042 ms/op 22.309 ms/op 1.21
altair processEth1Data - 250000 vs - 7PWei normalcase 459.85 us/op 231.49 us/op 1.99
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 8.4090 us/op 4.5550 us/op 1.85
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 51.322 us/op 32.201 us/op 1.59
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 14.718 us/op 6.2690 us/op 2.35
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 9.2060 us/op 2.7590 us/op 3.34
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 183.55 us/op 129.00 us/op 1.42
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.2046 ms/op 1.4316 ms/op 0.84
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.5505 ms/op 1.2222 ms/op 1.27
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.5663 ms/op 1.2098 ms/op 1.29
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.9841 ms/op 2.6163 ms/op 1.52
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5808 ms/op 1.0913 ms/op 1.45
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.7696 ms/op 2.6849 ms/op 1.40
Tree 40 250000 create 230.90 ms/op 184.37 ms/op 1.25
Tree 40 250000 get(125000) 148.18 ns/op 115.89 ns/op 1.28
Tree 40 250000 set(125000) 669.98 ns/op 539.74 ns/op 1.24
Tree 40 250000 toArray() 18.450 ms/op 9.8652 ms/op 1.87
Tree 40 250000 iterate all - toArray() + loop 16.760 ms/op 9.9438 ms/op 1.69
Tree 40 250000 iterate all - get(i) 52.001 ms/op 41.313 ms/op 1.26
Array 250000 create 3.0208 ms/op 2.3976 ms/op 1.26
Array 250000 clone - spread 1.4521 ms/op 1.3257 ms/op 1.10
Array 250000 get(125000) 0.40400 ns/op 0.57400 ns/op 0.70
Array 250000 set(125000) 0.42300 ns/op 0.58300 ns/op 0.73
Array 250000 iterate all - loop 95.579 us/op 77.376 us/op 1.24
phase0 afterProcessEpoch - 250000 vs - 7PWei 92.825 ms/op 77.308 ms/op 1.20
Array.fill - length 1000000 3.5818 ms/op 2.5677 ms/op 1.39
Array push - length 1000000 12.644 ms/op 13.959 ms/op 0.91
Array.get 0.27253 ns/op 0.26071 ns/op 1.05
Uint8Array.get 0.43439 ns/op 0.34350 ns/op 1.26
phase0 beforeProcessEpoch - 250000 vs - 7PWei 19.137 ms/op 13.688 ms/op 1.40
altair processEpoch - mainnet_e81889 308.68 ms/op 308.92 ms/op 1.00
mainnet_e81889 - altair beforeProcessEpoch 19.809 ms/op 18.738 ms/op 1.06
mainnet_e81889 - altair processJustificationAndFinalization 12.137 us/op 12.158 us/op 1.00
mainnet_e81889 - altair processInactivityUpdates 5.7599 ms/op 4.5184 ms/op 1.27
mainnet_e81889 - altair processRewardsAndPenalties 48.342 ms/op 50.907 ms/op 0.95
mainnet_e81889 - altair processRegistryUpdates 2.5890 us/op 1.8220 us/op 1.42
mainnet_e81889 - altair processSlashings 440.00 ns/op 699.00 ns/op 0.63
mainnet_e81889 - altair processEth1DataReset 1.0850 us/op 676.00 ns/op 1.61
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.6999 ms/op 1.0608 ms/op 1.60
mainnet_e81889 - altair processSlashingsReset 3.9440 us/op 1.4440 us/op 2.73
mainnet_e81889 - altair processRandaoMixesReset 5.4580 us/op 2.6280 us/op 2.08
mainnet_e81889 - altair processHistoricalRootsUpdate 977.00 ns/op 662.00 ns/op 1.48
mainnet_e81889 - altair processParticipationFlagUpdates 2.6000 us/op 3.5820 us/op 0.73
mainnet_e81889 - altair processSyncCommitteeUpdates 595.00 ns/op 750.00 ns/op 0.79
mainnet_e81889 - altair afterProcessEpoch 98.688 ms/op 79.755 ms/op 1.24
capella processEpoch - mainnet_e217614 1.2114 s/op 1.0961 s/op 1.11
mainnet_e217614 - capella beforeProcessEpoch 79.108 ms/op 67.976 ms/op 1.16
mainnet_e217614 - capella processJustificationAndFinalization 15.970 us/op 16.637 us/op 0.96
mainnet_e217614 - capella processInactivityUpdates 18.695 ms/op 16.527 ms/op 1.13
mainnet_e217614 - capella processRewardsAndPenalties 227.36 ms/op 238.52 ms/op 0.95
mainnet_e217614 - capella processRegistryUpdates 12.186 us/op 11.653 us/op 1.05
mainnet_e217614 - capella processSlashings 391.00 ns/op 706.00 ns/op 0.55
mainnet_e217614 - capella processEth1DataReset 333.00 ns/op 751.00 ns/op 0.44
mainnet_e217614 - capella processEffectiveBalanceUpdates 15.406 ms/op 6.4533 ms/op 2.39
mainnet_e217614 - capella processSlashingsReset 4.8790 us/op 4.0910 us/op 1.19
mainnet_e217614 - capella processRandaoMixesReset 4.7870 us/op 4.8200 us/op 0.99
mainnet_e217614 - capella processHistoricalRootsUpdate 596.00 ns/op 800.00 ns/op 0.74
mainnet_e217614 - capella processParticipationFlagUpdates 2.1640 us/op 1.7750 us/op 1.22
mainnet_e217614 - capella afterProcessEpoch 240.01 ms/op 213.34 ms/op 1.13
phase0 processEpoch - mainnet_e58758 395.83 ms/op 338.84 ms/op 1.17
mainnet_e58758 - phase0 beforeProcessEpoch 88.000 ms/op 87.292 ms/op 1.01
mainnet_e58758 - phase0 processJustificationAndFinalization 17.391 us/op 20.516 us/op 0.85
mainnet_e58758 - phase0 processRewardsAndPenalties 28.108 ms/op 32.480 ms/op 0.87
mainnet_e58758 - phase0 processRegistryUpdates 8.6040 us/op 6.8280 us/op 1.26
mainnet_e58758 - phase0 processSlashings 341.00 ns/op 747.00 ns/op 0.46
mainnet_e58758 - phase0 processEth1DataReset 288.00 ns/op 764.00 ns/op 0.38
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.2355 ms/op 814.76 us/op 1.52
mainnet_e58758 - phase0 processSlashingsReset 2.8110 us/op 4.0190 us/op 0.70
mainnet_e58758 - phase0 processRandaoMixesReset 7.0430 us/op 5.5030 us/op 1.28
mainnet_e58758 - phase0 processHistoricalRootsUpdate 367.00 ns/op 1.0070 us/op 0.36
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.3420 us/op 4.5650 us/op 0.95
mainnet_e58758 - phase0 afterProcessEpoch 79.756 ms/op 65.371 ms/op 1.22
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.9000 ms/op 971.62 us/op 1.96
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.5176 ms/op 1.9104 ms/op 1.32
altair processInactivityUpdates - 250000 normalcase 15.520 ms/op 16.615 ms/op 0.93
altair processInactivityUpdates - 250000 worstcase 16.454 ms/op 17.515 ms/op 0.94
phase0 processRegistryUpdates - 250000 normalcase 7.4420 us/op 6.9370 us/op 1.07
phase0 processRegistryUpdates - 250000 badcase_full_deposits 294.67 us/op 288.86 us/op 1.02
phase0 processRegistryUpdates - 250000 worstcase 0.5 110.90 ms/op 117.88 ms/op 0.94
altair processRewardsAndPenalties - 250000 normalcase 35.315 ms/op 43.877 ms/op 0.80
altair processRewardsAndPenalties - 250000 worstcase 39.730 ms/op 46.136 ms/op 0.86
phase0 getAttestationDeltas - 250000 normalcase 10.463 ms/op 6.6549 ms/op 1.57
phase0 getAttestationDeltas - 250000 worstcase 8.1960 ms/op 6.3393 ms/op 1.29
phase0 processSlashings - 250000 worstcase 104.21 us/op 80.821 us/op 1.29
altair processSyncCommitteeUpdates - 250000 127.41 ms/op 108.05 ms/op 1.18
BeaconState.hashTreeRoot - No change 252.00 ns/op 487.00 ns/op 0.52
BeaconState.hashTreeRoot - 1 full validator 95.847 us/op 123.42 us/op 0.78
BeaconState.hashTreeRoot - 32 full validator 1.0261 ms/op 1.0703 ms/op 0.96
BeaconState.hashTreeRoot - 512 full validator 13.178 ms/op 8.4177 ms/op 1.57
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 125.78 us/op 98.233 us/op 1.28
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.6712 ms/op 1.2825 ms/op 1.30
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 27.443 ms/op 15.766 ms/op 1.74
BeaconState.hashTreeRoot - 1 balances 114.31 us/op 68.438 us/op 1.67
BeaconState.hashTreeRoot - 32 balances 967.74 us/op 628.03 us/op 1.54
BeaconState.hashTreeRoot - 512 balances 10.401 ms/op 8.7858 ms/op 1.18
BeaconState.hashTreeRoot - 250000 balances 177.12 ms/op 128.97 ms/op 1.37
aggregationBits - 2048 els - zipIndexesInBitList 37.294 us/op 20.524 us/op 1.82
byteArrayEquals 32 54.370 ns/op 49.036 ns/op 1.11
Buffer.compare 32 17.311 ns/op 15.822 ns/op 1.09
byteArrayEquals 1024 1.6020 us/op 1.2905 us/op 1.24
Buffer.compare 1024 24.883 ns/op 23.388 ns/op 1.06
byteArrayEquals 16384 25.497 us/op 20.422 us/op 1.25
Buffer.compare 16384 204.91 ns/op 195.40 ns/op 1.05
byteArrayEquals 123687377 191.38 ms/op 159.39 ms/op 1.20
Buffer.compare 123687377 7.6395 ms/op 8.0144 ms/op 0.95
byteArrayEquals 32 - diff last byte 52.870 ns/op 49.089 ns/op 1.08
Buffer.compare 32 - diff last byte 17.200 ns/op 17.036 ns/op 1.01
byteArrayEquals 1024 - diff last byte 1.5920 us/op 1.3248 us/op 1.20
Buffer.compare 1024 - diff last byte 25.143 ns/op 22.683 ns/op 1.11
byteArrayEquals 16384 - diff last byte 25.392 us/op 21.375 us/op 1.19
Buffer.compare 16384 - diff last byte 194.06 ns/op 181.16 ns/op 1.07
byteArrayEquals 123687377 - diff last byte 190.34 ms/op 156.57 ms/op 1.22
Buffer.compare 123687377 - diff last byte 6.9484 ms/op 7.7598 ms/op 0.90
byteArrayEquals 32 - random bytes 5.1040 ns/op 5.2390 ns/op 0.97
Buffer.compare 32 - random bytes 16.980 ns/op 17.101 ns/op 0.99
byteArrayEquals 1024 - random bytes 5.1340 ns/op 5.1420 ns/op 1.00
Buffer.compare 1024 - random bytes 17.133 ns/op 16.155 ns/op 1.06
byteArrayEquals 16384 - random bytes 5.1290 ns/op 5.1480 ns/op 1.00
Buffer.compare 16384 - random bytes 16.999 ns/op 16.556 ns/op 1.03
byteArrayEquals 123687377 - random bytes 6.5700 ns/op 8.1000 ns/op 0.81
Buffer.compare 123687377 - random bytes 18.470 ns/op 19.110 ns/op 0.97
regular array get 100000 times 38.623 us/op 31.952 us/op 1.21
wrappedArray get 100000 times 33.132 us/op 32.739 us/op 1.01
arrayWithProxy get 100000 times 13.786 ms/op 10.190 ms/op 1.35
ssz.Root.equals 45.415 ns/op 40.610 ns/op 1.12
byteArrayEquals 44.695 ns/op 43.989 ns/op 1.02
Buffer.compare 10.227 ns/op 9.3580 ns/op 1.09
shuffle list - 16384 els 6.3114 ms/op 5.5209 ms/op 1.14
shuffle list - 250000 els 93.533 ms/op 83.397 ms/op 1.12
processSlot - 1 slots 13.721 us/op 10.919 us/op 1.26
processSlot - 32 slots 2.2142 ms/op 3.8342 ms/op 0.58
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 35.921 ms/op 37.853 ms/op 0.95
getCommitteeAssignments - req 1 vs - 250000 vc 2.1240 ms/op 1.8751 ms/op 1.13
getCommitteeAssignments - req 100 vs - 250000 vc 4.1329 ms/op 3.5188 ms/op 1.17
getCommitteeAssignments - req 1000 vs - 250000 vc 4.4168 ms/op 3.7429 ms/op 1.18
findModifiedValidators - 10000 modified validators 260.48 ms/op 361.60 ms/op 0.72
findModifiedValidators - 1000 modified validators 178.72 ms/op 185.57 ms/op 0.96
findModifiedValidators - 100 modified validators 154.25 ms/op 169.93 ms/op 0.91
findModifiedValidators - 10 modified validators 148.66 ms/op 169.86 ms/op 0.88
findModifiedValidators - 1 modified validators 147.92 ms/op 152.49 ms/op 0.97
findModifiedValidators - no difference 149.95 ms/op 159.68 ms/op 0.94
compare ViewDUs 3.1590 s/op 2.6850 s/op 1.18
compare each validator Uint8Array 1.1609 s/op 1.3505 s/op 0.86
compare ViewDU to Uint8Array 999.11 ms/op 779.12 ms/op 1.28
migrate state 1000000 validators, 24 modified, 0 new 881.33 ms/op 812.38 ms/op 1.08
migrate state 1000000 validators, 1700 modified, 1000 new 1.0949 s/op 1.0098 s/op 1.08
migrate state 1000000 validators, 3400 modified, 2000 new 1.5203 s/op 1.2595 s/op 1.21
migrate state 1500000 validators, 24 modified, 0 new 1.0908 s/op 849.84 ms/op 1.28
migrate state 1500000 validators, 1700 modified, 1000 new 1.2557 s/op 1.0754 s/op 1.17
migrate state 1500000 validators, 3400 modified, 2000 new 1.4844 s/op 1.2728 s/op 1.17
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.2800 ns/op 5.8500 ns/op 0.73
state getBlockRootAtSlot - 250000 vs - 7PWei 618.71 ns/op 843.02 ns/op 0.73
computeProposers - vc 250000 6.7989 ms/op 6.4259 ms/op 1.06
computeEpochShuffling - vc 250000 91.679 ms/op 71.773 ms/op 1.28
getNextSyncCommittee - vc 250000 116.96 ms/op 107.32 ms/op 1.09
computeSigningRoot for AttestationData 19.758 us/op 22.820 us/op 0.87
hash AttestationData serialized data then Buffer.toString(base64) 1.5254 us/op 1.1169 us/op 1.37
toHexString serialized data 834.26 ns/op 675.81 ns/op 1.23
Buffer.toString(base64) 169.57 ns/op 133.91 ns/op 1.27
nodejs block root to RootHex using toHex 145.77 ns/op 117.83 ns/op 1.24
nodejs block root to RootHex using toRootHex 94.852 ns/op 75.520 ns/op 1.26
browser block root to RootHex using the deprecated toHexString 222.22 ns/op 183.59 ns/op 1.21
browser block root to RootHex using toHex 177.54 ns/op 150.16 ns/op 1.18
browser block root to RootHex using toRootHex 159.19 ns/op 134.33 ns/op 1.19

by benchmarkbot/action

philknows pushed a commit that referenced this pull request Oct 18, 2024
@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