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

fix: update @libp2p/tcp #6676

Merged
merged 2 commits into from
Apr 17, 2024
Merged

fix: update @libp2p/tcp #6676

merged 2 commits into from
Apr 17, 2024

Conversation

wemeetagain
Copy link
Member

@wemeetagain wemeetagain commented Apr 17, 2024

Motivation

Description

  • Update @libp2p/tcp and @libp2p/interface
  • Deduplicate changed dependencies in yarn.lock
  • Fix linter error

@wemeetagain wemeetagain requested a review from a team as a code owner April 17, 2024 13:35
twoeths
twoeths previously approved these changes Apr 17, 2024
Copy link
Contributor

@twoeths twoeths left a comment

Choose a reason for hiding this comment

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

thanks @wemeetagain ❤️

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

Merging #6676 (f3634b8) into unstable (2dae605) will decrease coverage by 0.01%.
Report is 2 commits behind head on unstable.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #6676      +/-   ##
============================================
- Coverage     61.80%   61.80%   -0.01%     
============================================
  Files           556      556              
  Lines         59073    59103      +30     
  Branches       1898     1898              
============================================
+ Hits          36508    36526      +18     
- Misses        22522    22534      +12     
  Partials         43       43              

Copy link
Contributor

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 419ab75 Previous: 2dae605 Ratio
fastMsgIdFn sha256 / 1000 bytes 6.5780 us/op 21.365 us/op 0.31
fastMsgIdFn sha256 / 10000 bytes 54.446 us/op 165.69 us/op 0.33
send data - 1000 512B messages 15.876 ms/op 56.860 ms/op 0.28
Set add up to 64 items then delete first 1.9319 us/op 6.0638 us/op 0.32
Set add up to 256 items then delete first 7.9041 us/op 24.904 us/op 0.32
Set add up to 256 items then delete last 7.6093 us/op 26.453 us/op 0.29
Set add up to 256 items then delete middle 7.6097 us/op 24.836 us/op 0.31
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.2536 ms/op 3.7693 ms/op 0.33
computeSigningRoot for AttestationData 16.347 us/op 50.665 us/op 0.32
Full benchmark results
Benchmark suite Current: 419ab75 Previous: 2dae605 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.0606 ms/op 1.0150 ms/op 1.05
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 102.05 us/op 96.065 us/op 1.06
BLS verify - blst-native 1.1878 ms/op 1.5204 ms/op 0.78
BLS verifyMultipleSignatures 3 - blst-native 2.5169 ms/op 3.1984 ms/op 0.79
BLS verifyMultipleSignatures 8 - blst-native 5.5887 ms/op 6.9859 ms/op 0.80
BLS verifyMultipleSignatures 32 - blst-native 20.810 ms/op 26.728 ms/op 0.78
BLS verifyMultipleSignatures 64 - blst-native 41.059 ms/op 51.190 ms/op 0.80
BLS verifyMultipleSignatures 128 - blst-native 80.196 ms/op 104.13 ms/op 0.77
BLS deserializing 10000 signatures 864.18 ms/op 1.0891 s/op 0.79
BLS deserializing 100000 signatures 8.6147 s/op 10.512 s/op 0.82
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2372 ms/op 1.6456 ms/op 0.75
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.3226 ms/op 1.7367 ms/op 0.76
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.0722 ms/op 2.6032 ms/op 0.80
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.7091 ms/op 3.9652 ms/op 0.94
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.1098 ms/op 6.3191 ms/op 0.81
BLS aggregatePubkeys 32 - blst-native 23.199 us/op 27.822 us/op 0.83
BLS aggregatePubkeys 128 - blst-native 94.547 us/op 117.11 us/op 0.81
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 51.862 ms/op 69.618 ms/op 0.74
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 61.092 ms/op 65.155 ms/op 0.94
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 28.216 ms/op 58.821 ms/op 0.48
getSlashingsAndExits - default max 138.29 us/op 174.36 us/op 0.79
getSlashingsAndExits - 2k 432.91 us/op 442.95 us/op 0.98
proposeBlockBody type=full, size=empty 4.5384 ms/op 8.5465 ms/op 0.53
isKnown best case - 1 super set check 369.00 ns/op 507.00 ns/op 0.73
isKnown normal case - 2 super set checks 412.00 ns/op 494.00 ns/op 0.83
isKnown worse case - 16 super set checks 589.00 ns/op 472.00 ns/op 1.25
InMemoryCheckpointStateCache - add get delete 6.0440 us/op 6.1220 us/op 0.99
validate api signedAggregateAndProof - struct 2.4346 ms/op 2.9111 ms/op 0.84
validate gossip signedAggregateAndProof - struct 2.3912 ms/op 3.2857 ms/op 0.73
validate gossip attestation - vc 640000 1.1642 ms/op 1.6321 ms/op 0.71
batch validate gossip attestation - vc 640000 - chunk 32 151.22 us/op 181.01 us/op 0.84
batch validate gossip attestation - vc 640000 - chunk 64 138.37 us/op 166.35 us/op 0.83
batch validate gossip attestation - vc 640000 - chunk 128 125.39 us/op 159.27 us/op 0.79
batch validate gossip attestation - vc 640000 - chunk 256 117.90 us/op 175.93 us/op 0.67
pickEth1Vote - no votes 924.06 us/op 1.4227 ms/op 0.65
pickEth1Vote - max votes 10.910 ms/op 10.550 ms/op 1.03
pickEth1Vote - Eth1Data hashTreeRoot value x2048 22.325 ms/op 22.341 ms/op 1.00
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 28.446 ms/op 34.028 ms/op 0.84
pickEth1Vote - Eth1Data fastSerialize value x2048 442.95 us/op 903.90 us/op 0.49
pickEth1Vote - Eth1Data fastSerialize tree x2048 7.3228 ms/op 5.9811 ms/op 1.22
bytes32 toHexString 476.00 ns/op 754.00 ns/op 0.63
bytes32 Buffer.toString(hex) 337.00 ns/op 400.00 ns/op 0.84
bytes32 Buffer.toString(hex) from Uint8Array 432.00 ns/op 613.00 ns/op 0.70
bytes32 Buffer.toString(hex) + 0x 345.00 ns/op 359.00 ns/op 0.96
Object access 1 prop 0.21100 ns/op 0.24700 ns/op 0.85
Map access 1 prop 0.22000 ns/op 0.17800 ns/op 1.24
Object get x1000 5.0310 ns/op 8.5440 ns/op 0.59
Map get x1000 0.80000 ns/op 0.94800 ns/op 0.84
Object set x1000 26.969 ns/op 63.211 ns/op 0.43
Map set x1000 17.181 ns/op 48.132 ns/op 0.36
Return object 10000 times 0.22750 ns/op 0.27110 ns/op 0.84
Throw Error 10000 times 2.7891 us/op 4.7553 us/op 0.59
fastMsgIdFn sha256 / 200 bytes 2.0100 us/op 5.6090 us/op 0.36
fastMsgIdFn h32 xxhash / 200 bytes 355.00 ns/op 531.00 ns/op 0.67
fastMsgIdFn h64 xxhash / 200 bytes 362.00 ns/op 606.00 ns/op 0.60
fastMsgIdFn sha256 / 1000 bytes 6.5780 us/op 21.365 us/op 0.31
fastMsgIdFn h32 xxhash / 1000 bytes 450.00 ns/op 815.00 ns/op 0.55
fastMsgIdFn h64 xxhash / 1000 bytes 410.00 ns/op 1.0990 us/op 0.37
fastMsgIdFn sha256 / 10000 bytes 54.446 us/op 165.69 us/op 0.33
fastMsgIdFn h32 xxhash / 10000 bytes 1.8810 us/op 3.1860 us/op 0.59
fastMsgIdFn h64 xxhash / 10000 bytes 1.2790 us/op 1.7150 us/op 0.75
send data - 1000 256B messages 12.480 ms/op 26.598 ms/op 0.47
send data - 1000 512B messages 15.876 ms/op 56.860 ms/op 0.28
send data - 1000 1024B messages 28.452 ms/op 78.640 ms/op 0.36
send data - 1000 1200B messages 33.226 ms/op 50.884 ms/op 0.65
send data - 1000 2048B messages 42.104 ms/op 66.506 ms/op 0.63
send data - 1000 4096B messages 36.419 ms/op 57.605 ms/op 0.63
send data - 1000 16384B messages 116.71 ms/op 142.12 ms/op 0.82
send data - 1000 65536B messages 411.63 ms/op 514.81 ms/op 0.80
enrSubnets - fastDeserialize 64 bits 1.4740 us/op 1.6880 us/op 0.87
enrSubnets - ssz BitVector 64 bits 589.00 ns/op 645.00 ns/op 0.91
enrSubnets - fastDeserialize 4 bits 274.00 ns/op 262.00 ns/op 1.05
enrSubnets - ssz BitVector 4 bits 576.00 ns/op 610.00 ns/op 0.94
prioritizePeers score -10:0 att 32-0.1 sync 2-0 163.25 us/op 263.96 us/op 0.62
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 215.55 us/op 414.16 us/op 0.52
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 263.48 us/op 500.15 us/op 0.53
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 394.08 us/op 831.29 us/op 0.47
prioritizePeers score 0:0 att 64-1 sync 4-1 528.34 us/op 985.31 us/op 0.54
array of 16000 items push then shift 1.3656 us/op 2.0290 us/op 0.67
LinkedList of 16000 items push then shift 6.5260 ns/op 10.853 ns/op 0.60
array of 16000 items push then pop 96.771 ns/op 123.11 ns/op 0.79
LinkedList of 16000 items push then pop 5.9490 ns/op 10.493 ns/op 0.57
array of 24000 items push then shift 2.0207 us/op 3.3183 us/op 0.61
LinkedList of 24000 items push then shift 6.9820 ns/op 12.620 ns/op 0.55
array of 24000 items push then pop 144.64 ns/op 174.40 ns/op 0.83
LinkedList of 24000 items push then pop 6.8220 ns/op 11.093 ns/op 0.61
intersect bitArray bitLen 8 4.9450 ns/op 7.2830 ns/op 0.68
intersect array and set length 8 51.751 ns/op 88.935 ns/op 0.58
intersect bitArray bitLen 128 30.330 ns/op 43.968 ns/op 0.69
intersect array and set length 128 734.54 ns/op 1.3205 us/op 0.56
bitArray.getTrueBitIndexes() bitLen 128 1.6520 us/op 2.3680 us/op 0.70
bitArray.getTrueBitIndexes() bitLen 248 2.6800 us/op 3.6410 us/op 0.74
bitArray.getTrueBitIndexes() bitLen 512 5.6420 us/op 7.1860 us/op 0.79
Buffer.concat 32 items 964.00 ns/op 1.3940 us/op 0.69
Uint8Array.set 32 items 1.8170 us/op 2.5700 us/op 0.71
Set add up to 64 items then delete first 1.9319 us/op 6.0638 us/op 0.32
OrderedSet add up to 64 items then delete first 3.7925 us/op 8.5510 us/op 0.44
Set add up to 64 items then delete last 2.8050 us/op 6.0770 us/op 0.46
OrderedSet add up to 64 items then delete last 4.5655 us/op 7.8513 us/op 0.58
Set add up to 64 items then delete middle 2.9405 us/op 5.7263 us/op 0.51
OrderedSet add up to 64 items then delete middle 5.6042 us/op 9.3414 us/op 0.60
Set add up to 128 items then delete first 4.3965 us/op 11.726 us/op 0.37
OrderedSet add up to 128 items then delete first 6.6656 us/op 16.755 us/op 0.40
Set add up to 128 items then delete last 4.0847 us/op 12.055 us/op 0.34
OrderedSet add up to 128 items then delete last 6.0172 us/op 16.737 us/op 0.36
Set add up to 128 items then delete middle 4.1719 us/op 11.795 us/op 0.35
OrderedSet add up to 128 items then delete middle 11.201 us/op 21.980 us/op 0.51
Set add up to 256 items then delete first 7.9041 us/op 24.904 us/op 0.32
OrderedSet add up to 256 items then delete first 12.422 us/op 33.159 us/op 0.37
Set add up to 256 items then delete last 7.6093 us/op 26.453 us/op 0.29
OrderedSet add up to 256 items then delete last 11.730 us/op 33.354 us/op 0.35
Set add up to 256 items then delete middle 7.6097 us/op 24.836 us/op 0.31
OrderedSet add up to 256 items then delete middle 32.210 us/op 60.362 us/op 0.53
transfer serialized Status (84 B) 1.3980 us/op 2.0340 us/op 0.69
copy serialized Status (84 B) 1.1530 us/op 1.6180 us/op 0.71
transfer serialized SignedVoluntaryExit (112 B) 1.6970 us/op 2.4160 us/op 0.70
copy serialized SignedVoluntaryExit (112 B) 1.3110 us/op 1.7420 us/op 0.75
transfer serialized ProposerSlashing (416 B) 1.9690 us/op 4.0120 us/op 0.49
copy serialized ProposerSlashing (416 B) 2.5470 us/op 3.4060 us/op 0.75
transfer serialized Attestation (485 B) 2.9640 us/op 3.5300 us/op 0.84
copy serialized Attestation (485 B) 2.6920 us/op 2.9710 us/op 0.91
transfer serialized AttesterSlashing (33232 B) 2.9670 us/op 3.0150 us/op 0.98
copy serialized AttesterSlashing (33232 B) 6.0990 us/op 10.062 us/op 0.61
transfer serialized Small SignedBeaconBlock (128000 B) 2.0670 us/op 3.5420 us/op 0.58
copy serialized Small SignedBeaconBlock (128000 B) 9.2240 us/op 27.523 us/op 0.34
transfer serialized Avg SignedBeaconBlock (200000 B) 1.8060 us/op 3.7110 us/op 0.49
copy serialized Avg SignedBeaconBlock (200000 B) 12.228 us/op 32.143 us/op 0.38
transfer serialized BlobsSidecar (524380 B) 2.2190 us/op 4.1660 us/op 0.53
copy serialized BlobsSidecar (524380 B) 112.97 us/op 104.21 us/op 1.08
transfer serialized Big SignedBeaconBlock (1000000 B) 2.2460 us/op 3.9180 us/op 0.57
copy serialized Big SignedBeaconBlock (1000000 B) 188.95 us/op 185.93 us/op 1.02
pass gossip attestations to forkchoice per slot 2.9136 ms/op 5.7482 ms/op 0.51
forkChoice updateHead vc 100000 bc 64 eq 0 476.04 us/op 1.0062 ms/op 0.47
forkChoice updateHead vc 600000 bc 64 eq 0 2.6314 ms/op 5.2902 ms/op 0.50
forkChoice updateHead vc 1000000 bc 64 eq 0 4.8143 ms/op 8.9346 ms/op 0.54
forkChoice updateHead vc 600000 bc 320 eq 0 2.6938 ms/op 6.6889 ms/op 0.40
forkChoice updateHead vc 600000 bc 1200 eq 0 2.7326 ms/op 5.7342 ms/op 0.48
forkChoice updateHead vc 600000 bc 7200 eq 0 4.1064 ms/op 7.9181 ms/op 0.52
forkChoice updateHead vc 600000 bc 64 eq 1000 10.397 ms/op 16.578 ms/op 0.63
forkChoice updateHead vc 600000 bc 64 eq 10000 10.129 ms/op 15.482 ms/op 0.65
forkChoice updateHead vc 600000 bc 64 eq 300000 12.315 ms/op 19.611 ms/op 0.63
computeDeltas 500000 validators 300 proto nodes 3.2006 ms/op 7.4105 ms/op 0.43
computeDeltas 500000 validators 1200 proto nodes 3.1222 ms/op 7.4659 ms/op 0.42
computeDeltas 500000 validators 7200 proto nodes 3.1852 ms/op 7.4208 ms/op 0.43
computeDeltas 750000 validators 300 proto nodes 4.7216 ms/op 11.870 ms/op 0.40
computeDeltas 750000 validators 1200 proto nodes 4.8251 ms/op 10.689 ms/op 0.45
computeDeltas 750000 validators 7200 proto nodes 4.8143 ms/op 10.646 ms/op 0.45
computeDeltas 1400000 validators 300 proto nodes 9.3473 ms/op 21.929 ms/op 0.43
computeDeltas 1400000 validators 1200 proto nodes 9.8585 ms/op 22.379 ms/op 0.44
computeDeltas 1400000 validators 7200 proto nodes 11.454 ms/op 22.564 ms/op 0.51
computeDeltas 2100000 validators 300 proto nodes 14.414 ms/op 34.405 ms/op 0.42
computeDeltas 2100000 validators 1200 proto nodes 13.851 ms/op 33.082 ms/op 0.42
computeDeltas 2100000 validators 7200 proto nodes 13.407 ms/op 32.476 ms/op 0.41
altair processAttestation - 250000 vs - 7PWei normalcase 2.0190 ms/op 2.5186 ms/op 0.80
altair processAttestation - 250000 vs - 7PWei worstcase 3.1295 ms/op 3.4951 ms/op 0.90
altair processAttestation - setStatus - 1/6 committees join 113.46 us/op 227.82 us/op 0.50
altair processAttestation - setStatus - 1/3 committees join 232.60 us/op 405.16 us/op 0.57
altair processAttestation - setStatus - 1/2 committees join 327.50 us/op 551.76 us/op 0.59
altair processAttestation - setStatus - 2/3 committees join 421.96 us/op 648.62 us/op 0.65
altair processAttestation - setStatus - 4/5 committees join 554.92 us/op 833.23 us/op 0.67
altair processAttestation - setStatus - 100% committees join 655.70 us/op 1.0023 ms/op 0.65
altair processBlock - 250000 vs - 7PWei normalcase 8.0044 ms/op 8.4441 ms/op 0.95
altair processBlock - 250000 vs - 7PWei normalcase hashState 31.312 ms/op 35.832 ms/op 0.87
altair processBlock - 250000 vs - 7PWei worstcase 38.740 ms/op 44.437 ms/op 0.87
altair processBlock - 250000 vs - 7PWei worstcase hashState 77.232 ms/op 104.12 ms/op 0.74
phase0 processBlock - 250000 vs - 7PWei normalcase 1.8603 ms/op 2.7845 ms/op 0.67
phase0 processBlock - 250000 vs - 7PWei worstcase 26.779 ms/op 30.920 ms/op 0.87
altair processEth1Data - 250000 vs - 7PWei normalcase 267.37 us/op 499.87 us/op 0.53
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 12.426 us/op 17.225 us/op 0.72
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 66.507 us/op 96.998 us/op 0.69
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 13.354 us/op 15.655 us/op 0.85
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 16.236 us/op 9.9430 us/op 1.63
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 174.46 us/op 287.11 us/op 0.61
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1923 ms/op 2.3363 ms/op 0.51
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.6769 ms/op 2.8221 ms/op 0.59
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.2906 ms/op 2.8476 ms/op 0.45
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.6509 ms/op 3.2481 ms/op 0.82
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.7397 ms/op 2.3481 ms/op 0.74
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.3400 ms/op 5.5503 ms/op 0.78
Tree 40 250000 create 295.40 ms/op 381.18 ms/op 0.77
Tree 40 250000 get(125000) 130.51 ns/op 214.27 ns/op 0.61
Tree 40 250000 set(125000) 816.95 ns/op 1.0639 us/op 0.77
Tree 40 250000 toArray() 20.587 ms/op 19.710 ms/op 1.04
Tree 40 250000 iterate all - toArray() + loop 20.544 ms/op 20.286 ms/op 1.01
Tree 40 250000 iterate all - get(i) 52.804 ms/op 71.670 ms/op 0.74
MutableVector 250000 create 9.1677 ms/op 18.243 ms/op 0.50
MutableVector 250000 get(125000) 5.7410 ns/op 6.7540 ns/op 0.85
MutableVector 250000 set(125000) 342.37 ns/op 264.76 ns/op 1.29
MutableVector 250000 toArray() 3.6440 ms/op 3.4884 ms/op 1.04
MutableVector 250000 iterate all - toArray() + loop 3.6386 ms/op 3.9021 ms/op 0.93
MutableVector 250000 iterate all - get(i) 1.3342 ms/op 1.6354 ms/op 0.82
Array 250000 create 3.2440 ms/op 3.3386 ms/op 0.97
Array 250000 clone - spread 1.1411 ms/op 1.3772 ms/op 0.83
Array 250000 get(125000) 1.1880 ns/op 1.1390 ns/op 1.04
Array 250000 set(125000) 1.5750 ns/op 4.2810 ns/op 0.37
Array 250000 iterate all - loop 173.93 us/op 186.57 us/op 0.93
effectiveBalanceIncrements clone Uint8Array 300000 47.578 us/op 43.168 us/op 1.10
effectiveBalanceIncrements clone MutableVector 300000 637.00 ns/op 481.00 ns/op 1.32
effectiveBalanceIncrements rw all Uint8Array 300000 186.82 us/op 241.03 us/op 0.78
effectiveBalanceIncrements rw all MutableVector 300000 69.927 ms/op 109.23 ms/op 0.64
phase0 afterProcessEpoch - 250000 vs - 7PWei 84.015 ms/op 131.85 ms/op 0.64
phase0 beforeProcessEpoch - 250000 vs - 7PWei 58.913 ms/op 62.078 ms/op 0.95
altair processEpoch - mainnet_e81889 481.66 ms/op 599.07 ms/op 0.80
mainnet_e81889 - altair beforeProcessEpoch 82.329 ms/op 104.56 ms/op 0.79
mainnet_e81889 - altair processJustificationAndFinalization 12.143 us/op 33.639 us/op 0.36
mainnet_e81889 - altair processInactivityUpdates 4.4545 ms/op 9.3013 ms/op 0.48
mainnet_e81889 - altair processRewardsAndPenalties 71.298 ms/op 75.536 ms/op 0.94
mainnet_e81889 - altair processRegistryUpdates 1.8540 us/op 5.3300 us/op 0.35
mainnet_e81889 - altair processSlashings 602.00 ns/op 1.0830 us/op 0.56
mainnet_e81889 - altair processEth1DataReset 722.00 ns/op 947.00 ns/op 0.76
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.0749 ms/op 2.0591 ms/op 0.52
mainnet_e81889 - altair processSlashingsReset 4.0800 us/op 5.7430 us/op 0.71
mainnet_e81889 - altair processRandaoMixesReset 5.6060 us/op 5.1950 us/op 1.08
mainnet_e81889 - altair processHistoricalRootsUpdate 862.00 ns/op 1.3070 us/op 0.66
mainnet_e81889 - altair processParticipationFlagUpdates 4.2200 us/op 4.1830 us/op 1.01
mainnet_e81889 - altair processSyncCommitteeUpdates 1.6200 us/op 1.2070 us/op 1.34
mainnet_e81889 - altair afterProcessEpoch 92.830 ms/op 160.60 ms/op 0.58
capella processEpoch - mainnet_e217614 1.6632 s/op 3.8050 s/op 0.44
mainnet_e217614 - capella beforeProcessEpoch 404.42 ms/op 910.47 ms/op 0.44
mainnet_e217614 - capella processJustificationAndFinalization 10.632 us/op 40.597 us/op 0.26
mainnet_e217614 - capella processInactivityUpdates 19.240 ms/op 40.853 ms/op 0.47
mainnet_e217614 - capella processRewardsAndPenalties 457.81 ms/op 1.0767 s/op 0.43
mainnet_e217614 - capella processRegistryUpdates 16.419 us/op 40.287 us/op 0.41
mainnet_e217614 - capella processSlashings 568.00 ns/op 1.2280 us/op 0.46
mainnet_e217614 - capella processEth1DataReset 530.00 ns/op 979.00 ns/op 0.54
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.5068 ms/op 7.4595 ms/op 0.47
mainnet_e217614 - capella processSlashingsReset 2.0770 us/op 8.3230 us/op 0.25
mainnet_e217614 - capella processRandaoMixesReset 2.8940 us/op 13.754 us/op 0.21
mainnet_e217614 - capella processHistoricalRootsUpdate 613.00 ns/op 1.6280 us/op 0.38
mainnet_e217614 - capella processParticipationFlagUpdates 1.6310 us/op 6.1610 us/op 0.26
mainnet_e217614 - capella afterProcessEpoch 268.70 ms/op 643.05 ms/op 0.42
phase0 processEpoch - mainnet_e58758 337.79 ms/op 601.25 ms/op 0.56
mainnet_e58758 - phase0 beforeProcessEpoch 116.62 ms/op 179.14 ms/op 0.65
mainnet_e58758 - phase0 processJustificationAndFinalization 15.312 us/op 23.191 us/op 0.66
mainnet_e58758 - phase0 processRewardsAndPenalties 61.088 ms/op 89.238 ms/op 0.68
mainnet_e58758 - phase0 processRegistryUpdates 10.612 us/op 22.553 us/op 0.47
mainnet_e58758 - phase0 processSlashings 768.00 ns/op 1.2240 us/op 0.63
mainnet_e58758 - phase0 processEth1DataReset 556.00 ns/op 1.2140 us/op 0.46
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.3833 ms/op 2.0296 ms/op 0.68
mainnet_e58758 - phase0 processSlashingsReset 2.3570 us/op 6.3360 us/op 0.37
mainnet_e58758 - phase0 processRandaoMixesReset 2.8560 us/op 15.414 us/op 0.19
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.5440 us/op 2.0920 us/op 0.74
mainnet_e58758 - phase0 processParticipationRecordUpdates 11.521 us/op 7.6050 us/op 1.51
mainnet_e58758 - phase0 afterProcessEpoch 79.203 ms/op 171.18 ms/op 0.46
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0233 ms/op 2.2512 ms/op 0.45
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.2536 ms/op 3.7693 ms/op 0.33
altair processInactivityUpdates - 250000 normalcase 21.927 ms/op 47.850 ms/op 0.46
altair processInactivityUpdates - 250000 worstcase 26.467 ms/op 57.509 ms/op 0.46
phase0 processRegistryUpdates - 250000 normalcase 14.357 us/op 19.589 us/op 0.73
phase0 processRegistryUpdates - 250000 badcase_full_deposits 442.41 us/op 815.68 us/op 0.54
phase0 processRegistryUpdates - 250000 worstcase 0.5 133.41 ms/op 350.19 ms/op 0.38
altair processRewardsAndPenalties - 250000 normalcase 61.058 ms/op 128.19 ms/op 0.48
altair processRewardsAndPenalties - 250000 worstcase 72.369 ms/op 141.87 ms/op 0.51
phase0 getAttestationDeltas - 250000 normalcase 11.619 ms/op 19.168 ms/op 0.61
phase0 getAttestationDeltas - 250000 worstcase 6.9923 ms/op 18.380 ms/op 0.38
phase0 processSlashings - 250000 worstcase 90.259 us/op 151.19 us/op 0.60
altair processSyncCommitteeUpdates - 250000 149.95 ms/op 360.98 ms/op 0.42
BeaconState.hashTreeRoot - No change 509.00 ns/op 1.0510 us/op 0.48
BeaconState.hashTreeRoot - 1 full validator 153.99 us/op 272.93 us/op 0.56
BeaconState.hashTreeRoot - 32 full validator 1.1619 ms/op 2.6845 ms/op 0.43
BeaconState.hashTreeRoot - 512 full validator 12.172 ms/op 26.730 ms/op 0.46
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 125.36 us/op 277.42 us/op 0.45
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.6928 ms/op 3.9716 ms/op 0.43
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 22.558 ms/op 55.088 ms/op 0.41
BeaconState.hashTreeRoot - 1 balances 105.76 us/op 272.57 us/op 0.39
BeaconState.hashTreeRoot - 32 balances 1.3043 ms/op 2.0705 ms/op 0.63
BeaconState.hashTreeRoot - 512 balances 10.332 ms/op 15.385 ms/op 0.67
BeaconState.hashTreeRoot - 250000 balances 221.46 ms/op 300.66 ms/op 0.74
aggregationBits - 2048 els - zipIndexesInBitList 28.828 us/op 51.637 us/op 0.56
byteArrayEquals 32 74.735 ns/op 129.92 ns/op 0.58
Buffer.compare 32 46.834 ns/op 97.843 ns/op 0.48
byteArrayEquals 1024 1.9532 us/op 2.5461 us/op 0.77
Buffer.compare 1024 48.405 ns/op 107.50 ns/op 0.45
byteArrayEquals 16384 31.086 us/op 43.840 us/op 0.71
Buffer.compare 16384 235.15 ns/op 434.59 ns/op 0.54
byteArrayEquals 123687377 220.11 ms/op 333.89 ms/op 0.66
Buffer.compare 123687377 7.2899 ms/op 9.0505 ms/op 0.81
byteArrayEquals 32 - diff last byte 67.543 ns/op 137.83 ns/op 0.49
Buffer.compare 32 - diff last byte 39.388 ns/op 104.17 ns/op 0.38
byteArrayEquals 1024 - diff last byte 1.8541 us/op 3.2307 us/op 0.57
Buffer.compare 1024 - diff last byte 47.496 ns/op 99.016 ns/op 0.48
byteArrayEquals 16384 - diff last byte 28.895 us/op 40.872 us/op 0.71
Buffer.compare 16384 - diff last byte 213.07 ns/op 290.68 ns/op 0.73
byteArrayEquals 123687377 - diff last byte 214.94 ms/op 329.83 ms/op 0.65
Buffer.compare 123687377 - diff last byte 6.9508 ms/op 8.8040 ms/op 0.79
byteArrayEquals 32 - random bytes 6.7980 ns/op 7.0580 ns/op 0.96
Buffer.compare 32 - random bytes 45.113 ns/op 80.322 ns/op 0.56
byteArrayEquals 1024 - random bytes 6.4500 ns/op 8.0610 ns/op 0.80
Buffer.compare 1024 - random bytes 41.536 ns/op 99.319 ns/op 0.42
byteArrayEquals 16384 - random bytes 6.9940 ns/op 8.6240 ns/op 0.81
Buffer.compare 16384 - random bytes 47.090 ns/op 101.94 ns/op 0.46
byteArrayEquals 123687377 - random bytes 21.270 ns/op 12.120 ns/op 1.75
Buffer.compare 123687377 - random bytes 62.850 ns/op 103.32 ns/op 0.61
regular array get 100000 times 47.452 us/op 72.116 us/op 0.66
wrappedArray get 100000 times 51.797 us/op 57.728 us/op 0.90
arrayWithProxy get 100000 times 14.219 ms/op 18.671 ms/op 0.76
ssz.Root.equals 65.615 ns/op 81.232 ns/op 0.81
byteArrayEquals 61.761 ns/op 89.944 ns/op 0.69
Buffer.compare 12.081 ns/op 18.338 ns/op 0.66
shuffle list - 16384 els 6.6980 ms/op 10.981 ms/op 0.61
shuffle list - 250000 els 98.614 ms/op 178.82 ms/op 0.55
processSlot - 1 slots 25.435 us/op 24.851 us/op 1.02
processSlot - 32 slots 3.4882 ms/op 5.3111 ms/op 0.66
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 53.576 ms/op 73.044 ms/op 0.73
getCommitteeAssignments - req 1 vs - 250000 vc 2.4626 ms/op 4.2270 ms/op 0.58
getCommitteeAssignments - req 100 vs - 250000 vc 3.6599 ms/op 5.2073 ms/op 0.70
getCommitteeAssignments - req 1000 vs - 250000 vc 4.0847 ms/op 6.3540 ms/op 0.64
findModifiedValidators - 10000 modified validators 326.95 ms/op 499.09 ms/op 0.66
findModifiedValidators - 1000 modified validators 210.28 ms/op 269.74 ms/op 0.78
findModifiedValidators - 100 modified validators 177.66 ms/op 231.46 ms/op 0.77
findModifiedValidators - 10 modified validators 182.85 ms/op 252.66 ms/op 0.72
findModifiedValidators - 1 modified validators 180.90 ms/op 278.10 ms/op 0.65
findModifiedValidators - no difference 208.73 ms/op 271.88 ms/op 0.77
compare ViewDUs 4.4536 s/op 5.7213 s/op 0.78
compare each validator Uint8Array 1.6666 s/op 2.1696 s/op 0.77
compare ViewDU to Uint8Array 1.1660 s/op 1.5887 s/op 0.73
migrate state 1000000 validators, 24 modified, 0 new 660.74 ms/op 984.51 ms/op 0.67
migrate state 1000000 validators, 1700 modified, 1000 new 941.56 ms/op 1.4267 s/op 0.66
migrate state 1000000 validators, 3400 modified, 2000 new 1.2354 s/op 1.4867 s/op 0.83
migrate state 1500000 validators, 24 modified, 0 new 784.08 ms/op 924.52 ms/op 0.85
migrate state 1500000 validators, 1700 modified, 1000 new 1.0324 s/op 1.2331 s/op 0.84
migrate state 1500000 validators, 3400 modified, 2000 new 1.1285 s/op 1.6931 s/op 0.67
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.3500 ns/op 5.8800 ns/op 0.74
state getBlockRootAtSlot - 250000 vs - 7PWei 406.02 ns/op 980.59 ns/op 0.41
computeProposers - vc 250000 5.7060 ms/op 14.842 ms/op 0.38
computeEpochShuffling - vc 250000 84.614 ms/op 248.15 ms/op 0.34
getNextSyncCommittee - vc 250000 97.913 ms/op 275.81 ms/op 0.36
computeSigningRoot for AttestationData 16.347 us/op 50.665 us/op 0.32
hash AttestationData serialized data then Buffer.toString(base64) 1.2420 us/op 3.6679 us/op 0.34
toHexString serialized data 822.76 ns/op 2.2941 us/op 0.36
Buffer.toString(base64) 166.41 ns/op 414.19 ns/op 0.40

by benchmarkbot/action

@wemeetagain wemeetagain merged commit f5148b2 into unstable Apr 17, 2024
20 of 21 checks passed
@wemeetagain wemeetagain deleted the cayman/bump-tcp branch April 17, 2024 15:34
twoeths added a commit that referenced this pull request Apr 23, 2024
nflaig added a commit that referenced this pull request Apr 23, 2024
wemeetagain pushed a commit that referenced this pull request Apr 23, 2024
Revert "fix: update @libp2p/tcp (#6676)"

This reverts commit f5148b2.
@wemeetagain
Copy link
Member Author

🎉 This PR is included in v1.18.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.

None yet

3 participants