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: revert "fix: update @libp2p/tcp (#6676)" #6701

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Apr 23, 2024

No description provided.

@nflaig nflaig requested a review from a team as a code owner April 23, 2024 17:23
@@ -1,4 +1,4 @@
import {concat} from "uint8arrays/concat";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change related to the version downgrade? As uint8arrays is listed as a devDependencies of light-client, I wouldn't expect a change here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just reverted the commit

Copy link
Member Author

Choose a reason for hiding this comment

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

apparently related to the deps update, see f3634b8

@jeluard jeluard self-requested a review April 23, 2024 17:36
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

Merging #6701 (c71663b) into unstable (b107d4b) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6701   +/-   ##
=========================================
  Coverage     61.87%   61.87%           
=========================================
  Files           557      557           
  Lines         59201    59201           
  Branches       1915     1915           
=========================================
  Hits          36628    36628           
  Misses        22530    22530           
  Partials         43       43           

@wemeetagain wemeetagain merged commit 3e394f2 into unstable Apr 23, 2024
18 of 20 checks passed
@wemeetagain wemeetagain deleted the nflaig/revert-6676 branch April 23, 2024 18:28
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.18.0 🎉

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 4be5575 Previous: fd2fb16 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 768.07 us/op 510.43 us/op 1.50
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 83.913 us/op 74.130 us/op 1.13
BLS verify - blst-native 1.2811 ms/op 1.2237 ms/op 1.05
BLS verifyMultipleSignatures 3 - blst-native 2.6832 ms/op 2.5852 ms/op 1.04
BLS verifyMultipleSignatures 8 - blst-native 5.8804 ms/op 5.4662 ms/op 1.08
BLS verifyMultipleSignatures 32 - blst-native 21.694 ms/op 20.709 ms/op 1.05
BLS verifyMultipleSignatures 64 - blst-native 42.931 ms/op 43.151 ms/op 0.99
BLS verifyMultipleSignatures 128 - blst-native 83.372 ms/op 78.264 ms/op 1.07
BLS deserializing 10000 signatures 912.61 ms/op 866.17 ms/op 1.05
BLS deserializing 100000 signatures 9.0461 s/op 8.3974 s/op 1.08
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2461 ms/op 1.1741 ms/op 1.06
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.5674 ms/op 1.3515 ms/op 1.16
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.2541 ms/op 2.6666 ms/op 0.85
BLS verifyMultipleSignatures - same message - 64 - blst-native 4.2736 ms/op 2.9793 ms/op 1.43
BLS verifyMultipleSignatures - same message - 128 - blst-native 7.1698 ms/op 6.8063 ms/op 1.05
BLS aggregatePubkeys 32 - blst-native 26.752 us/op 29.187 us/op 0.92
BLS aggregatePubkeys 128 - blst-native 97.782 us/op 97.434 us/op 1.00
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 57.514 ms/op 63.171 ms/op 0.91
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 56.713 ms/op 56.559 ms/op 1.00
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 34.114 ms/op 30.101 ms/op 1.13
getSlashingsAndExits - default max 195.00 us/op 221.44 us/op 0.88
getSlashingsAndExits - 2k 402.94 us/op 533.81 us/op 0.75
proposeBlockBody type=full, size=empty 6.0154 ms/op 4.3353 ms/op 1.39
isKnown best case - 1 super set check 406.00 ns/op 358.00 ns/op 1.13
isKnown normal case - 2 super set checks 351.00 ns/op 400.00 ns/op 0.88
isKnown worse case - 16 super set checks 329.00 ns/op 374.00 ns/op 0.88
InMemoryCheckpointStateCache - add get delete 7.1130 us/op 6.2970 us/op 1.13
validate api signedAggregateAndProof - struct 2.7771 ms/op 2.3883 ms/op 1.16
validate gossip signedAggregateAndProof - struct 2.7463 ms/op 2.4151 ms/op 1.14
validate gossip attestation - vc 640000 1.3589 ms/op 1.2811 ms/op 1.06
batch validate gossip attestation - vc 640000 - chunk 32 161.48 us/op 172.73 us/op 0.93
batch validate gossip attestation - vc 640000 - chunk 64 137.10 us/op 156.95 us/op 0.87
batch validate gossip attestation - vc 640000 - chunk 128 131.80 us/op 173.39 us/op 0.76
batch validate gossip attestation - vc 640000 - chunk 256 131.92 us/op 147.04 us/op 0.90
pickEth1Vote - no votes 1.2825 ms/op 1.2689 ms/op 1.01
pickEth1Vote - max votes 7.5383 ms/op 14.095 ms/op 0.53
pickEth1Vote - Eth1Data hashTreeRoot value x2048 15.631 ms/op 21.481 ms/op 0.73
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 30.151 ms/op 30.799 ms/op 0.98
pickEth1Vote - Eth1Data fastSerialize value x2048 751.79 us/op 670.11 us/op 1.12
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.9800 ms/op 7.2889 ms/op 0.82
bytes32 toHexString 676.00 ns/op 958.00 ns/op 0.71
bytes32 Buffer.toString(hex) 362.00 ns/op 406.00 ns/op 0.89
bytes32 Buffer.toString(hex) from Uint8Array 528.00 ns/op 700.00 ns/op 0.75
bytes32 Buffer.toString(hex) + 0x 303.00 ns/op 408.00 ns/op 0.74
Object access 1 prop 0.23200 ns/op 0.31500 ns/op 0.74
Map access 1 prop 0.16000 ns/op 0.24600 ns/op 0.65
Object get x1000 7.7760 ns/op 6.1760 ns/op 1.26
Map get x1000 0.87100 ns/op 0.98400 ns/op 0.89
Object set x1000 66.351 ns/op 62.922 ns/op 1.05
Map set x1000 49.718 ns/op 40.016 ns/op 1.24
Return object 10000 times 0.24880 ns/op 0.24060 ns/op 1.03
Throw Error 10000 times 3.9892 us/op 2.8591 us/op 1.40
fastMsgIdFn sha256 / 200 bytes 3.4280 us/op 2.2650 us/op 1.51
fastMsgIdFn h32 xxhash / 200 bytes 348.00 ns/op 478.00 ns/op 0.73
fastMsgIdFn h64 xxhash / 200 bytes 392.00 ns/op 463.00 ns/op 0.85
fastMsgIdFn sha256 / 1000 bytes 11.728 us/op 6.6090 us/op 1.77
fastMsgIdFn h32 xxhash / 1000 bytes 482.00 ns/op 572.00 ns/op 0.84
fastMsgIdFn h64 xxhash / 1000 bytes 461.00 ns/op 533.00 ns/op 0.86
fastMsgIdFn sha256 / 10000 bytes 108.20 us/op 61.376 us/op 1.76
fastMsgIdFn h32 xxhash / 10000 bytes 2.0230 us/op 1.9910 us/op 1.02
fastMsgIdFn h64 xxhash / 10000 bytes 1.3940 us/op 1.3480 us/op 1.03
send data - 1000 256B messages 20.849 ms/op 18.111 ms/op 1.15
send data - 1000 512B messages 29.912 ms/op 26.280 ms/op 1.14
send data - 1000 1024B messages 46.970 ms/op 28.261 ms/op 1.66
send data - 1000 1200B messages 41.919 ms/op 35.407 ms/op 1.18
send data - 1000 2048B messages 49.870 ms/op 46.640 ms/op 1.07
send data - 1000 4096B messages 47.979 ms/op 38.286 ms/op 1.25
send data - 1000 16384B messages 120.72 ms/op 116.90 ms/op 1.03
send data - 1000 65536B messages 500.68 ms/op 432.66 ms/op 1.16
enrSubnets - fastDeserialize 64 bits 1.5130 us/op 1.3230 us/op 1.14
enrSubnets - ssz BitVector 64 bits 529.00 ns/op 574.00 ns/op 0.92
enrSubnets - fastDeserialize 4 bits 215.00 ns/op 267.00 ns/op 0.81
enrSubnets - ssz BitVector 4 bits 511.00 ns/op 586.00 ns/op 0.87
prioritizePeers score -10:0 att 32-0.1 sync 2-0 225.99 us/op 173.99 us/op 1.30
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 316.15 us/op 249.10 us/op 1.27
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 407.29 us/op 300.60 us/op 1.35
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 642.37 us/op 464.31 us/op 1.38
prioritizePeers score 0:0 att 64-1 sync 4-1 785.63 us/op 511.93 us/op 1.53
array of 16000 items push then shift 1.6796 us/op 1.3680 us/op 1.23
LinkedList of 16000 items push then shift 9.3340 ns/op 7.1400 ns/op 1.31
array of 16000 items push then pop 105.87 ns/op 116.00 ns/op 0.91
LinkedList of 16000 items push then pop 9.0010 ns/op 6.1400 ns/op 1.47
array of 24000 items push then shift 2.6031 us/op 2.0717 us/op 1.26
LinkedList of 24000 items push then shift 9.4570 ns/op 6.3890 ns/op 1.48
array of 24000 items push then pop 158.79 ns/op 129.80 ns/op 1.22
LinkedList of 24000 items push then pop 8.8990 ns/op 5.8760 ns/op 1.51
intersect bitArray bitLen 8 5.9700 ns/op 4.9840 ns/op 1.20
intersect array and set length 8 77.604 ns/op 51.654 ns/op 1.50
intersect bitArray bitLen 128 37.008 ns/op 30.055 ns/op 1.23
intersect array and set length 128 1.0962 us/op 1.0693 us/op 1.03
bitArray.getTrueBitIndexes() bitLen 128 1.6520 us/op 2.1260 us/op 0.78
bitArray.getTrueBitIndexes() bitLen 248 2.8780 us/op 3.0560 us/op 0.94
bitArray.getTrueBitIndexes() bitLen 512 6.2930 us/op 5.0890 us/op 1.24
Buffer.concat 32 items 1.0430 us/op 1.0910 us/op 0.96
Uint8Array.set 32 items 2.2270 us/op 2.1050 us/op 1.06
Set add up to 64 items then delete first 4.9765 us/op 2.3800 us/op 2.09
OrderedSet add up to 64 items then delete first 6.3583 us/op 3.2521 us/op 1.96
Set add up to 64 items then delete last 5.3503 us/op 2.0824 us/op 2.57
OrderedSet add up to 64 items then delete last 6.8434 us/op 3.1647 us/op 2.16
Set add up to 64 items then delete middle 5.1992 us/op 2.0621 us/op 2.52
OrderedSet add up to 64 items then delete middle 8.5414 us/op 5.1938 us/op 1.64
Set add up to 128 items then delete first 10.693 us/op 5.0304 us/op 2.13
OrderedSet add up to 128 items then delete first 14.246 us/op 8.4383 us/op 1.69
Set add up to 128 items then delete last 10.499 us/op 4.2108 us/op 2.49
OrderedSet add up to 128 items then delete last 13.578 us/op 6.8735 us/op 1.98
Set add up to 128 items then delete middle 10.578 us/op 5.0639 us/op 2.09
OrderedSet add up to 128 items then delete middle 19.881 us/op 12.845 us/op 1.55
Set add up to 256 items then delete first 21.367 us/op 10.153 us/op 2.10
OrderedSet add up to 256 items then delete first 29.659 us/op 17.383 us/op 1.71
Set add up to 256 items then delete last 20.820 us/op 9.5359 us/op 2.18
OrderedSet add up to 256 items then delete last 27.481 us/op 16.477 us/op 1.67
Set add up to 256 items then delete middle 20.636 us/op 10.015 us/op 2.06
OrderedSet add up to 256 items then delete middle 50.725 us/op 36.450 us/op 1.39
transfer serialized Status (84 B) 1.8240 us/op 1.5840 us/op 1.15
copy serialized Status (84 B) 1.4360 us/op 1.2640 us/op 1.14
transfer serialized SignedVoluntaryExit (112 B) 1.9400 us/op 1.6900 us/op 1.15
copy serialized SignedVoluntaryExit (112 B) 1.4490 us/op 1.3710 us/op 1.06
transfer serialized ProposerSlashing (416 B) 2.2360 us/op 2.0870 us/op 1.07
copy serialized ProposerSlashing (416 B) 1.8110 us/op 2.0140 us/op 0.90
transfer serialized Attestation (485 B) 2.2660 us/op 2.6760 us/op 0.85
copy serialized Attestation (485 B) 2.0210 us/op 2.4950 us/op 0.81
transfer serialized AttesterSlashing (33232 B) 2.1580 us/op 2.2220 us/op 0.97
copy serialized AttesterSlashing (33232 B) 6.7030 us/op 9.3950 us/op 0.71
transfer serialized Small SignedBeaconBlock (128000 B) 2.4630 us/op 3.0150 us/op 0.82
copy serialized Small SignedBeaconBlock (128000 B) 18.153 us/op 24.934 us/op 0.73
transfer serialized Avg SignedBeaconBlock (200000 B) 2.8100 us/op 2.6500 us/op 1.06
copy serialized Avg SignedBeaconBlock (200000 B) 29.725 us/op 35.061 us/op 0.85
transfer serialized BlobsSidecar (524380 B) 2.9560 us/op 4.5100 us/op 0.66
copy serialized BlobsSidecar (524380 B) 93.889 us/op 165.85 us/op 0.57
transfer serialized Big SignedBeaconBlock (1000000 B) 3.1570 us/op 3.9530 us/op 0.80
copy serialized Big SignedBeaconBlock (1000000 B) 173.94 us/op 210.52 us/op 0.83
pass gossip attestations to forkchoice per slot 3.8955 ms/op 3.0125 ms/op 1.29
forkChoice updateHead vc 100000 bc 64 eq 0 694.01 us/op 441.54 us/op 1.57
forkChoice updateHead vc 600000 bc 64 eq 0 4.5080 ms/op 2.9925 ms/op 1.51
forkChoice updateHead vc 1000000 bc 64 eq 0 8.6401 ms/op 5.1189 ms/op 1.69
forkChoice updateHead vc 600000 bc 320 eq 0 4.2838 ms/op 2.8355 ms/op 1.51
forkChoice updateHead vc 600000 bc 1200 eq 0 4.4150 ms/op 2.8231 ms/op 1.56
forkChoice updateHead vc 600000 bc 7200 eq 0 5.7582 ms/op 3.6464 ms/op 1.58
forkChoice updateHead vc 600000 bc 64 eq 1000 11.280 ms/op 10.209 ms/op 1.10
forkChoice updateHead vc 600000 bc 64 eq 10000 12.095 ms/op 10.502 ms/op 1.15
forkChoice updateHead vc 600000 bc 64 eq 300000 16.192 ms/op 14.300 ms/op 1.13
computeDeltas 500000 validators 300 proto nodes 6.7189 ms/op 3.4892 ms/op 1.93
computeDeltas 500000 validators 1200 proto nodes 6.6871 ms/op 3.2289 ms/op 2.07
computeDeltas 500000 validators 7200 proto nodes 6.4717 ms/op 3.3679 ms/op 1.92
computeDeltas 750000 validators 300 proto nodes 9.8462 ms/op 5.2719 ms/op 1.87
computeDeltas 750000 validators 1200 proto nodes 9.9346 ms/op 5.0673 ms/op 1.96
computeDeltas 750000 validators 7200 proto nodes 9.8756 ms/op 4.8787 ms/op 2.02
computeDeltas 1400000 validators 300 proto nodes 18.524 ms/op 9.7851 ms/op 1.89
computeDeltas 1400000 validators 1200 proto nodes 19.143 ms/op 9.3396 ms/op 2.05
computeDeltas 1400000 validators 7200 proto nodes 18.860 ms/op 9.2884 ms/op 2.03
computeDeltas 2100000 validators 300 proto nodes 27.951 ms/op 13.870 ms/op 2.02
computeDeltas 2100000 validators 1200 proto nodes 27.911 ms/op 12.954 ms/op 2.15
computeDeltas 2100000 validators 7200 proto nodes 28.389 ms/op 13.452 ms/op 2.11
altair processAttestation - 250000 vs - 7PWei normalcase 2.4784 ms/op 2.5135 ms/op 0.99
altair processAttestation - 250000 vs - 7PWei worstcase 3.8700 ms/op 3.5396 ms/op 1.09
altair processAttestation - setStatus - 1/6 committees join 202.69 us/op 93.583 us/op 2.17
altair processAttestation - setStatus - 1/3 committees join 367.28 us/op 158.64 us/op 2.32
altair processAttestation - setStatus - 1/2 committees join 518.75 us/op 219.31 us/op 2.37
altair processAttestation - setStatus - 2/3 committees join 653.85 us/op 297.81 us/op 2.20
altair processAttestation - setStatus - 4/5 committees join 885.97 us/op 410.04 us/op 2.16
altair processAttestation - setStatus - 100% committees join 1.0472 ms/op 489.03 us/op 2.14
altair processBlock - 250000 vs - 7PWei normalcase 10.516 ms/op 6.7403 ms/op 1.56
altair processBlock - 250000 vs - 7PWei normalcase hashState 36.716 ms/op 29.530 ms/op 1.24
altair processBlock - 250000 vs - 7PWei worstcase 46.208 ms/op 37.608 ms/op 1.23
altair processBlock - 250000 vs - 7PWei worstcase hashState 101.65 ms/op 83.654 ms/op 1.22
phase0 processBlock - 250000 vs - 7PWei normalcase 2.9565 ms/op 2.1189 ms/op 1.40
phase0 processBlock - 250000 vs - 7PWei worstcase 32.184 ms/op 25.738 ms/op 1.25
altair processEth1Data - 250000 vs - 7PWei normalcase 672.35 us/op 345.17 us/op 1.95
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 13.235 us/op 4.5350 us/op 2.92
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 74.405 us/op 62.667 us/op 1.19
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 31.569 us/op 15.682 us/op 2.01
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 22.406 us/op 14.828 us/op 1.51
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 222.24 us/op 198.12 us/op 1.12
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.5982 ms/op 1.4162 ms/op 1.13
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.0600 ms/op 1.5470 ms/op 1.33
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.0125 ms/op 1.3863 ms/op 1.45
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.5887 ms/op 3.5851 ms/op 1.00
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.8570 ms/op 1.4685 ms/op 1.95
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.1546 ms/op 3.8147 ms/op 1.35
Tree 40 250000 create 359.55 ms/op 334.72 ms/op 1.07
Tree 40 250000 get(125000) 200.04 ns/op 114.02 ns/op 1.75
Tree 40 250000 set(125000) 1.0109 us/op 752.20 ns/op 1.34
Tree 40 250000 toArray() 21.313 ms/op 21.345 ms/op 1.00
Tree 40 250000 iterate all - toArray() + loop 21.947 ms/op 21.290 ms/op 1.03
Tree 40 250000 iterate all - get(i) 68.611 ms/op 50.029 ms/op 1.37
MutableVector 250000 create 12.477 ms/op 12.480 ms/op 1.00
MutableVector 250000 get(125000) 6.6000 ns/op 5.5980 ns/op 1.18
MutableVector 250000 set(125000) 287.17 ns/op 284.82 ns/op 1.01
MutableVector 250000 toArray() 3.2716 ms/op 3.5048 ms/op 0.93
MutableVector 250000 iterate all - toArray() + loop 3.4357 ms/op 2.4717 ms/op 1.39
MutableVector 250000 iterate all - get(i) 1.5313 ms/op 1.3707 ms/op 1.12
Array 250000 create 2.8956 ms/op 2.3764 ms/op 1.22
Array 250000 clone - spread 1.4186 ms/op 1.1486 ms/op 1.24
Array 250000 get(125000) 1.1330 ns/op 1.4340 ns/op 0.79
Array 250000 set(125000) 4.1590 ns/op 1.5460 ns/op 2.69
Array 250000 iterate all - loop 166.18 us/op 152.92 us/op 1.09
effectiveBalanceIncrements clone Uint8Array 300000 35.688 us/op 39.734 us/op 0.90
effectiveBalanceIncrements clone MutableVector 300000 339.00 ns/op 469.00 ns/op 0.72
effectiveBalanceIncrements rw all Uint8Array 300000 202.87 us/op 190.97 us/op 1.06
effectiveBalanceIncrements rw all MutableVector 300000 90.302 ms/op 67.877 ms/op 1.33
phase0 afterProcessEpoch - 250000 vs - 7PWei 121.22 ms/op 78.272 ms/op 1.55
phase0 beforeProcessEpoch - 250000 vs - 7PWei 38.074 ms/op 53.453 ms/op 0.71
altair processEpoch - mainnet_e81889 470.02 ms/op 455.72 ms/op 1.03
mainnet_e81889 - altair beforeProcessEpoch 83.609 ms/op 77.008 ms/op 1.09
mainnet_e81889 - altair processJustificationAndFinalization 14.625 us/op 10.338 us/op 1.41
mainnet_e81889 - altair processInactivityUpdates 6.2092 ms/op 4.7021 ms/op 1.32
mainnet_e81889 - altair processRewardsAndPenalties 52.015 ms/op 74.603 ms/op 0.70
mainnet_e81889 - altair processRegistryUpdates 1.9290 us/op 1.7540 us/op 1.10
mainnet_e81889 - altair processSlashings 555.00 ns/op 577.00 ns/op 0.96
mainnet_e81889 - altair processEth1DataReset 834.00 ns/op 585.00 ns/op 1.43
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.3692 ms/op 1.7021 ms/op 0.80
mainnet_e81889 - altair processSlashingsReset 5.6360 us/op 2.3080 us/op 2.44
mainnet_e81889 - altair processRandaoMixesReset 5.8350 us/op 3.7310 us/op 1.56
mainnet_e81889 - altair processHistoricalRootsUpdate 1.0080 us/op 717.00 ns/op 1.41
mainnet_e81889 - altair processParticipationFlagUpdates 2.8230 us/op 1.2680 us/op 2.23
mainnet_e81889 - altair processSyncCommitteeUpdates 823.00 ns/op 616.00 ns/op 1.34
mainnet_e81889 - altair afterProcessEpoch 125.06 ms/op 77.692 ms/op 1.61
capella processEpoch - mainnet_e217614 2.0399 s/op 1.8858 s/op 1.08
mainnet_e217614 - capella beforeProcessEpoch 466.77 ms/op 453.99 ms/op 1.03
mainnet_e217614 - capella processJustificationAndFinalization 12.912 us/op 14.303 us/op 0.90
mainnet_e217614 - capella processInactivityUpdates 18.267 ms/op 24.278 ms/op 0.75
mainnet_e217614 - capella processRewardsAndPenalties 502.01 ms/op 574.40 ms/op 0.87
mainnet_e217614 - capella processRegistryUpdates 20.431 us/op 21.985 us/op 0.93
mainnet_e217614 - capella processSlashings 642.00 ns/op 816.00 ns/op 0.79
mainnet_e217614 - capella processEth1DataReset 524.00 ns/op 938.00 ns/op 0.56
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.3179 ms/op 3.5828 ms/op 1.21
mainnet_e217614 - capella processSlashingsReset 3.7980 us/op 2.2170 us/op 1.71
mainnet_e217614 - capella processRandaoMixesReset 4.7920 us/op 3.9500 us/op 1.21
mainnet_e217614 - capella processHistoricalRootsUpdate 699.00 ns/op 734.00 ns/op 0.95
mainnet_e217614 - capella processParticipationFlagUpdates 2.0420 us/op 2.2620 us/op 0.90
mainnet_e217614 - capella afterProcessEpoch 338.71 ms/op 211.30 ms/op 1.60
phase0 processEpoch - mainnet_e58758 432.99 ms/op 417.28 ms/op 1.04
mainnet_e58758 - phase0 beforeProcessEpoch 120.72 ms/op 123.40 ms/op 0.98
mainnet_e58758 - phase0 processJustificationAndFinalization 15.094 us/op 12.092 us/op 1.25
mainnet_e58758 - phase0 processRewardsAndPenalties 59.358 ms/op 63.615 ms/op 0.93
mainnet_e58758 - phase0 processRegistryUpdates 10.218 us/op 7.1380 us/op 1.43
mainnet_e58758 - phase0 processSlashings 399.00 ns/op 636.00 ns/op 0.63
mainnet_e58758 - phase0 processEth1DataReset 408.00 ns/op 547.00 ns/op 0.75
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0735 ms/op 1.4590 ms/op 0.74
mainnet_e58758 - phase0 processSlashingsReset 2.9880 us/op 2.2930 us/op 1.30
mainnet_e58758 - phase0 processRandaoMixesReset 4.0110 us/op 2.7960 us/op 1.43
mainnet_e58758 - phase0 processHistoricalRootsUpdate 441.00 ns/op 563.00 ns/op 0.78
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.1700 us/op 2.7410 us/op 1.16
mainnet_e58758 - phase0 afterProcessEpoch 100.26 ms/op 72.774 ms/op 1.38
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.3163 ms/op 1.0294 ms/op 1.28
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4707 ms/op 1.1482 ms/op 1.28
altair processInactivityUpdates - 250000 normalcase 27.764 ms/op 27.722 ms/op 1.00
altair processInactivityUpdates - 250000 worstcase 26.189 ms/op 24.485 ms/op 1.07
phase0 processRegistryUpdates - 250000 normalcase 8.9610 us/op 7.6330 us/op 1.17
phase0 processRegistryUpdates - 250000 badcase_full_deposits 357.14 us/op 466.91 us/op 0.76
phase0 processRegistryUpdates - 250000 worstcase 0.5 131.19 ms/op 139.38 ms/op 0.94
altair processRewardsAndPenalties - 250000 normalcase 67.616 ms/op 68.539 ms/op 0.99
altair processRewardsAndPenalties - 250000 worstcase 54.977 ms/op 51.709 ms/op 1.06
phase0 getAttestationDeltas - 250000 normalcase 8.8976 ms/op 8.8959 ms/op 1.00
phase0 getAttestationDeltas - 250000 worstcase 8.9645 ms/op 5.7247 ms/op 1.57
phase0 processSlashings - 250000 worstcase 80.499 us/op 92.916 us/op 0.87
altair processSyncCommitteeUpdates - 250000 155.87 ms/op 113.75 ms/op 1.37
BeaconState.hashTreeRoot - No change 348.00 ns/op 750.00 ns/op 0.46
BeaconState.hashTreeRoot - 1 full validator 152.12 us/op 112.49 us/op 1.35
BeaconState.hashTreeRoot - 32 full validator 1.6449 ms/op 1.3084 ms/op 1.26
BeaconState.hashTreeRoot - 512 full validator 17.364 ms/op 12.390 ms/op 1.40
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 188.44 us/op 126.95 us/op 1.48
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.5054 ms/op 1.9513 ms/op 1.28
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 25.458 ms/op 26.864 ms/op 0.95
BeaconState.hashTreeRoot - 1 balances 116.26 us/op 97.632 us/op 1.19
BeaconState.hashTreeRoot - 32 balances 1.4047 ms/op 1.0055 ms/op 1.40
BeaconState.hashTreeRoot - 512 balances 13.410 ms/op 11.501 ms/op 1.17
BeaconState.hashTreeRoot - 250000 balances 198.79 ms/op 209.69 ms/op 0.95
aggregationBits - 2048 els - zipIndexesInBitList 26.359 us/op 23.499 us/op 1.12
byteArrayEquals 32 73.337 ns/op 66.204 ns/op 1.11
Buffer.compare 32 54.063 ns/op 38.214 ns/op 1.41
byteArrayEquals 1024 2.0032 us/op 1.8098 us/op 1.11
Buffer.compare 1024 70.104 ns/op 47.319 ns/op 1.48
byteArrayEquals 16384 31.890 us/op 28.746 us/op 1.11
Buffer.compare 16384 268.06 ns/op 229.82 ns/op 1.17
byteArrayEquals 123687377 239.96 ms/op 199.79 ms/op 1.20
Buffer.compare 123687377 6.0202 ms/op 5.8703 ms/op 1.03
byteArrayEquals 32 - diff last byte 70.465 ns/op 60.072 ns/op 1.17
Buffer.compare 32 - diff last byte 66.952 ns/op 39.825 ns/op 1.68
byteArrayEquals 1024 - diff last byte 2.0858 us/op 1.7014 us/op 1.23
Buffer.compare 1024 - diff last byte 72.142 ns/op 45.587 ns/op 1.58
byteArrayEquals 16384 - diff last byte 32.245 us/op 27.693 us/op 1.16
Buffer.compare 16384 - diff last byte 272.95 ns/op 217.94 ns/op 1.25
byteArrayEquals 123687377 - diff last byte 244.16 ms/op 213.77 ms/op 1.14
Buffer.compare 123687377 - diff last byte 6.1412 ms/op 4.4724 ms/op 1.37
byteArrayEquals 32 - random bytes 5.2240 ns/op 4.8320 ns/op 1.08
Buffer.compare 32 - random bytes 61.462 ns/op 45.747 ns/op 1.34
byteArrayEquals 1024 - random bytes 5.2020 ns/op 4.8120 ns/op 1.08
Buffer.compare 1024 - random bytes 59.706 ns/op 39.172 ns/op 1.52
byteArrayEquals 16384 - random bytes 5.1350 ns/op 4.3600 ns/op 1.18
Buffer.compare 16384 - random bytes 59.833 ns/op 38.458 ns/op 1.56
byteArrayEquals 123687377 - random bytes 8.2200 ns/op 8.0500 ns/op 1.02
Buffer.compare 123687377 - random bytes 62.620 ns/op 46.650 ns/op 1.34
regular array get 100000 times 44.089 us/op 42.108 us/op 1.05
wrappedArray get 100000 times 43.562 us/op 45.728 us/op 0.95
arrayWithProxy get 100000 times 14.663 ms/op 10.113 ms/op 1.45
ssz.Root.equals 53.564 ns/op 56.759 ns/op 0.94
byteArrayEquals 52.077 ns/op 58.912 ns/op 0.88
Buffer.compare 10.694 ns/op 11.745 ns/op 0.91
shuffle list - 16384 els 8.2969 ms/op 6.0763 ms/op 1.37
shuffle list - 250000 els 121.00 ms/op 89.254 ms/op 1.36
processSlot - 1 slots 15.950 us/op 15.779 us/op 1.01
processSlot - 32 slots 3.4004 ms/op 2.6949 ms/op 1.26
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 57.414 ms/op 47.964 ms/op 1.20
getCommitteeAssignments - req 1 vs - 250000 vc 2.6046 ms/op 2.3136 ms/op 1.13
getCommitteeAssignments - req 100 vs - 250000 vc 3.7599 ms/op 3.3537 ms/op 1.12
getCommitteeAssignments - req 1000 vs - 250000 vc 4.0605 ms/op 3.7287 ms/op 1.09
findModifiedValidators - 10000 modified validators 353.75 ms/op 302.50 ms/op 1.17
findModifiedValidators - 1000 modified validators 201.35 ms/op 177.60 ms/op 1.13
findModifiedValidators - 100 modified validators 182.93 ms/op 158.29 ms/op 1.16
findModifiedValidators - 10 modified validators 177.57 ms/op 149.47 ms/op 1.19
findModifiedValidators - 1 modified validators 174.01 ms/op 140.53 ms/op 1.24
findModifiedValidators - no difference 200.38 ms/op 172.72 ms/op 1.16
compare ViewDUs 4.2668 s/op 4.0556 s/op 1.05
compare each validator Uint8Array 1.7204 s/op 1.3673 s/op 1.26
compare ViewDU to Uint8Array 1.0976 s/op 802.27 ms/op 1.37
migrate state 1000000 validators, 24 modified, 0 new 763.28 ms/op 736.16 ms/op 1.04
migrate state 1000000 validators, 1700 modified, 1000 new 1.0527 s/op 908.28 ms/op 1.16
migrate state 1000000 validators, 3400 modified, 2000 new 1.2927 s/op 1.0973 s/op 1.18
migrate state 1500000 validators, 24 modified, 0 new 756.55 ms/op 628.70 ms/op 1.20
migrate state 1500000 validators, 1700 modified, 1000 new 1.0357 s/op 992.53 ms/op 1.04
migrate state 1500000 validators, 3400 modified, 2000 new 1.2845 s/op 989.31 ms/op 1.30
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.1300 ns/op 4.7300 ns/op 0.87
state getBlockRootAtSlot - 250000 vs - 7PWei 610.63 ns/op 661.14 ns/op 0.92
computeProposers - vc 250000 9.1636 ms/op 7.5037 ms/op 1.22
computeEpochShuffling - vc 250000 122.35 ms/op 83.921 ms/op 1.46
getNextSyncCommittee - vc 250000 155.13 ms/op 122.94 ms/op 1.26
computeSigningRoot for AttestationData 28.945 us/op 24.919 us/op 1.16
hash AttestationData serialized data then Buffer.toString(base64) 2.2756 us/op 1.2299 us/op 1.85
toHexString serialized data 1.0502 us/op 813.88 ns/op 1.29
Buffer.toString(base64) 201.31 ns/op 152.71 ns/op 1.32

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.

3 participants