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 batch attestation metrics to Grafana #5910

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Aug 24, 2023

Motivation

Add batch attestation metrics to Grafana

Description

These metrics are from #5896

Screenshot 2023-08-24 at 14 46 11

@twoeths twoeths requested a review from a team as a code owner August 24, 2023 07:46
@twoeths
Copy link
Contributor Author

twoeths commented Aug 24, 2023

the above was for a 1k goerli node, this is from a test mainnet node

Screenshot 2023-08-24 at 15 11 41

@github-actions
Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: a1334d4 Previous: 945f892 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 825.85 us/op 556.88 us/op 1.48
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 94.173 us/op 90.601 us/op 1.04
BLS verify - blst-native 1.3486 ms/op 1.3938 ms/op 0.97
BLS verifyMultipleSignatures 3 - blst-native 2.8268 ms/op 2.8585 ms/op 0.99
BLS verifyMultipleSignatures 8 - blst-native 6.2103 ms/op 6.4062 ms/op 0.97
BLS verifyMultipleSignatures 32 - blst-native 22.784 ms/op 23.454 ms/op 0.97
BLS verifyMultipleSignatures 64 - blst-native 44.937 ms/op 46.889 ms/op 0.96
BLS verifyMultipleSignatures 128 - blst-native 89.629 ms/op 90.563 ms/op 0.99
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.3806 ms/op 1.3891 ms/op 0.99
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.5824 ms/op 1.6709 ms/op 0.95
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.5462 ms/op 2.3986 ms/op 1.06
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.5001 ms/op 3.5379 ms/op 0.99
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.7404 ms/op 5.8087 ms/op 0.99
BLS aggregatePubkeys 32 - blst-native 26.125 us/op 27.418 us/op 0.95
BLS aggregatePubkeys 128 - blst-native 103.36 us/op 108.24 us/op 0.95
getAttestationsForBlock 41.659 ms/op 37.227 ms/op 1.12
isKnown best case - 1 super set check 307.00 ns/op 427.00 ns/op 0.72
isKnown normal case - 2 super set checks 287.00 ns/op 524.00 ns/op 0.55
isKnown worse case - 16 super set checks 294.00 ns/op 447.00 ns/op 0.66
CheckpointStateCache - add get delete 5.5130 us/op 6.1440 us/op 0.90
validate api signedAggregateAndProof - struct 2.8579 ms/op 2.9226 ms/op 0.98
validate gossip signedAggregateAndProof - struct 2.8512 ms/op 2.9227 ms/op 0.98
validate gossip attestation - vc 640000 1.3844 ms/op 1.3975 ms/op 0.99
batch validate gossip attestation - vc 640000 - chunk 32 153.47 us/op 154.91 us/op 0.99
batch validate gossip attestation - vc 640000 - chunk 64 133.31 us/op 137.07 us/op 0.97
batch validate gossip attestation - vc 640000 - chunk 128 127.22 us/op 131.43 us/op 0.97
batch validate gossip attestation - vc 640000 - chunk 256 120.14 us/op 121.26 us/op 0.99
pickEth1Vote - no votes 1.2191 ms/op 1.2926 ms/op 0.94
pickEth1Vote - max votes 11.180 ms/op 11.140 ms/op 1.00
pickEth1Vote - Eth1Data hashTreeRoot value x2048 9.0554 ms/op 9.7212 ms/op 0.93
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 14.934 ms/op 17.008 ms/op 0.88
pickEth1Vote - Eth1Data fastSerialize value x2048 646.65 us/op 649.67 us/op 1.00
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.3135 ms/op 4.9564 ms/op 1.07
bytes32 toHexString 479.00 ns/op 530.00 ns/op 0.90
bytes32 Buffer.toString(hex) 292.00 ns/op 291.00 ns/op 1.00
bytes32 Buffer.toString(hex) from Uint8Array 450.00 ns/op 501.00 ns/op 0.90
bytes32 Buffer.toString(hex) + 0x 290.00 ns/op 299.00 ns/op 0.97
Object access 1 prop 0.16400 ns/op 0.16800 ns/op 0.98
Map access 1 prop 0.15600 ns/op 0.14900 ns/op 1.05
Object get x1000 7.0860 ns/op 8.1450 ns/op 0.87
Map get x1000 0.62400 ns/op 0.58700 ns/op 1.06
Object set x1000 50.881 ns/op 57.508 ns/op 0.88
Map set x1000 40.920 ns/op 44.336 ns/op 0.92
Return object 10000 times 0.25090 ns/op 0.25150 ns/op 1.00
Throw Error 10000 times 4.0561 us/op 4.0456 us/op 1.00
fastMsgIdFn sha256 / 200 bytes 3.3890 us/op 3.4000 us/op 1.00
fastMsgIdFn h32 xxhash / 200 bytes 279.00 ns/op 312.00 ns/op 0.89
fastMsgIdFn h64 xxhash / 200 bytes 349.00 ns/op 383.00 ns/op 0.91
fastMsgIdFn sha256 / 1000 bytes 11.795 us/op 11.708 us/op 1.01
fastMsgIdFn h32 xxhash / 1000 bytes 429.00 ns/op 458.00 ns/op 0.94
fastMsgIdFn h64 xxhash / 1000 bytes 433.00 ns/op 455.00 ns/op 0.95
fastMsgIdFn sha256 / 10000 bytes 105.99 us/op 107.61 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 1.9720 us/op 2.0070 us/op 0.98
fastMsgIdFn h64 xxhash / 10000 bytes 1.3580 us/op 1.3860 us/op 0.98
enrSubnets - fastDeserialize 64 bits 1.2290 us/op 1.3600 us/op 0.90
enrSubnets - ssz BitVector 64 bits 435.00 ns/op 509.00 ns/op 0.85
enrSubnets - fastDeserialize 4 bits 162.00 ns/op 204.00 ns/op 0.79
enrSubnets - ssz BitVector 4 bits 448.00 ns/op 505.00 ns/op 0.89
prioritizePeers score -10:0 att 32-0.1 sync 2-0 103.15 us/op 116.21 us/op 0.89
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 129.82 us/op 134.05 us/op 0.97
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 168.48 us/op 175.65 us/op 0.96
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 311.24 us/op 319.92 us/op 0.97
prioritizePeers score 0:0 att 64-1 sync 4-1 350.82 us/op 373.64 us/op 0.94
array of 16000 items push then shift 1.6644 us/op 1.6821 us/op 0.99
LinkedList of 16000 items push then shift 9.1070 ns/op 9.6260 ns/op 0.95
array of 16000 items push then pop 90.027 ns/op 97.691 ns/op 0.92
LinkedList of 16000 items push then pop 8.8640 ns/op 9.2470 ns/op 0.96
array of 24000 items push then shift 2.4302 us/op 2.6425 us/op 0.92
LinkedList of 24000 items push then shift 8.9820 ns/op 9.8540 ns/op 0.91
array of 24000 items push then pop 119.14 ns/op 134.52 ns/op 0.89
LinkedList of 24000 items push then pop 8.8830 ns/op 9.2470 ns/op 0.96
intersect bitArray bitLen 8 6.9540 ns/op 7.0320 ns/op 0.99
intersect array and set length 8 58.471 ns/op 77.395 ns/op 0.76
intersect bitArray bitLen 128 31.663 ns/op 32.982 ns/op 0.96
intersect array and set length 128 746.27 ns/op 947.72 ns/op 0.79
bitArray.getTrueBitIndexes() bitLen 128 1.4230 us/op 1.8550 us/op 0.77
bitArray.getTrueBitIndexes() bitLen 248 2.5850 us/op 3.1440 us/op 0.82
bitArray.getTrueBitIndexes() bitLen 512 5.0180 us/op 5.8810 us/op 0.85
Buffer.concat 32 items 972.00 ns/op 1.0830 us/op 0.90
Uint8Array.set 32 items 1.6800 us/op 1.8530 us/op 0.91
Set add up to 64 items then delete first 4.4442 us/op 4.6587 us/op 0.95
OrderedSet add up to 64 items then delete first 5.6999 us/op 5.5648 us/op 1.02
Set add up to 64 items then delete last 4.8557 us/op 4.7629 us/op 1.02
OrderedSet add up to 64 items then delete last 6.3953 us/op 6.0476 us/op 1.06
Set add up to 64 items then delete middle 4.7894 us/op 5.0657 us/op 0.95
OrderedSet add up to 64 items then delete middle 7.3199 us/op 7.4743 us/op 0.98
Set add up to 128 items then delete first 9.3105 us/op 10.415 us/op 0.89
OrderedSet add up to 128 items then delete first 11.638 us/op 13.332 us/op 0.87
Set add up to 128 items then delete last 9.3255 us/op 10.264 us/op 0.91
OrderedSet add up to 128 items then delete last 13.091 us/op 13.302 us/op 0.98
Set add up to 128 items then delete middle 9.1694 us/op 10.158 us/op 0.90
OrderedSet add up to 128 items then delete middle 17.966 us/op 18.991 us/op 0.95
Set add up to 256 items then delete first 18.933 us/op 21.497 us/op 0.88
OrderedSet add up to 256 items then delete first 27.058 us/op 28.766 us/op 0.94
Set add up to 256 items then delete last 20.484 us/op 20.147 us/op 1.02
OrderedSet add up to 256 items then delete last 25.914 us/op 26.729 us/op 0.97
Set add up to 256 items then delete middle 19.718 us/op 20.297 us/op 0.97
OrderedSet add up to 256 items then delete middle 48.331 us/op 49.730 us/op 0.97
transfer serialized Status (84 B) 1.8170 us/op 1.9280 us/op 0.94
copy serialized Status (84 B) 1.5390 us/op 1.6740 us/op 0.92
transfer serialized SignedVoluntaryExit (112 B) 1.9330 us/op 2.1210 us/op 0.91
copy serialized SignedVoluntaryExit (112 B) 1.5810 us/op 1.7290 us/op 0.91
transfer serialized ProposerSlashing (416 B) 2.4890 us/op 2.2110 us/op 1.13
copy serialized ProposerSlashing (416 B) 2.1600 us/op 2.4500 us/op 0.88
transfer serialized Attestation (485 B) 2.2660 us/op 2.8080 us/op 0.81
copy serialized Attestation (485 B) 2.3780 us/op 2.9270 us/op 0.81
transfer serialized AttesterSlashing (33232 B) 2.9430 us/op 2.9350 us/op 1.00
copy serialized AttesterSlashing (33232 B) 5.4510 us/op 7.6820 us/op 0.71
transfer serialized Small SignedBeaconBlock (128000 B) 2.5460 us/op 2.5720 us/op 0.99
copy serialized Small SignedBeaconBlock (128000 B) 20.042 us/op 18.689 us/op 1.07
transfer serialized Avg SignedBeaconBlock (200000 B) 3.1630 us/op 2.9930 us/op 1.06
copy serialized Avg SignedBeaconBlock (200000 B) 22.972 us/op 28.232 us/op 0.81
transfer serialized BlobsSidecar (524380 B) 3.6540 us/op 3.4540 us/op 1.06
copy serialized BlobsSidecar (524380 B) 119.38 us/op 117.41 us/op 1.02
transfer serialized Big SignedBeaconBlock (1000000 B) 4.1750 us/op 3.2340 us/op 1.29
copy serialized Big SignedBeaconBlock (1000000 B) 210.49 us/op 451.05 us/op 0.47
pass gossip attestations to forkchoice per slot 4.1771 ms/op 3.9944 ms/op 1.05
forkChoice updateHead vc 100000 bc 64 eq 0 695.73 us/op 700.99 us/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 0 4.6682 ms/op 5.8807 ms/op 0.79
forkChoice updateHead vc 1000000 bc 64 eq 0 9.8059 ms/op 9.2932 ms/op 1.06
forkChoice updateHead vc 600000 bc 320 eq 0 4.3800 ms/op 4.5954 ms/op 0.95
forkChoice updateHead vc 600000 bc 1200 eq 0 4.5734 ms/op 4.6986 ms/op 0.97
forkChoice updateHead vc 600000 bc 7200 eq 0 5.3961 ms/op 5.5087 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 1000 13.000 ms/op 11.687 ms/op 1.11
forkChoice updateHead vc 600000 bc 64 eq 10000 14.338 ms/op 12.697 ms/op 1.13
forkChoice updateHead vc 600000 bc 64 eq 300000 20.512 ms/op 18.504 ms/op 1.11
computeDeltas 500000 validators 300 proto nodes 7.3134 ms/op 6.6052 ms/op 1.11
computeDeltas 500000 validators 1200 proto nodes 7.1815 ms/op 6.6995 ms/op 1.07
computeDeltas 500000 validators 7200 proto nodes 7.2750 ms/op 6.8328 ms/op 1.06
computeDeltas 750000 validators 300 proto nodes 10.706 ms/op 10.150 ms/op 1.05
computeDeltas 750000 validators 1200 proto nodes 11.067 ms/op 10.207 ms/op 1.08
computeDeltas 750000 validators 7200 proto nodes 11.098 ms/op 10.534 ms/op 1.05
computeDeltas 1400000 validators 300 proto nodes 19.766 ms/op 19.124 ms/op 1.03
computeDeltas 1400000 validators 1200 proto nodes 18.588 ms/op 18.508 ms/op 1.00
computeDeltas 1400000 validators 7200 proto nodes 18.257 ms/op 18.569 ms/op 0.98
computeDeltas 2100000 validators 300 proto nodes 27.677 ms/op 27.486 ms/op 1.01
computeDeltas 2100000 validators 1200 proto nodes 27.203 ms/op 28.393 ms/op 0.96
computeDeltas 2100000 validators 7200 proto nodes 26.853 ms/op 27.848 ms/op 0.96
computeProposerBoostScoreFromBalances 500000 validators 3.2670 ms/op 3.3261 ms/op 0.98
computeProposerBoostScoreFromBalances 750000 validators 3.2370 ms/op 3.3978 ms/op 0.95
computeProposerBoostScoreFromBalances 1400000 validators 3.2657 ms/op 3.3742 ms/op 0.97
computeProposerBoostScoreFromBalances 2100000 validators 3.3250 ms/op 3.4240 ms/op 0.97
altair processAttestation - 250000 vs - 7PWei normalcase 2.8952 ms/op 3.3512 ms/op 0.86
altair processAttestation - 250000 vs - 7PWei worstcase 4.6476 ms/op 4.1484 ms/op 1.12
altair processAttestation - setStatus - 1/6 committees join 180.13 us/op 187.58 us/op 0.96
altair processAttestation - setStatus - 1/3 committees join 349.77 us/op 354.18 us/op 0.99
altair processAttestation - setStatus - 1/2 committees join 500.26 us/op 480.52 us/op 1.04
altair processAttestation - setStatus - 2/3 committees join 632.34 us/op 634.13 us/op 1.00
altair processAttestation - setStatus - 4/5 committees join 812.42 us/op 810.11 us/op 1.00
altair processAttestation - setStatus - 100% committees join 964.45 us/op 969.14 us/op 1.00
altair processBlock - 250000 vs - 7PWei normalcase 10.236 ms/op 9.9540 ms/op 1.03
altair processBlock - 250000 vs - 7PWei normalcase hashState 18.957 ms/op 17.957 ms/op 1.06
altair processBlock - 250000 vs - 7PWei worstcase 38.690 ms/op 39.884 ms/op 0.97
altair processBlock - 250000 vs - 7PWei worstcase hashState 60.173 ms/op 65.361 ms/op 0.92
phase0 processBlock - 250000 vs - 7PWei normalcase 2.8669 ms/op 2.7308 ms/op 1.05
phase0 processBlock - 250000 vs - 7PWei worstcase 33.804 ms/op 33.560 ms/op 1.01
altair processEth1Data - 250000 vs - 7PWei normalcase 494.08 us/op 561.91 us/op 0.88
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 11.575 us/op 11.141 us/op 1.04
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 73.977 us/op 44.504 us/op 1.66
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 24.772 us/op 22.985 us/op 1.08
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 9.9290 us/op 16.176 us/op 0.61
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 168.90 us/op 150.26 us/op 1.12
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.2611 ms/op 1.1883 ms/op 1.06
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.7008 ms/op 1.8035 ms/op 0.94
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.7701 ms/op 1.7205 ms/op 1.03
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.7952 ms/op 3.5696 ms/op 1.06
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.8205 ms/op 2.4484 ms/op 1.15
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.8789 ms/op 5.1072 ms/op 1.15
Tree 40 250000 create 346.61 ms/op 331.65 ms/op 1.05
Tree 40 250000 get(125000) 209.47 ns/op 207.60 ns/op 1.01
Tree 40 250000 set(125000) 960.20 ns/op 971.17 ns/op 0.99
Tree 40 250000 toArray() 21.169 ms/op 19.075 ms/op 1.11
Tree 40 250000 iterate all - toArray() + loop 22.216 ms/op 18.257 ms/op 1.22
Tree 40 250000 iterate all - get(i) 75.861 ms/op 68.658 ms/op 1.10
MutableVector 250000 create 13.600 ms/op 13.301 ms/op 1.02
MutableVector 250000 get(125000) 7.0840 ns/op 6.8390 ns/op 1.04
MutableVector 250000 set(125000) 268.71 ns/op 270.19 ns/op 0.99
MutableVector 250000 toArray() 3.2370 ms/op 3.3718 ms/op 0.96
MutableVector 250000 iterate all - toArray() + loop 3.8876 ms/op 3.3196 ms/op 1.17
MutableVector 250000 iterate all - get(i) 1.5881 ms/op 1.5662 ms/op 1.01
Array 250000 create 3.8292 ms/op 2.9943 ms/op 1.28
Array 250000 clone - spread 1.0540 ms/op 1.1939 ms/op 0.88
Array 250000 get(125000) 0.50400 ns/op 0.59500 ns/op 0.85
Array 250000 set(125000) 0.59100 ns/op 0.66200 ns/op 0.89
Array 250000 iterate all - loop 86.881 us/op 109.76 us/op 0.79
effectiveBalanceIncrements clone Uint8Array 300000 37.372 us/op 29.293 us/op 1.28
effectiveBalanceIncrements clone MutableVector 300000 275.00 ns/op 355.00 ns/op 0.77
effectiveBalanceIncrements rw all Uint8Array 300000 184.20 us/op 181.14 us/op 1.02
effectiveBalanceIncrements rw all MutableVector 300000 85.241 ms/op 89.352 ms/op 0.95
phase0 afterProcessEpoch - 250000 vs - 7PWei 120.20 ms/op 117.74 ms/op 1.02
phase0 beforeProcessEpoch - 250000 vs - 7PWei 35.347 ms/op 33.198 ms/op 1.06
altair processEpoch - mainnet_e81889 330.75 ms/op 327.84 ms/op 1.01
mainnet_e81889 - altair beforeProcessEpoch 61.894 ms/op 47.923 ms/op 1.29
mainnet_e81889 - altair processJustificationAndFinalization 13.430 us/op 19.062 us/op 0.70
mainnet_e81889 - altair processInactivityUpdates 5.3276 ms/op 6.3084 ms/op 0.84
mainnet_e81889 - altair processRewardsAndPenalties 68.433 ms/op 67.876 ms/op 1.01
mainnet_e81889 - altair processRegistryUpdates 2.5980 us/op 2.2140 us/op 1.17
mainnet_e81889 - altair processSlashings 508.00 ns/op 423.00 ns/op 1.20
mainnet_e81889 - altair processEth1DataReset 588.00 ns/op 525.00 ns/op 1.12
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2819 ms/op 1.3065 ms/op 0.98
mainnet_e81889 - altair processSlashingsReset 3.5260 us/op 3.0460 us/op 1.16
mainnet_e81889 - altair processRandaoMixesReset 5.2770 us/op 4.4270 us/op 1.19
mainnet_e81889 - altair processHistoricalRootsUpdate 585.00 ns/op 731.00 ns/op 0.80
mainnet_e81889 - altair processParticipationFlagUpdates 1.9950 us/op 1.6490 us/op 1.21
mainnet_e81889 - altair processSyncCommitteeUpdates 812.00 ns/op 938.00 ns/op 0.87
mainnet_e81889 - altair afterProcessEpoch 135.41 ms/op 129.08 ms/op 1.05
capella processEpoch - mainnet_e217614 1.2435 s/op 1.0143 s/op 1.23
mainnet_e217614 - capella beforeProcessEpoch 257.71 ms/op 224.84 ms/op 1.15
mainnet_e217614 - capella processJustificationAndFinalization 19.280 us/op 13.566 us/op 1.42
mainnet_e217614 - capella processInactivityUpdates 20.682 ms/op 18.256 ms/op 1.13
mainnet_e217614 - capella processRewardsAndPenalties 329.69 ms/op 286.83 ms/op 1.15
mainnet_e217614 - capella processRegistryUpdates 31.517 us/op 18.247 us/op 1.73
mainnet_e217614 - capella processSlashings 715.00 ns/op 511.00 ns/op 1.40
mainnet_e217614 - capella processEth1DataReset 466.00 ns/op 454.00 ns/op 1.03
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.2333 ms/op 4.2756 ms/op 0.99
mainnet_e217614 - capella processSlashingsReset 2.2700 us/op 2.2020 us/op 1.03
mainnet_e217614 - capella processRandaoMixesReset 4.2270 us/op 4.6150 us/op 0.92
mainnet_e217614 - capella processHistoricalRootsUpdate 1.5120 us/op 482.00 ns/op 3.14
mainnet_e217614 - capella processParticipationFlagUpdates 2.3810 us/op 2.8770 us/op 0.83
mainnet_e217614 - capella afterProcessEpoch 307.82 ms/op 305.30 ms/op 1.01
phase0 processEpoch - mainnet_e58758 381.03 ms/op 331.89 ms/op 1.15
mainnet_e58758 - phase0 beforeProcessEpoch 148.21 ms/op 103.58 ms/op 1.43
mainnet_e58758 - phase0 processJustificationAndFinalization 18.214 us/op 15.992 us/op 1.14
mainnet_e58758 - phase0 processRewardsAndPenalties 69.330 ms/op 51.638 ms/op 1.34
mainnet_e58758 - phase0 processRegistryUpdates 13.199 us/op 14.024 us/op 0.94
mainnet_e58758 - phase0 processSlashings 611.00 ns/op 529.00 ns/op 1.16
mainnet_e58758 - phase0 processEth1DataReset 818.00 ns/op 621.00 ns/op 1.32
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 2.9015 ms/op 1.1513 ms/op 2.52
mainnet_e58758 - phase0 processSlashingsReset 3.2960 us/op 2.7650 us/op 1.19
mainnet_e58758 - phase0 processRandaoMixesReset 4.1900 us/op 6.0150 us/op 0.70
mainnet_e58758 - phase0 processHistoricalRootsUpdate 600.00 ns/op 908.00 ns/op 0.66
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.4140 us/op 6.5620 us/op 0.67
mainnet_e58758 - phase0 afterProcessEpoch 103.91 ms/op 106.57 ms/op 0.98
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.3480 ms/op 1.3547 ms/op 1.00
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4922 ms/op 1.8201 ms/op 0.82
altair processInactivityUpdates - 250000 normalcase 29.782 ms/op 28.594 ms/op 1.04
altair processInactivityUpdates - 250000 worstcase 25.347 ms/op 28.687 ms/op 0.88
phase0 processRegistryUpdates - 250000 normalcase 13.762 us/op 12.363 us/op 1.11
phase0 processRegistryUpdates - 250000 badcase_full_deposits 383.96 us/op 382.94 us/op 1.00
phase0 processRegistryUpdates - 250000 worstcase 0.5 152.62 ms/op 125.34 ms/op 1.22
altair processRewardsAndPenalties - 250000 normalcase 72.374 ms/op 73.085 ms/op 0.99
altair processRewardsAndPenalties - 250000 worstcase 74.340 ms/op 70.814 ms/op 1.05
phase0 getAttestationDeltas - 250000 normalcase 9.5809 ms/op 8.7973 ms/op 1.09
phase0 getAttestationDeltas - 250000 worstcase 10.176 ms/op 9.7656 ms/op 1.04
phase0 processSlashings - 250000 worstcase 2.6104 ms/op 2.5356 ms/op 1.03
altair processSyncCommitteeUpdates - 250000 169.97 ms/op 162.80 ms/op 1.04
BeaconState.hashTreeRoot - No change 285.00 ns/op 270.00 ns/op 1.06
BeaconState.hashTreeRoot - 1 full validator 58.433 us/op 50.056 us/op 1.17
BeaconState.hashTreeRoot - 32 full validator 624.40 us/op 552.19 us/op 1.13
BeaconState.hashTreeRoot - 512 full validator 6.3289 ms/op 6.1991 ms/op 1.02
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 72.815 us/op 64.905 us/op 1.12
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 920.22 us/op 977.53 us/op 0.94
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 13.221 ms/op 12.146 ms/op 1.09
BeaconState.hashTreeRoot - 1 balances 51.882 us/op 52.515 us/op 0.99
BeaconState.hashTreeRoot - 32 balances 463.45 us/op 485.40 us/op 0.95
BeaconState.hashTreeRoot - 512 balances 5.0346 ms/op 4.8128 ms/op 1.05
BeaconState.hashTreeRoot - 250000 balances 80.766 ms/op 73.162 ms/op 1.10
aggregationBits - 2048 els - zipIndexesInBitList 17.030 us/op 17.668 us/op 0.96
regular array get 100000 times 46.488 us/op 40.999 us/op 1.13
wrappedArray get 100000 times 46.449 us/op 34.154 us/op 1.36
arrayWithProxy get 100000 times 15.802 ms/op 15.219 ms/op 1.04
ssz.Root.equals 232.00 ns/op 245.00 ns/op 0.95
byteArrayEquals 233.00 ns/op 256.00 ns/op 0.91
shuffle list - 16384 els 7.2622 ms/op 7.4460 ms/op 0.98
shuffle list - 250000 els 107.78 ms/op 107.32 ms/op 1.00
processSlot - 1 slots 9.2670 us/op 10.519 us/op 0.88
processSlot - 32 slots 1.4751 ms/op 1.4672 ms/op 1.01
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 55.136 ms/op 57.007 ms/op 0.97
getCommitteeAssignments - req 1 vs - 250000 vc 2.7275 ms/op 2.6560 ms/op 1.03
getCommitteeAssignments - req 100 vs - 250000 vc 3.9672 ms/op 3.8518 ms/op 1.03
getCommitteeAssignments - req 1000 vs - 250000 vc 4.3556 ms/op 4.2418 ms/op 1.03
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.8000 ns/op 5.6100 ns/op 0.86
state getBlockRootAtSlot - 250000 vs - 7PWei 494.96 ns/op 769.22 ns/op 0.64
computeProposers - vc 250000 9.0817 ms/op 10.013 ms/op 0.91
computeEpochShuffling - vc 250000 107.85 ms/op 111.77 ms/op 0.96
getNextSyncCommittee - vc 250000 166.26 ms/op 165.73 ms/op 1.00
computeSigningRoot for AttestationData 13.659 us/op 14.361 us/op 0.95
hash AttestationData serialized data then Buffer.toString(base64) 2.4025 us/op 2.4072 us/op 1.00
toHexString serialized data 1.1099 us/op 1.0978 us/op 1.01
Buffer.toString(base64) 227.19 ns/op 231.27 ns/op 0.98

by benchmarkbot/action

@wemeetagain wemeetagain merged commit 72e95e2 into unstable Aug 24, 2023
11 checks passed
@wemeetagain wemeetagain deleted the tuyen/pull_batch_attestation_metrics branch August 24, 2023 12:31
@dapplion
Copy link
Contributor

@tuyennhv seems the histogram is missing a rate() operator

@twoeths
Copy link
Contributor Author

twoeths commented Aug 30, 2023

@dapplion thanks, added in #5921

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