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: remove 'active' from validator status type #7146

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Oct 10, 2024

Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.13%. Comparing base (38f54ab) to head (e6e4563).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #7146      +/-   ##
============================================
- Coverage     49.14%   49.13%   -0.01%     
============================================
  Files           597      597              
  Lines         39709    39708       -1     
  Branches       2084     2085       +1     
============================================
- Hits          19514    19511       -3     
- Misses        20154    20156       +2     
  Partials         41       41              

Copy link
Contributor

github-actions bot commented Oct 10, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 90589e9 Previous: 38f54ab Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.8397 ms/op 2.0713 ms/op 0.89
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 41.099 us/op 47.932 us/op 0.86
BLS verify - blst 926.39 us/op 920.38 us/op 1.01
BLS verifyMultipleSignatures 3 - blst 1.3075 ms/op 1.3492 ms/op 0.97
BLS verifyMultipleSignatures 8 - blst 2.0829 ms/op 1.9528 ms/op 1.07
BLS verifyMultipleSignatures 32 - blst 4.4923 ms/op 6.1292 ms/op 0.73
BLS verifyMultipleSignatures 64 - blst 8.4656 ms/op 10.921 ms/op 0.78
BLS verifyMultipleSignatures 128 - blst 16.089 ms/op 17.600 ms/op 0.91
BLS deserializing 10000 signatures 627.83 ms/op 705.67 ms/op 0.89
BLS deserializing 100000 signatures 6.0998 s/op 6.8977 s/op 0.88
BLS verifyMultipleSignatures - same message - 3 - blst 890.13 us/op 920.89 us/op 0.97
BLS verifyMultipleSignatures - same message - 8 - blst 1.0896 ms/op 1.2378 ms/op 0.88
BLS verifyMultipleSignatures - same message - 32 - blst 1.7109 ms/op 1.7973 ms/op 0.95
BLS verifyMultipleSignatures - same message - 64 - blst 2.5355 ms/op 2.7459 ms/op 0.92
BLS verifyMultipleSignatures - same message - 128 - blst 4.1843 ms/op 4.5168 ms/op 0.93
BLS aggregatePubkeys 32 - blst 18.325 us/op 19.793 us/op 0.93
BLS aggregatePubkeys 128 - blst 64.394 us/op 70.235 us/op 0.92
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 60.244 ms/op 67.703 ms/op 0.89
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 41.843 ms/op 61.916 ms/op 0.68
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 31.583 ms/op 42.479 ms/op 0.74
getSlashingsAndExits - default max 63.665 us/op 101.04 us/op 0.63
getSlashingsAndExits - 2k 319.49 us/op 317.38 us/op 1.01
proposeBlockBody type=full, size=empty 5.0312 ms/op 6.2598 ms/op 0.80
isKnown best case - 1 super set check 529.00 ns/op 486.00 ns/op 1.09
isKnown normal case - 2 super set checks 507.00 ns/op 488.00 ns/op 1.04
isKnown worse case - 16 super set checks 517.00 ns/op 360.00 ns/op 1.44
InMemoryCheckpointStateCache - add get delete 2.7040 us/op 2.8610 us/op 0.95
updateUnfinalizedPubkeys - updating 10 pubkeys 699.09 us/op 1.4859 ms/op 0.47
updateUnfinalizedPubkeys - updating 100 pubkeys 3.1815 ms/op 4.2211 ms/op 0.75
updateUnfinalizedPubkeys - updating 1000 pubkeys 40.692 ms/op 58.460 ms/op 0.70
validate api signedAggregateAndProof - struct 1.4341 ms/op 1.5699 ms/op 0.91
validate gossip signedAggregateAndProof - struct 1.5496 ms/op 1.6513 ms/op 0.94
batch validate gossip attestation - vc 640000 - chunk 32 118.68 us/op 154.35 us/op 0.77
batch validate gossip attestation - vc 640000 - chunk 64 103.31 us/op 139.67 us/op 0.74
batch validate gossip attestation - vc 640000 - chunk 128 95.966 us/op 126.49 us/op 0.76
batch validate gossip attestation - vc 640000 - chunk 256 91.970 us/op 116.02 us/op 0.79
pickEth1Vote - no votes 852.59 us/op 1.2306 ms/op 0.69
pickEth1Vote - max votes 5.5797 ms/op 7.5658 ms/op 0.74
pickEth1Vote - Eth1Data hashTreeRoot value x2048 16.323 ms/op 15.682 ms/op 1.04
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 20.449 ms/op 22.336 ms/op 0.92
pickEth1Vote - Eth1Data fastSerialize value x2048 335.14 us/op 541.33 us/op 0.62
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.1223 ms/op 2.6368 ms/op 1.18
bytes32 toHexString 568.00 ns/op 515.00 ns/op 1.10
bytes32 Buffer.toString(hex) 421.00 ns/op 263.00 ns/op 1.60
bytes32 Buffer.toString(hex) from Uint8Array 521.00 ns/op 446.00 ns/op 1.17
bytes32 Buffer.toString(hex) + 0x 426.00 ns/op 274.00 ns/op 1.55
Object access 1 prop 0.31800 ns/op 0.18700 ns/op 1.70
Map access 1 prop 0.33400 ns/op 0.15100 ns/op 2.21
Object get x1000 5.3600 ns/op 6.4350 ns/op 0.83
Map get x1000 5.9370 ns/op 6.7500 ns/op 0.88
Object set x1000 21.977 ns/op 39.337 ns/op 0.56
Map set x1000 18.570 ns/op 30.787 ns/op 0.60
Return object 10000 times 0.29390 ns/op 0.30800 ns/op 0.95
Throw Error 10000 times 2.7044 us/op 3.4410 us/op 0.79
toHex 112.69 ns/op 152.08 ns/op 0.74
Buffer.from 104.55 ns/op 142.89 ns/op 0.73
shared Buffer 70.806 ns/op 95.338 ns/op 0.74
fastMsgIdFn sha256 / 200 bytes 2.0310 us/op 2.3520 us/op 0.86
fastMsgIdFn h32 xxhash / 200 bytes 403.00 ns/op 293.00 ns/op 1.38
fastMsgIdFn h64 xxhash / 200 bytes 446.00 ns/op 299.00 ns/op 1.49
fastMsgIdFn sha256 / 1000 bytes 5.8120 us/op 7.8970 us/op 0.74
fastMsgIdFn h32 xxhash / 1000 bytes 518.00 ns/op 430.00 ns/op 1.20
fastMsgIdFn h64 xxhash / 1000 bytes 508.00 ns/op 385.00 ns/op 1.32
fastMsgIdFn sha256 / 10000 bytes 49.232 us/op 67.920 us/op 0.72
fastMsgIdFn h32 xxhash / 10000 bytes 1.8740 us/op 1.9850 us/op 0.94
fastMsgIdFn h64 xxhash / 10000 bytes 1.3140 us/op 1.2850 us/op 1.02
send data - 1000 256B messages 9.3045 ms/op 13.882 ms/op 0.67
send data - 1000 512B messages 12.512 ms/op 19.088 ms/op 0.66
send data - 1000 1024B messages 22.208 ms/op 30.451 ms/op 0.73
send data - 1000 1200B messages 20.826 ms/op 30.016 ms/op 0.69
send data - 1000 2048B messages 29.377 ms/op 36.281 ms/op 0.81
send data - 1000 4096B messages 25.880 ms/op 34.046 ms/op 0.76
send data - 1000 16384B messages 62.120 ms/op 76.848 ms/op 0.81
send data - 1000 65536B messages 273.49 ms/op 238.08 ms/op 1.15
enrSubnets - fastDeserialize 64 bits 1.1300 us/op 1.2290 us/op 0.92
enrSubnets - ssz BitVector 64 bits 515.00 ns/op 383.00 ns/op 1.34
enrSubnets - fastDeserialize 4 bits 337.00 ns/op 157.00 ns/op 2.15
enrSubnets - ssz BitVector 4 bits 527.00 ns/op 420.00 ns/op 1.25
prioritizePeers score -10:0 att 32-0.1 sync 2-0 135.75 us/op 201.49 us/op 0.67
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 132.38 us/op 214.41 us/op 0.62
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 294.55 us/op 373.11 us/op 0.79
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 424.42 us/op 538.50 us/op 0.79
prioritizePeers score 0:0 att 64-1 sync 4-1 641.10 us/op 962.33 us/op 0.67
array of 16000 items push then shift 1.3446 us/op 1.7070 us/op 0.79
LinkedList of 16000 items push then shift 6.5310 ns/op 8.7630 ns/op 0.75
array of 16000 items push then pop 82.415 ns/op 146.18 ns/op 0.56
LinkedList of 16000 items push then pop 6.3620 ns/op 7.6340 ns/op 0.83
array of 24000 items push then shift 1.9203 us/op 2.6084 us/op 0.74
LinkedList of 24000 items push then shift 6.4750 ns/op 8.4280 ns/op 0.77
array of 24000 items push then pop 111.73 ns/op 189.41 ns/op 0.59
LinkedList of 24000 items push then pop 6.3120 ns/op 8.7440 ns/op 0.72
intersect bitArray bitLen 8 5.5150 ns/op 6.9700 ns/op 0.79
intersect array and set length 8 39.838 ns/op 60.712 ns/op 0.66
intersect bitArray bitLen 128 27.214 ns/op 32.242 ns/op 0.84
intersect array and set length 128 590.42 ns/op 836.71 ns/op 0.71
bitArray.getTrueBitIndexes() bitLen 128 2.4780 us/op 2.6270 us/op 0.94
bitArray.getTrueBitIndexes() bitLen 248 2.9060 us/op 3.7960 us/op 0.77
bitArray.getTrueBitIndexes() bitLen 512 8.1750 us/op 8.2860 us/op 0.99
Buffer.concat 32 items 1.0340 us/op 1.0170 us/op 1.02
Uint8Array.set 32 items 1.8420 us/op 1.7140 us/op 1.07
Buffer.copy 2.0330 us/op 2.4250 us/op 0.84
Uint8Array.set - with subarray 2.7860 us/op 3.5600 us/op 0.78
Uint8Array.set - without subarray 1.5280 us/op 1.9470 us/op 0.78
getUint32 - dataview 404.00 ns/op 316.00 ns/op 1.28
getUint32 - manual 357.00 ns/op 226.00 ns/op 1.58
Set add up to 64 items then delete first 1.7374 us/op 2.8618 us/op 0.61
OrderedSet add up to 64 items then delete first 2.7394 us/op 4.8506 us/op 0.56
Set add up to 64 items then delete last 2.0556 us/op 3.3146 us/op 0.62
OrderedSet add up to 64 items then delete last 3.1592 us/op 4.7721 us/op 0.66
Set add up to 64 items then delete middle 2.0421 us/op 3.5391 us/op 0.58
OrderedSet add up to 64 items then delete middle 4.5369 us/op 6.7544 us/op 0.67
Set add up to 128 items then delete first 3.9824 us/op 6.9543 us/op 0.57
OrderedSet add up to 128 items then delete first 5.9702 us/op 11.122 us/op 0.54
Set add up to 128 items then delete last 3.9452 us/op 6.8646 us/op 0.57
OrderedSet add up to 128 items then delete last 6.1225 us/op 10.899 us/op 0.56
Set add up to 128 items then delete middle 3.9560 us/op 6.6463 us/op 0.60
OrderedSet add up to 128 items then delete middle 11.611 us/op 16.896 us/op 0.69
Set add up to 256 items then delete first 7.6923 us/op 14.023 us/op 0.55
OrderedSet add up to 256 items then delete first 11.742 us/op 22.186 us/op 0.53
Set add up to 256 items then delete last 7.7447 us/op 13.747 us/op 0.56
OrderedSet add up to 256 items then delete last 12.252 us/op 21.025 us/op 0.58
Set add up to 256 items then delete middle 8.4997 us/op 12.712 us/op 0.67
OrderedSet add up to 256 items then delete middle 35.203 us/op 50.682 us/op 0.69
transfer serialized Status (84 B) 1.3480 us/op 1.6310 us/op 0.83
copy serialized Status (84 B) 1.1310 us/op 1.3580 us/op 0.83
transfer serialized SignedVoluntaryExit (112 B) 1.4060 us/op 1.7260 us/op 0.81
copy serialized SignedVoluntaryExit (112 B) 1.1710 us/op 1.4640 us/op 0.80
transfer serialized ProposerSlashing (416 B) 1.5380 us/op 2.1710 us/op 0.71
copy serialized ProposerSlashing (416 B) 1.3220 us/op 2.0300 us/op 0.65
transfer serialized Attestation (485 B) 1.5940 us/op 2.2490 us/op 0.71
copy serialized Attestation (485 B) 1.3170 us/op 1.7400 us/op 0.76
transfer serialized AttesterSlashing (33232 B) 1.6290 us/op 1.9830 us/op 0.82
copy serialized AttesterSlashing (33232 B) 3.3270 us/op 7.8230 us/op 0.43
transfer serialized Small SignedBeaconBlock (128000 B) 1.9750 us/op 3.1820 us/op 0.62
copy serialized Small SignedBeaconBlock (128000 B) 8.4520 us/op 21.407 us/op 0.39
transfer serialized Avg SignedBeaconBlock (200000 B) 2.0750 us/op 3.5940 us/op 0.58
copy serialized Avg SignedBeaconBlock (200000 B) 11.543 us/op 22.497 us/op 0.51
transfer serialized BlobsSidecar (524380 B) 2.8650 us/op 3.1990 us/op 0.90
copy serialized BlobsSidecar (524380 B) 70.890 us/op 230.26 us/op 0.31
transfer serialized Big SignedBeaconBlock (1000000 B) 2.9830 us/op 4.4270 us/op 0.67
copy serialized Big SignedBeaconBlock (1000000 B) 192.98 us/op 191.47 us/op 1.01
pass gossip attestations to forkchoice per slot 2.5035 ms/op 2.9451 ms/op 0.85
forkChoice updateHead vc 100000 bc 64 eq 0 447.94 us/op 551.14 us/op 0.81
forkChoice updateHead vc 600000 bc 64 eq 0 2.5442 ms/op 4.1907 ms/op 0.61
forkChoice updateHead vc 1000000 bc 64 eq 0 4.1273 ms/op 5.6863 ms/op 0.73
forkChoice updateHead vc 600000 bc 320 eq 0 2.4615 ms/op 3.2716 ms/op 0.75
forkChoice updateHead vc 600000 bc 1200 eq 0 2.5736 ms/op 3.3575 ms/op 0.77
forkChoice updateHead vc 600000 bc 7200 eq 0 3.2748 ms/op 4.6231 ms/op 0.71
forkChoice updateHead vc 600000 bc 64 eq 1000 9.5944 ms/op 11.256 ms/op 0.85
forkChoice updateHead vc 600000 bc 64 eq 10000 9.7448 ms/op 11.108 ms/op 0.88
forkChoice updateHead vc 600000 bc 64 eq 300000 15.177 ms/op 17.246 ms/op 0.88
computeDeltas 500000 validators 300 proto nodes 3.1212 ms/op 3.9617 ms/op 0.79
computeDeltas 500000 validators 1200 proto nodes 3.0927 ms/op 3.7642 ms/op 0.82
computeDeltas 500000 validators 7200 proto nodes 3.1373 ms/op 3.7523 ms/op 0.84
computeDeltas 750000 validators 300 proto nodes 4.6257 ms/op 5.5344 ms/op 0.84
computeDeltas 750000 validators 1200 proto nodes 4.6016 ms/op 5.6851 ms/op 0.81
computeDeltas 750000 validators 7200 proto nodes 4.5143 ms/op 5.8174 ms/op 0.78
computeDeltas 1400000 validators 300 proto nodes 8.6074 ms/op 10.571 ms/op 0.81
computeDeltas 1400000 validators 1200 proto nodes 8.7416 ms/op 11.006 ms/op 0.79
computeDeltas 1400000 validators 7200 proto nodes 8.4789 ms/op 10.751 ms/op 0.79
computeDeltas 2100000 validators 300 proto nodes 12.567 ms/op 15.894 ms/op 0.79
computeDeltas 2100000 validators 1200 proto nodes 12.279 ms/op 16.128 ms/op 0.76
computeDeltas 2100000 validators 7200 proto nodes 12.691 ms/op 15.871 ms/op 0.80
altair processAttestation - 250000 vs - 7PWei normalcase 1.4994 ms/op 2.0676 ms/op 0.73
altair processAttestation - 250000 vs - 7PWei worstcase 2.2474 ms/op 3.1868 ms/op 0.71
altair processAttestation - setStatus - 1/6 committees join 99.123 us/op 104.48 us/op 0.95
altair processAttestation - setStatus - 1/3 committees join 192.18 us/op 188.16 us/op 1.02
altair processAttestation - setStatus - 1/2 committees join 269.97 us/op 287.02 us/op 0.94
altair processAttestation - setStatus - 2/3 committees join 353.39 us/op 348.05 us/op 1.02
altair processAttestation - setStatus - 4/5 committees join 458.69 us/op 519.94 us/op 0.88
altair processAttestation - setStatus - 100% committees join 545.75 us/op 613.95 us/op 0.89
altair processBlock - 250000 vs - 7PWei normalcase 3.4601 ms/op 5.7994 ms/op 0.60
altair processBlock - 250000 vs - 7PWei normalcase hashState 28.194 ms/op 30.552 ms/op 0.92
altair processBlock - 250000 vs - 7PWei worstcase 33.807 ms/op 40.947 ms/op 0.83
altair processBlock - 250000 vs - 7PWei worstcase hashState 58.650 ms/op 76.566 ms/op 0.77
phase0 processBlock - 250000 vs - 7PWei normalcase 1.9966 ms/op 2.2637 ms/op 0.88
phase0 processBlock - 250000 vs - 7PWei worstcase 21.888 ms/op 26.245 ms/op 0.83
altair processEth1Data - 250000 vs - 7PWei normalcase 241.88 us/op 460.57 us/op 0.53
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 4.7170 us/op 8.2880 us/op 0.57
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 29.121 us/op 51.355 us/op 0.57
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 7.9230 us/op 15.240 us/op 0.52
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 5.1990 us/op 8.1490 us/op 0.64
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 118.16 us/op 205.53 us/op 0.57
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 841.77 us/op 1.3871 ms/op 0.61
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1483 ms/op 1.5920 ms/op 0.72
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.1569 ms/op 1.6234 ms/op 0.71
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.9680 ms/op 4.0040 ms/op 0.74
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.1771 ms/op 1.7480 ms/op 0.67
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 2.8747 ms/op 4.4211 ms/op 0.65
Tree 40 250000 create 179.20 ms/op 260.65 ms/op 0.69
Tree 40 250000 get(125000) 116.59 ns/op 155.98 ns/op 0.75
Tree 40 250000 set(125000) 515.94 ns/op 845.59 ns/op 0.61
Tree 40 250000 toArray() 9.7463 ms/op 22.131 ms/op 0.44
Tree 40 250000 iterate all - toArray() + loop 9.6710 ms/op 21.770 ms/op 0.44
Tree 40 250000 iterate all - get(i) 42.920 ms/op 58.989 ms/op 0.73
Array 250000 create 2.3990 ms/op 3.6831 ms/op 0.65
Array 250000 clone - spread 1.2592 ms/op 1.5945 ms/op 0.79
Array 250000 get(125000) 0.62800 ns/op 0.45700 ns/op 1.37
Array 250000 set(125000) 0.61600 ns/op 0.47700 ns/op 1.29
Array 250000 iterate all - loop 78.811 us/op 111.46 us/op 0.71
phase0 afterProcessEpoch - 250000 vs - 7PWei 79.837 ms/op 98.308 ms/op 0.81
Array.fill - length 1000000 2.4046 ms/op 3.6737 ms/op 0.65
Array push - length 1000000 14.365 ms/op 14.467 ms/op 0.99
Array.get 0.25066 ns/op 0.29539 ns/op 0.85
Uint8Array.get 0.32455 ns/op 0.46202 ns/op 0.70
phase0 beforeProcessEpoch - 250000 vs - 7PWei 15.297 ms/op 19.262 ms/op 0.79
altair processEpoch - mainnet_e81889 320.83 ms/op 334.90 ms/op 0.96
mainnet_e81889 - altair beforeProcessEpoch 16.043 ms/op 20.338 ms/op 0.79
mainnet_e81889 - altair processJustificationAndFinalization 10.105 us/op 18.372 us/op 0.55
mainnet_e81889 - altair processInactivityUpdates 4.0123 ms/op 6.2700 ms/op 0.64
mainnet_e81889 - altair processRewardsAndPenalties 48.440 ms/op 46.909 ms/op 1.03
mainnet_e81889 - altair processRegistryUpdates 1.0980 us/op 1.7500 us/op 0.63
mainnet_e81889 - altair processSlashings 431.00 ns/op 630.00 ns/op 0.68
mainnet_e81889 - altair processEth1DataReset 655.00 ns/op 429.00 ns/op 1.53
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.0712 ms/op 1.8531 ms/op 0.58
mainnet_e81889 - altair processSlashingsReset 1.3710 us/op 6.2280 us/op 0.22
mainnet_e81889 - altair processRandaoMixesReset 2.6430 us/op 6.3580 us/op 0.42
mainnet_e81889 - altair processHistoricalRootsUpdate 776.00 ns/op 754.00 ns/op 1.03
mainnet_e81889 - altair processParticipationFlagUpdates 2.2490 us/op 3.5480 us/op 0.63
mainnet_e81889 - altair processSyncCommitteeUpdates 483.00 ns/op 807.00 ns/op 0.60
mainnet_e81889 - altair afterProcessEpoch 81.403 ms/op 98.667 ms/op 0.83
capella processEpoch - mainnet_e217614 1.0792 s/op 1.2027 s/op 0.90
mainnet_e217614 - capella beforeProcessEpoch 68.583 ms/op 68.207 ms/op 1.01
mainnet_e217614 - capella processJustificationAndFinalization 17.151 us/op 20.935 us/op 0.82
mainnet_e217614 - capella processInactivityUpdates 14.566 ms/op 17.198 ms/op 0.85
mainnet_e217614 - capella processRewardsAndPenalties 247.39 ms/op 242.25 ms/op 1.02
mainnet_e217614 - capella processRegistryUpdates 12.709 us/op 18.693 us/op 0.68
mainnet_e217614 - capella processSlashings 722.00 ns/op 505.00 ns/op 1.43
mainnet_e217614 - capella processEth1DataReset 658.00 ns/op 409.00 ns/op 1.61
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.3547 ms/op 13.454 ms/op 0.32
mainnet_e217614 - capella processSlashingsReset 1.5670 us/op 5.7020 us/op 0.27
mainnet_e217614 - capella processRandaoMixesReset 3.0590 us/op 7.1220 us/op 0.43
mainnet_e217614 - capella processHistoricalRootsUpdate 724.00 ns/op 1.0040 us/op 0.72
mainnet_e217614 - capella processParticipationFlagUpdates 1.9540 us/op 3.6020 us/op 0.54
mainnet_e217614 - capella afterProcessEpoch 203.30 ms/op 243.37 ms/op 0.84
phase0 processEpoch - mainnet_e58758 318.50 ms/op 376.34 ms/op 0.85
mainnet_e58758 - phase0 beforeProcessEpoch 70.917 ms/op 76.291 ms/op 0.93
mainnet_e58758 - phase0 processJustificationAndFinalization 13.895 us/op 18.574 us/op 0.75
mainnet_e58758 - phase0 processRewardsAndPenalties 31.754 ms/op 36.040 ms/op 0.88
mainnet_e58758 - phase0 processRegistryUpdates 6.4840 us/op 9.8900 us/op 0.66
mainnet_e58758 - phase0 processSlashings 701.00 ns/op 461.00 ns/op 1.52
mainnet_e58758 - phase0 processEth1DataReset 690.00 ns/op 330.00 ns/op 2.09
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 834.54 us/op 1.9375 ms/op 0.43
mainnet_e58758 - phase0 processSlashingsReset 2.8540 us/op 2.8930 us/op 0.99
mainnet_e58758 - phase0 processRandaoMixesReset 3.3700 us/op 4.9960 us/op 0.67
mainnet_e58758 - phase0 processHistoricalRootsUpdate 767.00 ns/op 591.00 ns/op 1.30
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.3910 us/op 4.2740 us/op 1.03
mainnet_e58758 - phase0 afterProcessEpoch 66.764 ms/op 79.765 ms/op 0.84
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0284 ms/op 1.9312 ms/op 0.53
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.3572 ms/op 2.4833 ms/op 0.55
altair processInactivityUpdates - 250000 normalcase 16.482 ms/op 19.465 ms/op 0.85
altair processInactivityUpdates - 250000 worstcase 17.958 ms/op 19.496 ms/op 0.92
phase0 processRegistryUpdates - 250000 normalcase 8.7890 us/op 10.892 us/op 0.81
phase0 processRegistryUpdates - 250000 badcase_full_deposits 301.19 us/op 416.13 us/op 0.72
phase0 processRegistryUpdates - 250000 worstcase 0.5 120.75 ms/op 115.46 ms/op 1.05
altair processRewardsAndPenalties - 250000 normalcase 44.594 ms/op 42.909 ms/op 1.04
altair processRewardsAndPenalties - 250000 worstcase 37.047 ms/op 43.275 ms/op 0.86
phase0 getAttestationDeltas - 250000 normalcase 7.7405 ms/op 8.2329 ms/op 0.94
phase0 getAttestationDeltas - 250000 worstcase 6.4137 ms/op 8.0962 ms/op 0.79
phase0 processSlashings - 250000 worstcase 92.446 us/op 124.74 us/op 0.74
altair processSyncCommitteeUpdates - 250000 112.02 ms/op 123.88 ms/op 0.90
BeaconState.hashTreeRoot - No change 453.00 ns/op 244.00 ns/op 1.86
BeaconState.hashTreeRoot - 1 full validator 111.59 us/op 145.97 us/op 0.76
BeaconState.hashTreeRoot - 32 full validator 989.62 us/op 1.5494 ms/op 0.64
BeaconState.hashTreeRoot - 512 full validator 11.339 ms/op 11.577 ms/op 0.98
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 144.19 us/op 124.49 us/op 1.16
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.5489 ms/op 2.6444 ms/op 0.59
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 22.549 ms/op 28.074 ms/op 0.80
BeaconState.hashTreeRoot - 1 balances 82.719 us/op 102.70 us/op 0.81
BeaconState.hashTreeRoot - 32 balances 1.4133 ms/op 1.3643 ms/op 1.04
BeaconState.hashTreeRoot - 512 balances 11.678 ms/op 9.1023 ms/op 1.28
BeaconState.hashTreeRoot - 250000 balances 199.20 ms/op 174.54 ms/op 1.14
aggregationBits - 2048 els - zipIndexesInBitList 33.346 us/op 27.464 us/op 1.21
byteArrayEquals 32 47.464 ns/op 55.713 ns/op 0.85
Buffer.compare 32 15.308 ns/op 17.853 ns/op 0.86
byteArrayEquals 1024 1.2576 us/op 1.6538 us/op 0.76
Buffer.compare 1024 22.602 ns/op 27.702 ns/op 0.82
byteArrayEquals 16384 20.254 us/op 25.981 us/op 0.78
Buffer.compare 16384 155.91 ns/op 196.86 ns/op 0.79
byteArrayEquals 123687377 150.40 ms/op 195.95 ms/op 0.77
Buffer.compare 123687377 4.4349 ms/op 7.3217 ms/op 0.61
byteArrayEquals 32 - diff last byte 47.798 ns/op 54.495 ns/op 0.88
Buffer.compare 32 - diff last byte 16.057 ns/op 17.509 ns/op 0.92
byteArrayEquals 1024 - diff last byte 1.3095 us/op 1.5979 us/op 0.82
Buffer.compare 1024 - diff last byte 25.340 ns/op 27.592 ns/op 0.92
byteArrayEquals 16384 - diff last byte 20.243 us/op 26.470 us/op 0.76
Buffer.compare 16384 - diff last byte 208.14 ns/op 212.16 ns/op 0.98
byteArrayEquals 123687377 - diff last byte 156.67 ms/op 197.31 ms/op 0.79
Buffer.compare 123687377 - diff last byte 6.2830 ms/op 8.0070 ms/op 0.78
byteArrayEquals 32 - random bytes 4.8580 ns/op 5.4380 ns/op 0.89
Buffer.compare 32 - random bytes 15.444 ns/op 17.845 ns/op 0.87
byteArrayEquals 1024 - random bytes 5.1730 ns/op 5.8970 ns/op 0.88
Buffer.compare 1024 - random bytes 15.958 ns/op 18.526 ns/op 0.86
byteArrayEquals 16384 - random bytes 5.0460 ns/op 5.5150 ns/op 0.91
Buffer.compare 16384 - random bytes 15.867 ns/op 18.313 ns/op 0.87
byteArrayEquals 123687377 - random bytes 7.9600 ns/op 6.9600 ns/op 1.14
Buffer.compare 123687377 - random bytes 18.910 ns/op 20.240 ns/op 0.93
regular array get 100000 times 31.679 us/op 34.579 us/op 0.92
wrappedArray get 100000 times 31.679 us/op 34.594 us/op 0.92
arrayWithProxy get 100000 times 11.485 ms/op 14.754 ms/op 0.78
ssz.Root.equals 44.383 ns/op 48.722 ns/op 0.91
byteArrayEquals 43.017 ns/op 47.619 ns/op 0.90
Buffer.compare 8.9210 ns/op 11.004 ns/op 0.81
shuffle list - 16384 els 5.5790 ms/op 7.0260 ms/op 0.79
shuffle list - 250000 els 80.812 ms/op 99.042 ms/op 0.82
processSlot - 1 slots 12.572 us/op 14.440 us/op 0.87
processSlot - 32 slots 2.7070 ms/op 3.8342 ms/op 0.71
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 35.777 ms/op 38.380 ms/op 0.93
getCommitteeAssignments - req 1 vs - 250000 vc 1.7769 ms/op 2.1762 ms/op 0.82
getCommitteeAssignments - req 100 vs - 250000 vc 3.5189 ms/op 4.2734 ms/op 0.82
getCommitteeAssignments - req 1000 vs - 250000 vc 3.7908 ms/op 4.5334 ms/op 0.84
findModifiedValidators - 10000 modified validators 229.31 ms/op 239.40 ms/op 0.96
findModifiedValidators - 1000 modified validators 141.21 ms/op 171.29 ms/op 0.82
findModifiedValidators - 100 modified validators 158.12 ms/op 158.55 ms/op 1.00
findModifiedValidators - 10 modified validators 152.65 ms/op 149.31 ms/op 1.02
findModifiedValidators - 1 modified validators 142.22 ms/op 157.37 ms/op 0.90
findModifiedValidators - no difference 144.96 ms/op 164.33 ms/op 0.88
compare ViewDUs 3.4506 s/op 3.3479 s/op 1.03
compare each validator Uint8Array 1.5823 s/op 1.4520 s/op 1.09
compare ViewDU to Uint8Array 684.80 ms/op 1.0929 s/op 0.63
migrate state 1000000 validators, 24 modified, 0 new 817.99 ms/op 917.84 ms/op 0.89
migrate state 1000000 validators, 1700 modified, 1000 new 1.1189 s/op 1.1961 s/op 0.94
migrate state 1000000 validators, 3400 modified, 2000 new 1.1763 s/op 1.3885 s/op 0.85
migrate state 1500000 validators, 24 modified, 0 new 804.44 ms/op 983.36 ms/op 0.82
migrate state 1500000 validators, 1700 modified, 1000 new 1.0895 s/op 1.2053 s/op 0.90
migrate state 1500000 validators, 3400 modified, 2000 new 1.1487 s/op 1.3079 s/op 0.88
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.2400 ns/op 5.0400 ns/op 1.24
state getBlockRootAtSlot - 250000 vs - 7PWei 380.10 ns/op 625.18 ns/op 0.61
computeProposers - vc 250000 5.2697 ms/op 7.2850 ms/op 0.72
computeEpochShuffling - vc 250000 79.291 ms/op 95.160 ms/op 0.83
getNextSyncCommittee - vc 250000 93.030 ms/op 127.49 ms/op 0.73
computeSigningRoot for AttestationData 14.404 us/op 24.950 us/op 0.58
hash AttestationData serialized data then Buffer.toString(base64) 1.2120 us/op 1.6860 us/op 0.72
toHexString serialized data 786.01 ns/op 926.86 ns/op 0.85
Buffer.toString(base64) 141.11 ns/op 196.48 ns/op 0.72
nodejs block root to RootHex using toHex 121.56 ns/op 162.42 ns/op 0.75
nodejs block root to RootHex using toRootHex 77.282 ns/op 106.73 ns/op 0.72
browser block root to RootHex using the deprecated toHexString 202.32 ns/op 238.74 ns/op 0.85
browser block root to RootHex using toHex 171.24 ns/op 191.48 ns/op 0.89
browser block root to RootHex using toRootHex 147.43 ns/op 171.62 ns/op 0.86

by benchmarkbot/action

@wemeetagain wemeetagain merged commit 0d87c28 into unstable Oct 10, 2024
20 checks passed
@wemeetagain wemeetagain deleted the nflaig/fix-validator-status branch October 10, 2024 18:39
philknows pushed a commit that referenced this pull request Oct 18, 2024
* chore: remove 'active' from validator status type

* Clean up usage
@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.

2 participants