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: ensureWithinWeakSubjectivityPeriod #5837

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Aug 2, 2023

Motivation

  • More info when the downloaded state from checkpointSyncUrl is not within weak subjectivity peirod

Description

  • Separate isWithinWeakSubjectivityPeriod() function to isWithinWeakSubjectivityPeriod() and ensureWithinWeakSubjectivityPeriod(), the latter one throws more detailed error

@twoeths twoeths requested a review from a team as a code owner August 2, 2023 06:28
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

⚠️ Performance Alert ⚠️

Possible performance regression was detected for some benchmarks.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold.

Benchmark suite Current: a83228a Previous: 549aa03 Ratio
forkChoice updateHead vc 600000 bc 64 eq 300000 90.258 ms/op 29.643 ms/op 3.04
Full benchmark results
Benchmark suite Current: a83228a Previous: 549aa03 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 964.78 us/op 516.04 us/op 1.87
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 105.98 us/op 88.024 us/op 1.20
BLS verify - blst-native 1.3013 ms/op 1.2546 ms/op 1.04
BLS verifyMultipleSignatures 3 - blst-native 2.6549 ms/op 2.5651 ms/op 1.04
BLS verifyMultipleSignatures 8 - blst-native 5.9631 ms/op 5.4556 ms/op 1.09
BLS verifyMultipleSignatures 32 - blst-native 21.285 ms/op 19.849 ms/op 1.07
BLS aggregatePubkeys 32 - blst-native 28.859 us/op 26.213 us/op 1.10
BLS aggregatePubkeys 128 - blst-native 108.53 us/op 107.46 us/op 1.01
getAttestationsForBlock 80.714 ms/op 55.886 ms/op 1.44
isKnown best case - 1 super set check 476.00 ns/op 440.00 ns/op 1.08
isKnown normal case - 2 super set checks 495.00 ns/op 471.00 ns/op 1.05
isKnown worse case - 16 super set checks 475.00 ns/op 446.00 ns/op 1.07
CheckpointStateCache - add get delete 6.1140 us/op 5.9990 us/op 1.02
validate api signedAggregateAndProof - struct 2.9108 ms/op 2.9438 ms/op 0.99
validate gossip signedAggregateAndProof - struct 2.9056 ms/op 2.8969 ms/op 1.00
validate api attestation - struct 1.4635 ms/op 1.3754 ms/op 1.06
validate gossip attestation - struct 1.5030 ms/op 1.4118 ms/op 1.06
pickEth1Vote - no votes 1.3979 ms/op 1.2703 ms/op 1.10
pickEth1Vote - max votes 14.505 ms/op 12.710 ms/op 1.14
pickEth1Vote - Eth1Data hashTreeRoot value x2048 10.489 ms/op 9.2726 ms/op 1.13
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 16.997 ms/op 14.399 ms/op 1.18
pickEth1Vote - Eth1Data fastSerialize value x2048 797.90 us/op 625.04 us/op 1.28
pickEth1Vote - Eth1Data fastSerialize tree x2048 9.1070 ms/op 7.0151 ms/op 1.30
bytes32 toHexString 783.00 ns/op 510.00 ns/op 1.54
bytes32 Buffer.toString(hex) 315.00 ns/op 311.00 ns/op 1.01
bytes32 Buffer.toString(hex) from Uint8Array 550.00 ns/op 507.00 ns/op 1.08
bytes32 Buffer.toString(hex) + 0x 335.00 ns/op 317.00 ns/op 1.06
Object access 1 prop 0.26200 ns/op 0.15900 ns/op 1.65
Map access 1 prop 0.16600 ns/op 0.14700 ns/op 1.13
Object get x1000 8.8260 ns/op 7.2340 ns/op 1.22
Map get x1000 0.73700 ns/op 0.61700 ns/op 1.19
Object set x1000 85.836 ns/op 53.422 ns/op 1.61
Map set x1000 52.601 ns/op 41.127 ns/op 1.28
Return object 10000 times 0.27090 ns/op 0.24720 ns/op 1.10
Throw Error 10000 times 4.2468 us/op 3.9543 us/op 1.07
fastMsgIdFn sha256 / 200 bytes 3.5820 us/op 3.3860 us/op 1.06
fastMsgIdFn h32 xxhash / 200 bytes 385.00 ns/op 297.00 ns/op 1.30
fastMsgIdFn h64 xxhash / 200 bytes 438.00 ns/op 361.00 ns/op 1.21
fastMsgIdFn sha256 / 1000 bytes 13.058 us/op 11.535 us/op 1.13
fastMsgIdFn h32 xxhash / 1000 bytes 539.00 ns/op 431.00 ns/op 1.25
fastMsgIdFn h64 xxhash / 1000 bytes 513.00 ns/op 435.00 ns/op 1.18
fastMsgIdFn sha256 / 10000 bytes 110.41 us/op 104.61 us/op 1.06
fastMsgIdFn h32 xxhash / 10000 bytes 2.1220 us/op 2.0430 us/op 1.04
fastMsgIdFn h64 xxhash / 10000 bytes 1.4500 us/op 1.3790 us/op 1.05
enrSubnets - fastDeserialize 64 bits 1.6790 us/op 1.2810 us/op 1.31
enrSubnets - ssz BitVector 64 bits 583.00 ns/op 456.00 ns/op 1.28
enrSubnets - fastDeserialize 4 bits 252.00 ns/op 167.00 ns/op 1.51
enrSubnets - ssz BitVector 4 bits 587.00 ns/op 434.00 ns/op 1.35
prioritizePeers score -10:0 att 32-0.1 sync 2-0 121.89 us/op 106.58 us/op 1.14
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 149.19 us/op 139.92 us/op 1.07
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 203.68 us/op 167.66 us/op 1.21
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 354.89 us/op 332.38 us/op 1.07
prioritizePeers score 0:0 att 64-1 sync 4-1 409.40 us/op 372.31 us/op 1.10
array of 16000 items push then shift 1.7079 us/op 1.6312 us/op 1.05
LinkedList of 16000 items push then shift 10.163 ns/op 9.1730 ns/op 1.11
array of 16000 items push then pop 65.236 ns/op 59.891 ns/op 1.09
LinkedList of 16000 items push then pop 9.2420 ns/op 8.8780 ns/op 1.04
array of 24000 items push then shift 2.5752 us/op 2.4774 us/op 1.04
LinkedList of 24000 items push then shift 10.167 ns/op 9.1990 ns/op 1.11
array of 24000 items push then pop 134.91 ns/op 116.95 ns/op 1.15
LinkedList of 24000 items push then pop 9.4250 ns/op 8.7280 ns/op 1.08
intersect bitArray bitLen 8 7.4100 ns/op 6.9150 ns/op 1.07
intersect array and set length 8 100.93 ns/op 60.612 ns/op 1.67
intersect bitArray bitLen 128 34.639 ns/op 32.051 ns/op 1.08
intersect array and set length 128 935.36 ns/op 811.88 ns/op 1.15
bitArray.getTrueBitIndexes() bitLen 128 1.9340 us/op 1.4970 us/op 1.29
bitArray.getTrueBitIndexes() bitLen 248 3.4330 us/op 2.4730 us/op 1.39
bitArray.getTrueBitIndexes() bitLen 512 7.4770 us/op 4.9020 us/op 1.53
Buffer.concat 32 items 1.0690 us/op 1.0700 us/op 1.00
Uint8Array.set 32 items 1.7830 us/op 2.1420 us/op 0.83
transfer serialized Status (84 B) 1.8380 us/op 2.0260 us/op 0.91
copy serialized Status (84 B) 1.6980 us/op 1.7010 us/op 1.00
transfer serialized SignedVoluntaryExit (112 B) 1.9970 us/op 2.0490 us/op 0.97
copy serialized SignedVoluntaryExit (112 B) 1.8740 us/op 1.7320 us/op 1.08
transfer serialized ProposerSlashing (416 B) 2.4680 us/op 2.1230 us/op 1.16
copy serialized ProposerSlashing (416 B) 2.4240 us/op 1.8530 us/op 1.31
transfer serialized Attestation (485 B) 2.4290 us/op 2.0940 us/op 1.16
copy serialized Attestation (485 B) 4.0880 us/op 1.7770 us/op 2.30
transfer serialized AttesterSlashing (33232 B) 3.4380 us/op 2.2310 us/op 1.54
copy serialized AttesterSlashing (33232 B) 6.5150 us/op 4.7050 us/op 1.38
transfer serialized Small SignedBeaconBlock (128000 B) 2.7230 us/op 2.5550 us/op 1.07
copy serialized Small SignedBeaconBlock (128000 B) 15.973 us/op 12.925 us/op 1.24
transfer serialized Avg SignedBeaconBlock (200000 B) 3.0240 us/op 2.8190 us/op 1.07
copy serialized Avg SignedBeaconBlock (200000 B) 30.399 us/op 16.981 us/op 1.79
transfer serialized BlobsSidecar (524380 B) 3.4250 us/op 2.9160 us/op 1.17
copy serialized BlobsSidecar (524380 B) 94.940 us/op 76.278 us/op 1.24
transfer serialized Big SignedBeaconBlock (1000000 B) 4.3610 us/op 3.0180 us/op 1.44
copy serialized Big SignedBeaconBlock (1000000 B) 420.62 us/op 146.75 us/op 2.87
pass gossip attestations to forkchoice per slot 3.0766 ms/op 2.2481 ms/op 1.37
forkChoice updateHead vc 100000 bc 64 eq 0 3.7671 ms/op 2.2648 ms/op 1.66
forkChoice updateHead vc 600000 bc 64 eq 0 15.429 ms/op 14.695 ms/op 1.05
forkChoice updateHead vc 1000000 bc 64 eq 0 24.560 ms/op 23.186 ms/op 1.06
forkChoice updateHead vc 600000 bc 320 eq 0 21.577 ms/op 17.514 ms/op 1.23
forkChoice updateHead vc 600000 bc 1200 eq 0 107.26 ms/op 83.994 ms/op 1.28
forkChoice updateHead vc 600000 bc 64 eq 1000 24.829 ms/op 22.851 ms/op 1.09
forkChoice updateHead vc 600000 bc 64 eq 10000 27.422 ms/op 26.012 ms/op 1.05
forkChoice updateHead vc 600000 bc 64 eq 300000 90.258 ms/op 29.643 ms/op 3.04
computeDeltas 4.3015 ms/op 3.1199 ms/op 1.38
computeProposerBoostScoreFromBalances 441.58 us/op 405.96 us/op 1.09
altair processAttestation - 250000 vs - 7PWei normalcase 3.7403 ms/op 2.1933 ms/op 1.71
altair processAttestation - 250000 vs - 7PWei worstcase 4.9826 ms/op 3.4550 ms/op 1.44
altair processAttestation - setStatus - 1/6 committees join 206.76 us/op 208.09 us/op 0.99
altair processAttestation - setStatus - 1/3 committees join 399.00 us/op 404.95 us/op 0.99
altair processAttestation - setStatus - 1/2 committees join 492.80 us/op 551.88 us/op 0.89
altair processAttestation - setStatus - 2/3 committees join 675.45 us/op 776.62 us/op 0.87
altair processAttestation - setStatus - 4/5 committees join 897.46 us/op 1.0573 ms/op 0.85
altair processAttestation - setStatus - 100% committees join 1.0054 ms/op 1.0007 ms/op 1.00
altair processBlock - 250000 vs - 7PWei normalcase 11.948 ms/op 10.730 ms/op 1.11
altair processBlock - 250000 vs - 7PWei normalcase hashState 18.840 ms/op 18.034 ms/op 1.04
altair processBlock - 250000 vs - 7PWei worstcase 41.431 ms/op 41.334 ms/op 1.00
altair processBlock - 250000 vs - 7PWei worstcase hashState 65.580 ms/op 64.323 ms/op 1.02
phase0 processBlock - 250000 vs - 7PWei normalcase 2.5593 ms/op 2.9505 ms/op 0.87
phase0 processBlock - 250000 vs - 7PWei worstcase 32.985 ms/op 33.856 ms/op 0.97
altair processEth1Data - 250000 vs - 7PWei normalcase 740.08 us/op 534.61 us/op 1.38
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 19.969 us/op 13.464 us/op 1.48
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 113.33 us/op 87.187 us/op 1.30
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 26.583 us/op 32.629 us/op 0.81
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 21.308 us/op 19.580 us/op 1.09
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 238.33 us/op 196.48 us/op 1.21
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.5155 ms/op 1.5460 ms/op 0.98
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.6994 ms/op 2.2142 ms/op 0.77
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.2373 ms/op 2.1806 ms/op 1.03
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.7157 ms/op 4.4672 ms/op 1.06
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 3.2436 ms/op 2.9153 ms/op 1.11
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 9.4965 ms/op 6.6881 ms/op 1.42
Tree 40 250000 create 553.42 ms/op 419.00 ms/op 1.32
Tree 40 250000 get(125000) 227.03 ns/op 216.29 ns/op 1.05
Tree 40 250000 set(125000) 1.4797 us/op 1.0957 us/op 1.35
Tree 40 250000 toArray() 26.302 ms/op 22.962 ms/op 1.15
Tree 40 250000 iterate all - toArray() + loop 27.510 ms/op 24.161 ms/op 1.14
Tree 40 250000 iterate all - get(i) 86.009 ms/op 78.525 ms/op 1.10
MutableVector 250000 create 16.745 ms/op 14.885 ms/op 1.12
MutableVector 250000 get(125000) 6.8910 ns/op 6.9740 ns/op 0.99
MutableVector 250000 set(125000) 411.84 ns/op 536.74 ns/op 0.77
MutableVector 250000 toArray() 5.0826 ms/op 4.9435 ms/op 1.03
MutableVector 250000 iterate all - toArray() + loop 4.4405 ms/op 4.8235 ms/op 0.92
MutableVector 250000 iterate all - get(i) 1.7269 ms/op 1.8946 ms/op 0.91
Array 250000 create 3.9434 ms/op 3.7773 ms/op 1.04
Array 250000 clone - spread 1.1960 ms/op 1.2137 ms/op 0.99
Array 250000 get(125000) 0.61400 ns/op 0.61100 ns/op 1.00
Array 250000 set(125000) 0.74400 ns/op 0.67900 ns/op 1.10
Array 250000 iterate all - loop 95.504 us/op 91.721 us/op 1.04
effectiveBalanceIncrements clone Uint8Array 300000 46.902 us/op 63.444 us/op 0.74
effectiveBalanceIncrements clone MutableVector 300000 291.00 ns/op 307.00 ns/op 0.95
effectiveBalanceIncrements rw all Uint8Array 300000 197.27 us/op 204.63 us/op 0.96
effectiveBalanceIncrements rw all MutableVector 300000 137.35 ms/op 83.256 ms/op 1.65
phase0 afterProcessEpoch - 250000 vs - 7PWei 136.61 ms/op 117.85 ms/op 1.16
phase0 beforeProcessEpoch - 250000 vs - 7PWei 57.193 ms/op 36.321 ms/op 1.57
altair processEpoch - mainnet_e81889 398.91 ms/op 325.46 ms/op 1.23
mainnet_e81889 - altair beforeProcessEpoch 89.165 ms/op 59.793 ms/op 1.49
mainnet_e81889 - altair processJustificationAndFinalization 30.283 us/op 20.502 us/op 1.48
mainnet_e81889 - altair processInactivityUpdates 8.1348 ms/op 6.1506 ms/op 1.32
mainnet_e81889 - altair processRewardsAndPenalties 84.243 ms/op 65.490 ms/op 1.29
mainnet_e81889 - altair processRegistryUpdates 6.1570 us/op 3.4810 us/op 1.77
mainnet_e81889 - altair processSlashings 1.5670 us/op 552.00 ns/op 2.84
mainnet_e81889 - altair processEth1DataReset 2.1000 us/op 939.00 ns/op 2.24
mainnet_e81889 - altair processEffectiveBalanceUpdates 2.1174 ms/op 1.4255 ms/op 1.49
mainnet_e81889 - altair processSlashingsReset 5.6900 us/op 4.1280 us/op 1.38
mainnet_e81889 - altair processRandaoMixesReset 6.1680 us/op 6.2090 us/op 0.99
mainnet_e81889 - altair processHistoricalRootsUpdate 1.9920 us/op 1.4220 us/op 1.40
mainnet_e81889 - altair processParticipationFlagUpdates 4.1260 us/op 2.6160 us/op 1.58
mainnet_e81889 - altair processSyncCommitteeUpdates 1.0010 us/op 628.00 ns/op 1.59
mainnet_e81889 - altair afterProcessEpoch 138.58 ms/op 130.57 ms/op 1.06
capella processEpoch - mainnet_e217614 1.1206 s/op 1.0445 s/op 1.07
mainnet_e217614 - capella beforeProcessEpoch 265.88 ms/op 260.61 ms/op 1.02
mainnet_e217614 - capella processJustificationAndFinalization 19.434 us/op 19.501 us/op 1.00
mainnet_e217614 - capella processInactivityUpdates 19.421 ms/op 18.164 ms/op 1.07
mainnet_e217614 - capella processRewardsAndPenalties 303.69 ms/op 284.95 ms/op 1.07
mainnet_e217614 - capella processRegistryUpdates 22.735 us/op 23.527 us/op 0.97
mainnet_e217614 - capella processSlashings 563.00 ns/op 686.00 ns/op 0.82
mainnet_e217614 - capella processEth1DataReset 545.00 ns/op 707.00 ns/op 0.77
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.1296 ms/op 4.4607 ms/op 0.93
mainnet_e217614 - capella processSlashingsReset 2.8150 us/op 4.5810 us/op 0.61
mainnet_e217614 - capella processRandaoMixesReset 4.4670 us/op 5.7850 us/op 0.77
mainnet_e217614 - capella processHistoricalRootsUpdate 631.00 ns/op 1.1330 us/op 0.56
mainnet_e217614 - capella processParticipationFlagUpdates 1.6850 us/op 5.4430 us/op 0.31
mainnet_e217614 - capella afterProcessEpoch 308.25 ms/op 321.71 ms/op 0.96
phase0 processEpoch - mainnet_e58758 356.02 ms/op 532.36 ms/op 0.67
mainnet_e58758 - phase0 beforeProcessEpoch 152.58 ms/op 225.32 ms/op 0.68
mainnet_e58758 - phase0 processJustificationAndFinalization 18.983 us/op 26.090 us/op 0.73
mainnet_e58758 - phase0 processRewardsAndPenalties 49.386 ms/op 57.173 ms/op 0.86
mainnet_e58758 - phase0 processRegistryUpdates 16.157 us/op 17.325 us/op 0.93
mainnet_e58758 - phase0 processSlashings 732.00 ns/op 1.1320 us/op 0.65
mainnet_e58758 - phase0 processEth1DataReset 686.00 ns/op 1.1010 us/op 0.62
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0873 ms/op 1.5448 ms/op 0.70
mainnet_e58758 - phase0 processSlashingsReset 2.9260 us/op 6.5220 us/op 0.45
mainnet_e58758 - phase0 processRandaoMixesReset 9.6910 us/op 10.581 us/op 0.92
mainnet_e58758 - phase0 processHistoricalRootsUpdate 827.00 ns/op 1.4340 us/op 0.58
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.7680 us/op 8.2870 us/op 0.58
mainnet_e58758 - phase0 afterProcessEpoch 113.22 ms/op 118.90 ms/op 0.95
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.9301 ms/op 1.6846 ms/op 1.15
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4965 ms/op 2.5247 ms/op 0.59
altair processInactivityUpdates - 250000 normalcase 20.939 ms/op 41.105 ms/op 0.51
altair processInactivityUpdates - 250000 worstcase 22.841 ms/op 51.613 ms/op 0.44
phase0 processRegistryUpdates - 250000 normalcase 14.943 us/op 24.634 us/op 0.61
phase0 processRegistryUpdates - 250000 badcase_full_deposits 382.19 us/op 760.62 us/op 0.50
phase0 processRegistryUpdates - 250000 worstcase 0.5 125.02 ms/op 248.19 ms/op 0.50
altair processRewardsAndPenalties - 250000 normalcase 49.938 ms/op 96.054 ms/op 0.52
altair processRewardsAndPenalties - 250000 worstcase 60.429 ms/op 95.719 ms/op 0.63
phase0 getAttestationDeltas - 250000 normalcase 8.9838 ms/op 12.618 ms/op 0.71
phase0 getAttestationDeltas - 250000 worstcase 8.7451 ms/op 14.931 ms/op 0.59
phase0 processSlashings - 250000 worstcase 2.2563 ms/op 3.9802 ms/op 0.57
altair processSyncCommitteeUpdates - 250000 162.95 ms/op 182.29 ms/op 0.89
BeaconState.hashTreeRoot - No change 271.00 ns/op 410.00 ns/op 0.66
BeaconState.hashTreeRoot - 1 full validator 53.920 us/op 61.539 us/op 0.88
BeaconState.hashTreeRoot - 32 full validator 538.30 us/op 677.82 us/op 0.79
BeaconState.hashTreeRoot - 512 full validator 5.6112 ms/op 7.9795 ms/op 0.70
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 68.738 us/op 74.423 us/op 0.92
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 907.71 us/op 1.0558 ms/op 0.86
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 12.419 ms/op 12.978 ms/op 0.96
BeaconState.hashTreeRoot - 1 balances 49.750 us/op 52.665 us/op 0.94
BeaconState.hashTreeRoot - 32 balances 481.44 us/op 543.40 us/op 0.89
BeaconState.hashTreeRoot - 512 balances 4.7460 ms/op 6.1875 ms/op 0.77
BeaconState.hashTreeRoot - 250000 balances 76.671 ms/op 83.196 ms/op 0.92
aggregationBits - 2048 els - zipIndexesInBitList 17.107 us/op 18.703 us/op 0.91
regular array get 100000 times 34.433 us/op 46.455 us/op 0.74
wrappedArray get 100000 times 34.483 us/op 43.556 us/op 0.79
arrayWithProxy get 100000 times 14.832 ms/op 15.543 ms/op 0.95
ssz.Root.equals 252.00 ns/op 235.00 ns/op 1.07
byteArrayEquals 253.00 ns/op 252.00 ns/op 1.00
shuffle list - 16384 els 7.1198 ms/op 7.8984 ms/op 0.90
shuffle list - 250000 els 104.60 ms/op 107.67 ms/op 0.97
processSlot - 1 slots 9.0700 us/op 9.1370 us/op 0.99
processSlot - 32 slots 1.3765 ms/op 1.4556 ms/op 0.95
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 53.241 ms/op 64.209 ms/op 0.83
getCommitteeAssignments - req 1 vs - 250000 vc 2.6555 ms/op 2.7209 ms/op 0.98
getCommitteeAssignments - req 100 vs - 250000 vc 3.7940 ms/op 3.9234 ms/op 0.97
getCommitteeAssignments - req 1000 vs - 250000 vc 4.2029 ms/op 4.4275 ms/op 0.95
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.1600 ns/op 5.6900 ns/op 1.08
state getBlockRootAtSlot - 250000 vs - 7PWei 823.37 ns/op 737.61 ns/op 1.12
computeProposers - vc 250000 10.267 ms/op 10.173 ms/op 1.01
computeEpochShuffling - vc 250000 116.92 ms/op 113.57 ms/op 1.03
getNextSyncCommittee - vc 250000 162.50 ms/op 173.88 ms/op 0.93
computeSigningRoot for AttestationData 14.461 us/op 15.520 us/op 0.93
hash AttestationData serialized data then Buffer.toString(base64) 2.4266 us/op 2.6397 us/op 0.92
toHexString serialized data 1.1824 us/op 1.5425 us/op 0.77
Buffer.toString(base64) 261.00 ns/op 282.81 ns/op 0.92

by benchmarkbot/action

@wemeetagain wemeetagain merged commit 60fd2b7 into unstable Aug 3, 2023
9 of 11 checks passed
@wemeetagain wemeetagain deleted the tuyen/ensureWithinWeakSubjectivityPeriod branch August 3, 2023 14:22
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