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

feat: add forkchoice data structures metrics #5576

Merged
merged 2 commits into from
May 31, 2023

Conversation

dapplion
Copy link
Contributor

Motivation

Description

Add forkchoice data structures metrics

@dapplion dapplion requested a review from a team as a code owner May 30, 2023 07:12
@github-actions
Copy link
Contributor

github-actions bot commented May 30, 2023

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 41ef7c3 Previous: 3d77bfe Ratio
phase0 processBlock - 250000 vs - 7PWei worstcase 31.457 ms/op 95.484 ms/op 0.33
altair processEth1Data - 250000 vs - 7PWei normalcase 487.25 us/op 1.5318 ms/op 0.32
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 7.9590 us/op 25.274 us/op 0.31
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 670.62 us/op 2.1886 ms/op 0.31
altair processEpoch - mainnet_e81889 303.98 ms/op 1.0696 s/op 0.28
phase0 processSlashings - 250000 worstcase 3.5047 ms/op 11.876 ms/op 0.30
altair processSyncCommitteeUpdates - 250000 194.99 ms/op 658.90 ms/op 0.30
BeaconState.hashTreeRoot - No change 273.00 ns/op 1.0740 us/op 0.25
BeaconState.hashTreeRoot - 512 full validator 5.4461 ms/op 17.930 ms/op 0.30
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 11.283 ms/op 35.232 ms/op 0.32
BeaconState.hashTreeRoot - 512 balances 4.4395 ms/op 16.199 ms/op 0.27
BeaconState.hashTreeRoot - 250000 balances 76.960 ms/op 250.42 ms/op 0.31
regular array get 100000 times 32.993 us/op 159.41 us/op 0.21
wrappedArray get 100000 times 32.993 us/op 146.47 us/op 0.23
arrayWithProxy get 100000 times 16.932 ms/op 61.984 ms/op 0.27
shuffle list - 16384 els 6.9049 ms/op 25.846 ms/op 0.27
shuffle list - 250000 els 101.68 ms/op 375.32 ms/op 0.27
processSlot - 1 slots 9.8310 us/op 41.178 us/op 0.24
processSlot - 32 slots 1.4332 ms/op 5.5091 ms/op 0.26
getCommitteeAssignments - req 1000 vs - 250000 vc 4.4903 ms/op 17.005 ms/op 0.26
computeProposers - vc 250000 11.750 ms/op 41.336 ms/op 0.28
computeEpochShuffling - vc 250000 105.72 ms/op 385.39 ms/op 0.27
getNextSyncCommittee - vc 250000 178.17 ms/op 664.19 ms/op 0.27
computeSigningRoot for AttestationData 14.079 us/op 52.035 us/op 0.27
hash AttestationData serialized data then Buffer.toString(base64) 2.5548 us/op 8.8869 us/op 0.29
toHexString serialized data 1.3005 us/op 4.9932 us/op 0.26
Buffer.toString(base64) 399.27 ns/op 1.4398 us/op 0.28
Full benchmark results
Benchmark suite Current: 41ef7c3 Previous: 3d77bfe Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 617.57 us/op 1.2110 ms/op 0.51
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 55.511 us/op 103.80 us/op 0.53
BLS verify - blst-native 1.2352 ms/op 2.7883 ms/op 0.44
BLS verifyMultipleSignatures 3 - blst-native 2.5861 ms/op 5.3298 ms/op 0.49
BLS verifyMultipleSignatures 8 - blst-native 5.4451 ms/op 8.2864 ms/op 0.66
BLS verifyMultipleSignatures 32 - blst-native 19.707 ms/op 33.598 ms/op 0.59
BLS aggregatePubkeys 32 - blst-native 26.463 us/op 47.804 us/op 0.55
BLS aggregatePubkeys 128 - blst-native 103.61 us/op 174.82 us/op 0.59
getAttestationsForBlock 62.577 ms/op 98.089 ms/op 0.64
isKnown best case - 1 super set check 280.00 ns/op 453.00 ns/op 0.62
isKnown normal case - 2 super set checks 272.00 ns/op 444.00 ns/op 0.61
isKnown worse case - 16 super set checks 272.00 ns/op 414.00 ns/op 0.66
CheckpointStateCache - add get delete 5.8610 us/op 7.4270 us/op 0.79
validate gossip signedAggregateAndProof - struct 2.8407 ms/op 3.9964 ms/op 0.71
validate gossip attestation - struct 1.3441 ms/op 1.9006 ms/op 0.71
pickEth1Vote - no votes 1.3775 ms/op 1.6300 ms/op 0.85
pickEth1Vote - max votes 12.868 ms/op 13.154 ms/op 0.98
pickEth1Vote - Eth1Data hashTreeRoot value x2048 9.9251 ms/op 12.003 ms/op 0.83
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 15.447 ms/op 18.784 ms/op 0.82
pickEth1Vote - Eth1Data fastSerialize value x2048 679.15 us/op 920.94 us/op 0.74
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.7495 ms/op 10.253 ms/op 0.66
bytes32 toHexString 650.00 ns/op 829.00 ns/op 0.78
bytes32 Buffer.toString(hex) 421.00 ns/op 544.00 ns/op 0.77
bytes32 Buffer.toString(hex) from Uint8Array 596.00 ns/op 932.00 ns/op 0.64
bytes32 Buffer.toString(hex) + 0x 370.00 ns/op 472.00 ns/op 0.78
Object access 1 prop 0.17000 ns/op 0.20600 ns/op 0.83
Map access 1 prop 0.16500 ns/op 0.20300 ns/op 0.81
Object get x1000 6.7600 ns/op 9.2480 ns/op 0.73
Map get x1000 0.65500 ns/op 0.75600 ns/op 0.87
Object set x1000 63.329 ns/op 73.473 ns/op 0.86
Map set x1000 51.217 ns/op 65.026 ns/op 0.79
Return object 10000 times 0.25020 ns/op 0.37150 ns/op 0.67
Throw Error 10000 times 4.3976 us/op 5.9082 us/op 0.74
fastMsgIdFn sha256 / 200 bytes 3.6240 us/op 5.1000 us/op 0.71
fastMsgIdFn h32 xxhash / 200 bytes 295.00 ns/op 397.00 ns/op 0.74
fastMsgIdFn h64 xxhash / 200 bytes 433.00 ns/op 607.00 ns/op 0.71
fastMsgIdFn sha256 / 1000 bytes 11.896 us/op 15.424 us/op 0.77
fastMsgIdFn h32 xxhash / 1000 bytes 439.00 ns/op 564.00 ns/op 0.78
fastMsgIdFn h64 xxhash / 1000 bytes 516.00 ns/op 625.00 ns/op 0.83
fastMsgIdFn sha256 / 10000 bytes 106.50 us/op 139.52 us/op 0.76
fastMsgIdFn h32 xxhash / 10000 bytes 2.0600 us/op 2.6480 us/op 0.78
fastMsgIdFn h64 xxhash / 10000 bytes 1.4690 us/op 1.8740 us/op 0.78
enrSubnets - fastDeserialize 64 bits 1.7110 us/op 1.8220 us/op 0.94
enrSubnets - ssz BitVector 64 bits 587.00 ns/op 739.00 ns/op 0.79
enrSubnets - fastDeserialize 4 bits 201.00 ns/op 250.00 ns/op 0.80
enrSubnets - ssz BitVector 4 bits 603.00 ns/op 740.00 ns/op 0.81
prioritizePeers score -10:0 att 32-0.1 sync 2-0 122.91 us/op 157.91 us/op 0.78
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 164.00 us/op 186.55 us/op 0.88
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 199.52 us/op 265.69 us/op 0.75
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 360.40 us/op 547.24 us/op 0.66
prioritizePeers score 0:0 att 64-1 sync 4-1 410.35 us/op 728.98 us/op 0.56
array of 16000 items push then shift 1.6932 us/op 2.6597 us/op 0.64
LinkedList of 16000 items push then shift 9.2950 ns/op 16.218 ns/op 0.57
array of 16000 items push then pop 110.64 ns/op 154.60 ns/op 0.72
LinkedList of 16000 items push then pop 8.9150 ns/op 11.547 ns/op 0.77
array of 24000 items push then shift 2.4123 us/op 2.9248 us/op 0.82
LinkedList of 24000 items push then shift 9.1450 ns/op 11.025 ns/op 0.83
array of 24000 items push then pop 81.491 ns/op 104.34 ns/op 0.78
LinkedList of 24000 items push then pop 8.7120 ns/op 10.514 ns/op 0.83
intersect bitArray bitLen 8 13.494 ns/op 16.728 ns/op 0.81
intersect array and set length 8 88.835 ns/op 105.76 ns/op 0.84
intersect bitArray bitLen 128 44.365 ns/op 58.198 ns/op 0.76
intersect array and set length 128 1.3366 us/op 1.4934 us/op 0.89
Buffer.concat 32 items 3.2560 us/op 3.9920 us/op 0.82
Uint8Array.set 32 items 2.2980 us/op 3.4650 us/op 0.66
transfer serialized Status (84 B) 2.0870 us/op 3.1370 us/op 0.67
copy serialized Status (84 B) 1.7460 us/op 2.8920 us/op 0.60
transfer serialized SignedVoluntaryExit (112 B) 2.1430 us/op 3.1410 us/op 0.68
copy serialized SignedVoluntaryExit (112 B) 1.7560 us/op 2.4370 us/op 0.72
transfer serialized ProposerSlashing (416 B) 2.2870 us/op 3.5830 us/op 0.64
copy serialized ProposerSlashing (416 B) 2.2470 us/op 3.2390 us/op 0.69
transfer serialized Attestation (485 B) 2.4460 us/op 3.5860 us/op 0.68
copy serialized Attestation (485 B) 2.2550 us/op 3.3620 us/op 0.67
transfer serialized AttesterSlashing (33232 B) 2.5990 us/op 3.6640 us/op 0.71
copy serialized AttesterSlashing (33232 B) 8.6110 us/op 7.0540 us/op 1.22
transfer serialized Small SignedBeaconBlock (128000 B) 3.0280 us/op 3.5760 us/op 0.85
copy serialized Small SignedBeaconBlock (128000 B) 21.369 us/op 17.694 us/op 1.21
transfer serialized Avg SignedBeaconBlock (200000 B) 3.3180 us/op 4.8170 us/op 0.69
copy serialized Avg SignedBeaconBlock (200000 B) 29.434 us/op 24.318 us/op 1.21
transfer serialized BlobsSidecar (524380 B) 3.5680 us/op 4.0930 us/op 0.87
copy serialized BlobsSidecar (524380 B) 192.72 us/op 142.32 us/op 1.35
transfer serialized Big SignedBeaconBlock (1000000 B) 3.7760 us/op 5.3380 us/op 0.71
copy serialized Big SignedBeaconBlock (1000000 B) 369.79 us/op 226.23 us/op 1.63
pass gossip attestations to forkchoice per slot 2.3585 ms/op 3.6813 ms/op 0.64
computeDeltas 3.1033 ms/op 5.0150 ms/op 0.62
computeProposerBoostScoreFromBalances 1.7848 ms/op 2.6789 ms/op 0.67
altair processAttestation - 250000 vs - 7PWei normalcase 2.3862 ms/op 3.9618 ms/op 0.60
altair processAttestation - 250000 vs - 7PWei worstcase 3.6901 ms/op 6.3426 ms/op 0.58
altair processAttestation - setStatus - 1/6 committees join 144.65 us/op 250.74 us/op 0.58
altair processAttestation - setStatus - 1/3 committees join 279.98 us/op 775.98 us/op 0.36
altair processAttestation - setStatus - 1/2 committees join 376.47 us/op 877.58 us/op 0.43
altair processAttestation - setStatus - 2/3 committees join 467.02 us/op 1.1921 ms/op 0.39
altair processAttestation - setStatus - 4/5 committees join 671.44 us/op 1.5883 ms/op 0.42
altair processAttestation - setStatus - 100% committees join 780.53 us/op 1.8681 ms/op 0.42
altair processBlock - 250000 vs - 7PWei normalcase 17.227 ms/op 36.894 ms/op 0.47
altair processBlock - 250000 vs - 7PWei normalcase hashState 28.382 ms/op 54.587 ms/op 0.52
altair processBlock - 250000 vs - 7PWei worstcase 48.807 ms/op 110.56 ms/op 0.44
altair processBlock - 250000 vs - 7PWei worstcase hashState 70.081 ms/op 154.63 ms/op 0.45
phase0 processBlock - 250000 vs - 7PWei normalcase 2.2826 ms/op 6.6988 ms/op 0.34
phase0 processBlock - 250000 vs - 7PWei worstcase 31.457 ms/op 95.484 ms/op 0.33
altair processEth1Data - 250000 vs - 7PWei normalcase 487.25 us/op 1.5318 ms/op 0.32
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 9.3710 us/op 25.429 us/op 0.37
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 28.216 us/op 30.090 us/op 0.94
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 11.759 us/op 27.732 us/op 0.42
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 7.9590 us/op 25.274 us/op 0.31
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 106.42 us/op 234.92 us/op 0.45
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 670.62 us/op 2.1886 ms/op 0.31
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 933.25 us/op 2.5270 ms/op 0.37
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 924.55 us/op 2.3470 ms/op 0.39
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.3930 ms/op 6.9918 ms/op 0.34
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5087 ms/op 3.8231 ms/op 0.39
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.8992 ms/op 8.5153 ms/op 0.46
Tree 40 250000 create 341.34 ms/op 1.0429 s/op 0.33
Tree 40 250000 get(125000) 199.24 ns/op 455.59 ns/op 0.44
Tree 40 250000 set(125000) 998.11 ns/op 2.3880 us/op 0.42
Tree 40 250000 toArray() 20.833 ms/op 37.533 ms/op 0.56
Tree 40 250000 iterate all - toArray() + loop 21.826 ms/op 42.140 ms/op 0.52
Tree 40 250000 iterate all - get(i) 78.554 ms/op 132.12 ms/op 0.59
MutableVector 250000 create 11.470 ms/op 29.514 ms/op 0.39
MutableVector 250000 get(125000) 6.4200 ns/op 20.932 ns/op 0.31
MutableVector 250000 set(125000) 281.25 ns/op 905.43 ns/op 0.31
MutableVector 250000 toArray() 3.1920 ms/op 8.7951 ms/op 0.36
MutableVector 250000 iterate all - toArray() + loop 3.4122 ms/op 7.7232 ms/op 0.44
MutableVector 250000 iterate all - get(i) 1.5273 ms/op 4.1473 ms/op 0.37
Array 250000 create 3.0371 ms/op 5.2853 ms/op 0.57
Array 250000 clone - spread 1.1225 ms/op 2.7540 ms/op 0.41
Array 250000 get(125000) 0.57900 ns/op 1.9130 ns/op 0.30
Array 250000 set(125000) 0.62800 ns/op 2.3200 ns/op 0.27
Array 250000 iterate all - loop 83.913 us/op 293.06 us/op 0.29
effectiveBalanceIncrements clone Uint8Array 300000 28.925 us/op 75.865 us/op 0.38
effectiveBalanceIncrements clone MutableVector 300000 341.00 ns/op 1.0630 us/op 0.32
effectiveBalanceIncrements rw all Uint8Array 300000 169.91 us/op 346.63 us/op 0.49
effectiveBalanceIncrements rw all MutableVector 300000 80.649 ms/op 228.63 ms/op 0.35
phase0 afterProcessEpoch - 250000 vs - 7PWei 115.07 ms/op 228.64 ms/op 0.50
phase0 beforeProcessEpoch - 250000 vs - 7PWei 43.683 ms/op 89.142 ms/op 0.49
altair processEpoch - mainnet_e81889 303.98 ms/op 1.0696 s/op 0.28
mainnet_e81889 - altair beforeProcessEpoch 67.159 ms/op 186.15 ms/op 0.36
mainnet_e81889 - altair processJustificationAndFinalization 18.499 us/op 91.401 us/op 0.20
mainnet_e81889 - altair processInactivityUpdates 5.3282 ms/op 17.547 ms/op 0.30
mainnet_e81889 - altair processRewardsAndPenalties 66.122 ms/op 189.31 ms/op 0.35
mainnet_e81889 - altair processRegistryUpdates 4.1000 us/op 12.461 us/op 0.33
mainnet_e81889 - altair processSlashings 849.00 ns/op 3.6540 us/op 0.23
mainnet_e81889 - altair processEth1DataReset 712.00 ns/op 2.8850 us/op 0.25
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2642 ms/op 4.0481 ms/op 0.31
mainnet_e81889 - altair processSlashingsReset 4.6870 us/op 17.959 us/op 0.26
mainnet_e81889 - altair processRandaoMixesReset 5.0380 us/op 16.514 us/op 0.31
mainnet_e81889 - altair processHistoricalRootsUpdate 1.9920 us/op 2.4570 us/op 0.81
mainnet_e81889 - altair processParticipationFlagUpdates 3.9920 us/op 6.5950 us/op 0.61
mainnet_e81889 - altair processSyncCommitteeUpdates 907.00 ns/op 929.00 ns/op 0.98
mainnet_e81889 - altair afterProcessEpoch 135.11 ms/op 340.09 ms/op 0.40
phase0 processEpoch - mainnet_e58758 383.20 ms/op 818.90 ms/op 0.47
mainnet_e58758 - phase0 beforeProcessEpoch 138.84 ms/op 299.16 ms/op 0.46
mainnet_e58758 - phase0 processJustificationAndFinalization 22.431 us/op 53.797 us/op 0.42
mainnet_e58758 - phase0 processRewardsAndPenalties 67.819 ms/op 130.87 ms/op 0.52
mainnet_e58758 - phase0 processRegistryUpdates 11.547 us/op 25.565 us/op 0.45
mainnet_e58758 - phase0 processSlashings 668.00 ns/op 2.7920 us/op 0.24
mainnet_e58758 - phase0 processEth1DataReset 658.00 ns/op 1.9050 us/op 0.35
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0296 ms/op 2.9483 ms/op 0.35
mainnet_e58758 - phase0 processSlashingsReset 4.0250 us/op 7.9440 us/op 0.51
mainnet_e58758 - phase0 processRandaoMixesReset 5.9380 us/op 23.531 us/op 0.25
mainnet_e58758 - phase0 processHistoricalRootsUpdate 727.00 ns/op 4.4580 us/op 0.16
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.0480 us/op 13.115 us/op 0.31
mainnet_e58758 - phase0 afterProcessEpoch 100.63 ms/op 300.29 ms/op 0.34
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2722 ms/op 3.0309 ms/op 0.42
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.6695 ms/op 3.0674 ms/op 0.54
altair processInactivityUpdates - 250000 normalcase 24.519 ms/op 54.516 ms/op 0.45
altair processInactivityUpdates - 250000 worstcase 26.081 ms/op 47.472 ms/op 0.55
phase0 processRegistryUpdates - 250000 normalcase 8.5860 us/op 12.055 us/op 0.71
phase0 processRegistryUpdates - 250000 badcase_full_deposits 291.24 us/op 546.39 us/op 0.53
phase0 processRegistryUpdates - 250000 worstcase 0.5 132.62 ms/op 259.41 ms/op 0.51
altair processRewardsAndPenalties - 250000 normalcase 73.993 ms/op 106.36 ms/op 0.70
altair processRewardsAndPenalties - 250000 worstcase 73.511 ms/op 123.18 ms/op 0.60
phase0 getAttestationDeltas - 250000 normalcase 9.5587 ms/op 19.464 ms/op 0.49
phase0 getAttestationDeltas - 250000 worstcase 8.8510 ms/op 22.150 ms/op 0.40
phase0 processSlashings - 250000 worstcase 3.5047 ms/op 11.876 ms/op 0.30
altair processSyncCommitteeUpdates - 250000 194.99 ms/op 658.90 ms/op 0.30
BeaconState.hashTreeRoot - No change 273.00 ns/op 1.0740 us/op 0.25
BeaconState.hashTreeRoot - 1 full validator 55.884 us/op 203.68 us/op 0.27
BeaconState.hashTreeRoot - 32 full validator 534.08 us/op 1.8103 ms/op 0.30
BeaconState.hashTreeRoot - 512 full validator 5.4461 ms/op 17.930 ms/op 0.30
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 64.170 us/op 202.89 us/op 0.32
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 963.35 us/op 2.7724 ms/op 0.35
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 11.283 ms/op 35.232 ms/op 0.32
BeaconState.hashTreeRoot - 1 balances 49.484 us/op 164.55 us/op 0.30
BeaconState.hashTreeRoot - 32 balances 450.70 us/op 1.5035 ms/op 0.30
BeaconState.hashTreeRoot - 512 balances 4.4395 ms/op 16.199 ms/op 0.27
BeaconState.hashTreeRoot - 250000 balances 76.960 ms/op 250.42 ms/op 0.31
aggregationBits - 2048 els - zipIndexesInBitList 17.210 us/op 54.041 us/op 0.32
regular array get 100000 times 32.993 us/op 159.41 us/op 0.21
wrappedArray get 100000 times 32.993 us/op 146.47 us/op 0.23
arrayWithProxy get 100000 times 16.932 ms/op 61.984 ms/op 0.27
ssz.Root.equals 558.00 ns/op 3.1000 us/op 0.18
byteArrayEquals 562.00 ns/op 2.9850 us/op 0.19
shuffle list - 16384 els 6.9049 ms/op 25.846 ms/op 0.27
shuffle list - 250000 els 101.68 ms/op 375.32 ms/op 0.27
processSlot - 1 slots 9.8310 us/op 41.178 us/op 0.24
processSlot - 32 slots 1.4332 ms/op 5.5091 ms/op 0.26
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 38.017 ms/op 109.63 ms/op 0.35
getCommitteeAssignments - req 1 vs - 250000 vc 2.9641 ms/op 11.114 ms/op 0.27
getCommitteeAssignments - req 100 vs - 250000 vc 4.2349 ms/op 16.119 ms/op 0.26
getCommitteeAssignments - req 1000 vs - 250000 vc 4.4903 ms/op 17.005 ms/op 0.26
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.1800 ns/op 15.440 ns/op 0.34
state getBlockRootAtSlot - 250000 vs - 7PWei 849.54 ns/op 2.2872 us/op 0.37
computeProposers - vc 250000 11.750 ms/op 41.336 ms/op 0.28
computeEpochShuffling - vc 250000 105.72 ms/op 385.39 ms/op 0.27
getNextSyncCommittee - vc 250000 178.17 ms/op 664.19 ms/op 0.27
computeSigningRoot for AttestationData 14.079 us/op 52.035 us/op 0.27
hash AttestationData serialized data then Buffer.toString(base64) 2.5548 us/op 8.8869 us/op 0.29
toHexString serialized data 1.3005 us/op 4.9932 us/op 0.26
Buffer.toString(base64) 399.27 ns/op 1.4398 us/op 0.28

by benchmarkbot/action

@dapplion dapplion changed the title Add forkchoice data structures metrics feat: add forkchoice data structures metrics May 30, 2023
@wemeetagain wemeetagain merged commit 399687b into unstable May 31, 2023
11 checks passed
@wemeetagain wemeetagain deleted the dapplion/fork-choice-metrics branch May 31, 2023 17:21
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.9.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants