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: remove unused gossip block metrics from network core #6120

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Nov 22, 2023

Motivation

Closes #6118

Description

Gossip block metrics are unused in network core and produce duplicate results (see #6118).

Gossip block metrics are used in

@nflaig nflaig requested a review from a team as a code owner November 22, 2023 20:12
Copy link
Contributor

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 4755c37 Previous: fa30bcf Ratio
altair processAttestation - 250000 vs - 7PWei worstcase 2.0863 ms/op 7.1374 ms/op 0.29
altair processAttestation - setStatus - 1/6 committees join 77.760 us/op 330.35 us/op 0.24
altair processAttestation - setStatus - 1/3 committees join 152.00 us/op 663.53 us/op 0.23
Full benchmark results
Benchmark suite Current: 4755c37 Previous: fa30bcf Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 790.10 us/op 1.0221 ms/op 0.77
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 50.308 us/op 123.14 us/op 0.41
BLS verify - blst-native 1.1121 ms/op 1.3424 ms/op 0.83
BLS verifyMultipleSignatures 3 - blst-native 2.3864 ms/op 2.7949 ms/op 0.85
BLS verifyMultipleSignatures 8 - blst-native 5.2739 ms/op 6.1534 ms/op 0.86
BLS verifyMultipleSignatures 32 - blst-native 19.678 ms/op 22.878 ms/op 0.86
BLS verifyMultipleSignatures 64 - blst-native 38.755 ms/op 45.190 ms/op 0.86
BLS verifyMultipleSignatures 128 - blst-native 75.960 ms/op 89.268 ms/op 0.85
BLS deserializing 10000 signatures 798.82 ms/op 955.31 ms/op 0.84
BLS deserializing 100000 signatures 8.4808 s/op 9.3136 s/op 0.91
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.8331 ms/op 1.4220 ms/op 1.29
BLS verifyMultipleSignatures - same message - 8 - blst-native 2.0667 ms/op 1.5130 ms/op 1.37
BLS verifyMultipleSignatures - same message - 32 - blst-native 3.1248 ms/op 2.3369 ms/op 1.34
BLS verifyMultipleSignatures - same message - 64 - blst-native 4.2690 ms/op 4.1216 ms/op 1.04
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.6553 ms/op 5.4655 ms/op 1.03
BLS aggregatePubkeys 32 - blst-native 24.113 us/op 24.856 us/op 0.97
BLS aggregatePubkeys 128 - blst-native 93.123 us/op 97.166 us/op 0.96
getAttestationsForBlock 36.363 ms/op 42.616 ms/op 0.85
isKnown best case - 1 super set check 274.00 ns/op 315.00 ns/op 0.87
isKnown normal case - 2 super set checks 236.00 ns/op 296.00 ns/op 0.80
isKnown worse case - 16 super set checks 230.00 ns/op 322.00 ns/op 0.71
CheckpointStateCache - add get delete 4.3710 us/op 5.3720 us/op 0.81
validate api signedAggregateAndProof - struct 3.1578 ms/op 2.8373 ms/op 1.11
validate gossip signedAggregateAndProof - struct 3.4733 ms/op 2.7998 ms/op 1.24
validate gossip attestation - vc 640000 1.5743 ms/op 1.3923 ms/op 1.13
batch validate gossip attestation - vc 640000 - chunk 32 148.81 us/op 167.77 us/op 0.89
batch validate gossip attestation - vc 640000 - chunk 64 119.90 us/op 146.74 us/op 0.82
batch validate gossip attestation - vc 640000 - chunk 128 114.20 us/op 139.90 us/op 0.82
batch validate gossip attestation - vc 640000 - chunk 256 111.05 us/op 127.43 us/op 0.87
pickEth1Vote - no votes 901.63 us/op 1.3260 ms/op 0.68
pickEth1Vote - max votes 9.0685 ms/op 8.6750 ms/op 1.05
pickEth1Vote - Eth1Data hashTreeRoot value x2048 14.522 ms/op 14.293 ms/op 1.02
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 25.303 ms/op 22.048 ms/op 1.15
pickEth1Vote - Eth1Data fastSerialize value x2048 397.82 us/op 575.28 us/op 0.69
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.9126 ms/op 4.3687 ms/op 1.35
bytes32 toHexString 336.00 ns/op 485.00 ns/op 0.69
bytes32 Buffer.toString(hex) 202.00 ns/op 288.00 ns/op 0.70
bytes32 Buffer.toString(hex) from Uint8Array 311.00 ns/op 437.00 ns/op 0.71
bytes32 Buffer.toString(hex) + 0x 195.00 ns/op 298.00 ns/op 0.65
Object access 1 prop 0.10600 ns/op 0.16800 ns/op 0.63
Map access 1 prop 0.097000 ns/op 0.15000 ns/op 0.65
Object get x1000 5.1890 ns/op 7.3830 ns/op 0.70
Map get x1000 0.48900 ns/op 0.62200 ns/op 0.79
Object set x1000 28.897 ns/op 51.419 ns/op 0.56
Map set x1000 18.438 ns/op 40.256 ns/op 0.46
Return object 10000 times 0.21960 ns/op 0.25170 ns/op 0.87
Throw Error 10000 times 2.7254 us/op 3.9639 us/op 0.69
fastMsgIdFn sha256 / 200 bytes 1.8450 us/op 3.4280 us/op 0.54
fastMsgIdFn h32 xxhash / 200 bytes 202.00 ns/op 316.00 ns/op 0.64
fastMsgIdFn h64 xxhash / 200 bytes 235.00 ns/op 363.00 ns/op 0.65
fastMsgIdFn sha256 / 1000 bytes 5.9100 us/op 11.565 us/op 0.51
fastMsgIdFn h32 xxhash / 1000 bytes 353.00 ns/op 436.00 ns/op 0.81
fastMsgIdFn h64 xxhash / 1000 bytes 321.00 ns/op 437.00 ns/op 0.73
fastMsgIdFn sha256 / 10000 bytes 50.772 us/op 106.65 us/op 0.48
fastMsgIdFn h32 xxhash / 10000 bytes 1.7290 us/op 2.0010 us/op 0.86
fastMsgIdFn h64 xxhash / 10000 bytes 1.1560 us/op 1.4320 us/op 0.81
send data - 1000 256B messages 10.957 ms/op 20.881 ms/op 0.52
send data - 1000 512B messages 14.570 ms/op 28.638 ms/op 0.51
send data - 1000 1024B messages 24.917 ms/op 43.715 ms/op 0.57
send data - 1000 1200B messages 26.457 ms/op 38.507 ms/op 0.69
send data - 1000 2048B messages 31.971 ms/op 42.074 ms/op 0.76
send data - 1000 4096B messages 34.325 ms/op 42.726 ms/op 0.80
send data - 1000 16384B messages 72.532 ms/op 114.34 ms/op 0.63
send data - 1000 65536B messages 387.63 ms/op 438.16 ms/op 0.88
enrSubnets - fastDeserialize 64 bits 1.0020 us/op 1.3090 us/op 0.77
enrSubnets - ssz BitVector 64 bits 456.00 ns/op 416.00 ns/op 1.10
enrSubnets - fastDeserialize 4 bits 163.00 ns/op 170.00 ns/op 0.96
enrSubnets - ssz BitVector 4 bits 477.00 ns/op 434.00 ns/op 1.10
prioritizePeers score -10:0 att 32-0.1 sync 2-0 102.40 us/op 101.21 us/op 1.01
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 126.53 us/op 125.04 us/op 1.01
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 158.02 us/op 167.83 us/op 0.94
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 237.43 us/op 288.19 us/op 0.82
prioritizePeers score 0:0 att 64-1 sync 4-1 238.76 us/op 342.03 us/op 0.70
array of 16000 items push then shift 1.3819 us/op 1.6450 us/op 0.84
LinkedList of 16000 items push then shift 5.9880 ns/op 8.9460 ns/op 0.67
array of 16000 items push then pop 96.178 ns/op 87.688 ns/op 1.10
LinkedList of 16000 items push then pop 6.2240 ns/op 8.6580 ns/op 0.72
array of 24000 items push then shift 2.0146 us/op 2.5664 us/op 0.78
LinkedList of 24000 items push then shift 5.8000 ns/op 8.9830 ns/op 0.65
array of 24000 items push then pop 121.62 ns/op 134.51 ns/op 0.90
LinkedList of 24000 items push then pop 6.6800 ns/op 8.8130 ns/op 0.76
intersect bitArray bitLen 8 5.2590 ns/op 6.9280 ns/op 0.76
intersect array and set length 8 49.312 ns/op 61.058 ns/op 0.81
intersect bitArray bitLen 128 25.333 ns/op 34.224 ns/op 0.74
intersect array and set length 128 709.35 ns/op 970.59 ns/op 0.73
bitArray.getTrueBitIndexes() bitLen 128 1.4020 us/op 1.6450 us/op 0.85
bitArray.getTrueBitIndexes() bitLen 248 2.5500 us/op 2.6840 us/op 0.95
bitArray.getTrueBitIndexes() bitLen 512 5.3920 us/op 5.0150 us/op 1.08
Buffer.concat 32 items 814.00 ns/op 953.00 ns/op 0.85
Uint8Array.set 32 items 2.3480 us/op 2.0310 us/op 1.16
Set add up to 64 items then delete first 1.8020 us/op 4.4219 us/op 0.41
OrderedSet add up to 64 items then delete first 2.6979 us/op 6.0943 us/op 0.44
Set add up to 64 items then delete last 2.2787 us/op 4.7728 us/op 0.48
OrderedSet add up to 64 items then delete last 3.2630 us/op 5.8744 us/op 0.56
Set add up to 64 items then delete middle 2.5205 us/op 4.8558 us/op 0.52
OrderedSet add up to 64 items then delete middle 5.2309 us/op 8.1830 us/op 0.64
Set add up to 128 items then delete first 5.0312 us/op 9.8596 us/op 0.51
OrderedSet add up to 128 items then delete first 8.5612 us/op 12.587 us/op 0.68
Set add up to 128 items then delete last 5.2165 us/op 9.7485 us/op 0.54
OrderedSet add up to 128 items then delete last 7.4667 us/op 13.091 us/op 0.57
Set add up to 128 items then delete middle 5.1138 us/op 10.400 us/op 0.49
OrderedSet add up to 128 items then delete middle 13.057 us/op 17.822 us/op 0.73
Set add up to 256 items then delete first 9.0758 us/op 19.486 us/op 0.47
OrderedSet add up to 256 items then delete first 16.077 us/op 25.901 us/op 0.62
Set add up to 256 items then delete last 9.8079 us/op 19.626 us/op 0.50
OrderedSet add up to 256 items then delete last 16.151 us/op 26.865 us/op 0.60
Set add up to 256 items then delete middle 10.027 us/op 20.529 us/op 0.49
OrderedSet add up to 256 items then delete middle 35.688 us/op 51.421 us/op 0.69
transfer serialized Status (84 B) 1.4940 us/op 1.8120 us/op 0.82
copy serialized Status (84 B) 1.3560 us/op 1.5480 us/op 0.88
transfer serialized SignedVoluntaryExit (112 B) 1.6860 us/op 1.9460 us/op 0.87
copy serialized SignedVoluntaryExit (112 B) 1.5320 us/op 1.5570 us/op 0.98
transfer serialized ProposerSlashing (416 B) 2.9580 us/op 2.3380 us/op 1.27
copy serialized ProposerSlashing (416 B) 2.8610 us/op 2.0620 us/op 1.39
transfer serialized Attestation (485 B) 2.9740 us/op 2.2020 us/op 1.35
copy serialized Attestation (485 B) 3.2670 us/op 2.2580 us/op 1.45
transfer serialized AttesterSlashing (33232 B) 3.3490 us/op 2.3320 us/op 1.44
copy serialized AttesterSlashing (33232 B) 9.2690 us/op 7.4840 us/op 1.24
transfer serialized Small SignedBeaconBlock (128000 B) 3.0330 us/op 2.7220 us/op 1.11
copy serialized Small SignedBeaconBlock (128000 B) 29.315 us/op 20.313 us/op 1.44
transfer serialized Avg SignedBeaconBlock (200000 B) 3.1030 us/op 3.2970 us/op 0.94
copy serialized Avg SignedBeaconBlock (200000 B) 42.124 us/op 28.762 us/op 1.46
transfer serialized BlobsSidecar (524380 B) 3.1000 us/op 3.8730 us/op 0.80
copy serialized BlobsSidecar (524380 B) 93.421 us/op 109.22 us/op 0.86
transfer serialized Big SignedBeaconBlock (1000000 B) 3.9510 us/op 4.3390 us/op 0.91
copy serialized Big SignedBeaconBlock (1000000 B) 164.32 us/op 175.43 us/op 0.94
pass gossip attestations to forkchoice per slot 2.8038 ms/op 4.4950 ms/op 0.62
forkChoice updateHead vc 100000 bc 64 eq 0 578.04 us/op 694.79 us/op 0.83
forkChoice updateHead vc 600000 bc 64 eq 0 2.6846 ms/op 5.1568 ms/op 0.52
forkChoice updateHead vc 1000000 bc 64 eq 0 4.6343 ms/op 7.2222 ms/op 0.64
forkChoice updateHead vc 600000 bc 320 eq 0 2.9741 ms/op 4.3090 ms/op 0.69
forkChoice updateHead vc 600000 bc 1200 eq 0 3.1058 ms/op 4.4621 ms/op 0.70
forkChoice updateHead vc 600000 bc 7200 eq 0 3.8531 ms/op 5.6238 ms/op 0.69
forkChoice updateHead vc 600000 bc 64 eq 1000 10.125 ms/op 11.688 ms/op 0.87
forkChoice updateHead vc 600000 bc 64 eq 10000 10.104 ms/op 12.519 ms/op 0.81
forkChoice updateHead vc 600000 bc 64 eq 300000 12.213 ms/op 16.274 ms/op 0.75
computeDeltas 500000 validators 300 proto nodes 3.2120 ms/op 6.4767 ms/op 0.50
computeDeltas 500000 validators 1200 proto nodes 3.2986 ms/op 6.5292 ms/op 0.51
computeDeltas 500000 validators 7200 proto nodes 3.2404 ms/op 6.3254 ms/op 0.51
computeDeltas 750000 validators 300 proto nodes 4.7014 ms/op 10.136 ms/op 0.46
computeDeltas 750000 validators 1200 proto nodes 4.5725 ms/op 9.8984 ms/op 0.46
computeDeltas 750000 validators 7200 proto nodes 4.5363 ms/op 10.087 ms/op 0.45
computeDeltas 1400000 validators 300 proto nodes 8.7956 ms/op 19.360 ms/op 0.45
computeDeltas 1400000 validators 1200 proto nodes 8.8250 ms/op 19.894 ms/op 0.44
computeDeltas 1400000 validators 7200 proto nodes 9.0396 ms/op 20.067 ms/op 0.45
computeDeltas 2100000 validators 300 proto nodes 14.004 ms/op 31.969 ms/op 0.44
computeDeltas 2100000 validators 1200 proto nodes 14.107 ms/op 33.623 ms/op 0.42
computeDeltas 2100000 validators 7200 proto nodes 14.359 ms/op 35.427 ms/op 0.41
computeProposerBoostScoreFromBalances 500000 validators 2.7572 ms/op 3.6346 ms/op 0.76
computeProposerBoostScoreFromBalances 750000 validators 2.7269 ms/op 3.6754 ms/op 0.74
computeProposerBoostScoreFromBalances 1400000 validators 2.7795 ms/op 3.4217 ms/op 0.81
computeProposerBoostScoreFromBalances 2100000 validators 2.7703 ms/op 3.4613 ms/op 0.80
altair processAttestation - 250000 vs - 7PWei normalcase 1.3435 ms/op 2.3066 ms/op 0.58
altair processAttestation - 250000 vs - 7PWei worstcase 2.0863 ms/op 7.1374 ms/op 0.29
altair processAttestation - setStatus - 1/6 committees join 77.760 us/op 330.35 us/op 0.24
altair processAttestation - setStatus - 1/3 committees join 152.00 us/op 663.53 us/op 0.23
altair processAttestation - setStatus - 1/2 committees join 218.37 us/op 618.34 us/op 0.35
altair processAttestation - setStatus - 2/3 committees join 284.75 us/op 725.74 us/op 0.39
altair processAttestation - setStatus - 4/5 committees join 389.22 us/op 990.79 us/op 0.39
altair processAttestation - setStatus - 100% committees join 469.35 us/op 1.0123 ms/op 0.46
altair processBlock - 250000 vs - 7PWei normalcase 7.0099 ms/op 10.274 ms/op 0.68
altair processBlock - 250000 vs - 7PWei normalcase hashState 22.425 ms/op 35.865 ms/op 0.63
altair processBlock - 250000 vs - 7PWei worstcase 35.097 ms/op 43.228 ms/op 0.81
altair processBlock - 250000 vs - 7PWei worstcase hashState 73.171 ms/op 85.551 ms/op 0.86
phase0 processBlock - 250000 vs - 7PWei normalcase 2.4587 ms/op 2.2669 ms/op 1.08
phase0 processBlock - 250000 vs - 7PWei worstcase 26.927 ms/op 30.185 ms/op 0.89
altair processEth1Data - 250000 vs - 7PWei normalcase 362.91 us/op 696.35 us/op 0.52
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 9.4110 us/op 20.921 us/op 0.45
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 51.758 us/op 70.809 us/op 0.73
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 14.538 us/op 30.307 us/op 0.48
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 9.7830 us/op 20.776 us/op 0.47
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 167.49 us/op 247.88 us/op 0.68
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 633.70 us/op 1.8919 ms/op 0.33
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.3915 ms/op 2.4015 ms/op 0.58
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.4267 ms/op 2.0195 ms/op 0.71
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.1152 ms/op 4.2838 ms/op 0.49
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.7289 ms/op 3.2648 ms/op 0.53
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.7151 ms/op 6.5361 ms/op 0.57
Tree 40 250000 create 255.48 ms/op 631.29 ms/op 0.40
Tree 40 250000 get(125000) 111.91 ns/op 258.78 ns/op 0.43
Tree 40 250000 set(125000) 747.31 ns/op 1.9120 us/op 0.39
Tree 40 250000 toArray() 20.377 ms/op 28.383 ms/op 0.72
Tree 40 250000 iterate all - toArray() + loop 19.883 ms/op 24.735 ms/op 0.80
Tree 40 250000 iterate all - get(i) 47.881 ms/op 80.893 ms/op 0.59
MutableVector 250000 create 13.338 ms/op 12.845 ms/op 1.04
MutableVector 250000 get(125000) 5.6750 ns/op 8.1650 ns/op 0.70
MutableVector 250000 set(125000) 206.74 ns/op 541.56 ns/op 0.38
MutableVector 250000 toArray() 2.6338 ms/op 4.8533 ms/op 0.54
MutableVector 250000 iterate all - toArray() + loop 2.6844 ms/op 4.8025 ms/op 0.56
MutableVector 250000 iterate all - get(i) 1.3559 ms/op 1.7620 ms/op 0.77
Array 250000 create 2.3868 ms/op 4.4067 ms/op 0.54
Array 250000 clone - spread 1.0453 ms/op 1.6691 ms/op 0.63
Array 250000 get(125000) 0.49800 ns/op 0.84500 ns/op 0.59
Array 250000 set(125000) 0.56400 ns/op 0.88300 ns/op 0.64
Array 250000 iterate all - loop 77.940 us/op 90.697 us/op 0.86
effectiveBalanceIncrements clone Uint8Array 300000 12.697 us/op 47.973 us/op 0.26
effectiveBalanceIncrements clone MutableVector 300000 283.00 ns/op 308.00 ns/op 0.92
effectiveBalanceIncrements rw all Uint8Array 300000 167.49 us/op 192.86 us/op 0.87
effectiveBalanceIncrements rw all MutableVector 300000 60.842 ms/op 98.531 ms/op 0.62
phase0 afterProcessEpoch - 250000 vs - 7PWei 74.095 ms/op 135.29 ms/op 0.55
phase0 beforeProcessEpoch - 250000 vs - 7PWei 41.170 ms/op 56.801 ms/op 0.72
altair processEpoch - mainnet_e81889 409.32 ms/op 550.21 ms/op 0.74
mainnet_e81889 - altair beforeProcessEpoch 60.549 ms/op 93.141 ms/op 0.65
mainnet_e81889 - altair processJustificationAndFinalization 9.3750 us/op 24.284 us/op 0.39
mainnet_e81889 - altair processInactivityUpdates 3.9059 ms/op 8.2881 ms/op 0.47
mainnet_e81889 - altair processRewardsAndPenalties 78.705 ms/op 89.353 ms/op 0.88
mainnet_e81889 - altair processRegistryUpdates 1.3340 us/op 4.7110 us/op 0.28
mainnet_e81889 - altair processSlashings 550.00 ns/op 1.1910 us/op 0.46
mainnet_e81889 - altair processEth1DataReset 780.00 ns/op 962.00 ns/op 0.81
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.6214 ms/op 2.0217 ms/op 0.80
mainnet_e81889 - altair processSlashingsReset 5.8440 us/op 5.7050 us/op 1.02
mainnet_e81889 - altair processRandaoMixesReset 9.8490 us/op 8.4520 us/op 1.17
mainnet_e81889 - altair processHistoricalRootsUpdate 804.00 ns/op 1.5780 us/op 0.51
mainnet_e81889 - altair processParticipationFlagUpdates 2.8200 us/op 4.6330 us/op 0.61
mainnet_e81889 - altair processSyncCommitteeUpdates 1.3770 us/op 1.0460 us/op 1.32
mainnet_e81889 - altair afterProcessEpoch 84.635 ms/op 139.36 ms/op 0.61
capella processEpoch - mainnet_e217614 2.0029 s/op 2.5556 s/op 0.78
mainnet_e217614 - capella beforeProcessEpoch 370.65 ms/op 556.09 ms/op 0.67
mainnet_e217614 - capella processJustificationAndFinalization 13.200 us/op 25.144 us/op 0.52
mainnet_e217614 - capella processInactivityUpdates 20.121 ms/op 23.953 ms/op 0.84
mainnet_e217614 - capella processRewardsAndPenalties 457.43 ms/op 562.92 ms/op 0.81
mainnet_e217614 - capella processRegistryUpdates 29.637 us/op 31.251 us/op 0.95
mainnet_e217614 - capella processSlashings 615.00 ns/op 868.00 ns/op 0.71
mainnet_e217614 - capella processEth1DataReset 716.00 ns/op 632.00 ns/op 1.13
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.2438 ms/op 4.1302 ms/op 0.79
mainnet_e217614 - capella processSlashingsReset 2.6120 us/op 2.2780 us/op 1.15
mainnet_e217614 - capella processRandaoMixesReset 5.4090 us/op 4.7590 us/op 1.14
mainnet_e217614 - capella processHistoricalRootsUpdate 607.00 ns/op 550.00 ns/op 1.10
mainnet_e217614 - capella processParticipationFlagUpdates 1.1950 us/op 1.6810 us/op 0.71
mainnet_e217614 - capella afterProcessEpoch 219.99 ms/op 330.34 ms/op 0.67
phase0 processEpoch - mainnet_e58758 337.78 ms/op 439.98 ms/op 0.77
mainnet_e58758 - phase0 beforeProcessEpoch 115.01 ms/op 115.02 ms/op 1.00
mainnet_e58758 - phase0 processJustificationAndFinalization 12.544 us/op 16.773 us/op 0.75
mainnet_e58758 - phase0 processRewardsAndPenalties 60.146 ms/op 60.945 ms/op 0.99
mainnet_e58758 - phase0 processRegistryUpdates 10.489 us/op 13.912 us/op 0.75
mainnet_e58758 - phase0 processSlashings 375.00 ns/op 661.00 ns/op 0.57
mainnet_e58758 - phase0 processEth1DataReset 354.00 ns/op 784.00 ns/op 0.45
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 765.02 us/op 1.0614 ms/op 0.72
mainnet_e58758 - phase0 processSlashingsReset 2.2950 us/op 3.5770 us/op 0.64
mainnet_e58758 - phase0 processRandaoMixesReset 4.3800 us/op 5.3390 us/op 0.82
mainnet_e58758 - phase0 processHistoricalRootsUpdate 376.00 ns/op 541.00 ns/op 0.70
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.7340 us/op 5.6000 us/op 0.85
mainnet_e58758 - phase0 afterProcessEpoch 66.256 ms/op 112.53 ms/op 0.59
phase0 processEffectiveBalanceUpdates - 250000 normalcase 958.58 us/op 1.7399 ms/op 0.55
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.5491 ms/op 1.9294 ms/op 0.80
altair processInactivityUpdates - 250000 normalcase 19.403 ms/op 23.580 ms/op 0.82
altair processInactivityUpdates - 250000 worstcase 22.857 ms/op 24.315 ms/op 0.94
phase0 processRegistryUpdates - 250000 normalcase 7.1540 us/op 15.586 us/op 0.46
phase0 processRegistryUpdates - 250000 badcase_full_deposits 342.12 us/op 474.60 us/op 0.72
phase0 processRegistryUpdates - 250000 worstcase 0.5 126.02 ms/op 145.64 ms/op 0.87
altair processRewardsAndPenalties - 250000 normalcase 65.304 ms/op 81.418 ms/op 0.80
altair processRewardsAndPenalties - 250000 worstcase 61.428 ms/op 73.598 ms/op 0.83
phase0 getAttestationDeltas - 250000 normalcase 5.7030 ms/op 13.436 ms/op 0.42
phase0 getAttestationDeltas - 250000 worstcase 5.8628 ms/op 13.577 ms/op 0.43
phase0 processSlashings - 250000 worstcase 1.4432 ms/op 2.6160 ms/op 0.55
altair processSyncCommitteeUpdates - 250000 118.61 ms/op 186.28 ms/op 0.64
BeaconState.hashTreeRoot - No change 194.00 ns/op 360.00 ns/op 0.54
BeaconState.hashTreeRoot - 1 full validator 159.64 us/op 168.29 us/op 0.95
BeaconState.hashTreeRoot - 32 full validator 1.5484 ms/op 1.9134 ms/op 0.81
BeaconState.hashTreeRoot - 512 full validator 17.239 ms/op 22.000 ms/op 0.78
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 193.24 us/op 222.80 us/op 0.87
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.0962 ms/op 3.0557 ms/op 0.69
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 27.343 ms/op 38.071 ms/op 0.72
BeaconState.hashTreeRoot - 1 balances 145.26 us/op 177.43 us/op 0.82
BeaconState.hashTreeRoot - 32 balances 1.2099 ms/op 1.6978 ms/op 0.71
BeaconState.hashTreeRoot - 512 balances 11.905 ms/op 13.604 ms/op 0.88
BeaconState.hashTreeRoot - 250000 balances 206.02 ms/op 226.27 ms/op 0.91
aggregationBits - 2048 els - zipIndexesInBitList 13.325 us/op 21.656 us/op 0.62
byteArrayEquals 32 47.363 ns/op 55.158 ns/op 0.86
Buffer.compare 32 35.751 ns/op 61.685 ns/op 0.58
byteArrayEquals 1024 1.2335 us/op 1.5777 us/op 0.78
Buffer.compare 1024 42.875 ns/op 74.722 ns/op 0.57
byteArrayEquals 16384 19.684 us/op 24.475 us/op 0.80
Buffer.compare 16384 206.54 ns/op 306.44 ns/op 0.67
byteArrayEquals 123687377 153.81 ms/op 198.82 ms/op 0.77
Buffer.compare 123687377 4.1897 ms/op 10.189 ms/op 0.41
byteArrayEquals 32 - diff last byte 47.567 ns/op 63.758 ns/op 0.75
Buffer.compare 32 - diff last byte 43.407 ns/op 60.776 ns/op 0.71
byteArrayEquals 1024 - diff last byte 1.2682 us/op 1.6792 us/op 0.76
Buffer.compare 1024 - diff last byte 50.267 ns/op 80.809 ns/op 0.62
byteArrayEquals 16384 - diff last byte 20.134 us/op 27.651 us/op 0.73
Buffer.compare 16384 - diff last byte 231.08 ns/op 331.89 ns/op 0.70
byteArrayEquals 123687377 - diff last byte 149.24 ms/op 195.67 ms/op 0.76
Buffer.compare 123687377 - diff last byte 5.9593 ms/op 10.756 ms/op 0.55
byteArrayEquals 32 - random bytes 5.0080 ns/op 7.7960 ns/op 0.64
Buffer.compare 32 - random bytes 40.720 ns/op 69.628 ns/op 0.58
byteArrayEquals 1024 - random bytes 4.7650 ns/op 7.4430 ns/op 0.64
Buffer.compare 1024 - random bytes 36.241 ns/op 64.388 ns/op 0.56
byteArrayEquals 16384 - random bytes 4.6490 ns/op 7.4410 ns/op 0.62
Buffer.compare 16384 - random bytes 38.568 ns/op 67.552 ns/op 0.57
byteArrayEquals 123687377 - random bytes 7.3700 ns/op 9.7900 ns/op 0.75
Buffer.compare 123687377 - random bytes 40.420 ns/op 74.370 ns/op 0.54
regular array get 100000 times 30.908 us/op 41.622 us/op 0.74
wrappedArray get 100000 times 30.949 us/op 36.505 us/op 0.85
arrayWithProxy get 100000 times 11.088 ms/op 16.682 ms/op 0.66
ssz.Root.equals 50.278 ns/op 55.204 ns/op 0.91
byteArrayEquals 43.199 ns/op 54.459 ns/op 0.79
Buffer.compare 9.3200 ns/op 12.455 ns/op 0.75
shuffle list - 16384 els 4.6312 ms/op 7.1844 ms/op 0.64
shuffle list - 250000 els 67.592 ms/op 107.38 ms/op 0.63
processSlot - 1 slots 12.232 us/op 16.436 us/op 0.74
processSlot - 32 slots 2.5576 ms/op 3.0493 ms/op 0.84
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 44.102 ms/op 57.877 ms/op 0.76
getCommitteeAssignments - req 1 vs - 250000 vc 2.2706 ms/op 2.6816 ms/op 0.85
getCommitteeAssignments - req 100 vs - 250000 vc 3.4183 ms/op 3.8871 ms/op 0.88
getCommitteeAssignments - req 1000 vs - 250000 vc 3.6695 ms/op 4.3503 ms/op 0.84
findModifiedValidators - 10000 modified validators 416.01 ms/op 567.36 ms/op 0.73
findModifiedValidators - 1000 modified validators 333.23 ms/op 459.24 ms/op 0.73
findModifiedValidators - 100 modified validators 293.54 ms/op 454.98 ms/op 0.65
findModifiedValidators - 10 modified validators 320.50 ms/op 482.54 ms/op 0.66
findModifiedValidators - 1 modified validators 329.63 ms/op 513.02 ms/op 0.64
findModifiedValidators - no difference 325.84 ms/op 464.47 ms/op 0.70
compare ViewDUs 3.4377 s/op 4.8692 s/op 0.71
compare each validator Uint8Array 1.9207 s/op 2.1703 s/op 0.88
compare ViewDU to Uint8Array 796.34 ms/op 1.6938 s/op 0.47
migrate state 1000000 validators, 24 modified, 0 new 756.30 ms/op 1.1511 s/op 0.66
migrate state 1000000 validators, 1700 modified, 1000 new 973.60 ms/op 1.5756 s/op 0.62
migrate state 1000000 validators, 3400 modified, 2000 new 1.1554 s/op 1.6209 s/op 0.71
migrate state 1500000 validators, 24 modified, 0 new 637.81 ms/op 950.29 ms/op 0.67
migrate state 1500000 validators, 1700 modified, 1000 new 993.49 ms/op 1.5397 s/op 0.65
migrate state 1500000 validators, 3400 modified, 2000 new 1.1905 s/op 1.8725 s/op 0.64
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.0900 ns/op 6.1400 ns/op 0.67
state getBlockRootAtSlot - 250000 vs - 7PWei 759.76 ns/op 775.03 ns/op 0.98
computeProposers - vc 250000 7.4006 ms/op 11.644 ms/op 0.64
computeEpochShuffling - vc 250000 70.022 ms/op 119.75 ms/op 0.58
getNextSyncCommittee - vc 250000 111.59 ms/op 209.49 ms/op 0.53
computeSigningRoot for AttestationData 24.161 us/op 31.636 us/op 0.76
hash AttestationData serialized data then Buffer.toString(base64) 1.3140 us/op 2.5234 us/op 0.52
toHexString serialized data 829.35 ns/op 1.5267 us/op 0.54
Buffer.toString(base64) 170.70 ns/op 292.90 ns/op 0.58

by benchmarkbot/action

@nflaig nflaig merged commit be1cf76 into unstable Nov 23, 2023
15 checks passed
@nflaig nflaig deleted the nflaig/remove-network-gossipblock-metrics branch November 23, 2023 10:09
@wemeetagain
Copy link
Member

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

Duplicate metrics lodestar_gossip_block_elapsed_time_till_received_bucket
3 participants