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: add peer discovery metrics to grafana #5827

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Aug 1, 2023

Motivation

To know more about PeerDiscovery status

Description

  • Add new metrics introduced in feat: only dial subnet peers if needed #5782 to "Peer requests to discovery" panel of networking dashboard
  • Also add "Peer Manager" prefix to the other dashboards with similar name to avoid confusion, these metrics come from "PeerManager"
Screenshot 2023-08-01 at 14 01 35

},
"editorMode": "code",
"exemplar": false,
"expr": "(\n sum(rate(\n lodestar_network_worker_wire_events_on_worker_thread_latency_sum[$rate_interval]\n )) \n +\n sum(rate(\n lodestar_network_worker_wire_events_on_main_thread_latency_sum[$rate_interval]\n ))\n)\n/\n(\n sum(rate(\n lodestar_network_worker_wire_events_on_worker_thread_latency_count[$rate_interval]\n ))\n +\n sum(rate(\n lodestar_network_worker_wire_events_on_main_thread_latency_count[$rate_interval]\n ))\n)",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@matthewkeil I found this metric from #5800, do you want it to be part of this PR too?

Copy link
Member

Choose a reason for hiding this comment

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

I leave that up to you @tuyennhv. I changed them around a few times so they may be a bit different from the last time you checked. Feel free to either pull the updated ones into this PR or I can merge the additions from yours into mine. Whichever works for me. I leave the decision with you. @wemeetagain mentioned this to me as well so just let me know how to help because I think he wants to get these into 1.10

Here is a screenshot of the updated version I made. I would go with your overall average because my calculation seems incorrect, but I kinda prefer the layout I settled on with one panel broken out by eventName and the other panel with just the three averages on it. Average, average of workerToMain and mainToWorker because they seem to be pretty different in the two directions and the individual metrics are also quite distinct in value for each event type so there will be a lot of opportunity to tune the individual events but they are hard to glance at to see if the averages is changing.

Screenshot 2023-08-01 at 6 37 40 AM

Screenshot 2023-08-01 at 6 37 47 AM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok then let's also add your panels to grafana, you can change them later @matthewkeil

@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 826460d Previous: fef5c9c Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 552.49 us/op 715.27 us/op 0.77
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 76.019 us/op 74.015 us/op 1.03
BLS verify - blst-native 1.2548 ms/op 1.2081 ms/op 1.04
BLS verifyMultipleSignatures 3 - blst-native 2.5428 ms/op 2.4525 ms/op 1.04
BLS verifyMultipleSignatures 8 - blst-native 5.4824 ms/op 5.2769 ms/op 1.04
BLS verifyMultipleSignatures 32 - blst-native 19.798 ms/op 19.066 ms/op 1.04
BLS aggregatePubkeys 32 - blst-native 26.116 us/op 25.207 us/op 1.04
BLS aggregatePubkeys 128 - blst-native 103.32 us/op 99.091 us/op 1.04
getAttestationsForBlock 61.764 ms/op 49.390 ms/op 1.25
isKnown best case - 1 super set check 427.00 ns/op 260.00 ns/op 1.64
isKnown normal case - 2 super set checks 420.00 ns/op 259.00 ns/op 1.62
isKnown worse case - 16 super set checks 397.00 ns/op 263.00 ns/op 1.51
CheckpointStateCache - add get delete 5.5460 us/op 4.5260 us/op 1.23
validate api signedAggregateAndProof - struct 2.8899 ms/op 2.6169 ms/op 1.10
validate gossip signedAggregateAndProof - struct 2.9207 ms/op 2.6187 ms/op 1.12
validate api attestation - struct 1.3812 ms/op 1.2531 ms/op 1.10
validate gossip attestation - struct 1.3775 ms/op 1.2698 ms/op 1.08
pickEth1Vote - no votes 1.3818 ms/op 1.0887 ms/op 1.27
pickEth1Vote - max votes 11.288 ms/op 10.024 ms/op 1.13
pickEth1Vote - Eth1Data hashTreeRoot value x2048 9.5877 ms/op 8.5839 ms/op 1.12
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 17.048 ms/op 17.939 ms/op 0.95
pickEth1Vote - Eth1Data fastSerialize value x2048 694.50 us/op 573.42 us/op 1.21
pickEth1Vote - Eth1Data fastSerialize tree x2048 7.9193 ms/op 5.9540 ms/op 1.33
bytes32 toHexString 713.00 ns/op 495.00 ns/op 1.44
bytes32 Buffer.toString(hex) 331.00 ns/op 303.00 ns/op 1.09
bytes32 Buffer.toString(hex) from Uint8Array 530.00 ns/op 427.00 ns/op 1.24
bytes32 Buffer.toString(hex) + 0x 334.00 ns/op 296.00 ns/op 1.13
Object access 1 prop 0.20500 ns/op 0.16300 ns/op 1.26
Map access 1 prop 0.15800 ns/op 0.15700 ns/op 1.01
Object get x1000 8.2700 ns/op 7.5300 ns/op 1.10
Map get x1000 0.72200 ns/op 0.58200 ns/op 1.24
Object set x1000 65.616 ns/op 48.797 ns/op 1.34
Map set x1000 50.399 ns/op 39.030 ns/op 1.29
Return object 10000 times 0.26320 ns/op 0.23690 ns/op 1.11
Throw Error 10000 times 4.0176 us/op 3.8588 us/op 1.04
fastMsgIdFn sha256 / 200 bytes 3.3800 us/op 3.2510 us/op 1.04
fastMsgIdFn h32 xxhash / 200 bytes 316.00 ns/op 287.00 ns/op 1.10
fastMsgIdFn h64 xxhash / 200 bytes 390.00 ns/op 339.00 ns/op 1.15
fastMsgIdFn sha256 / 1000 bytes 12.414 us/op 11.327 us/op 1.10
fastMsgIdFn h32 xxhash / 1000 bytes 470.00 ns/op 428.00 ns/op 1.10
fastMsgIdFn h64 xxhash / 1000 bytes 564.00 ns/op 406.00 ns/op 1.39
fastMsgIdFn sha256 / 10000 bytes 106.26 us/op 102.36 us/op 1.04
fastMsgIdFn h32 xxhash / 10000 bytes 2.0070 us/op 1.9120 us/op 1.05
fastMsgIdFn h64 xxhash / 10000 bytes 1.3910 us/op 1.3020 us/op 1.07
enrSubnets - fastDeserialize 64 bits 1.6510 us/op 1.2410 us/op 1.33
enrSubnets - ssz BitVector 64 bits 555.00 ns/op 425.00 ns/op 1.31
enrSubnets - fastDeserialize 4 bits 236.00 ns/op 180.00 ns/op 1.31
enrSubnets - ssz BitVector 4 bits 557.00 ns/op 424.00 ns/op 1.31
prioritizePeers score -10:0 att 32-0.1 sync 2-0 117.06 us/op 100.17 us/op 1.17
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 148.60 us/op 117.94 us/op 1.26
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 198.15 us/op 153.97 us/op 1.29
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 348.77 us/op 274.29 us/op 1.27
prioritizePeers score 0:0 att 64-1 sync 4-1 395.00 us/op 321.27 us/op 1.23
array of 16000 items push then shift 1.6733 us/op 1.5389 us/op 1.09
LinkedList of 16000 items push then shift 9.4510 ns/op 8.6430 ns/op 1.09
array of 16000 items push then pop 58.086 ns/op 59.833 ns/op 0.97
LinkedList of 16000 items push then pop 9.1680 ns/op 8.7190 ns/op 1.05
array of 24000 items push then shift 2.5087 us/op 2.5833 us/op 0.97
LinkedList of 24000 items push then shift 9.2910 ns/op 8.8800 ns/op 1.05
array of 24000 items push then pop 120.53 ns/op 116.82 ns/op 1.03
LinkedList of 24000 items push then pop 9.2100 ns/op 8.5610 ns/op 1.08
intersect bitArray bitLen 8 7.0110 ns/op 6.7390 ns/op 1.04
intersect array and set length 8 64.502 ns/op 56.900 ns/op 1.13
intersect bitArray bitLen 128 32.566 ns/op 31.182 ns/op 1.04
intersect array and set length 128 905.60 ns/op 747.10 ns/op 1.21
bitArray.getTrueBitIndexes() bitLen 128 1.6610 us/op 1.3740 us/op 1.21
bitArray.getTrueBitIndexes() bitLen 248 2.9210 us/op 2.3980 us/op 1.22
bitArray.getTrueBitIndexes() bitLen 512 6.0450 us/op 4.9020 us/op 1.23
Buffer.concat 32 items 1.1400 us/op 1.0830 us/op 1.05
Uint8Array.set 32 items 2.0870 us/op 2.2230 us/op 0.94
transfer serialized Status (84 B) 2.0460 us/op 2.0090 us/op 1.02
copy serialized Status (84 B) 1.6390 us/op 1.6490 us/op 0.99
transfer serialized SignedVoluntaryExit (112 B) 2.0180 us/op 2.1380 us/op 0.94
copy serialized SignedVoluntaryExit (112 B) 1.6990 us/op 1.7750 us/op 0.96
transfer serialized ProposerSlashing (416 B) 2.2470 us/op 2.7530 us/op 0.82
copy serialized ProposerSlashing (416 B) 2.1060 us/op 2.3740 us/op 0.89
transfer serialized Attestation (485 B) 2.2590 us/op 2.5860 us/op 0.87
copy serialized Attestation (485 B) 2.1640 us/op 2.9290 us/op 0.74
transfer serialized AttesterSlashing (33232 B) 2.2910 us/op 2.7500 us/op 0.83
copy serialized AttesterSlashing (33232 B) 6.3820 us/op 5.5840 us/op 1.14
transfer serialized Small SignedBeaconBlock (128000 B) 2.5560 us/op 2.8780 us/op 0.89
copy serialized Small SignedBeaconBlock (128000 B) 16.054 us/op 11.921 us/op 1.35
transfer serialized Avg SignedBeaconBlock (200000 B) 3.2780 us/op 3.0780 us/op 1.06
copy serialized Avg SignedBeaconBlock (200000 B) 24.146 us/op 17.052 us/op 1.42
transfer serialized BlobsSidecar (524380 B) 3.7620 us/op 2.9540 us/op 1.27
copy serialized BlobsSidecar (524380 B) 92.358 us/op 78.741 us/op 1.17
transfer serialized Big SignedBeaconBlock (1000000 B) 4.1360 us/op 2.9930 us/op 1.38
copy serialized Big SignedBeaconBlock (1000000 B) 176.00 us/op 152.30 us/op 1.16
pass gossip attestations to forkchoice per slot 2.2166 ms/op 2.1142 ms/op 1.05
forkChoice updateHead vc 100000 bc 64 eq 0 2.4510 ms/op 2.2301 ms/op 1.10
forkChoice updateHead vc 600000 bc 64 eq 0 14.859 ms/op 13.747 ms/op 1.08
forkChoice updateHead vc 1000000 bc 64 eq 0 20.281 ms/op 22.567 ms/op 0.90
forkChoice updateHead vc 600000 bc 320 eq 0 18.457 ms/op 17.576 ms/op 1.05
forkChoice updateHead vc 600000 bc 1200 eq 0 93.395 ms/op 84.080 ms/op 1.11
forkChoice updateHead vc 600000 bc 64 eq 1000 22.889 ms/op 22.513 ms/op 1.02
forkChoice updateHead vc 600000 bc 64 eq 10000 24.293 ms/op 24.683 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 300000 31.717 ms/op 29.585 ms/op 1.07
computeDeltas 4.4067 ms/op 3.0333 ms/op 1.45
computeProposerBoostScoreFromBalances 409.73 us/op 387.53 us/op 1.06
altair processAttestation - 250000 vs - 7PWei normalcase 1.9921 ms/op 2.1956 ms/op 0.91
altair processAttestation - 250000 vs - 7PWei worstcase 3.0344 ms/op 3.2832 ms/op 0.92
altair processAttestation - setStatus - 1/6 committees join 227.18 us/op 224.65 us/op 1.01
altair processAttestation - setStatus - 1/3 committees join 408.00 us/op 434.00 us/op 0.94
altair processAttestation - setStatus - 1/2 committees join 574.92 us/op 627.13 us/op 0.92
altair processAttestation - setStatus - 2/3 committees join 568.53 us/op 746.75 us/op 0.76
altair processAttestation - setStatus - 4/5 committees join 885.07 us/op 1.0428 ms/op 0.85
altair processAttestation - setStatus - 100% committees join 1.0576 ms/op 1.1594 ms/op 0.91
altair processBlock - 250000 vs - 7PWei normalcase 8.8663 ms/op 9.3046 ms/op 0.95
altair processBlock - 250000 vs - 7PWei normalcase hashState 16.431 ms/op 15.848 ms/op 1.04
altair processBlock - 250000 vs - 7PWei worstcase 37.579 ms/op 39.369 ms/op 0.95
altair processBlock - 250000 vs - 7PWei worstcase hashState 60.405 ms/op 60.596 ms/op 1.00
phase0 processBlock - 250000 vs - 7PWei normalcase 2.0419 ms/op 1.9590 ms/op 1.04
phase0 processBlock - 250000 vs - 7PWei worstcase 28.222 ms/op 28.183 ms/op 1.00
altair processEth1Data - 250000 vs - 7PWei normalcase 518.66 us/op 478.26 us/op 1.08
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 14.326 us/op 12.914 us/op 1.11
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 64.426 us/op 36.545 us/op 1.76
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 26.171 us/op 16.580 us/op 1.58
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 13.369 us/op 13.790 us/op 0.97
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 141.03 us/op 159.16 us/op 0.89
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1317 ms/op 1.3835 ms/op 0.82
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.5390 ms/op 1.9218 ms/op 0.80
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.4594 ms/op 1.8984 ms/op 0.77
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.1760 ms/op 3.3106 ms/op 0.96
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.4676 ms/op 3.1082 ms/op 0.79
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.2167 ms/op 5.3042 ms/op 0.98
Tree 40 250000 create 331.96 ms/op 311.57 ms/op 1.07
Tree 40 250000 get(125000) 201.21 ns/op 194.98 ns/op 1.03
Tree 40 250000 set(125000) 899.07 ns/op 884.00 ns/op 1.02
Tree 40 250000 toArray() 19.104 ms/op 17.926 ms/op 1.07
Tree 40 250000 iterate all - toArray() + loop 18.577 ms/op 18.254 ms/op 1.02
Tree 40 250000 iterate all - get(i) 67.954 ms/op 67.388 ms/op 1.01
MutableVector 250000 create 10.244 ms/op 11.383 ms/op 0.90
MutableVector 250000 get(125000) 6.6460 ns/op 6.5640 ns/op 1.01
MutableVector 250000 set(125000) 261.94 ns/op 264.92 ns/op 0.99
MutableVector 250000 toArray() 2.7837 ms/op 3.0409 ms/op 0.92
MutableVector 250000 iterate all - toArray() + loop 2.8486 ms/op 3.0221 ms/op 0.94
MutableVector 250000 iterate all - get(i) 1.5145 ms/op 1.5503 ms/op 0.98
Array 250000 create 2.5177 ms/op 2.9133 ms/op 0.86
Array 250000 clone - spread 1.2037 ms/op 1.1838 ms/op 1.02
Array 250000 get(125000) 0.59100 ns/op 0.60600 ns/op 0.98
Array 250000 set(125000) 0.68500 ns/op 0.67600 ns/op 1.01
Array 250000 iterate all - loop 111.30 us/op 83.911 us/op 1.33
effectiveBalanceIncrements clone Uint8Array 300000 30.689 us/op 26.352 us/op 1.16
effectiveBalanceIncrements clone MutableVector 300000 355.00 ns/op 376.00 ns/op 0.94
effectiveBalanceIncrements rw all Uint8Array 300000 179.16 us/op 177.43 us/op 1.01
effectiveBalanceIncrements rw all MutableVector 300000 85.531 ms/op 83.247 ms/op 1.03
phase0 afterProcessEpoch - 250000 vs - 7PWei 115.89 ms/op 118.78 ms/op 0.98
phase0 beforeProcessEpoch - 250000 vs - 7PWei 33.889 ms/op 39.827 ms/op 0.85
altair processEpoch - mainnet_e81889 359.93 ms/op 344.75 ms/op 1.04
mainnet_e81889 - altair beforeProcessEpoch 84.892 ms/op 64.640 ms/op 1.31
mainnet_e81889 - altair processJustificationAndFinalization 29.961 us/op 15.135 us/op 1.98
mainnet_e81889 - altair processInactivityUpdates 8.6718 ms/op 5.3140 ms/op 1.63
mainnet_e81889 - altair processRewardsAndPenalties 69.039 ms/op 77.261 ms/op 0.89
mainnet_e81889 - altair processRegistryUpdates 3.0270 us/op 2.2360 us/op 1.35
mainnet_e81889 - altair processSlashings 638.00 ns/op 506.00 ns/op 1.26
mainnet_e81889 - altair processEth1DataReset 667.00 ns/op 562.00 ns/op 1.19
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2726 ms/op 1.5166 ms/op 0.84
mainnet_e81889 - altair processSlashingsReset 3.9750 us/op 2.4020 us/op 1.65
mainnet_e81889 - altair processRandaoMixesReset 6.9180 us/op 4.4720 us/op 1.55
mainnet_e81889 - altair processHistoricalRootsUpdate 944.00 ns/op 674.00 ns/op 1.40
mainnet_e81889 - altair processParticipationFlagUpdates 3.2130 us/op 1.9450 us/op 1.65
mainnet_e81889 - altair processSyncCommitteeUpdates 855.00 ns/op 726.00 ns/op 1.18
mainnet_e81889 - altair afterProcessEpoch 128.48 ms/op 126.14 ms/op 1.02
capella processEpoch - mainnet_e217614 996.04 ms/op 1.0805 s/op 0.92
mainnet_e217614 - capella beforeProcessEpoch 234.69 ms/op 240.15 ms/op 0.98
mainnet_e217614 - capella processJustificationAndFinalization 13.010 us/op 19.776 us/op 0.66
mainnet_e217614 - capella processInactivityUpdates 15.107 ms/op 15.575 ms/op 0.97
mainnet_e217614 - capella processRewardsAndPenalties 275.11 ms/op 333.85 ms/op 0.82
mainnet_e217614 - capella processRegistryUpdates 18.962 us/op 24.634 us/op 0.77
mainnet_e217614 - capella processSlashings 503.00 ns/op 539.00 ns/op 0.93
mainnet_e217614 - capella processEth1DataReset 473.00 ns/op 735.00 ns/op 0.64
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.0285 ms/op 4.1743 ms/op 0.97
mainnet_e217614 - capella processSlashingsReset 2.0970 us/op 2.4310 us/op 0.86
mainnet_e217614 - capella processRandaoMixesReset 4.5910 us/op 5.6910 us/op 0.81
mainnet_e217614 - capella processHistoricalRootsUpdate 726.00 ns/op 669.00 ns/op 1.09
mainnet_e217614 - capella processParticipationFlagUpdates 2.7330 us/op 1.7940 us/op 1.52
mainnet_e217614 - capella afterProcessEpoch 303.49 ms/op 299.31 ms/op 1.01
phase0 processEpoch - mainnet_e58758 327.13 ms/op 394.63 ms/op 0.83
mainnet_e58758 - phase0 beforeProcessEpoch 115.90 ms/op 157.92 ms/op 0.73
mainnet_e58758 - phase0 processJustificationAndFinalization 15.882 us/op 21.354 us/op 0.74
mainnet_e58758 - phase0 processRewardsAndPenalties 52.326 ms/op 73.761 ms/op 0.71
mainnet_e58758 - phase0 processRegistryUpdates 9.5000 us/op 11.811 us/op 0.80
mainnet_e58758 - phase0 processSlashings 573.00 ns/op 1.0640 us/op 0.54
mainnet_e58758 - phase0 processEth1DataReset 477.00 ns/op 574.00 ns/op 0.83
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 970.71 us/op 1.0093 ms/op 0.96
mainnet_e58758 - phase0 processSlashingsReset 2.1280 us/op 2.1440 us/op 0.99
mainnet_e58758 - phase0 processRandaoMixesReset 3.5650 us/op 3.4570 us/op 1.03
mainnet_e58758 - phase0 processHistoricalRootsUpdate 406.00 ns/op 455.00 ns/op 0.89
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.5990 us/op 5.8680 us/op 0.78
mainnet_e58758 - phase0 afterProcessEpoch 99.669 ms/op 93.579 ms/op 1.07
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.3051 ms/op 1.2458 ms/op 1.05
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4495 ms/op 1.4680 ms/op 0.99
altair processInactivityUpdates - 250000 normalcase 24.401 ms/op 26.521 ms/op 0.92
altair processInactivityUpdates - 250000 worstcase 23.635 ms/op 22.990 ms/op 1.03
phase0 processRegistryUpdates - 250000 normalcase 8.8820 us/op 10.078 us/op 0.88
phase0 processRegistryUpdates - 250000 badcase_full_deposits 335.25 us/op 499.36 us/op 0.67
phase0 processRegistryUpdates - 250000 worstcase 0.5 131.25 ms/op 138.22 ms/op 0.95
altair processRewardsAndPenalties - 250000 normalcase 72.465 ms/op 82.412 ms/op 0.88
altair processRewardsAndPenalties - 250000 worstcase 70.130 ms/op 81.491 ms/op 0.86
phase0 getAttestationDeltas - 250000 normalcase 7.8988 ms/op 7.9260 ms/op 1.00
phase0 getAttestationDeltas - 250000 worstcase 8.2196 ms/op 7.8286 ms/op 1.05
phase0 processSlashings - 250000 worstcase 2.4100 ms/op 2.3721 ms/op 1.02
altair processSyncCommitteeUpdates - 250000 156.63 ms/op 157.03 ms/op 1.00
BeaconState.hashTreeRoot - No change 282.00 ns/op 289.00 ns/op 0.98
BeaconState.hashTreeRoot - 1 full validator 49.972 us/op 49.681 us/op 1.01
BeaconState.hashTreeRoot - 32 full validator 484.25 us/op 488.14 us/op 0.99
BeaconState.hashTreeRoot - 512 full validator 5.1069 ms/op 5.3277 ms/op 0.96
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 60.650 us/op 63.486 us/op 0.96
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 834.61 us/op 856.79 us/op 0.97
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 10.297 ms/op 10.589 ms/op 0.97
BeaconState.hashTreeRoot - 1 balances 46.839 us/op 47.855 us/op 0.98
BeaconState.hashTreeRoot - 32 balances 424.84 us/op 424.18 us/op 1.00
BeaconState.hashTreeRoot - 512 balances 3.9115 ms/op 3.8896 ms/op 1.01
BeaconState.hashTreeRoot - 250000 balances 72.585 ms/op 80.260 ms/op 0.90
aggregationBits - 2048 els - zipIndexesInBitList 14.847 us/op 14.879 us/op 1.00
regular array get 100000 times 43.861 us/op 44.302 us/op 0.99
wrappedArray get 100000 times 32.920 us/op 43.741 us/op 0.75
arrayWithProxy get 100000 times 14.274 ms/op 14.584 ms/op 0.98
ssz.Root.equals 213.00 ns/op 234.00 ns/op 0.91
byteArrayEquals 225.00 ns/op 216.00 ns/op 1.04
shuffle list - 16384 els 6.9593 ms/op 6.9219 ms/op 1.01
shuffle list - 250000 els 102.20 ms/op 102.88 ms/op 0.99
processSlot - 1 slots 7.7910 us/op 7.7810 us/op 1.00
processSlot - 32 slots 1.3076 ms/op 1.3077 ms/op 1.00
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 55.673 ms/op 58.689 ms/op 0.95
getCommitteeAssignments - req 1 vs - 250000 vc 2.4895 ms/op 2.5317 ms/op 0.98
getCommitteeAssignments - req 100 vs - 250000 vc 3.6845 ms/op 3.7501 ms/op 0.98
getCommitteeAssignments - req 1000 vs - 250000 vc 4.0579 ms/op 4.1030 ms/op 0.99
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.6500 ns/op 5.5300 ns/op 0.84
state getBlockRootAtSlot - 250000 vs - 7PWei 538.67 ns/op 1.0136 us/op 0.53
computeProposers - vc 250000 8.8304 ms/op 9.3492 ms/op 0.94
computeEpochShuffling - vc 250000 103.85 ms/op 107.82 ms/op 0.96
getNextSyncCommittee - vc 250000 148.65 ms/op 154.23 ms/op 0.96
computeSigningRoot for AttestationData 12.811 us/op 12.848 us/op 1.00
hash AttestationData serialized data then Buffer.toString(base64) 2.3281 us/op 2.3958 us/op 0.97
toHexString serialized data 1.0644 us/op 1.1056 us/op 0.96
Buffer.toString(base64) 240.71 ns/op 242.94 ns/op 0.99

by benchmarkbot/action

@twoeths
Copy link
Contributor Author

twoeths commented Aug 2, 2023

this also include new panels from @matthewkeil , ready for review

@twoeths twoeths marked this pull request as ready for review August 2, 2023 01:12
@twoeths twoeths requested a review from a team as a code owner August 2, 2023 01:13
Copy link
Member

@matthewkeil matthewkeil left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@twoeths twoeths merged commit 9034831 into unstable Aug 4, 2023
11 checks passed
@twoeths twoeths deleted the tuyen/add_peer_discovery_metrics_to_grafana branch August 4, 2023 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants