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: track leaked connections in grafana #6675

Merged
merged 1 commit into from Apr 17, 2024

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Apr 17, 2024

Motivation

Track leaked connections to see if it's respective to heap memory in the network thread

Description

  • Track lodestar_peer_manager_leaked_connections_count introduced in feat: track leaked libp2p connections #6656
  • Don't want to apply rate() there so that we can see if it happens and respective to heap memory on network thread
Screenshot 2024-04-17 at 16 09 22

related to #6595

@twoeths twoeths requested a review from a team as a code owner April 17, 2024 09:09
Copy link

codecov bot commented Apr 17, 2024

Codecov Report

Merging #6675 (b4006e7) into unstable (2dae605) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6675   +/-   ##
=========================================
  Coverage     61.80%   61.80%           
=========================================
  Files           556      556           
  Lines         59073    59073           
  Branches       1898     1898           
=========================================
  Hits          36508    36508           
  Misses        22522    22522           
  Partials         43       43           

Copy link
Contributor

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 0cf3847 Previous: 2dae605 Ratio
fastMsgIdFn sha256 / 1000 bytes 6.3510 us/op 21.365 us/op 0.30
fastMsgIdFn sha256 / 10000 bytes 53.190 us/op 165.69 us/op 0.32
send data - 1000 512B messages 15.951 ms/op 56.860 ms/op 0.28
send data - 1000 1024B messages 23.662 ms/op 78.640 ms/op 0.30
Set add up to 64 items then delete first 1.7763 us/op 6.0638 us/op 0.29
OrderedSet add up to 64 items then delete first 2.7449 us/op 8.5510 us/op 0.32
Set add up to 64 items then delete last 2.0154 us/op 6.0770 us/op 0.33
Set add up to 256 items then delete first 7.7883 us/op 24.904 us/op 0.31
Set add up to 256 items then delete last 7.4743 us/op 26.453 us/op 0.28
Set add up to 256 items then delete middle 7.4447 us/op 24.836 us/op 0.30
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.0961 ms/op 3.7693 ms/op 0.29
altair processSyncCommitteeUpdates - 250000 107.45 ms/op 360.98 ms/op 0.30
Buffer.compare 32 - diff last byte 33.774 ns/op 104.17 ns/op 0.32
Full benchmark results
Benchmark suite Current: 0cf3847 Previous: 2dae605 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 557.88 us/op 1.0150 ms/op 0.55
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 102.58 us/op 96.065 us/op 1.07
BLS verify - blst-native 1.2105 ms/op 1.5204 ms/op 0.80
BLS verifyMultipleSignatures 3 - blst-native 2.5669 ms/op 3.1984 ms/op 0.80
BLS verifyMultipleSignatures 8 - blst-native 5.5081 ms/op 6.9859 ms/op 0.79
BLS verifyMultipleSignatures 32 - blst-native 19.693 ms/op 26.728 ms/op 0.74
BLS verifyMultipleSignatures 64 - blst-native 38.715 ms/op 51.190 ms/op 0.76
BLS verifyMultipleSignatures 128 - blst-native 79.661 ms/op 104.13 ms/op 0.77
BLS deserializing 10000 signatures 903.06 ms/op 1.0891 s/op 0.83
BLS deserializing 100000 signatures 8.7891 s/op 10.512 s/op 0.84
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2061 ms/op 1.6456 ms/op 0.73
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.4143 ms/op 1.7367 ms/op 0.81
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.2623 ms/op 2.6032 ms/op 0.87
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.2484 ms/op 3.9652 ms/op 0.82
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.2343 ms/op 6.3191 ms/op 0.83
BLS aggregatePubkeys 32 - blst-native 23.684 us/op 27.822 us/op 0.85
BLS aggregatePubkeys 128 - blst-native 92.585 us/op 117.11 us/op 0.79
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 72.912 ms/op 69.618 ms/op 1.05
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 72.562 ms/op 65.155 ms/op 1.11
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 53.954 ms/op 58.821 ms/op 0.92
getSlashingsAndExits - default max 439.18 us/op 174.36 us/op 2.52
getSlashingsAndExits - 2k 456.60 us/op 442.95 us/op 1.03
proposeBlockBody type=full, size=empty 5.5899 ms/op 8.5465 ms/op 0.65
isKnown best case - 1 super set check 625.00 ns/op 507.00 ns/op 1.23
isKnown normal case - 2 super set checks 675.00 ns/op 494.00 ns/op 1.37
isKnown worse case - 16 super set checks 690.00 ns/op 472.00 ns/op 1.46
InMemoryCheckpointStateCache - add get delete 6.2540 us/op 6.1220 us/op 1.02
validate api signedAggregateAndProof - struct 2.4500 ms/op 2.9111 ms/op 0.84
validate gossip signedAggregateAndProof - struct 2.5814 ms/op 3.2857 ms/op 0.79
validate gossip attestation - vc 640000 1.2225 ms/op 1.6321 ms/op 0.75
batch validate gossip attestation - vc 640000 - chunk 32 155.60 us/op 181.01 us/op 0.86
batch validate gossip attestation - vc 640000 - chunk 64 136.35 us/op 166.35 us/op 0.82
batch validate gossip attestation - vc 640000 - chunk 128 129.37 us/op 159.27 us/op 0.81
batch validate gossip attestation - vc 640000 - chunk 256 127.68 us/op 175.93 us/op 0.73
pickEth1Vote - no votes 1.0908 ms/op 1.4227 ms/op 0.77
pickEth1Vote - max votes 11.345 ms/op 10.550 ms/op 1.08
pickEth1Vote - Eth1Data hashTreeRoot value x2048 17.164 ms/op 22.341 ms/op 0.77
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 27.899 ms/op 34.028 ms/op 0.82
pickEth1Vote - Eth1Data fastSerialize value x2048 618.07 us/op 903.90 us/op 0.68
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.2561 ms/op 5.9811 ms/op 0.88
bytes32 toHexString 905.00 ns/op 754.00 ns/op 1.20
bytes32 Buffer.toString(hex) 376.00 ns/op 400.00 ns/op 0.94
bytes32 Buffer.toString(hex) from Uint8Array 596.00 ns/op 613.00 ns/op 0.97
bytes32 Buffer.toString(hex) + 0x 347.00 ns/op 359.00 ns/op 0.97
Object access 1 prop 0.25400 ns/op 0.24700 ns/op 1.03
Map access 1 prop 0.20100 ns/op 0.17800 ns/op 1.13
Object get x1000 5.0270 ns/op 8.5440 ns/op 0.59
Map get x1000 0.84700 ns/op 0.94800 ns/op 0.89
Object set x1000 32.899 ns/op 63.211 ns/op 0.52
Map set x1000 19.408 ns/op 48.132 ns/op 0.40
Return object 10000 times 0.23360 ns/op 0.27110 ns/op 0.86
Throw Error 10000 times 2.8111 us/op 4.7553 us/op 0.59
fastMsgIdFn sha256 / 200 bytes 2.0680 us/op 5.6090 us/op 0.37
fastMsgIdFn h32 xxhash / 200 bytes 375.00 ns/op 531.00 ns/op 0.71
fastMsgIdFn h64 xxhash / 200 bytes 406.00 ns/op 606.00 ns/op 0.67
fastMsgIdFn sha256 / 1000 bytes 6.3510 us/op 21.365 us/op 0.30
fastMsgIdFn h32 xxhash / 1000 bytes 522.00 ns/op 815.00 ns/op 0.64
fastMsgIdFn h64 xxhash / 1000 bytes 495.00 ns/op 1.0990 us/op 0.45
fastMsgIdFn sha256 / 10000 bytes 53.190 us/op 165.69 us/op 0.32
fastMsgIdFn h32 xxhash / 10000 bytes 1.8750 us/op 3.1860 us/op 0.59
fastMsgIdFn h64 xxhash / 10000 bytes 1.2600 us/op 1.7150 us/op 0.73
send data - 1000 256B messages 12.823 ms/op 26.598 ms/op 0.48
send data - 1000 512B messages 15.951 ms/op 56.860 ms/op 0.28
send data - 1000 1024B messages 23.662 ms/op 78.640 ms/op 0.30
send data - 1000 1200B messages 28.510 ms/op 50.884 ms/op 0.56
send data - 1000 2048B messages 34.702 ms/op 66.506 ms/op 0.52
send data - 1000 4096B messages 28.626 ms/op 57.605 ms/op 0.50
send data - 1000 16384B messages 93.438 ms/op 142.12 ms/op 0.66
send data - 1000 65536B messages 381.38 ms/op 514.81 ms/op 0.74
enrSubnets - fastDeserialize 64 bits 1.0280 us/op 1.6880 us/op 0.61
enrSubnets - ssz BitVector 64 bits 434.00 ns/op 645.00 ns/op 0.67
enrSubnets - fastDeserialize 4 bits 208.00 ns/op 262.00 ns/op 0.79
enrSubnets - ssz BitVector 4 bits 446.00 ns/op 610.00 ns/op 0.73
prioritizePeers score -10:0 att 32-0.1 sync 2-0 134.44 us/op 263.96 us/op 0.51
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 169.63 us/op 414.16 us/op 0.41
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 228.17 us/op 500.15 us/op 0.46
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 417.48 us/op 831.29 us/op 0.50
prioritizePeers score 0:0 att 64-1 sync 4-1 493.56 us/op 985.31 us/op 0.50
array of 16000 items push then shift 1.2497 us/op 2.0290 us/op 0.62
LinkedList of 16000 items push then shift 6.9500 ns/op 10.853 ns/op 0.64
array of 16000 items push then pop 71.797 ns/op 123.11 ns/op 0.58
LinkedList of 16000 items push then pop 5.7590 ns/op 10.493 ns/op 0.55
array of 24000 items push then shift 1.9683 us/op 3.3183 us/op 0.59
LinkedList of 24000 items push then shift 6.0860 ns/op 12.620 ns/op 0.48
array of 24000 items push then pop 90.244 ns/op 174.40 ns/op 0.52
LinkedList of 24000 items push then pop 5.7880 ns/op 11.093 ns/op 0.52
intersect bitArray bitLen 8 4.9470 ns/op 7.2830 ns/op 0.68
intersect array and set length 8 49.805 ns/op 88.935 ns/op 0.56
intersect bitArray bitLen 128 29.527 ns/op 43.968 ns/op 0.67
intersect array and set length 128 711.29 ns/op 1.3205 us/op 0.54
bitArray.getTrueBitIndexes() bitLen 128 1.2260 us/op 2.3680 us/op 0.52
bitArray.getTrueBitIndexes() bitLen 248 1.9430 us/op 3.6410 us/op 0.53
bitArray.getTrueBitIndexes() bitLen 512 3.5480 us/op 7.1860 us/op 0.49
Buffer.concat 32 items 846.00 ns/op 1.3940 us/op 0.61
Uint8Array.set 32 items 1.3530 us/op 2.5700 us/op 0.53
Set add up to 64 items then delete first 1.7763 us/op 6.0638 us/op 0.29
OrderedSet add up to 64 items then delete first 2.7449 us/op 8.5510 us/op 0.32
Set add up to 64 items then delete last 2.0154 us/op 6.0770 us/op 0.33
OrderedSet add up to 64 items then delete last 3.0153 us/op 7.8513 us/op 0.38
Set add up to 64 items then delete middle 2.0127 us/op 5.7263 us/op 0.35
OrderedSet add up to 64 items then delete middle 4.3431 us/op 9.3414 us/op 0.46
Set add up to 128 items then delete first 3.9899 us/op 11.726 us/op 0.34
OrderedSet add up to 128 items then delete first 7.0905 us/op 16.755 us/op 0.42
Set add up to 128 items then delete last 4.3708 us/op 12.055 us/op 0.36
OrderedSet add up to 128 items then delete last 5.6299 us/op 16.737 us/op 0.34
Set add up to 128 items then delete middle 3.9653 us/op 11.795 us/op 0.34
OrderedSet add up to 128 items then delete middle 10.711 us/op 21.980 us/op 0.49
Set add up to 256 items then delete first 7.7883 us/op 24.904 us/op 0.31
OrderedSet add up to 256 items then delete first 12.413 us/op 33.159 us/op 0.37
Set add up to 256 items then delete last 7.4743 us/op 26.453 us/op 0.28
OrderedSet add up to 256 items then delete last 11.507 us/op 33.354 us/op 0.34
Set add up to 256 items then delete middle 7.4447 us/op 24.836 us/op 0.30
OrderedSet add up to 256 items then delete middle 31.387 us/op 60.362 us/op 0.52
transfer serialized Status (84 B) 1.5660 us/op 2.0340 us/op 0.77
copy serialized Status (84 B) 1.2110 us/op 1.6180 us/op 0.75
transfer serialized SignedVoluntaryExit (112 B) 1.7240 us/op 2.4160 us/op 0.71
copy serialized SignedVoluntaryExit (112 B) 1.3780 us/op 1.7420 us/op 0.79
transfer serialized ProposerSlashing (416 B) 2.2480 us/op 4.0120 us/op 0.56
copy serialized ProposerSlashing (416 B) 2.2530 us/op 3.4060 us/op 0.66
transfer serialized Attestation (485 B) 2.3880 us/op 3.5300 us/op 0.68
copy serialized Attestation (485 B) 2.0390 us/op 2.9710 us/op 0.69
transfer serialized AttesterSlashing (33232 B) 1.5970 us/op 3.0150 us/op 0.53
copy serialized AttesterSlashing (33232 B) 3.9660 us/op 10.062 us/op 0.39
transfer serialized Small SignedBeaconBlock (128000 B) 2.0880 us/op 3.5420 us/op 0.59
copy serialized Small SignedBeaconBlock (128000 B) 9.2910 us/op 27.523 us/op 0.34
transfer serialized Avg SignedBeaconBlock (200000 B) 2.2370 us/op 3.7110 us/op 0.60
copy serialized Avg SignedBeaconBlock (200000 B) 13.659 us/op 32.143 us/op 0.42
transfer serialized BlobsSidecar (524380 B) 3.2170 us/op 4.1660 us/op 0.77
copy serialized BlobsSidecar (524380 B) 132.49 us/op 104.21 us/op 1.27
transfer serialized Big SignedBeaconBlock (1000000 B) 2.9950 us/op 3.9180 us/op 0.76
copy serialized Big SignedBeaconBlock (1000000 B) 192.73 us/op 185.93 us/op 1.04
pass gossip attestations to forkchoice per slot 3.0612 ms/op 5.7482 ms/op 0.53
forkChoice updateHead vc 100000 bc 64 eq 0 502.92 us/op 1.0062 ms/op 0.50
forkChoice updateHead vc 600000 bc 64 eq 0 2.6882 ms/op 5.2902 ms/op 0.51
forkChoice updateHead vc 1000000 bc 64 eq 0 4.6760 ms/op 8.9346 ms/op 0.52
forkChoice updateHead vc 600000 bc 320 eq 0 2.6901 ms/op 6.6889 ms/op 0.40
forkChoice updateHead vc 600000 bc 1200 eq 0 2.8345 ms/op 5.7342 ms/op 0.49
forkChoice updateHead vc 600000 bc 7200 eq 0 4.0057 ms/op 7.9181 ms/op 0.51
forkChoice updateHead vc 600000 bc 64 eq 1000 10.117 ms/op 16.578 ms/op 0.61
forkChoice updateHead vc 600000 bc 64 eq 10000 10.939 ms/op 15.482 ms/op 0.71
forkChoice updateHead vc 600000 bc 64 eq 300000 13.024 ms/op 19.611 ms/op 0.66
computeDeltas 500000 validators 300 proto nodes 3.1633 ms/op 7.4105 ms/op 0.43
computeDeltas 500000 validators 1200 proto nodes 2.9681 ms/op 7.4659 ms/op 0.40
computeDeltas 500000 validators 7200 proto nodes 2.9539 ms/op 7.4208 ms/op 0.40
computeDeltas 750000 validators 300 proto nodes 4.5614 ms/op 11.870 ms/op 0.38
computeDeltas 750000 validators 1200 proto nodes 4.5724 ms/op 10.689 ms/op 0.43
computeDeltas 750000 validators 7200 proto nodes 4.5186 ms/op 10.646 ms/op 0.42
computeDeltas 1400000 validators 300 proto nodes 9.5062 ms/op 21.929 ms/op 0.43
computeDeltas 1400000 validators 1200 proto nodes 9.1215 ms/op 22.379 ms/op 0.41
computeDeltas 1400000 validators 7200 proto nodes 9.2542 ms/op 22.564 ms/op 0.41
computeDeltas 2100000 validators 300 proto nodes 12.848 ms/op 34.405 ms/op 0.37
computeDeltas 2100000 validators 1200 proto nodes 13.599 ms/op 33.082 ms/op 0.41
computeDeltas 2100000 validators 7200 proto nodes 13.842 ms/op 32.476 ms/op 0.43
altair processAttestation - 250000 vs - 7PWei normalcase 1.5918 ms/op 2.5186 ms/op 0.63
altair processAttestation - 250000 vs - 7PWei worstcase 2.4208 ms/op 3.4951 ms/op 0.69
altair processAttestation - setStatus - 1/6 committees join 118.50 us/op 227.82 us/op 0.52
altair processAttestation - setStatus - 1/3 committees join 225.60 us/op 405.16 us/op 0.56
altair processAttestation - setStatus - 1/2 committees join 325.09 us/op 551.76 us/op 0.59
altair processAttestation - setStatus - 2/3 committees join 413.56 us/op 648.62 us/op 0.64
altair processAttestation - setStatus - 4/5 committees join 519.31 us/op 833.23 us/op 0.62
altair processAttestation - setStatus - 100% committees join 666.55 us/op 1.0023 ms/op 0.67
altair processBlock - 250000 vs - 7PWei normalcase 6.9663 ms/op 8.4441 ms/op 0.82
altair processBlock - 250000 vs - 7PWei normalcase hashState 25.597 ms/op 35.832 ms/op 0.71
altair processBlock - 250000 vs - 7PWei worstcase 34.383 ms/op 44.437 ms/op 0.77
altair processBlock - 250000 vs - 7PWei worstcase hashState 78.894 ms/op 104.12 ms/op 0.76
phase0 processBlock - 250000 vs - 7PWei normalcase 2.5655 ms/op 2.7845 ms/op 0.92
phase0 processBlock - 250000 vs - 7PWei worstcase 24.684 ms/op 30.920 ms/op 0.80
altair processEth1Data - 250000 vs - 7PWei normalcase 328.48 us/op 499.87 us/op 0.66
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 9.2550 us/op 17.225 us/op 0.54
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 57.793 us/op 96.998 us/op 0.60
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 20.363 us/op 15.655 us/op 1.30
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 10.864 us/op 9.9430 us/op 1.09
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 172.54 us/op 287.11 us/op 0.60
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.0491 ms/op 2.3363 ms/op 0.45
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1724 ms/op 2.8221 ms/op 0.42
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.0295 ms/op 2.8476 ms/op 0.36
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.0569 ms/op 3.2481 ms/op 0.94
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.0119 ms/op 2.3481 ms/op 0.86
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.8062 ms/op 5.5503 ms/op 0.87
Tree 40 250000 create 448.04 ms/op 381.18 ms/op 1.18
Tree 40 250000 get(125000) 119.04 ns/op 214.27 ns/op 0.56
Tree 40 250000 set(125000) 849.13 ns/op 1.0639 us/op 0.80
Tree 40 250000 toArray() 23.501 ms/op 19.710 ms/op 1.19
Tree 40 250000 iterate all - toArray() + loop 23.768 ms/op 20.286 ms/op 1.17
Tree 40 250000 iterate all - get(i) 57.629 ms/op 71.670 ms/op 0.80
MutableVector 250000 create 13.245 ms/op 18.243 ms/op 0.73
MutableVector 250000 get(125000) 6.4410 ns/op 6.7540 ns/op 0.95
MutableVector 250000 set(125000) 565.79 ns/op 264.76 ns/op 2.14
MutableVector 250000 toArray() 3.8579 ms/op 3.4884 ms/op 1.11
MutableVector 250000 iterate all - toArray() + loop 3.8007 ms/op 3.9021 ms/op 0.97
MutableVector 250000 iterate all - get(i) 1.4672 ms/op 1.6354 ms/op 0.90
Array 250000 create 3.6463 ms/op 3.3386 ms/op 1.09
Array 250000 clone - spread 1.2745 ms/op 1.3772 ms/op 0.93
Array 250000 get(125000) 2.1800 ns/op 1.1390 ns/op 1.91
Array 250000 set(125000) 1.4890 ns/op 4.2810 ns/op 0.35
Array 250000 iterate all - loop 160.78 us/op 186.57 us/op 0.86
effectiveBalanceIncrements clone Uint8Array 300000 55.520 us/op 43.168 us/op 1.29
effectiveBalanceIncrements clone MutableVector 300000 440.00 ns/op 481.00 ns/op 0.91
effectiveBalanceIncrements rw all Uint8Array 300000 189.18 us/op 241.03 us/op 0.78
effectiveBalanceIncrements rw all MutableVector 300000 79.052 ms/op 109.23 ms/op 0.72
phase0 afterProcessEpoch - 250000 vs - 7PWei 86.721 ms/op 131.85 ms/op 0.66
phase0 beforeProcessEpoch - 250000 vs - 7PWei 48.137 ms/op 62.078 ms/op 0.78
altair processEpoch - mainnet_e81889 435.36 ms/op 599.07 ms/op 0.73
mainnet_e81889 - altair beforeProcessEpoch 76.665 ms/op 104.56 ms/op 0.73
mainnet_e81889 - altair processJustificationAndFinalization 18.474 us/op 33.639 us/op 0.55
mainnet_e81889 - altair processInactivityUpdates 6.6763 ms/op 9.3013 ms/op 0.72
mainnet_e81889 - altair processRewardsAndPenalties 55.347 ms/op 75.536 ms/op 0.73
mainnet_e81889 - altair processRegistryUpdates 3.4690 us/op 5.3300 us/op 0.65
mainnet_e81889 - altair processSlashings 685.00 ns/op 1.0830 us/op 0.63
mainnet_e81889 - altair processEth1DataReset 875.00 ns/op 947.00 ns/op 0.92
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.0002 ms/op 2.0591 ms/op 0.49
mainnet_e81889 - altair processSlashingsReset 5.3900 us/op 5.7430 us/op 0.94
mainnet_e81889 - altair processRandaoMixesReset 6.7730 us/op 5.1950 us/op 1.30
mainnet_e81889 - altair processHistoricalRootsUpdate 849.00 ns/op 1.3070 us/op 0.65
mainnet_e81889 - altair processParticipationFlagUpdates 2.5820 us/op 4.1830 us/op 0.62
mainnet_e81889 - altair processSyncCommitteeUpdates 975.00 ns/op 1.2070 us/op 0.81
mainnet_e81889 - altair afterProcessEpoch 82.005 ms/op 160.60 ms/op 0.51
capella processEpoch - mainnet_e217614 1.7648 s/op 3.8050 s/op 0.46
mainnet_e217614 - capella beforeProcessEpoch 403.95 ms/op 910.47 ms/op 0.44
mainnet_e217614 - capella processJustificationAndFinalization 11.426 us/op 40.597 us/op 0.28
mainnet_e217614 - capella processInactivityUpdates 18.219 ms/op 40.853 ms/op 0.45
mainnet_e217614 - capella processRewardsAndPenalties 472.15 ms/op 1.0767 s/op 0.44
mainnet_e217614 - capella processRegistryUpdates 17.679 us/op 40.287 us/op 0.44
mainnet_e217614 - capella processSlashings 804.00 ns/op 1.2280 us/op 0.65
mainnet_e217614 - capella processEth1DataReset 561.00 ns/op 979.00 ns/op 0.57
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.5199 ms/op 7.4595 ms/op 0.47
mainnet_e217614 - capella processSlashingsReset 2.5810 us/op 8.3230 us/op 0.31
mainnet_e217614 - capella processRandaoMixesReset 3.8330 us/op 13.754 us/op 0.28
mainnet_e217614 - capella processHistoricalRootsUpdate 1.0030 us/op 1.6280 us/op 0.62
mainnet_e217614 - capella processParticipationFlagUpdates 1.9650 us/op 6.1610 us/op 0.32
mainnet_e217614 - capella afterProcessEpoch 233.84 ms/op 643.05 ms/op 0.36
phase0 processEpoch - mainnet_e58758 371.80 ms/op 601.25 ms/op 0.62
mainnet_e58758 - phase0 beforeProcessEpoch 99.746 ms/op 179.14 ms/op 0.56
mainnet_e58758 - phase0 processJustificationAndFinalization 15.327 us/op 23.191 us/op 0.66
mainnet_e58758 - phase0 processRewardsAndPenalties 62.380 ms/op 89.238 ms/op 0.70
mainnet_e58758 - phase0 processRegistryUpdates 10.659 us/op 22.553 us/op 0.47
mainnet_e58758 - phase0 processSlashings 696.00 ns/op 1.2240 us/op 0.57
mainnet_e58758 - phase0 processEth1DataReset 658.00 ns/op 1.2140 us/op 0.54
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 937.59 us/op 2.0296 ms/op 0.46
mainnet_e58758 - phase0 processSlashingsReset 4.6570 us/op 6.3360 us/op 0.74
mainnet_e58758 - phase0 processRandaoMixesReset 4.3550 us/op 15.414 us/op 0.28
mainnet_e58758 - phase0 processHistoricalRootsUpdate 816.00 ns/op 2.0920 us/op 0.39
mainnet_e58758 - phase0 processParticipationRecordUpdates 6.7360 us/op 7.6050 us/op 0.89
mainnet_e58758 - phase0 afterProcessEpoch 72.517 ms/op 171.18 ms/op 0.42
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0275 ms/op 2.2512 ms/op 0.46
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.0961 ms/op 3.7693 ms/op 0.29
altair processInactivityUpdates - 250000 normalcase 27.334 ms/op 47.850 ms/op 0.57
altair processInactivityUpdates - 250000 worstcase 23.182 ms/op 57.509 ms/op 0.40
phase0 processRegistryUpdates - 250000 normalcase 12.400 us/op 19.589 us/op 0.63
phase0 processRegistryUpdates - 250000 badcase_full_deposits 445.12 us/op 815.68 us/op 0.55
phase0 processRegistryUpdates - 250000 worstcase 0.5 134.17 ms/op 350.19 ms/op 0.38
altair processRewardsAndPenalties - 250000 normalcase 70.290 ms/op 128.19 ms/op 0.55
altair processRewardsAndPenalties - 250000 worstcase 62.587 ms/op 141.87 ms/op 0.44
phase0 getAttestationDeltas - 250000 normalcase 7.0463 ms/op 19.168 ms/op 0.37
phase0 getAttestationDeltas - 250000 worstcase 7.9423 ms/op 18.380 ms/op 0.43
phase0 processSlashings - 250000 worstcase 87.715 us/op 151.19 us/op 0.58
altair processSyncCommitteeUpdates - 250000 107.45 ms/op 360.98 ms/op 0.30
BeaconState.hashTreeRoot - No change 614.00 ns/op 1.0510 us/op 0.58
BeaconState.hashTreeRoot - 1 full validator 171.72 us/op 272.93 us/op 0.63
BeaconState.hashTreeRoot - 32 full validator 1.8487 ms/op 2.6845 ms/op 0.69
BeaconState.hashTreeRoot - 512 full validator 14.632 ms/op 26.730 ms/op 0.55
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 150.67 us/op 277.42 us/op 0.54
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.1501 ms/op 3.9716 ms/op 0.54
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 18.389 ms/op 55.088 ms/op 0.33
BeaconState.hashTreeRoot - 1 balances 102.86 us/op 272.57 us/op 0.38
BeaconState.hashTreeRoot - 32 balances 781.72 us/op 2.0705 ms/op 0.38
BeaconState.hashTreeRoot - 512 balances 9.5709 ms/op 15.385 ms/op 0.62
BeaconState.hashTreeRoot - 250000 balances 210.19 ms/op 300.66 ms/op 0.70
aggregationBits - 2048 els - zipIndexesInBitList 19.415 us/op 51.637 us/op 0.38
byteArrayEquals 32 67.239 ns/op 129.92 ns/op 0.52
Buffer.compare 32 37.877 ns/op 97.843 ns/op 0.39
byteArrayEquals 1024 1.7875 us/op 2.5461 us/op 0.70
Buffer.compare 1024 46.630 ns/op 107.50 ns/op 0.43
byteArrayEquals 16384 28.388 us/op 43.840 us/op 0.65
Buffer.compare 16384 301.11 ns/op 434.59 ns/op 0.69
byteArrayEquals 123687377 209.34 ms/op 333.89 ms/op 0.63
Buffer.compare 123687377 5.7159 ms/op 9.0505 ms/op 0.63
byteArrayEquals 32 - diff last byte 58.547 ns/op 137.83 ns/op 0.42
Buffer.compare 32 - diff last byte 33.774 ns/op 104.17 ns/op 0.32
byteArrayEquals 1024 - diff last byte 1.7988 us/op 3.2307 us/op 0.56
Buffer.compare 1024 - diff last byte 48.078 ns/op 99.016 ns/op 0.49
byteArrayEquals 16384 - diff last byte 28.225 us/op 40.872 us/op 0.69
Buffer.compare 16384 - diff last byte 201.78 ns/op 290.68 ns/op 0.69
byteArrayEquals 123687377 - diff last byte 203.66 ms/op 329.83 ms/op 0.62
Buffer.compare 123687377 - diff last byte 4.4603 ms/op 8.8040 ms/op 0.51
byteArrayEquals 32 - random bytes 4.4660 ns/op 7.0580 ns/op 0.63
Buffer.compare 32 - random bytes 36.142 ns/op 80.322 ns/op 0.45
byteArrayEquals 1024 - random bytes 4.3390 ns/op 8.0610 ns/op 0.54
Buffer.compare 1024 - random bytes 33.733 ns/op 99.319 ns/op 0.34
byteArrayEquals 16384 - random bytes 4.3020 ns/op 8.6240 ns/op 0.50
Buffer.compare 16384 - random bytes 34.674 ns/op 101.94 ns/op 0.34
byteArrayEquals 123687377 - random bytes 7.9400 ns/op 12.120 ns/op 0.66
Buffer.compare 123687377 - random bytes 38.220 ns/op 103.32 ns/op 0.37
regular array get 100000 times 39.578 us/op 72.116 us/op 0.55
wrappedArray get 100000 times 40.376 us/op 57.728 us/op 0.70
arrayWithProxy get 100000 times 11.275 ms/op 18.671 ms/op 0.60
ssz.Root.equals 56.097 ns/op 81.232 ns/op 0.69
byteArrayEquals 56.994 ns/op 89.944 ns/op 0.63
Buffer.compare 10.408 ns/op 18.338 ns/op 0.57
shuffle list - 16384 els 6.2379 ms/op 10.981 ms/op 0.57
shuffle list - 250000 els 88.867 ms/op 178.82 ms/op 0.50
processSlot - 1 slots 11.666 us/op 24.851 us/op 0.47
processSlot - 32 slots 2.2092 ms/op 5.3111 ms/op 0.42
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 51.130 ms/op 73.044 ms/op 0.70
getCommitteeAssignments - req 1 vs - 250000 vc 2.3239 ms/op 4.2270 ms/op 0.55
getCommitteeAssignments - req 100 vs - 250000 vc 3.4373 ms/op 5.2073 ms/op 0.66
getCommitteeAssignments - req 1000 vs - 250000 vc 3.7180 ms/op 6.3540 ms/op 0.59
findModifiedValidators - 10000 modified validators 305.94 ms/op 499.09 ms/op 0.61
findModifiedValidators - 1000 modified validators 165.65 ms/op 269.74 ms/op 0.61
findModifiedValidators - 100 modified validators 161.24 ms/op 231.46 ms/op 0.70
findModifiedValidators - 10 modified validators 142.45 ms/op 252.66 ms/op 0.56
findModifiedValidators - 1 modified validators 144.41 ms/op 278.10 ms/op 0.52
findModifiedValidators - no difference 165.45 ms/op 271.88 ms/op 0.61
compare ViewDUs 3.9729 s/op 5.7213 s/op 0.69
compare each validator Uint8Array 1.5888 s/op 2.1696 s/op 0.73
compare ViewDU to Uint8Array 824.52 ms/op 1.5887 s/op 0.52
migrate state 1000000 validators, 24 modified, 0 new 679.34 ms/op 984.51 ms/op 0.69
migrate state 1000000 validators, 1700 modified, 1000 new 1.0561 s/op 1.4267 s/op 0.74
migrate state 1000000 validators, 3400 modified, 2000 new 1.0212 s/op 1.4867 s/op 0.69
migrate state 1500000 validators, 24 modified, 0 new 698.68 ms/op 924.52 ms/op 0.76
migrate state 1500000 validators, 1700 modified, 1000 new 967.45 ms/op 1.2331 s/op 0.78
migrate state 1500000 validators, 3400 modified, 2000 new 1.1893 s/op 1.6931 s/op 0.70
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.7300 ns/op 5.8800 ns/op 0.80
state getBlockRootAtSlot - 250000 vs - 7PWei 966.46 ns/op 980.59 ns/op 0.99
computeProposers - vc 250000 7.0853 ms/op 14.842 ms/op 0.48
computeEpochShuffling - vc 250000 83.420 ms/op 248.15 ms/op 0.34
getNextSyncCommittee - vc 250000 118.27 ms/op 275.81 ms/op 0.43
computeSigningRoot for AttestationData 29.553 us/op 50.665 us/op 0.58
hash AttestationData serialized data then Buffer.toString(base64) 1.2294 us/op 3.6679 us/op 0.34
toHexString serialized data 795.05 ns/op 2.2941 us/op 0.35
Buffer.toString(base64) 157.69 ns/op 414.19 ns/op 0.38

by benchmarkbot/action

Copy link
Member

@nflaig nflaig left a comment

Choose a reason for hiding this comment

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

LGTM

@wemeetagain wemeetagain merged commit eb84b49 into unstable Apr 17, 2024
20 checks passed
@wemeetagain wemeetagain deleted the tuyen/track_leaked_connections_grafana branch April 17, 2024 14:01
@wemeetagain
Copy link
Member

🎉 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