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

feat: exclude empty requests in execution requests list #7196

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

Conversation

ensi321
Copy link
Contributor

@ensi321 ensi321 commented Oct 25, 2024

Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.21%. Comparing base (748966b) to head (70da4a6).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #7196   +/-   ##
=========================================
  Coverage     49.21%   49.21%           
=========================================
  Files           598      598           
  Lines         39794    39794           
  Branches       2091     2087    -4     
=========================================
  Hits          19583    19583           
  Misses        20171    20171           
  Partials         40       40           

Copy link
Contributor

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 4d3aaed Previous: 748966b Ratio
Buffer.compare 123687377 6.1216 ms/op 20.442 ms/op 0.30
Full benchmark results
Benchmark suite Current: 4d3aaed Previous: 748966b Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.9976 ms/op 2.1807 ms/op 0.92
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 44.689 us/op 66.746 us/op 0.67
BLS verify - blst 1.2004 ms/op 1.0183 ms/op 1.18
BLS verifyMultipleSignatures 3 - blst 1.5736 ms/op 1.3517 ms/op 1.16
BLS verifyMultipleSignatures 8 - blst 2.4752 ms/op 1.9743 ms/op 1.25
BLS verifyMultipleSignatures 32 - blst 7.4228 ms/op 5.8657 ms/op 1.27
BLS verifyMultipleSignatures 64 - blst 10.831 ms/op 11.179 ms/op 0.97
BLS verifyMultipleSignatures 128 - blst 16.878 ms/op 18.512 ms/op 0.91
BLS deserializing 10000 signatures 660.78 ms/op 714.67 ms/op 0.92
BLS deserializing 100000 signatures 6.5598 s/op 7.0807 s/op 0.93
BLS verifyMultipleSignatures - same message - 3 - blst 888.10 us/op 1.1133 ms/op 0.80
BLS verifyMultipleSignatures - same message - 8 - blst 1.1141 ms/op 1.1348 ms/op 0.98
BLS verifyMultipleSignatures - same message - 32 - blst 1.8816 ms/op 2.0165 ms/op 0.93
BLS verifyMultipleSignatures - same message - 64 - blst 2.4963 ms/op 2.9738 ms/op 0.84
BLS verifyMultipleSignatures - same message - 128 - blst 4.2622 ms/op 4.9267 ms/op 0.87
BLS aggregatePubkeys 32 - blst 19.195 us/op 21.309 us/op 0.90
BLS aggregatePubkeys 128 - blst 68.326 us/op 71.333 us/op 0.96
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 87.730 ms/op 80.652 ms/op 1.09
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 80.744 ms/op 89.872 ms/op 0.90
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 50.746 ms/op 51.751 ms/op 0.98
getSlashingsAndExits - default max 84.234 us/op 137.18 us/op 0.61
getSlashingsAndExits - 2k 268.75 us/op 438.56 us/op 0.61
proposeBlockBody type=full, size=empty 5.6583 ms/op 9.7087 ms/op 0.58
isKnown best case - 1 super set check 283.00 ns/op 756.00 ns/op 0.37
isKnown normal case - 2 super set checks 269.00 ns/op 693.00 ns/op 0.39
isKnown worse case - 16 super set checks 272.00 ns/op 670.00 ns/op 0.41
InMemoryCheckpointStateCache - add get delete 2.6590 us/op 3.8390 us/op 0.69
updateUnfinalizedPubkeys - updating 10 pubkeys 897.88 us/op 2.0777 ms/op 0.43
updateUnfinalizedPubkeys - updating 100 pubkeys 3.7586 ms/op 5.8934 ms/op 0.64
updateUnfinalizedPubkeys - updating 1000 pubkeys 48.732 ms/op 66.025 ms/op 0.74
validate api signedAggregateAndProof - struct 2.7166 ms/op 1.8313 ms/op 1.48
validate gossip signedAggregateAndProof - struct 2.7484 ms/op 2.0381 ms/op 1.35
batch validate gossip attestation - vc 640000 - chunk 32 133.23 us/op 159.86 us/op 0.83
batch validate gossip attestation - vc 640000 - chunk 64 113.47 us/op 148.72 us/op 0.76
batch validate gossip attestation - vc 640000 - chunk 128 107.61 us/op 144.79 us/op 0.74
batch validate gossip attestation - vc 640000 - chunk 256 101.84 us/op 119.41 us/op 0.85
pickEth1Vote - no votes 955.78 us/op 1.1738 ms/op 0.81
pickEth1Vote - max votes 5.8662 ms/op 7.2901 ms/op 0.80
pickEth1Vote - Eth1Data hashTreeRoot value x2048 15.388 ms/op 13.906 ms/op 1.11
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 25.832 ms/op 21.547 ms/op 1.20
pickEth1Vote - Eth1Data fastSerialize value x2048 451.99 us/op 551.19 us/op 0.82
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.7606 ms/op 4.5870 ms/op 0.82
bytes32 toHexString 400.00 ns/op 626.00 ns/op 0.64
bytes32 Buffer.toString(hex) 234.00 ns/op 271.00 ns/op 0.86
bytes32 Buffer.toString(hex) from Uint8Array 348.00 ns/op 492.00 ns/op 0.71
bytes32 Buffer.toString(hex) + 0x 254.00 ns/op 273.00 ns/op 0.93
Object access 1 prop 0.12300 ns/op 0.20200 ns/op 0.61
Map access 1 prop 0.12500 ns/op 0.14800 ns/op 0.84
Object get x1000 5.8890 ns/op 6.2110 ns/op 0.95
Map get x1000 6.2220 ns/op 6.7660 ns/op 0.92
Object set x1000 31.239 ns/op 50.880 ns/op 0.61
Map set x1000 22.140 ns/op 39.200 ns/op 0.56
Return object 10000 times 0.28240 ns/op 0.32190 ns/op 0.88
Throw Error 10000 times 3.2918 us/op 3.5923 us/op 0.92
toHex 134.91 ns/op 193.15 ns/op 0.70
Buffer.from 127.81 ns/op 178.98 ns/op 0.71
shared Buffer 89.685 ns/op 105.48 ns/op 0.85
fastMsgIdFn sha256 / 200 bytes 2.1840 us/op 2.3280 us/op 0.94
fastMsgIdFn h32 xxhash / 200 bytes 223.00 ns/op 309.00 ns/op 0.72
fastMsgIdFn h64 xxhash / 200 bytes 255.00 ns/op 301.00 ns/op 0.85
fastMsgIdFn sha256 / 1000 bytes 7.3100 us/op 8.1220 us/op 0.90
fastMsgIdFn h32 xxhash / 1000 bytes 355.00 ns/op 449.00 ns/op 0.79
fastMsgIdFn h64 xxhash / 1000 bytes 328.00 ns/op 375.00 ns/op 0.87
fastMsgIdFn sha256 / 10000 bytes 62.714 us/op 67.234 us/op 0.93
fastMsgIdFn h32 xxhash / 10000 bytes 1.7970 us/op 2.0170 us/op 0.89
fastMsgIdFn h64 xxhash / 10000 bytes 1.1720 us/op 1.2880 us/op 0.91
send data - 1000 256B messages 11.933 ms/op 15.344 ms/op 0.78
send data - 1000 512B messages 16.449 ms/op 20.582 ms/op 0.80
send data - 1000 1024B messages 28.440 ms/op 32.342 ms/op 0.88
send data - 1000 1200B messages 25.352 ms/op 33.462 ms/op 0.76
send data - 1000 2048B messages 32.068 ms/op 36.554 ms/op 0.88
send data - 1000 4096B messages 31.865 ms/op 38.245 ms/op 0.83
send data - 1000 16384B messages 70.949 ms/op 86.273 ms/op 0.82
send data - 1000 65536B messages 199.47 ms/op 264.66 ms/op 0.75
enrSubnets - fastDeserialize 64 bits 1.0220 us/op 1.3530 us/op 0.76
enrSubnets - ssz BitVector 64 bits 342.00 ns/op 450.00 ns/op 0.76
enrSubnets - fastDeserialize 4 bits 142.00 ns/op 204.00 ns/op 0.70
enrSubnets - ssz BitVector 4 bits 345.00 ns/op 459.00 ns/op 0.75
prioritizePeers score -10:0 att 32-0.1 sync 2-0 190.30 us/op 206.53 us/op 0.92
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 151.97 us/op 200.93 us/op 0.76
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 239.86 us/op 387.57 us/op 0.62
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 650.15 us/op 541.87 us/op 1.20
prioritizePeers score 0:0 att 64-1 sync 4-1 937.09 us/op 1.0134 ms/op 0.92
array of 16000 items push then shift 1.6017 us/op 1.9130 us/op 0.84
LinkedList of 16000 items push then shift 6.9220 ns/op 8.1230 ns/op 0.85
array of 16000 items push then pop 93.909 ns/op 143.62 ns/op 0.65
LinkedList of 16000 items push then pop 6.7410 ns/op 7.6180 ns/op 0.88
array of 24000 items push then shift 2.3250 us/op 2.5118 us/op 0.93
LinkedList of 24000 items push then shift 6.8420 ns/op 8.6250 ns/op 0.79
array of 24000 items push then pop 123.14 ns/op 177.63 ns/op 0.69
LinkedList of 24000 items push then pop 6.7200 ns/op 8.2970 ns/op 0.81
intersect bitArray bitLen 8 6.1970 ns/op 6.9650 ns/op 0.89
intersect array and set length 8 44.479 ns/op 61.859 ns/op 0.72
intersect bitArray bitLen 128 28.867 ns/op 31.004 ns/op 0.93
intersect array and set length 128 646.44 ns/op 837.44 ns/op 0.77
bitArray.getTrueBitIndexes() bitLen 128 2.5060 us/op 2.3160 us/op 1.08
bitArray.getTrueBitIndexes() bitLen 248 3.4650 us/op 4.4540 us/op 0.78
bitArray.getTrueBitIndexes() bitLen 512 7.9050 us/op 8.4700 us/op 0.93
Buffer.concat 32 items 903.00 ns/op 986.00 ns/op 0.92
Uint8Array.set 32 items 1.5430 us/op 1.6600 us/op 0.93
Buffer.copy 2.0300 us/op 1.9870 us/op 1.02
Uint8Array.set - with subarray 2.4920 us/op 3.2040 us/op 0.78
Uint8Array.set - without subarray 1.5900 us/op 1.7080 us/op 0.93
getUint32 - dataview 217.00 ns/op 304.00 ns/op 0.71
getUint32 - manual 137.00 ns/op 219.00 ns/op 0.63
Set add up to 64 items then delete first 2.1218 us/op 2.5193 us/op 0.84
OrderedSet add up to 64 items then delete first 3.2298 us/op 4.1617 us/op 0.78
Set add up to 64 items then delete last 2.4361 us/op 3.1986 us/op 0.76
OrderedSet add up to 64 items then delete last 3.4548 us/op 4.3760 us/op 0.79
Set add up to 64 items then delete middle 2.4197 us/op 2.6464 us/op 0.91
OrderedSet add up to 64 items then delete middle 4.9096 us/op 6.0279 us/op 0.81
Set add up to 128 items then delete first 4.9381 us/op 5.3519 us/op 0.92
OrderedSet add up to 128 items then delete first 7.4692 us/op 10.577 us/op 0.71
Set add up to 128 items then delete last 4.7162 us/op 5.5222 us/op 0.85
OrderedSet add up to 128 items then delete last 6.8533 us/op 8.3033 us/op 0.83
Set add up to 128 items then delete middle 4.7464 us/op 6.4714 us/op 0.73
OrderedSet add up to 128 items then delete middle 13.869 us/op 18.652 us/op 0.74
Set add up to 256 items then delete first 9.9806 us/op 13.138 us/op 0.76
OrderedSet add up to 256 items then delete first 15.277 us/op 21.447 us/op 0.71
Set add up to 256 items then delete last 9.1798 us/op 11.174 us/op 0.82
OrderedSet add up to 256 items then delete last 14.129 us/op 16.175 us/op 0.87
Set add up to 256 items then delete middle 9.2077 us/op 10.177 us/op 0.90
OrderedSet add up to 256 items then delete middle 39.361 us/op 47.018 us/op 0.84
transfer serialized Status (84 B) 1.3510 us/op 1.5220 us/op 0.89
copy serialized Status (84 B) 1.1230 us/op 1.3250 us/op 0.85
transfer serialized SignedVoluntaryExit (112 B) 1.4150 us/op 1.5040 us/op 0.94
copy serialized SignedVoluntaryExit (112 B) 1.1570 us/op 1.2540 us/op 0.92
transfer serialized ProposerSlashing (416 B) 1.7860 us/op 2.3620 us/op 0.76
copy serialized ProposerSlashing (416 B) 1.6270 us/op 2.0220 us/op 0.80
transfer serialized Attestation (485 B) 2.1370 us/op 1.7890 us/op 1.19
copy serialized Attestation (485 B) 2.0340 us/op 1.7560 us/op 1.16
transfer serialized AttesterSlashing (33232 B) 2.1050 us/op 1.8630 us/op 1.13
copy serialized AttesterSlashing (33232 B) 4.7830 us/op 5.9160 us/op 0.81
transfer serialized Small SignedBeaconBlock (128000 B) 2.9870 us/op 2.7500 us/op 1.09
copy serialized Small SignedBeaconBlock (128000 B) 12.966 us/op 21.094 us/op 0.61
transfer serialized Avg SignedBeaconBlock (200000 B) 2.8580 us/op 3.3590 us/op 0.85
copy serialized Avg SignedBeaconBlock (200000 B) 18.984 us/op 33.204 us/op 0.57
transfer serialized BlobsSidecar (524380 B) 2.4090 us/op 3.7570 us/op 0.64
copy serialized BlobsSidecar (524380 B) 129.31 us/op 129.31 us/op 1.00
transfer serialized Big SignedBeaconBlock (1000000 B) 2.3430 us/op 3.9660 us/op 0.59
copy serialized Big SignedBeaconBlock (1000000 B) 143.39 us/op 297.07 us/op 0.48
pass gossip attestations to forkchoice per slot 2.7992 ms/op 3.1079 ms/op 0.90
forkChoice updateHead vc 100000 bc 64 eq 0 469.01 us/op 465.96 us/op 1.01
forkChoice updateHead vc 600000 bc 64 eq 0 2.9840 ms/op 3.0337 ms/op 0.98
forkChoice updateHead vc 1000000 bc 64 eq 0 4.8410 ms/op 5.0290 ms/op 0.96
forkChoice updateHead vc 600000 bc 320 eq 0 2.7708 ms/op 2.9222 ms/op 0.95
forkChoice updateHead vc 600000 bc 1200 eq 0 2.7712 ms/op 2.9764 ms/op 0.93
forkChoice updateHead vc 600000 bc 7200 eq 0 3.4159 ms/op 4.5130 ms/op 0.76
forkChoice updateHead vc 600000 bc 64 eq 1000 9.9001 ms/op 10.741 ms/op 0.92
forkChoice updateHead vc 600000 bc 64 eq 10000 10.146 ms/op 10.910 ms/op 0.93
forkChoice updateHead vc 600000 bc 64 eq 300000 13.075 ms/op 14.765 ms/op 0.89
computeDeltas 500000 validators 300 proto nodes 3.9371 ms/op 4.4766 ms/op 0.88
computeDeltas 500000 validators 1200 proto nodes 3.9347 ms/op 4.3498 ms/op 0.90
computeDeltas 500000 validators 7200 proto nodes 4.0135 ms/op 4.2661 ms/op 0.94
computeDeltas 750000 validators 300 proto nodes 5.9378 ms/op 6.4602 ms/op 0.92
computeDeltas 750000 validators 1200 proto nodes 6.0986 ms/op 6.6890 ms/op 0.91
computeDeltas 750000 validators 7200 proto nodes 6.1536 ms/op 6.5004 ms/op 0.95
computeDeltas 1400000 validators 300 proto nodes 11.021 ms/op 11.826 ms/op 0.93
computeDeltas 1400000 validators 1200 proto nodes 11.155 ms/op 13.720 ms/op 0.81
computeDeltas 1400000 validators 7200 proto nodes 11.102 ms/op 12.279 ms/op 0.90
computeDeltas 2100000 validators 300 proto nodes 17.629 ms/op 20.941 ms/op 0.84
computeDeltas 2100000 validators 1200 proto nodes 17.441 ms/op 24.485 ms/op 0.71
computeDeltas 2100000 validators 7200 proto nodes 17.131 ms/op 26.195 ms/op 0.65
altair processAttestation - 250000 vs - 7PWei normalcase 1.6775 ms/op 4.0004 ms/op 0.42
altair processAttestation - 250000 vs - 7PWei worstcase 2.4317 ms/op 5.3793 ms/op 0.45
altair processAttestation - setStatus - 1/6 committees join 87.303 us/op 175.69 us/op 0.50
altair processAttestation - setStatus - 1/3 committees join 174.29 us/op 405.87 us/op 0.43
altair processAttestation - setStatus - 1/2 committees join 242.92 us/op 362.80 us/op 0.67
altair processAttestation - setStatus - 2/3 committees join 318.29 us/op 385.46 us/op 0.83
altair processAttestation - setStatus - 4/5 committees join 454.60 us/op 551.97 us/op 0.82
altair processAttestation - setStatus - 100% committees join 549.61 us/op 642.47 us/op 0.86
altair processBlock - 250000 vs - 7PWei normalcase 5.8790 ms/op 6.1016 ms/op 0.96
altair processBlock - 250000 vs - 7PWei normalcase hashState 33.527 ms/op 31.131 ms/op 1.08
altair processBlock - 250000 vs - 7PWei worstcase 44.100 ms/op 42.616 ms/op 1.03
altair processBlock - 250000 vs - 7PWei worstcase hashState 93.956 ms/op 83.015 ms/op 1.13
phase0 processBlock - 250000 vs - 7PWei normalcase 2.4397 ms/op 3.1487 ms/op 0.77
phase0 processBlock - 250000 vs - 7PWei worstcase 25.408 ms/op 29.216 ms/op 0.87
altair processEth1Data - 250000 vs - 7PWei normalcase 295.83 us/op 449.73 us/op 0.66
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 7.5210 us/op 9.5290 us/op 0.79
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 46.555 us/op 49.119 us/op 0.95
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 13.153 us/op 16.073 us/op 0.82
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 7.9960 us/op 10.691 us/op 0.75
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 195.82 us/op 192.39 us/op 1.02
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 2.2035 ms/op 1.3502 ms/op 1.63
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.9256 ms/op 1.6194 ms/op 1.81
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.3026 ms/op 2.0316 ms/op 1.13
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.4557 ms/op 6.4913 ms/op 0.53
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5676 ms/op 2.4245 ms/op 0.65
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.8585 ms/op 4.0445 ms/op 1.20
Tree 40 250000 create 206.98 ms/op 279.96 ms/op 0.74
Tree 40 250000 get(125000) 135.01 ns/op 166.81 ns/op 0.81
Tree 40 250000 set(125000) 599.80 ns/op 769.36 ns/op 0.78
Tree 40 250000 toArray() 15.000 ms/op 21.708 ms/op 0.69
Tree 40 250000 iterate all - toArray() + loop 14.568 ms/op 20.965 ms/op 0.69
Tree 40 250000 iterate all - get(i) 50.747 ms/op 58.447 ms/op 0.87
Array 250000 create 2.8226 ms/op 3.5322 ms/op 0.80
Array 250000 clone - spread 1.3930 ms/op 1.4852 ms/op 0.94
Array 250000 get(125000) 0.40700 ns/op 0.42500 ns/op 0.96
Array 250000 set(125000) 0.42100 ns/op 0.46700 ns/op 0.90
Array 250000 iterate all - loop 94.662 us/op 111.28 us/op 0.85
phase0 afterProcessEpoch - 250000 vs - 7PWei 48.992 ms/op 51.601 ms/op 0.95
Array.fill - length 1000000 3.5061 ms/op 3.8294 ms/op 0.92
Array push - length 1000000 16.840 ms/op 18.530 ms/op 0.91
Array.get 0.26389 ns/op 0.29476 ns/op 0.90
Uint8Array.get 0.42640 ns/op 0.45900 ns/op 0.93
phase0 beforeProcessEpoch - 250000 vs - 7PWei 15.726 ms/op 17.901 ms/op 0.88
altair processEpoch - mainnet_e81889 309.64 ms/op 296.53 ms/op 1.04
mainnet_e81889 - altair beforeProcessEpoch 17.997 ms/op 19.771 ms/op 0.91
mainnet_e81889 - altair processJustificationAndFinalization 19.669 us/op 12.941 us/op 1.52
mainnet_e81889 - altair processInactivityUpdates 4.9264 ms/op 7.8546 ms/op 0.63
mainnet_e81889 - altair processRewardsAndPenalties 56.073 ms/op 55.586 ms/op 1.01
mainnet_e81889 - altair processRegistryUpdates 3.0490 us/op 2.2010 us/op 1.39
mainnet_e81889 - altair processSlashings 590.00 ns/op 624.00 ns/op 0.95
mainnet_e81889 - altair processEth1DataReset 472.00 ns/op 483.00 ns/op 0.98
mainnet_e81889 - altair processEffectiveBalanceUpdates 3.5495 ms/op 3.7741 ms/op 0.94
mainnet_e81889 - altair processSlashingsReset 4.4060 us/op 9.3870 us/op 0.47
mainnet_e81889 - altair processRandaoMixesReset 5.3170 us/op 8.2490 us/op 0.64
mainnet_e81889 - altair processHistoricalRootsUpdate 817.00 ns/op 795.00 ns/op 1.03
mainnet_e81889 - altair processParticipationFlagUpdates 3.2820 us/op 5.7640 us/op 0.57
mainnet_e81889 - altair processSyncCommitteeUpdates 647.00 ns/op 675.00 ns/op 0.96
mainnet_e81889 - altair afterProcessEpoch 50.017 ms/op 53.198 ms/op 0.94
capella processEpoch - mainnet_e217614 1.1253 s/op 1.2557 s/op 0.90
mainnet_e217614 - capella beforeProcessEpoch 66.883 ms/op 98.810 ms/op 0.68
mainnet_e217614 - capella processJustificationAndFinalization 22.436 us/op 28.779 us/op 0.78
mainnet_e217614 - capella processInactivityUpdates 17.699 ms/op 21.804 ms/op 0.81
mainnet_e217614 - capella processRewardsAndPenalties 266.63 ms/op 283.50 ms/op 0.94
mainnet_e217614 - capella processRegistryUpdates 20.274 us/op 25.027 us/op 0.81
mainnet_e217614 - capella processSlashings 654.00 ns/op 912.00 ns/op 0.72
mainnet_e217614 - capella processEth1DataReset 480.00 ns/op 708.00 ns/op 0.68
mainnet_e217614 - capella processEffectiveBalanceUpdates 11.981 ms/op 18.641 ms/op 0.64
mainnet_e217614 - capella processSlashingsReset 3.4910 us/op 5.5000 us/op 0.63
mainnet_e217614 - capella processRandaoMixesReset 6.0640 us/op 13.717 us/op 0.44
mainnet_e217614 - capella processHistoricalRootsUpdate 608.00 ns/op 856.00 ns/op 0.71
mainnet_e217614 - capella processParticipationFlagUpdates 2.9860 us/op 3.1450 us/op 0.95
mainnet_e217614 - capella afterProcessEpoch 119.98 ms/op 131.77 ms/op 0.91
phase0 processEpoch - mainnet_e58758 368.14 ms/op 416.76 ms/op 0.88
mainnet_e58758 - phase0 beforeProcessEpoch 87.772 ms/op 92.313 ms/op 0.95
mainnet_e58758 - phase0 processJustificationAndFinalization 21.596 us/op 20.058 us/op 1.08
mainnet_e58758 - phase0 processRewardsAndPenalties 40.999 ms/op 42.567 ms/op 0.96
mainnet_e58758 - phase0 processRegistryUpdates 11.521 us/op 14.222 us/op 0.81
mainnet_e58758 - phase0 processSlashings 652.00 ns/op 519.00 ns/op 1.26
mainnet_e58758 - phase0 processEth1DataReset 468.00 ns/op 566.00 ns/op 0.83
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 2.1072 ms/op 1.3714 ms/op 1.54
mainnet_e58758 - phase0 processSlashingsReset 4.3790 us/op 8.1350 us/op 0.54
mainnet_e58758 - phase0 processRandaoMixesReset 6.8270 us/op 9.3030 us/op 0.73
mainnet_e58758 - phase0 processHistoricalRootsUpdate 847.00 ns/op 729.00 ns/op 1.16
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.1240 us/op 6.7750 us/op 0.76
mainnet_e58758 - phase0 afterProcessEpoch 40.358 ms/op 48.092 ms/op 0.84
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.7356 ms/op 1.8926 ms/op 0.92
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.8920 ms/op 3.5816 ms/op 0.81
altair processInactivityUpdates - 250000 normalcase 22.616 ms/op 23.902 ms/op 0.95
altair processInactivityUpdates - 250000 worstcase 23.581 ms/op 23.605 ms/op 1.00
phase0 processRegistryUpdates - 250000 normalcase 10.596 us/op 15.018 us/op 0.71
phase0 processRegistryUpdates - 250000 badcase_full_deposits 450.15 us/op 481.15 us/op 0.94
phase0 processRegistryUpdates - 250000 worstcase 0.5 134.50 ms/op 164.33 ms/op 0.82
altair processRewardsAndPenalties - 250000 normalcase 56.382 ms/op 52.718 ms/op 1.07
altair processRewardsAndPenalties - 250000 worstcase 54.150 ms/op 51.569 ms/op 1.05
phase0 getAttestationDeltas - 250000 normalcase 7.3144 ms/op 10.768 ms/op 0.68
phase0 getAttestationDeltas - 250000 worstcase 6.8727 ms/op 8.9439 ms/op 0.77
phase0 processSlashings - 250000 worstcase 121.90 us/op 109.62 us/op 1.11
altair processSyncCommitteeUpdates - 250000 123.47 ms/op 142.98 ms/op 0.86
BeaconState.hashTreeRoot - No change 254.00 ns/op 408.00 ns/op 0.62
BeaconState.hashTreeRoot - 1 full validator 142.28 us/op 130.59 us/op 1.09
BeaconState.hashTreeRoot - 32 full validator 1.3194 ms/op 1.7923 ms/op 0.74
BeaconState.hashTreeRoot - 512 full validator 10.617 ms/op 12.350 ms/op 0.86
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 149.82 us/op 148.40 us/op 1.01
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.7083 ms/op 1.9437 ms/op 0.88
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 24.247 ms/op 27.015 ms/op 0.90
BeaconState.hashTreeRoot - 1 balances 125.53 us/op 112.52 us/op 1.12
BeaconState.hashTreeRoot - 32 balances 886.04 us/op 1.0684 ms/op 0.83
BeaconState.hashTreeRoot - 512 balances 8.9097 ms/op 9.5965 ms/op 0.93
BeaconState.hashTreeRoot - 250000 balances 197.32 ms/op 243.04 ms/op 0.81
aggregationBits - 2048 els - zipIndexesInBitList 22.523 us/op 42.647 us/op 0.53
byteArrayEquals 32 51.025 ns/op 64.846 ns/op 0.79
Buffer.compare 32 16.531 ns/op 17.632 ns/op 0.94
byteArrayEquals 1024 1.5066 us/op 1.6136 us/op 0.93
Buffer.compare 1024 23.599 ns/op 25.558 ns/op 0.92
byteArrayEquals 16384 23.974 us/op 25.749 us/op 0.93
Buffer.compare 16384 194.37 ns/op 203.80 ns/op 0.95
byteArrayEquals 123687377 186.94 ms/op 227.23 ms/op 0.82
Buffer.compare 123687377 6.1216 ms/op 20.442 ms/op 0.30
byteArrayEquals 32 - diff last byte 50.877 ns/op 68.532 ns/op 0.74
Buffer.compare 32 - diff last byte 17.597 ns/op 23.577 ns/op 0.75
byteArrayEquals 1024 - diff last byte 1.5307 us/op 1.9801 us/op 0.77
Buffer.compare 1024 - diff last byte 25.241 ns/op 42.123 ns/op 0.60
byteArrayEquals 16384 - diff last byte 24.362 us/op 31.222 us/op 0.78
Buffer.compare 16384 - diff last byte 187.69 ns/op 303.27 ns/op 0.62
byteArrayEquals 123687377 - diff last byte 183.20 ms/op 215.47 ms/op 0.85
Buffer.compare 123687377 - diff last byte 6.1123 ms/op 11.842 ms/op 0.52
byteArrayEquals 32 - random bytes 4.9310 ns/op 5.4510 ns/op 0.90
Buffer.compare 32 - random bytes 17.967 ns/op 20.710 ns/op 0.87
byteArrayEquals 1024 - random bytes 4.9330 ns/op 6.3760 ns/op 0.77
Buffer.compare 1024 - random bytes 17.873 ns/op 22.346 ns/op 0.80
byteArrayEquals 16384 - random bytes 4.9450 ns/op 6.9260 ns/op 0.71
Buffer.compare 16384 - random bytes 17.977 ns/op 20.004 ns/op 0.90
byteArrayEquals 123687377 - random bytes 6.1100 ns/op 7.4600 ns/op 0.82
Buffer.compare 123687377 - random bytes 19.020 ns/op 20.800 ns/op 0.91
regular array get 100000 times 31.407 us/op 33.558 us/op 0.94
wrappedArray get 100000 times 31.358 us/op 33.980 us/op 0.92
arrayWithProxy get 100000 times 13.874 ms/op 16.248 ms/op 0.85
ssz.Root.equals 44.274 ns/op 50.215 ns/op 0.88
byteArrayEquals 43.610 ns/op 58.733 ns/op 0.74
Buffer.compare 9.9640 ns/op 13.558 ns/op 0.73
processSlot - 1 slots 17.764 us/op 28.369 us/op 0.63
processSlot - 32 slots 2.9514 ms/op 3.6083 ms/op 0.82
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 43.575 ms/op 52.087 ms/op 0.84
getCommitteeAssignments - req 1 vs - 250000 vc 2.1475 ms/op 2.6802 ms/op 0.80
getCommitteeAssignments - req 100 vs - 250000 vc 4.0862 ms/op 4.7180 ms/op 0.87
getCommitteeAssignments - req 1000 vs - 250000 vc 4.3584 ms/op 5.0592 ms/op 0.86
findModifiedValidators - 10000 modified validators 236.84 ms/op 505.09 ms/op 0.47
findModifiedValidators - 1000 modified validators 196.37 ms/op 265.30 ms/op 0.74
findModifiedValidators - 100 modified validators 154.03 ms/op 317.05 ms/op 0.49
findModifiedValidators - 10 modified validators 153.40 ms/op 258.31 ms/op 0.59
findModifiedValidators - 1 modified validators 143.66 ms/op 248.96 ms/op 0.58
findModifiedValidators - no difference 150.66 ms/op 283.87 ms/op 0.53
compare ViewDUs 3.1038 s/op 4.4528 s/op 0.70
compare each validator Uint8Array 912.91 ms/op 1.7023 s/op 0.54
compare ViewDU to Uint8Array 1.0351 s/op 1.2657 s/op 0.82
migrate state 1000000 validators, 24 modified, 0 new 687.36 ms/op 902.03 ms/op 0.76
migrate state 1000000 validators, 1700 modified, 1000 new 938.71 ms/op 1.1175 s/op 0.84
migrate state 1000000 validators, 3400 modified, 2000 new 1.2174 s/op 1.2592 s/op 0.97
migrate state 1500000 validators, 24 modified, 0 new 753.87 ms/op 784.94 ms/op 0.96
migrate state 1500000 validators, 1700 modified, 1000 new 1.0010 s/op 1.0624 s/op 0.94
migrate state 1500000 validators, 3400 modified, 2000 new 1.2098 s/op 1.3327 s/op 0.91
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.8700 ns/op 4.9200 ns/op 0.99
state getBlockRootAtSlot - 250000 vs - 7PWei 761.39 ns/op 605.41 ns/op 1.26
computeProposers - vc 250000 7.2714 ms/op 7.3412 ms/op 0.99
computeEpochShuffling - vc 250000 42.966 ms/op 43.533 ms/op 0.99
getNextSyncCommittee - vc 250000 128.09 ms/op 153.66 ms/op 0.83
computeSigningRoot for AttestationData 20.145 us/op 30.158 us/op 0.67
hash AttestationData serialized data then Buffer.toString(base64) 1.6295 us/op 1.6982 us/op 0.96
toHexString serialized data 921.27 ns/op 1.0046 us/op 0.92
Buffer.toString(base64) 198.26 ns/op 208.91 ns/op 0.95
nodejs block root to RootHex using toHex 182.56 ns/op 179.82 ns/op 1.02
nodejs block root to RootHex using toRootHex 104.07 ns/op 106.47 ns/op 0.98
browser block root to RootHex using the deprecated toHexString 235.99 ns/op 244.80 ns/op 0.96
browser block root to RootHex using toHex 185.25 ns/op 220.12 ns/op 0.84
browser block root to RootHex using toRootHex 174.52 ns/op 175.54 ns/op 0.99

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