Skip to content

Update yarn.lock - #4902

Merged
dapplion merged 1 commit into
unstablefrom
tuyen/update-yarn-lock
Dec 13, 2022
Merged

Update yarn.lock#4902
dapplion merged 1 commit into
unstablefrom
tuyen/update-yarn-lock

Conversation

@twoeths

@twoeths twoeths commented Dec 13, 2022

Copy link
Copy Markdown
Member

Motivation

yarn.lock is out of date

Description

Update yarn.lock

@twoeths
twoeths requested a review from a team as a code owner December 13, 2022 01:54
@dapplion
dapplion enabled auto-merge (squash) December 13, 2022 01:57
@github-actions

Copy link
Copy Markdown
Contributor

Performance Report

鉁旓笍 no performance regression detected

Full benchmark results
Benchmark suite Current: af072ab Previous: 7d662d7 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.2436 ms/op 1.1903 ms/op 1.04
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 73.163 us/op 74.022 us/op 0.99
BLS verify - blst-native 1.8613 ms/op 1.8588 ms/op 1.00
BLS verifyMultipleSignatures 3 - blst-native 3.8083 ms/op 3.8064 ms/op 1.00
BLS verifyMultipleSignatures 8 - blst-native 8.1995 ms/op 8.2004 ms/op 1.00
BLS verifyMultipleSignatures 32 - blst-native 29.718 ms/op 29.710 ms/op 1.00
BLS aggregatePubkeys 32 - blst-native 40.018 us/op 39.313 us/op 1.02
BLS aggregatePubkeys 128 - blst-native 153.93 us/op 154.09 us/op 1.00
getAttestationsForBlock 88.527 ms/op 91.217 ms/op 0.97
isKnown best case - 1 super set check 424.00 ns/op 491.00 ns/op 0.86
isKnown normal case - 2 super set checks 410.00 ns/op 488.00 ns/op 0.84
isKnown worse case - 16 super set checks 408.00 ns/op 477.00 ns/op 0.86
CheckpointStateCache - add get delete 8.5230 us/op 8.4500 us/op 1.01
validate gossip signedAggregateAndProof - struct 4.2632 ms/op 4.2700 ms/op 1.00
validate gossip attestation - struct 2.0276 ms/op 2.0276 ms/op 1.00
pickEth1Vote - no votes 2.0984 ms/op 2.1684 ms/op 0.97
pickEth1Vote - max votes 16.206 ms/op 17.640 ms/op 0.92
pickEth1Vote - Eth1Data hashTreeRoot value x2048 11.964 ms/op 12.006 ms/op 1.00
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 20.739 ms/op 22.383 ms/op 0.93
pickEth1Vote - Eth1Data fastSerialize value x2048 1.2844 ms/op 1.2730 ms/op 1.01
pickEth1Vote - Eth1Data fastSerialize tree x2048 10.005 ms/op 10.186 ms/op 0.98
bytes32 toHexString 1.0740 us/op 1.1010 us/op 0.98
bytes32 Buffer.toString(hex) 570.00 ns/op 599.00 ns/op 0.95
bytes32 Buffer.toString(hex) from Uint8Array 865.00 ns/op 983.00 ns/op 0.88
bytes32 Buffer.toString(hex) + 0x 566.00 ns/op 608.00 ns/op 0.93
Object access 1 prop 0.27300 ns/op 0.28600 ns/op 0.95
Map access 1 prop 0.25300 ns/op 0.25500 ns/op 0.99
Object get x1000 16.726 ns/op 16.895 ns/op 0.99
Map get x1000 0.98400 ns/op 0.99600 ns/op 0.99
Object set x1000 112.94 ns/op 115.52 ns/op 0.98
Map set x1000 72.574 ns/op 72.805 ns/op 1.00
Return object 10000 times 0.37370 ns/op 0.36510 ns/op 1.02
Throw Error 10000 times 6.7326 us/op 6.7531 us/op 1.00
fastMsgIdFn sha256 / 200 bytes 4.1870 us/op 4.2840 us/op 0.98
fastMsgIdFn h32 xxhash / 200 bytes 450.00 ns/op 461.00 ns/op 0.98
fastMsgIdFn h64 xxhash / 200 bytes 639.00 ns/op 682.00 ns/op 0.94
fastMsgIdFn sha256 / 1000 bytes 13.679 us/op 13.417 us/op 1.02
fastMsgIdFn h32 xxhash / 1000 bytes 596.00 ns/op 612.00 ns/op 0.97
fastMsgIdFn h64 xxhash / 1000 bytes 734.00 ns/op 744.00 ns/op 0.99
fastMsgIdFn sha256 / 10000 bytes 117.56 us/op 116.98 us/op 1.00
fastMsgIdFn h32 xxhash / 10000 bytes 2.2920 us/op 2.3010 us/op 1.00
fastMsgIdFn h64 xxhash / 10000 bytes 1.6180 us/op 1.6490 us/op 0.98
enrSubnets - fastDeserialize 64 bits 2.2670 us/op 2.4750 us/op 0.92
enrSubnets - ssz BitVector 64 bits 843.00 ns/op 828.00 ns/op 1.02
enrSubnets - fastDeserialize 4 bits 294.00 ns/op 292.00 ns/op 1.01
enrSubnets - ssz BitVector 4 bits 795.00 ns/op 853.00 ns/op 0.93
prioritizePeers score -10:0 att 32-0.1 sync 2-0 95.959 us/op 99.681 us/op 0.96
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 135.23 us/op 136.82 us/op 0.99
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 259.63 us/op 270.92 us/op 0.96
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 400.10 us/op 412.56 us/op 0.97
prioritizePeers score 0:0 att 64-1 sync 4-1 515.01 us/op 533.30 us/op 0.97
RateTracker 1000000 limit, 1 obj count per request 179.95 ns/op 181.38 ns/op 0.99
RateTracker 1000000 limit, 2 obj count per request 133.82 ns/op 136.32 ns/op 0.98
RateTracker 1000000 limit, 4 obj count per request 109.26 ns/op 112.67 ns/op 0.97
RateTracker 1000000 limit, 8 obj count per request 97.184 ns/op 101.04 ns/op 0.96
RateTracker with prune 3.6930 us/op 4.0460 us/op 0.91
array of 16000 items push then shift 2.8148 us/op 2.7417 us/op 1.03
LinkedList of 16000 items push then shift 17.208 ns/op 18.858 ns/op 0.91
array of 16000 items push then pop 211.24 ns/op 220.34 ns/op 0.96
LinkedList of 16000 items push then pop 16.568 ns/op 17.686 ns/op 0.94
array of 24000 items push then shift 3.9677 us/op 3.9743 us/op 1.00
LinkedList of 24000 items push then shift 20.194 ns/op 22.889 ns/op 0.88
array of 24000 items push then pop 212.36 ns/op 210.68 ns/op 1.01
LinkedList of 24000 items push then pop 17.807 ns/op 19.843 ns/op 0.90
intersect bitArray bitLen 8 29.377 ns/op 29.064 ns/op 1.01
intersect array and set length 8 162.94 ns/op 165.21 ns/op 0.99
intersect bitArray bitLen 128 108.74 ns/op 108.33 ns/op 1.00
intersect array and set length 128 2.2792 us/op 2.3098 us/op 0.99
Buffer.concat 32 items 5.1870 us/op 5.1780 us/op 1.00
Uint8Array.set 32 items 4.0620 us/op 4.2180 us/op 0.96
pass gossip attestations to forkchoice per slot 6.2529 ms/op 4.2862 ms/op 1.46
computeDeltas 6.4514 ms/op 6.1586 ms/op 1.05
computeProposerBoostScoreFromBalances 2.8364 ms/op 2.8454 ms/op 1.00
altair processAttestation - 250000 vs - 7PWei normalcase 3.6353 ms/op 4.7057 ms/op 0.77
altair processAttestation - 250000 vs - 7PWei worstcase 5.8157 ms/op 7.5672 ms/op 0.77
altair processAttestation - setStatus - 1/6 committees join 208.64 us/op 214.32 us/op 0.97
altair processAttestation - setStatus - 1/3 committees join 400.14 us/op 407.19 us/op 0.98
altair processAttestation - setStatus - 1/2 committees join 559.92 us/op 567.21 us/op 0.99
altair processAttestation - setStatus - 2/3 committees join 718.00 us/op 724.05 us/op 0.99
altair processAttestation - setStatus - 4/5 committees join 995.16 us/op 1.0096 ms/op 0.99
altair processAttestation - setStatus - 100% committees join 1.1818 ms/op 1.2052 ms/op 0.98
altair processBlock - 250000 vs - 7PWei normalcase 26.321 ms/op 27.486 ms/op 0.96
altair processBlock - 250000 vs - 7PWei normalcase hashState 35.460 ms/op 43.202 ms/op 0.82
altair processBlock - 250000 vs - 7PWei worstcase 78.270 ms/op 82.451 ms/op 0.95
altair processBlock - 250000 vs - 7PWei worstcase hashState 95.013 ms/op 112.42 ms/op 0.85
phase0 processBlock - 250000 vs - 7PWei normalcase 3.5795 ms/op 3.6044 ms/op 0.99
phase0 processBlock - 250000 vs - 7PWei worstcase 46.417 ms/op 46.907 ms/op 0.99
altair processEth1Data - 250000 vs - 7PWei normalcase 839.70 us/op 833.16 us/op 1.01
vc - 250000 eb 1 eth1 1 we 0 wn 0 - smpl 15 9.4240 us/op 9.2230 us/op 1.02
vc - 250000 eb 0.95 eth1 0.1 we 0.05 wn 0 - smpl 219 27.809 us/op 28.091 us/op 0.99
vc - 250000 eb 0.95 eth1 0.3 we 0.05 wn 0 - smpl 42 12.522 us/op 12.482 us/op 1.00
vc - 250000 eb 0.95 eth1 0.7 we 0.05 wn 0 - smpl 18 9.8350 us/op 10.133 us/op 0.97
vc - 250000 eb 0.1 eth1 0.1 we 0 wn 0 - smpl 1020 111.43 us/op 100.99 us/op 1.10
vc - 250000 eb 0.03 eth1 0.03 we 0 wn 0 - smpl 11777 995.70 us/op 1.0059 ms/op 0.99
vc - 250000 eb 0.01 eth1 0.01 we 0 wn 0 - smpl 141069 13.166 ms/op 13.837 ms/op 0.95
vc - 250000 eb 0 eth1 0 we 0 wn 0 - smpl 250000 23.166 ms/op 24.736 ms/op 0.94
vc - 250000 eb 0 eth1 0 we 0 wn 0 nocache - smpl 250000 77.095 ms/op 77.355 ms/op 1.00
vc - 250000 eb 0 eth1 1 we 0 wn 0 - smpl 250000 46.156 ms/op 47.845 ms/op 0.96
vc - 250000 eb 0 eth1 1 we 0 wn 0 nocache - smpl 250000 122.71 ms/op 123.12 ms/op 1.00
Tree 40 250000 create 635.32 ms/op 723.84 ms/op 0.88
Tree 40 250000 get(125000) 287.70 ns/op 294.10 ns/op 0.98
Tree 40 250000 set(125000) 2.1190 us/op 2.3968 us/op 0.88
Tree 40 250000 toArray() 30.918 ms/op 32.877 ms/op 0.94
Tree 40 250000 iterate all - toArray() + loop 31.090 ms/op 33.414 ms/op 0.93
Tree 40 250000 iterate all - get(i) 108.63 ms/op 112.16 ms/op 0.97
MutableVector 250000 create 15.435 ms/op 18.443 ms/op 0.84
MutableVector 250000 get(125000) 13.065 ns/op 13.108 ns/op 1.00
MutableVector 250000 set(125000) 592.32 ns/op 647.63 ns/op 0.91
MutableVector 250000 toArray() 7.2350 ms/op 6.6613 ms/op 1.09
MutableVector 250000 iterate all - toArray() + loop 6.4145 ms/op 6.9496 ms/op 0.92
MutableVector 250000 iterate all - get(i) 3.4594 ms/op 3.4600 ms/op 1.00
Array 250000 create 6.0774 ms/op 6.3063 ms/op 0.96
Array 250000 clone - spread 2.2439 ms/op 2.6907 ms/op 0.83
Array 250000 get(125000) 0.96700 ns/op 1.1710 ns/op 0.83
Array 250000 set(125000) 0.97900 ns/op 1.1290 ns/op 0.87
Array 250000 iterate all - loop 167.69 us/op 167.74 us/op 1.00
effectiveBalanceIncrements clone Uint8Array 300000 66.938 us/op 88.169 us/op 0.76
effectiveBalanceIncrements clone MutableVector 300000 605.00 ns/op 818.00 ns/op 0.74
effectiveBalanceIncrements rw all Uint8Array 300000 255.38 us/op 252.72 us/op 1.01
effectiveBalanceIncrements rw all MutableVector 300000 165.29 ms/op 208.22 ms/op 0.79
phase0 afterProcessEpoch - 250000 vs - 7PWei 185.32 ms/op 188.30 ms/op 0.98
phase0 beforeProcessEpoch - 250000 vs - 7PWei 71.146 ms/op 96.926 ms/op 0.73
altair processEpoch - mainnet_e81889 492.58 ms/op 515.00 ms/op 0.96
mainnet_e81889 - altair beforeProcessEpoch 132.71 ms/op 145.51 ms/op 0.91
mainnet_e81889 - altair processJustificationAndFinalization 20.711 us/op 26.214 us/op 0.79
mainnet_e81889 - altair processInactivityUpdates 11.050 ms/op 11.546 ms/op 0.96
mainnet_e81889 - altair processRewardsAndPenalties 89.788 ms/op 93.374 ms/op 0.96
mainnet_e81889 - altair processRegistryUpdates 2.8050 us/op 3.5190 us/op 0.80
mainnet_e81889 - altair processSlashings 708.00 ns/op 1.0020 us/op 0.71
mainnet_e81889 - altair processEth1DataReset 689.00 ns/op 1.0070 us/op 0.68
mainnet_e81889 - altair processEffectiveBalanceUpdates 2.3152 ms/op 2.3688 ms/op 0.98
mainnet_e81889 - altair processSlashingsReset 5.6660 us/op 7.4720 us/op 0.76
mainnet_e81889 - altair processRandaoMixesReset 5.3190 us/op 7.4240 us/op 0.72
mainnet_e81889 - altair processHistoricalRootsUpdate 786.00 ns/op 972.00 ns/op 0.81
mainnet_e81889 - altair processParticipationFlagUpdates 2.5880 us/op 4.0600 us/op 0.64
mainnet_e81889 - altair processSyncCommitteeUpdates 684.00 ns/op 902.00 ns/op 0.76
mainnet_e81889 - altair afterProcessEpoch 194.79 ms/op 195.81 ms/op 0.99
phase0 processEpoch - mainnet_e58758 522.65 ms/op 549.11 ms/op 0.95
mainnet_e58758 - phase0 beforeProcessEpoch 229.53 ms/op 256.81 ms/op 0.89
mainnet_e58758 - phase0 processJustificationAndFinalization 21.806 us/op 28.712 us/op 0.76
mainnet_e58758 - phase0 processRewardsAndPenalties 134.10 ms/op 141.66 ms/op 0.95
mainnet_e58758 - phase0 processRegistryUpdates 9.4180 us/op 11.663 us/op 0.81
mainnet_e58758 - phase0 processSlashings 638.00 ns/op 950.00 ns/op 0.67
mainnet_e58758 - phase0 processEth1DataReset 665.00 ns/op 972.00 ns/op 0.68
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.9640 ms/op 2.1920 ms/op 0.90
mainnet_e58758 - phase0 processSlashingsReset 4.2010 us/op 6.2420 us/op 0.67
mainnet_e58758 - phase0 processRandaoMixesReset 5.3750 us/op 7.9730 us/op 0.67
mainnet_e58758 - phase0 processHistoricalRootsUpdate 762.00 ns/op 1.2200 us/op 0.62
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.3150 us/op 5.8610 us/op 0.74
mainnet_e58758 - phase0 afterProcessEpoch 160.56 ms/op 165.16 ms/op 0.97
phase0 processEffectiveBalanceUpdates - 250000 normalcase 2.8073 ms/op 2.7915 ms/op 1.01
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 3.2688 ms/op 3.2537 ms/op 1.00
altair processInactivityUpdates - 250000 normalcase 39.780 ms/op 42.530 ms/op 0.94
altair processInactivityUpdates - 250000 worstcase 49.709 ms/op 54.187 ms/op 0.92
phase0 processRegistryUpdates - 250000 normalcase 8.0440 us/op 9.7250 us/op 0.83
phase0 processRegistryUpdates - 250000 badcase_full_deposits 426.63 us/op 494.43 us/op 0.86
phase0 processRegistryUpdates - 250000 worstcase 0.5 216.83 ms/op 225.12 ms/op 0.96
altair processRewardsAndPenalties - 250000 normalcase 122.51 ms/op 131.08 ms/op 0.93
altair processRewardsAndPenalties - 250000 worstcase 85.431 ms/op 87.703 ms/op 0.97
phase0 getAttestationDeltas - 250000 normalcase 12.827 ms/op 12.956 ms/op 0.99
phase0 getAttestationDeltas - 250000 worstcase 12.937 ms/op 13.823 ms/op 0.94
phase0 processSlashings - 250000 worstcase 5.7341 ms/op 5.7295 ms/op 1.00
altair processSyncCommitteeUpdates - 250000 270.42 ms/op 277.73 ms/op 0.97
BeaconState.hashTreeRoot - No change 461.00 ns/op 453.00 ns/op 1.02
BeaconState.hashTreeRoot - 1 full validator 60.766 us/op 65.501 us/op 0.93
BeaconState.hashTreeRoot - 32 full validator 609.98 us/op 597.11 us/op 1.02
BeaconState.hashTreeRoot - 512 full validator 7.4690 ms/op 7.6816 ms/op 0.97
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 75.688 us/op 75.816 us/op 1.00
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.1387 ms/op 1.1938 ms/op 0.95
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 15.831 ms/op 15.552 ms/op 1.02
BeaconState.hashTreeRoot - 1 balances 58.855 us/op 61.337 us/op 0.96
BeaconState.hashTreeRoot - 32 balances 557.86 us/op 571.63 us/op 0.98
BeaconState.hashTreeRoot - 512 balances 5.7570 ms/op 5.8633 ms/op 0.98
BeaconState.hashTreeRoot - 250000 balances 90.645 ms/op 96.845 ms/op 0.94
aggregationBits - 2048 els - zipIndexesInBitList 26.607 us/op 30.222 us/op 0.88
regular array get 100000 times 67.317 us/op 67.414 us/op 1.00
wrappedArray get 100000 times 67.307 us/op 67.354 us/op 1.00
arrayWithProxy get 100000 times 28.431 ms/op 28.314 ms/op 1.00
ssz.Root.equals 1.0670 us/op 1.0740 us/op 0.99
byteArrayEquals 1.0990 us/op 1.0760 us/op 1.02
shuffle list - 16384 els 11.149 ms/op 11.282 ms/op 0.99
shuffle list - 250000 els 165.84 ms/op 166.05 ms/op 1.00
processSlot - 1 slots 12.482 us/op 12.212 us/op 1.02
processSlot - 32 slots 1.7130 ms/op 1.7688 ms/op 0.97
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 337.21 us/op 345.13 us/op 0.98
getCommitteeAssignments - req 1 vs - 250000 vc 5.6288 ms/op 5.5829 ms/op 1.01
getCommitteeAssignments - req 100 vs - 250000 vc 7.5588 ms/op 7.5302 ms/op 1.00
getCommitteeAssignments - req 1000 vs - 250000 vc 8.1279 ms/op 8.1182 ms/op 1.00
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 9.7800 ns/op 9.5900 ns/op 1.02
state getBlockRootAtSlot - 250000 vs - 7PWei 1.1982 us/op 1.2209 us/op 0.98
computeProposers - vc 250000 16.257 ms/op 16.518 ms/op 0.98
computeEpochShuffling - vc 250000 171.54 ms/op 172.24 ms/op 1.00
getNextSyncCommittee - vc 250000 270.04 ms/op 274.44 ms/op 0.98

by benchmarkbot/action

@dapplion
dapplion merged commit 32a02a7 into unstable Dec 13, 2022
@dapplion
dapplion deleted the tuyen/update-yarn-lock branch December 13, 2022 02:20
lodekeeper added a commit to lodekeeper/lodestar that referenced this pull request Feb 27, 2026
Integrate executable gossip validation reference tests from
ethereum/consensus-specs PR ChainSafe#4902 into Lodestar's spec test suite.

Test harness (gossipValidation.ts):
- Bootstrap real BeaconChain from genesis state
- Import setup blocks via state transition
- Wire finalized checkpoint into fork-choice store
- Track failed-block roots for pre-validation filtering
- Support all 6 gossip topics: beacon_block, beacon_attestation,
  beacon_aggregate_and_proof, proposer_slashing, attester_slashing,
  voluntary_exit
- Custom clock with ms-aware gossip disparity

Production fixes found by spec tests:
- attesterSlashing: add missing isSlashableValidator check
  (spec requires at least one intersecting validator is slashable)
- block: change NOT_LATER_THAN_PARENT from IGNORE to REJECT
  (spec says REJECT for block not from higher slot than parent)

Skipped tests (1):
- reject_invalid_signature (attestation): Lodestar intentionally
  classifies invalid attestation signatures as IGNORE on gossip

Co-authored-by: Lodekeeper <lodekeeper@users.noreply.github.com>
lodekeeper added a commit to lodekeeper/lodestar that referenced this pull request Mar 12, 2026
Fix the pre-Deneb attestation old-boundary propagation window so Lodestar matches the unreleased consensus-specs phase0 executable gossip tests.

Also add a networking-only LODESTAR_NETWORKING_REFTESTS_DIR override so local consensus-specs reftests can be exercised without changing global spec-test versioning, and add regression coverage for the exact old-boundary / just-past-boundary cases.

Validated with:
- make test k=gossip reftests=true fork=phase0 (in ~/consensus-specs PR ChainSafe#4902 branch)
- LODESTAR_NETWORKING_REFTESTS_DIR=~/consensus-specs/reftests SPEC_FILTER_FORK=phase0 pnpm exec vitest run packages/beacon-node/test/spec/presets/networking.test.ts --project spec-minimal --project spec-mainnet
- pnpm lint
- pnpm check-types
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.

2 participants