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: mesh peers - inclusion and churn sum by reason metrics #5918

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Aug 28, 2023

Motivation

Due to ChainSafe/js-libp2p-gossipsub#460, the way to track mesh inclusion/churn are different so the respective Grafana panel shows no data

Description

There is nogossipsub_mesh_peer_inclusion_events_total metric, we use gossipsub_mesh_peer_inclusion_events_${reason}_total metric instead

Screenshot 2023-08-28 at 11 09 53

@github-actions
Copy link
Contributor

github-actions bot commented Aug 28, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 600093d Previous: 1b40a91 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 673.86 us/op 515.66 us/op 1.31
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 77.468 us/op 93.805 us/op 0.83
BLS verify - blst-native 1.3267 ms/op 1.3257 ms/op 1.00
BLS verifyMultipleSignatures 3 - blst-native 2.7750 ms/op 2.7578 ms/op 1.01
BLS verifyMultipleSignatures 8 - blst-native 6.1091 ms/op 6.1807 ms/op 0.99
BLS verifyMultipleSignatures 32 - blst-native 22.356 ms/op 21.969 ms/op 1.02
BLS verifyMultipleSignatures 64 - blst-native 44.127 ms/op 43.829 ms/op 1.01
BLS verifyMultipleSignatures 128 - blst-native 87.394 ms/op 89.210 ms/op 0.98
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.3488 ms/op 1.3441 ms/op 1.00
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.5255 ms/op 1.5066 ms/op 1.01
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.3938 ms/op 2.4798 ms/op 0.97
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.4407 ms/op 3.5145 ms/op 0.98
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.5263 ms/op 6.4446 ms/op 1.01
BLS aggregatePubkeys 32 - blst-native 28.065 us/op 27.015 us/op 1.04
BLS aggregatePubkeys 128 - blst-native 104.56 us/op 100.93 us/op 1.04
getAttestationsForBlock 61.744 ms/op 42.159 ms/op 1.46
isKnown best case - 1 super set check 592.00 ns/op 382.00 ns/op 1.55
isKnown normal case - 2 super set checks 598.00 ns/op 297.00 ns/op 2.01
isKnown worse case - 16 super set checks 601.00 ns/op 282.00 ns/op 2.13
CheckpointStateCache - add get delete 6.8890 us/op 5.2380 us/op 1.32
validate api signedAggregateAndProof - struct 2.8961 ms/op 2.7886 ms/op 1.04
validate gossip signedAggregateAndProof - struct 2.9143 ms/op 2.7907 ms/op 1.04
validate gossip attestation - vc 640000 1.3982 ms/op 1.3942 ms/op 1.00
batch validate gossip attestation - vc 640000 - chunk 32 153.97 us/op 147.73 us/op 1.04
batch validate gossip attestation - vc 640000 - chunk 64 134.49 us/op 130.97 us/op 1.03
batch validate gossip attestation - vc 640000 - chunk 128 123.80 us/op 120.18 us/op 1.03
batch validate gossip attestation - vc 640000 - chunk 256 121.20 us/op 110.98 us/op 1.09
pickEth1Vote - no votes 1.2037 ms/op 1.1676 ms/op 1.03
pickEth1Vote - max votes 12.792 ms/op 9.5470 ms/op 1.34
pickEth1Vote - Eth1Data hashTreeRoot value x2048 9.4421 ms/op 8.8139 ms/op 1.07
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 15.570 ms/op 17.857 ms/op 0.87
pickEth1Vote - Eth1Data fastSerialize value x2048 630.89 us/op 646.49 us/op 0.98
pickEth1Vote - Eth1Data fastSerialize tree x2048 4.9906 ms/op 7.0495 ms/op 0.71
bytes32 toHexString 509.00 ns/op 580.00 ns/op 0.88
bytes32 Buffer.toString(hex) 300.00 ns/op 303.00 ns/op 0.99
bytes32 Buffer.toString(hex) from Uint8Array 466.00 ns/op 475.00 ns/op 0.98
bytes32 Buffer.toString(hex) + 0x 297.00 ns/op 295.00 ns/op 1.01
Object access 1 prop 0.18900 ns/op 0.18800 ns/op 1.01
Map access 1 prop 0.15500 ns/op 0.15600 ns/op 0.99
Object get x1000 7.4360 ns/op 7.9760 ns/op 0.93
Map get x1000 0.70100 ns/op 0.64900 ns/op 1.08
Object set x1000 59.582 ns/op 56.174 ns/op 1.06
Map set x1000 41.875 ns/op 41.980 ns/op 1.00
Return object 10000 times 0.24220 ns/op 0.25440 ns/op 0.95
Throw Error 10000 times 3.9362 us/op 3.8926 us/op 1.01
fastMsgIdFn sha256 / 200 bytes 3.3120 us/op 3.2820 us/op 1.01
fastMsgIdFn h32 xxhash / 200 bytes 299.00 ns/op 284.00 ns/op 1.05
fastMsgIdFn h64 xxhash / 200 bytes 348.00 ns/op 347.00 ns/op 1.00
fastMsgIdFn sha256 / 1000 bytes 11.679 us/op 11.307 us/op 1.03
fastMsgIdFn h32 xxhash / 1000 bytes 433.00 ns/op 411.00 ns/op 1.05
fastMsgIdFn h64 xxhash / 1000 bytes 455.00 ns/op 421.00 ns/op 1.08
fastMsgIdFn sha256 / 10000 bytes 107.01 us/op 103.45 us/op 1.03
fastMsgIdFn h32 xxhash / 10000 bytes 1.9890 us/op 1.9250 us/op 1.03
fastMsgIdFn h64 xxhash / 10000 bytes 1.3450 us/op 1.3200 us/op 1.02
enrSubnets - fastDeserialize 64 bits 1.2550 us/op 1.1840 us/op 1.06
enrSubnets - ssz BitVector 64 bits 449.00 ns/op 417.00 ns/op 1.08
enrSubnets - fastDeserialize 4 bits 166.00 ns/op 172.00 ns/op 0.97
enrSubnets - ssz BitVector 4 bits 447.00 ns/op 410.00 ns/op 1.09
prioritizePeers score -10:0 att 32-0.1 sync 2-0 119.92 us/op 99.993 us/op 1.20
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 146.55 us/op 132.77 us/op 1.10
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 191.39 us/op 181.56 us/op 1.05
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 330.76 us/op 312.34 us/op 1.06
prioritizePeers score 0:0 att 64-1 sync 4-1 389.31 us/op 361.50 us/op 1.08
array of 16000 items push then shift 1.8246 us/op 1.6635 us/op 1.10
LinkedList of 16000 items push then shift 10.623 ns/op 9.0830 ns/op 1.17
array of 16000 items push then pop 104.44 ns/op 79.881 ns/op 1.31
LinkedList of 16000 items push then pop 9.4840 ns/op 8.8510 ns/op 1.07
array of 24000 items push then shift 2.6386 us/op 2.5386 us/op 1.04
LinkedList of 24000 items push then shift 9.6170 ns/op 9.1990 ns/op 1.05
array of 24000 items push then pop 141.85 ns/op 126.54 ns/op 1.12
LinkedList of 24000 items push then pop 9.3450 ns/op 8.6360 ns/op 1.08
intersect bitArray bitLen 8 7.0790 ns/op 6.7450 ns/op 1.05
intersect array and set length 8 70.444 ns/op 56.226 ns/op 1.25
intersect bitArray bitLen 128 33.481 ns/op 31.486 ns/op 1.06
intersect array and set length 128 926.28 ns/op 750.50 ns/op 1.23
bitArray.getTrueBitIndexes() bitLen 128 1.6800 us/op 1.6390 us/op 1.03
bitArray.getTrueBitIndexes() bitLen 248 3.1020 us/op 2.7500 us/op 1.13
bitArray.getTrueBitIndexes() bitLen 512 5.9280 us/op 5.8380 us/op 1.02
Buffer.concat 32 items 1.0410 us/op 1.0390 us/op 1.00
Uint8Array.set 32 items 2.0450 us/op 1.8020 us/op 1.13
Set add up to 64 items then delete first 5.0842 us/op 4.3582 us/op 1.17
OrderedSet add up to 64 items then delete first 6.5451 us/op 5.6215 us/op 1.16
Set add up to 64 items then delete last 5.3181 us/op 4.6990 us/op 1.13
OrderedSet add up to 64 items then delete last 6.9394 us/op 5.7545 us/op 1.21
Set add up to 64 items then delete middle 5.3039 us/op 4.5901 us/op 1.16
OrderedSet add up to 64 items then delete middle 8.3718 us/op 6.9749 us/op 1.20
Set add up to 128 items then delete first 10.493 us/op 9.2244 us/op 1.14
OrderedSet add up to 128 items then delete first 13.043 us/op 12.202 us/op 1.07
Set add up to 128 items then delete last 10.575 us/op 9.0428 us/op 1.17
OrderedSet add up to 128 items then delete last 14.471 us/op 11.515 us/op 1.26
Set add up to 128 items then delete middle 10.590 us/op 8.9567 us/op 1.18
OrderedSet add up to 128 items then delete middle 19.952 us/op 16.913 us/op 1.18
Set add up to 256 items then delete first 20.854 us/op 18.899 us/op 1.10
OrderedSet add up to 256 items then delete first 25.833 us/op 24.872 us/op 1.04
Set add up to 256 items then delete last 21.081 us/op 18.327 us/op 1.15
OrderedSet add up to 256 items then delete last 27.803 us/op 23.234 us/op 1.20
Set add up to 256 items then delete middle 20.916 us/op 18.084 us/op 1.16
OrderedSet add up to 256 items then delete middle 50.285 us/op 45.981 us/op 1.09
transfer serialized Status (84 B) 1.8270 us/op 1.8090 us/op 1.01
copy serialized Status (84 B) 1.6280 us/op 1.5200 us/op 1.07
transfer serialized SignedVoluntaryExit (112 B) 1.9720 us/op 1.9240 us/op 1.02
copy serialized SignedVoluntaryExit (112 B) 1.6840 us/op 1.6820 us/op 1.00
transfer serialized ProposerSlashing (416 B) 2.1730 us/op 2.7480 us/op 0.79
copy serialized ProposerSlashing (416 B) 2.9440 us/op 2.5310 us/op 1.16
transfer serialized Attestation (485 B) 3.3700 us/op 2.7370 us/op 1.23
copy serialized Attestation (485 B) 3.2850 us/op 2.6410 us/op 1.24
transfer serialized AttesterSlashing (33232 B) 2.6640 us/op 2.7650 us/op 0.96
copy serialized AttesterSlashing (33232 B) 6.1420 us/op 5.6970 us/op 1.08
transfer serialized Small SignedBeaconBlock (128000 B) 2.7630 us/op 2.6890 us/op 1.03
copy serialized Small SignedBeaconBlock (128000 B) 14.692 us/op 13.205 us/op 1.11
transfer serialized Avg SignedBeaconBlock (200000 B) 2.9480 us/op 2.9310 us/op 1.01
copy serialized Avg SignedBeaconBlock (200000 B) 21.578 us/op 22.797 us/op 0.95
transfer serialized BlobsSidecar (524380 B) 3.0800 us/op 3.0430 us/op 1.01
copy serialized BlobsSidecar (524380 B) 88.346 us/op 134.35 us/op 0.66
transfer serialized Big SignedBeaconBlock (1000000 B) 3.2170 us/op 4.0250 us/op 0.80
copy serialized Big SignedBeaconBlock (1000000 B) 169.86 us/op 165.65 us/op 1.03
pass gossip attestations to forkchoice per slot 3.9056 ms/op 3.8549 ms/op 1.01
forkChoice updateHead vc 100000 bc 64 eq 0 690.15 us/op 679.51 us/op 1.02
forkChoice updateHead vc 600000 bc 64 eq 0 4.3782 ms/op 5.4238 ms/op 0.81
forkChoice updateHead vc 1000000 bc 64 eq 0 7.7726 ms/op 7.3579 ms/op 1.06
forkChoice updateHead vc 600000 bc 320 eq 0 4.2400 ms/op 4.3145 ms/op 0.98
forkChoice updateHead vc 600000 bc 1200 eq 0 4.4309 ms/op 4.4067 ms/op 1.01
forkChoice updateHead vc 600000 bc 7200 eq 0 5.3102 ms/op 6.0865 ms/op 0.87
forkChoice updateHead vc 600000 bc 64 eq 1000 11.581 ms/op 11.723 ms/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 10000 12.538 ms/op 13.229 ms/op 0.95
forkChoice updateHead vc 600000 bc 64 eq 300000 17.039 ms/op 26.845 ms/op 0.63
computeDeltas 500000 validators 300 proto nodes 6.5981 ms/op 6.5191 ms/op 1.01
computeDeltas 500000 validators 1200 proto nodes 6.5018 ms/op 6.3002 ms/op 1.03
computeDeltas 500000 validators 7200 proto nodes 6.4200 ms/op 6.5688 ms/op 0.98
computeDeltas 750000 validators 300 proto nodes 9.6027 ms/op 9.4788 ms/op 1.01
computeDeltas 750000 validators 1200 proto nodes 9.6890 ms/op 9.4700 ms/op 1.02
computeDeltas 750000 validators 7200 proto nodes 9.8995 ms/op 9.6028 ms/op 1.03
computeDeltas 1400000 validators 300 proto nodes 18.484 ms/op 17.868 ms/op 1.03
computeDeltas 1400000 validators 1200 proto nodes 18.564 ms/op 17.949 ms/op 1.03
computeDeltas 1400000 validators 7200 proto nodes 18.910 ms/op 18.087 ms/op 1.05
computeDeltas 2100000 validators 300 proto nodes 28.529 ms/op 26.788 ms/op 1.06
computeDeltas 2100000 validators 1200 proto nodes 28.546 ms/op 26.425 ms/op 1.08
computeDeltas 2100000 validators 7200 proto nodes 28.869 ms/op 26.364 ms/op 1.10
computeProposerBoostScoreFromBalances 500000 validators 3.3639 ms/op 3.2142 ms/op 1.05
computeProposerBoostScoreFromBalances 750000 validators 3.4829 ms/op 3.2090 ms/op 1.09
computeProposerBoostScoreFromBalances 1400000 validators 3.4333 ms/op 3.2324 ms/op 1.06
computeProposerBoostScoreFromBalances 2100000 validators 3.3833 ms/op 3.2576 ms/op 1.04
altair processAttestation - 250000 vs - 7PWei normalcase 3.3792 ms/op 2.1239 ms/op 1.59
altair processAttestation - 250000 vs - 7PWei worstcase 4.2700 ms/op 3.0429 ms/op 1.40
altair processAttestation - setStatus - 1/6 committees join 200.50 us/op 129.49 us/op 1.55
altair processAttestation - setStatus - 1/3 committees join 359.70 us/op 253.89 us/op 1.42
altair processAttestation - setStatus - 1/2 committees join 487.39 us/op 338.66 us/op 1.44
altair processAttestation - setStatus - 2/3 committees join 618.72 us/op 436.42 us/op 1.42
altair processAttestation - setStatus - 4/5 committees join 849.13 us/op 599.47 us/op 1.42
altair processAttestation - setStatus - 100% committees join 988.34 us/op 732.20 us/op 1.35
altair processBlock - 250000 vs - 7PWei normalcase 11.741 ms/op 10.374 ms/op 1.13
altair processBlock - 250000 vs - 7PWei normalcase hashState 22.976 ms/op 16.829 ms/op 1.37
altair processBlock - 250000 vs - 7PWei worstcase 41.923 ms/op 38.913 ms/op 1.08
altair processBlock - 250000 vs - 7PWei worstcase hashState 68.282 ms/op 65.399 ms/op 1.04
phase0 processBlock - 250000 vs - 7PWei normalcase 2.8789 ms/op 2.9259 ms/op 0.98
phase0 processBlock - 250000 vs - 7PWei worstcase 33.861 ms/op 29.958 ms/op 1.13
altair processEth1Data - 250000 vs - 7PWei normalcase 609.69 us/op 463.41 us/op 1.32
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 15.886 us/op 14.984 us/op 1.06
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 78.174 us/op 87.176 us/op 0.90
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 22.548 us/op 17.604 us/op 1.28
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 16.048 us/op 15.273 us/op 1.05
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 199.16 us/op 213.18 us/op 0.93
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.4824 ms/op 2.3316 ms/op 0.64
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.2576 ms/op 2.8412 ms/op 0.79
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.0201 ms/op 2.7653 ms/op 0.73
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.7158 ms/op 2.9958 ms/op 1.24
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.5134 ms/op 2.3839 ms/op 1.05
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 6.2577 ms/op 4.9784 ms/op 1.26
Tree 40 250000 create 385.11 ms/op 318.76 ms/op 1.21
Tree 40 250000 get(125000) 211.57 ns/op 194.71 ns/op 1.09
Tree 40 250000 set(125000) 1.0952 us/op 908.75 ns/op 1.21
Tree 40 250000 toArray() 22.249 ms/op 17.139 ms/op 1.30
Tree 40 250000 iterate all - toArray() + loop 22.324 ms/op 17.253 ms/op 1.29
Tree 40 250000 iterate all - get(i) 75.724 ms/op 63.572 ms/op 1.19
MutableVector 250000 create 16.220 ms/op 17.949 ms/op 0.90
MutableVector 250000 get(125000) 6.7760 ns/op 6.3870 ns/op 1.06
MutableVector 250000 set(125000) 262.98 ns/op 226.50 ns/op 1.16
MutableVector 250000 toArray() 3.6972 ms/op 3.1712 ms/op 1.17
MutableVector 250000 iterate all - toArray() + loop 3.6083 ms/op 2.6060 ms/op 1.38
MutableVector 250000 iterate all - get(i) 1.5911 ms/op 1.4977 ms/op 1.06
Array 250000 create 3.3163 ms/op 2.7393 ms/op 1.21
Array 250000 clone - spread 1.1218 ms/op 1.0151 ms/op 1.11
Array 250000 get(125000) 0.55200 ns/op 0.49700 ns/op 1.11
Array 250000 set(125000) 0.61700 ns/op 0.57600 ns/op 1.07
Array 250000 iterate all - loop 108.69 us/op 81.962 us/op 1.33
effectiveBalanceIncrements clone Uint8Array 300000 34.280 us/op 23.894 us/op 1.43
effectiveBalanceIncrements clone MutableVector 300000 329.00 ns/op 275.00 ns/op 1.20
effectiveBalanceIncrements rw all Uint8Array 300000 189.31 us/op 177.44 us/op 1.07
effectiveBalanceIncrements rw all MutableVector 300000 92.534 ms/op 75.932 ms/op 1.22
phase0 afterProcessEpoch - 250000 vs - 7PWei 125.46 ms/op 113.19 ms/op 1.11
phase0 beforeProcessEpoch - 250000 vs - 7PWei 51.050 ms/op 41.193 ms/op 1.24
altair processEpoch - mainnet_e81889 347.55 ms/op 354.24 ms/op 0.98
mainnet_e81889 - altair beforeProcessEpoch 75.116 ms/op 64.624 ms/op 1.16
mainnet_e81889 - altair processJustificationAndFinalization 21.346 us/op 26.207 us/op 0.81
mainnet_e81889 - altair processInactivityUpdates 6.8709 ms/op 5.7830 ms/op 1.19
mainnet_e81889 - altair processRewardsAndPenalties 70.760 ms/op 73.790 ms/op 0.96
mainnet_e81889 - altair processRegistryUpdates 3.2100 us/op 3.6200 us/op 0.89
mainnet_e81889 - altair processSlashings 526.00 ns/op 1.0540 us/op 0.50
mainnet_e81889 - altair processEth1DataReset 606.00 ns/op 683.00 ns/op 0.89
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.5758 ms/op 1.5791 ms/op 1.00
mainnet_e81889 - altair processSlashingsReset 3.9260 us/op 5.4320 us/op 0.72
mainnet_e81889 - altair processRandaoMixesReset 11.793 us/op 8.5560 us/op 1.38
mainnet_e81889 - altair processHistoricalRootsUpdate 964.00 ns/op 1.0950 us/op 0.88
mainnet_e81889 - altair processParticipationFlagUpdates 1.9260 us/op 2.6230 us/op 0.73
mainnet_e81889 - altair processSyncCommitteeUpdates 667.00 ns/op 937.00 ns/op 0.71
mainnet_e81889 - altair afterProcessEpoch 140.79 ms/op 130.69 ms/op 1.08
capella processEpoch - mainnet_e217614 1.1335 s/op 1.1139 s/op 1.02
mainnet_e217614 - capella beforeProcessEpoch 260.76 ms/op 265.64 ms/op 0.98
mainnet_e217614 - capella processJustificationAndFinalization 17.510 us/op 15.174 us/op 1.15
mainnet_e217614 - capella processInactivityUpdates 18.450 ms/op 17.206 ms/op 1.07
mainnet_e217614 - capella processRewardsAndPenalties 312.32 ms/op 313.66 ms/op 1.00
mainnet_e217614 - capella processRegistryUpdates 27.197 us/op 22.219 us/op 1.22
mainnet_e217614 - capella processSlashings 727.00 ns/op 530.00 ns/op 1.37
mainnet_e217614 - capella processEth1DataReset 599.00 ns/op 615.00 ns/op 0.97
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.4892 ms/op 4.1776 ms/op 1.07
mainnet_e217614 - capella processSlashingsReset 3.4340 us/op 2.3830 us/op 1.44
mainnet_e217614 - capella processRandaoMixesReset 5.2740 us/op 4.1670 us/op 1.27
mainnet_e217614 - capella processHistoricalRootsUpdate 748.00 ns/op 620.00 ns/op 1.21
mainnet_e217614 - capella processParticipationFlagUpdates 1.9150 us/op 1.6130 us/op 1.19
mainnet_e217614 - capella afterProcessEpoch 308.54 ms/op 308.87 ms/op 1.00
phase0 processEpoch - mainnet_e58758 367.13 ms/op 337.50 ms/op 1.09
mainnet_e58758 - phase0 beforeProcessEpoch 131.00 ms/op 131.25 ms/op 1.00
mainnet_e58758 - phase0 processJustificationAndFinalization 20.756 us/op 15.887 us/op 1.31
mainnet_e58758 - phase0 processRewardsAndPenalties 58.180 ms/op 51.402 ms/op 1.13
mainnet_e58758 - phase0 processRegistryUpdates 14.164 us/op 9.9110 us/op 1.43
mainnet_e58758 - phase0 processSlashings 702.00 ns/op 527.00 ns/op 1.33
mainnet_e58758 - phase0 processEth1DataReset 611.00 ns/op 1.2070 us/op 0.51
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.2844 ms/op 1.2108 ms/op 1.06
mainnet_e58758 - phase0 processSlashingsReset 3.4440 us/op 2.4730 us/op 1.39
mainnet_e58758 - phase0 processRandaoMixesReset 7.1700 us/op 4.6750 us/op 1.53
mainnet_e58758 - phase0 processHistoricalRootsUpdate 651.00 ns/op 511.00 ns/op 1.27
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.3270 us/op 5.9660 us/op 0.89
mainnet_e58758 - phase0 afterProcessEpoch 109.14 ms/op 108.00 ms/op 1.01
phase0 processEffectiveBalanceUpdates - 250000 normalcase 2.2941 ms/op 1.5089 ms/op 1.52
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.8225 ms/op 2.3478 ms/op 0.78
altair processInactivityUpdates - 250000 normalcase 22.410 ms/op 21.269 ms/op 1.05
altair processInactivityUpdates - 250000 worstcase 23.087 ms/op 20.696 ms/op 1.12
phase0 processRegistryUpdates - 250000 normalcase 15.344 us/op 9.0470 us/op 1.70
phase0 processRegistryUpdates - 250000 badcase_full_deposits 441.87 us/op 404.13 us/op 1.09
phase0 processRegistryUpdates - 250000 worstcase 0.5 133.19 ms/op 132.33 ms/op 1.01
altair processRewardsAndPenalties - 250000 normalcase 71.364 ms/op 66.652 ms/op 1.07
altair processRewardsAndPenalties - 250000 worstcase 64.353 ms/op 59.786 ms/op 1.08
phase0 getAttestationDeltas - 250000 normalcase 11.500 ms/op 8.3983 ms/op 1.37
phase0 getAttestationDeltas - 250000 worstcase 11.396 ms/op 8.6012 ms/op 1.32
phase0 processSlashings - 250000 worstcase 2.8658 ms/op 2.3495 ms/op 1.22
altair processSyncCommitteeUpdates - 250000 173.79 ms/op 152.27 ms/op 1.14
BeaconState.hashTreeRoot - No change 282.00 ns/op 287.00 ns/op 0.98
BeaconState.hashTreeRoot - 1 full validator 56.913 us/op 50.504 us/op 1.13
BeaconState.hashTreeRoot - 32 full validator 625.89 us/op 600.25 us/op 1.04
BeaconState.hashTreeRoot - 512 full validator 6.7864 ms/op 6.2784 ms/op 1.08
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 71.770 us/op 69.361 us/op 1.03
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.0196 ms/op 953.56 us/op 1.07
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 13.058 ms/op 13.419 ms/op 0.97
BeaconState.hashTreeRoot - 1 balances 52.798 us/op 53.865 us/op 0.98
BeaconState.hashTreeRoot - 32 balances 503.85 us/op 501.56 us/op 1.00
BeaconState.hashTreeRoot - 512 balances 5.3738 ms/op 4.8260 ms/op 1.11
BeaconState.hashTreeRoot - 250000 balances 88.114 ms/op 79.082 ms/op 1.11
aggregationBits - 2048 els - zipIndexesInBitList 20.835 us/op 17.250 us/op 1.21
regular array get 100000 times 34.965 us/op 41.399 us/op 0.84
wrappedArray get 100000 times 37.192 us/op 33.986 us/op 1.09
arrayWithProxy get 100000 times 14.866 ms/op 14.488 ms/op 1.03
ssz.Root.equals 296.00 ns/op 246.00 ns/op 1.20
byteArrayEquals 301.00 ns/op 252.00 ns/op 1.19
shuffle list - 16384 els 7.6341 ms/op 7.1337 ms/op 1.07
shuffle list - 250000 els 107.27 ms/op 105.41 ms/op 1.02
processSlot - 1 slots 9.7460 us/op 8.4320 us/op 1.16
processSlot - 32 slots 1.4166 ms/op 1.3670 ms/op 1.04
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 52.610 ms/op 51.708 ms/op 1.02
getCommitteeAssignments - req 1 vs - 250000 vc 3.0172 ms/op 2.5396 ms/op 1.19
getCommitteeAssignments - req 100 vs - 250000 vc 4.0189 ms/op 3.8019 ms/op 1.06
getCommitteeAssignments - req 1000 vs - 250000 vc 4.1151 ms/op 4.1152 ms/op 1.00
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.8600 ns/op 5.0600 ns/op 0.96
state getBlockRootAtSlot - 250000 vs - 7PWei 519.29 ns/op 513.93 ns/op 1.01
computeProposers - vc 250000 9.1276 ms/op 8.8413 ms/op 1.03
computeEpochShuffling - vc 250000 107.60 ms/op 105.31 ms/op 1.02
getNextSyncCommittee - vc 250000 150.31 ms/op 157.39 ms/op 0.96
computeSigningRoot for AttestationData 13.172 us/op 13.758 us/op 0.96
hash AttestationData serialized data then Buffer.toString(base64) 2.3789 us/op 2.3649 us/op 1.01
toHexString serialized data 1.0677 us/op 1.1600 us/op 0.92
Buffer.toString(base64) 235.48 ns/op 236.03 ns/op 1.00

by benchmarkbot/action

@twoeths twoeths marked this pull request as ready for review August 29, 2023 02:56
@twoeths twoeths requested a review from a team as a code owner August 29, 2023 02:56
@wemeetagain wemeetagain merged commit a27992d into unstable Aug 29, 2023
10 of 11 checks passed
@wemeetagain wemeetagain deleted the tuyen/fix_inclusion_churn_by_reason_metrics branch August 29, 2023 16:11
@wemeetagain
Copy link
Member

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

3 participants