-
-
Notifications
You must be signed in to change notification settings - Fork 306
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: update gnosis capella preset values #5503
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dapplion
changed the title
Update gnosis capella preset values
feat: update gnosis capella preset values
May 17, 2023
nflaig
approved these changes
May 17, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
Benchmark suite | Current: cb7804d | Previous: 1602f67 | Ratio |
---|---|---|---|
BeaconState.hashTreeRoot - No change | 1.0610 us/op | 312.00 ns/op | 3.40 |
wrappedArray get 100000 times | 158.08 us/op | 34.673 us/op | 4.56 |
arrayWithProxy get 100000 times | 62.014 ms/op | 17.291 ms/op | 3.59 |
Full benchmark results
Benchmark suite | Current: cb7804d | Previous: 1602f67 | Ratio |
---|---|---|---|
getPubkeys - index2pubkey - req 1000 vs - 250000 vc | 834.62 us/op | 630.64 us/op | 1.32 |
getPubkeys - validatorsArr - req 1000 vs - 250000 vc | 65.848 us/op | 46.936 us/op | 1.40 |
BLS verify - blst-native | 1.5462 ms/op | 1.2233 ms/op | 1.26 |
BLS verifyMultipleSignatures 3 - blst-native | 3.0185 ms/op | 2.4936 ms/op | 1.21 |
BLS verifyMultipleSignatures 8 - blst-native | 6.8420 ms/op | 5.3491 ms/op | 1.28 |
BLS verifyMultipleSignatures 32 - blst-native | 24.754 ms/op | 19.367 ms/op | 1.28 |
BLS aggregatePubkeys 32 - blst-native | 31.619 us/op | 25.999 us/op | 1.22 |
BLS aggregatePubkeys 128 - blst-native | 128.69 us/op | 101.47 us/op | 1.27 |
getAttestationsForBlock | 64.837 ms/op | 64.347 ms/op | 1.01 |
isKnown best case - 1 super set check | 330.00 ns/op | 276.00 ns/op | 1.20 |
isKnown normal case - 2 super set checks | 317.00 ns/op | 260.00 ns/op | 1.22 |
isKnown worse case - 16 super set checks | 358.00 ns/op | 259.00 ns/op | 1.38 |
CheckpointStateCache - add get delete | 6.9930 us/op | 5.4730 us/op | 1.28 |
validate gossip signedAggregateAndProof - struct | 4.1000 ms/op | 2.8103 ms/op | 1.46 |
validate gossip attestation - struct | 1.8974 ms/op | 1.3659 ms/op | 1.39 |
pickEth1Vote - no votes | 1.9130 ms/op | 1.4015 ms/op | 1.36 |
pickEth1Vote - max votes | 12.137 ms/op | 11.239 ms/op | 1.08 |
pickEth1Vote - Eth1Data hashTreeRoot value x2048 | 11.646 ms/op | 9.6553 ms/op | 1.21 |
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 | 20.430 ms/op | 15.691 ms/op | 1.30 |
pickEth1Vote - Eth1Data fastSerialize value x2048 | 898.44 us/op | 670.59 us/op | 1.34 |
pickEth1Vote - Eth1Data fastSerialize tree x2048 | 9.3497 ms/op | 6.5932 ms/op | 1.42 |
bytes32 toHexString | 660.00 ns/op | 493.00 ns/op | 1.34 |
bytes32 Buffer.toString(hex) | 470.00 ns/op | 344.00 ns/op | 1.37 |
bytes32 Buffer.toString(hex) from Uint8Array | 753.00 ns/op | 565.00 ns/op | 1.33 |
bytes32 Buffer.toString(hex) + 0x | 471.00 ns/op | 360.00 ns/op | 1.31 |
Object access 1 prop | 0.21900 ns/op | 0.17300 ns/op | 1.27 |
Map access 1 prop | 0.23500 ns/op | 0.17700 ns/op | 1.33 |
Object get x1000 | 9.3120 ns/op | 7.6670 ns/op | 1.21 |
Map get x1000 | 0.78200 ns/op | 0.61500 ns/op | 1.27 |
Object set x1000 | 68.220 ns/op | 63.167 ns/op | 1.08 |
Map set x1000 | 51.928 ns/op | 44.455 ns/op | 1.17 |
Return object 10000 times | 0.29500 ns/op | 0.23910 ns/op | 1.23 |
Throw Error 10000 times | 4.9402 us/op | 4.2676 us/op | 1.16 |
fastMsgIdFn sha256 / 200 bytes | 4.0160 us/op | 3.5620 us/op | 1.13 |
fastMsgIdFn h32 xxhash / 200 bytes | 326.00 ns/op | 282.00 ns/op | 1.16 |
fastMsgIdFn h64 xxhash / 200 bytes | 510.00 ns/op | 409.00 ns/op | 1.25 |
fastMsgIdFn sha256 / 1000 bytes | 14.435 us/op | 11.712 us/op | 1.23 |
fastMsgIdFn h32 xxhash / 1000 bytes | 529.00 ns/op | 422.00 ns/op | 1.25 |
fastMsgIdFn h64 xxhash / 1000 bytes | 578.00 ns/op | 490.00 ns/op | 1.18 |
fastMsgIdFn sha256 / 10000 bytes | 136.20 us/op | 105.39 us/op | 1.29 |
fastMsgIdFn h32 xxhash / 10000 bytes | 2.4720 us/op | 1.9770 us/op | 1.25 |
fastMsgIdFn h64 xxhash / 10000 bytes | 1.9100 us/op | 1.3970 us/op | 1.37 |
enrSubnets - fastDeserialize 64 bits | 1.7270 us/op | 1.3240 us/op | 1.30 |
enrSubnets - ssz BitVector 64 bits | 679.00 ns/op | 514.00 ns/op | 1.32 |
enrSubnets - fastDeserialize 4 bits | 237.00 ns/op | 172.00 ns/op | 1.38 |
enrSubnets - ssz BitVector 4 bits | 734.00 ns/op | 531.00 ns/op | 1.38 |
prioritizePeers score -10:0 att 32-0.1 sync 2-0 | 144.14 us/op | 110.73 us/op | 1.30 |
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 | 186.42 us/op | 137.95 us/op | 1.35 |
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 | 279.11 us/op | 189.51 us/op | 1.47 |
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 | 464.38 us/op | 337.41 us/op | 1.38 |
prioritizePeers score 0:0 att 64-1 sync 4-1 | 575.43 us/op | 413.75 us/op | 1.39 |
array of 16000 items push then shift | 2.1672 us/op | 1.6905 us/op | 1.28 |
LinkedList of 16000 items push then shift | 10.977 ns/op | 9.3430 ns/op | 1.17 |
array of 16000 items push then pop | 119.38 ns/op | 109.14 ns/op | 1.09 |
LinkedList of 16000 items push then pop | 13.835 ns/op | 9.0290 ns/op | 1.53 |
array of 24000 items push then shift | 3.1625 us/op | 2.4070 us/op | 1.31 |
LinkedList of 24000 items push then shift | 11.343 ns/op | 9.5870 ns/op | 1.18 |
array of 24000 items push then pop | 100.17 ns/op | 92.390 ns/op | 1.08 |
LinkedList of 24000 items push then pop | 13.127 ns/op | 9.2060 ns/op | 1.43 |
intersect bitArray bitLen 8 | 26.804 ns/op | 13.771 ns/op | 1.95 |
intersect array and set length 8 | 123.94 ns/op | 84.476 ns/op | 1.47 |
intersect bitArray bitLen 128 | 65.682 ns/op | 45.057 ns/op | 1.46 |
intersect array and set length 128 | 1.6320 us/op | 1.1600 us/op | 1.41 |
Buffer.concat 32 items | 4.0330 us/op | 2.8830 us/op | 1.40 |
Uint8Array.set 32 items | 2.7160 us/op | 2.3430 us/op | 1.16 |
pass gossip attestations to forkchoice per slot | 3.5031 ms/op | 2.3937 ms/op | 1.46 |
computeDeltas | 3.8948 ms/op | 3.0833 ms/op | 1.26 |
computeProposerBoostScoreFromBalances | 2.4949 ms/op | 1.8290 ms/op | 1.36 |
altair processAttestation - 250000 vs - 7PWei normalcase | 3.2466 ms/op | 2.9525 ms/op | 1.10 |
altair processAttestation - 250000 vs - 7PWei worstcase | 5.1977 ms/op | 4.2302 ms/op | 1.23 |
altair processAttestation - setStatus - 1/6 committees join | 205.84 us/op | 145.42 us/op | 1.42 |
altair processAttestation - setStatus - 1/3 committees join | 380.02 us/op | 295.72 us/op | 1.29 |
altair processAttestation - setStatus - 1/2 committees join | 562.63 us/op | 386.23 us/op | 1.46 |
altair processAttestation - setStatus - 2/3 committees join | 921.88 us/op | 490.38 us/op | 1.88 |
altair processAttestation - setStatus - 4/5 committees join | 1.3598 ms/op | 697.87 us/op | 1.95 |
altair processAttestation - setStatus - 100% committees join | 1.2389 ms/op | 818.04 us/op | 1.51 |
altair processBlock - 250000 vs - 7PWei normalcase | 27.123 ms/op | 20.112 ms/op | 1.35 |
altair processBlock - 250000 vs - 7PWei normalcase hashState | 53.761 ms/op | 30.417 ms/op | 1.77 |
altair processBlock - 250000 vs - 7PWei worstcase | 116.22 ms/op | 56.604 ms/op | 2.05 |
altair processBlock - 250000 vs - 7PWei worstcase hashState | 133.67 ms/op | 74.745 ms/op | 1.79 |
phase0 processBlock - 250000 vs - 7PWei normalcase | 3.9899 ms/op | 2.1121 ms/op | 1.89 |
phase0 processBlock - 250000 vs - 7PWei worstcase | 67.284 ms/op | 31.217 ms/op | 2.16 |
altair processEth1Data - 250000 vs - 7PWei normalcase | 1.3101 ms/op | 556.63 us/op | 2.35 |
vc - 250000 eb 1 eth1 1 we 0 wn 0 - smpl 15 | 15.282 us/op | 9.4260 us/op | 1.62 |
vc - 250000 eb 0.95 eth1 0.1 we 0.05 wn 0 - smpl 219 | 39.146 us/op | 29.673 us/op | 1.32 |
vc - 250000 eb 0.95 eth1 0.3 we 0.05 wn 0 - smpl 42 | 13.278 us/op | 10.559 us/op | 1.26 |
vc - 250000 eb 0.95 eth1 0.7 we 0.05 wn 0 - smpl 18 | 12.036 us/op | 7.9540 us/op | 1.51 |
vc - 250000 eb 0.1 eth1 0.1 we 0 wn 0 - smpl 1020 | 185.71 us/op | 118.10 us/op | 1.57 |
vc - 250000 eb 0.03 eth1 0.03 we 0 wn 0 - smpl 11777 | 1.1974 ms/op | 777.35 us/op | 1.54 |
vc - 250000 eb 0.01 eth1 0.01 we 0 wn 0 - smpl 16384 | 2.1281 ms/op | 1.0613 ms/op | 2.01 |
vc - 250000 eb 0 eth1 0 we 0 wn 0 - smpl 16384 | 1.8517 ms/op | 1.0182 ms/op | 1.82 |
vc - 250000 eb 0 eth1 0 we 0 wn 0 nocache - smpl 16384 | 4.8116 ms/op | 2.4917 ms/op | 1.93 |
vc - 250000 eb 0 eth1 1 we 0 wn 0 - smpl 16384 | 4.0196 ms/op | 1.6340 ms/op | 2.46 |
vc - 250000 eb 0 eth1 1 we 0 wn 0 nocache - smpl 16384 | 9.8430 ms/op | 4.2136 ms/op | 2.34 |
Tree 40 250000 create | 872.13 ms/op | 433.02 ms/op | 2.01 |
Tree 40 250000 get(125000) | 466.46 ns/op | 194.75 ns/op | 2.40 |
Tree 40 250000 set(125000) | 2.7172 us/op | 1.0200 us/op | 2.66 |
Tree 40 250000 toArray() | 41.450 ms/op | 21.627 ms/op | 1.92 |
Tree 40 250000 iterate all - toArray() + loop | 45.399 ms/op | 22.368 ms/op | 2.03 |
Tree 40 250000 iterate all - get(i) | 194.98 ms/op | 74.799 ms/op | 2.61 |
MutableVector 250000 create | 26.882 ms/op | 14.199 ms/op | 1.89 |
MutableVector 250000 get(125000) | 20.455 ns/op | 7.0750 ns/op | 2.89 |
MutableVector 250000 set(125000) | 993.12 ns/op | 353.07 ns/op | 2.81 |
MutableVector 250000 toArray() | 8.3812 ms/op | 3.8956 ms/op | 2.15 |
MutableVector 250000 iterate all - toArray() + loop | 8.8470 ms/op | 3.5055 ms/op | 2.52 |
MutableVector 250000 iterate all - get(i) | 4.3062 ms/op | 1.5692 ms/op | 2.74 |
Array 250000 create | 7.6461 ms/op | 3.3929 ms/op | 2.25 |
Array 250000 clone - spread | 5.6687 ms/op | 1.3117 ms/op | 4.32 |
Array 250000 get(125000) | 2.9850 ns/op | 0.64400 ns/op | 4.64 |
Array 250000 set(125000) | 3.4580 ns/op | 0.68900 ns/op | 5.02 |
Array 250000 iterate all - loop | 340.27 us/op | 100.37 us/op | 3.39 |
effectiveBalanceIncrements clone Uint8Array 300000 | 95.499 us/op | 36.702 us/op | 2.60 |
effectiveBalanceIncrements clone MutableVector 300000 | 1.8960 us/op | 403.00 ns/op | 4.70 |
effectiveBalanceIncrements rw all Uint8Array 300000 | 586.18 us/op | 174.68 us/op | 3.36 |
effectiveBalanceIncrements rw all MutableVector 300000 | 314.45 ms/op | 95.702 ms/op | 3.29 |
phase0 afterProcessEpoch - 250000 vs - 7PWei | 358.45 ms/op | 123.89 ms/op | 2.89 |
phase0 beforeProcessEpoch - 250000 vs - 7PWei | 103.97 ms/op | 42.342 ms/op | 2.46 |
altair processEpoch - mainnet_e81889 | 997.42 ms/op | 371.28 ms/op | 2.69 |
mainnet_e81889 - altair beforeProcessEpoch | 129.61 ms/op | 78.687 ms/op | 1.65 |
mainnet_e81889 - altair processJustificationAndFinalization | 80.785 us/op | 24.831 us/op | 3.25 |
mainnet_e81889 - altair processInactivityUpdates | 16.448 ms/op | 6.4491 ms/op | 2.55 |
mainnet_e81889 - altair processRewardsAndPenalties | 209.97 ms/op | 76.295 ms/op | 2.75 |
mainnet_e81889 - altair processRegistryUpdates | 13.144 us/op | 3.7760 us/op | 3.48 |
mainnet_e81889 - altair processSlashings | 2.1600 us/op | 1.1220 us/op | 1.93 |
mainnet_e81889 - altair processEth1DataReset | 2.8350 us/op | 1.2340 us/op | 2.30 |
mainnet_e81889 - altair processEffectiveBalanceUpdates | 4.0002 ms/op | 1.5343 ms/op | 2.61 |
mainnet_e81889 - altair processSlashingsReset | 26.357 us/op | 7.3000 us/op | 3.61 |
mainnet_e81889 - altair processRandaoMixesReset | 18.092 us/op | 8.4850 us/op | 2.13 |
mainnet_e81889 - altair processHistoricalRootsUpdate | 3.1400 us/op | 1.7210 us/op | 1.82 |
mainnet_e81889 - altair processParticipationFlagUpdates | 15.019 us/op | 3.6740 us/op | 4.09 |
mainnet_e81889 - altair processSyncCommitteeUpdates | 2.7380 us/op | 942.00 ns/op | 2.91 |
mainnet_e81889 - altair afterProcessEpoch | 406.78 ms/op | 133.49 ms/op | 3.05 |
phase0 processEpoch - mainnet_e58758 | 911.06 ms/op | 454.26 ms/op | 2.01 |
mainnet_e58758 - phase0 beforeProcessEpoch | 317.60 ms/op | 219.37 ms/op | 1.45 |
mainnet_e58758 - phase0 processJustificationAndFinalization | 58.922 us/op | 30.516 us/op | 1.93 |
mainnet_e58758 - phase0 processRewardsAndPenalties | 117.70 ms/op | 74.718 ms/op | 1.58 |
mainnet_e58758 - phase0 processRegistryUpdates | 26.665 us/op | 12.882 us/op | 2.07 |
mainnet_e58758 - phase0 processSlashings | 2.2450 us/op | 1.0190 us/op | 2.20 |
mainnet_e58758 - phase0 processEth1DataReset | 1.6590 us/op | 1.0980 us/op | 1.51 |
mainnet_e58758 - phase0 processEffectiveBalanceUpdates | 2.8487 ms/op | 1.3750 ms/op | 2.07 |
mainnet_e58758 - phase0 processSlashingsReset | 18.601 us/op | 7.0330 us/op | 2.64 |
mainnet_e58758 - phase0 processRandaoMixesReset | 26.634 us/op | 9.1860 us/op | 2.90 |
mainnet_e58758 - phase0 processHistoricalRootsUpdate | 2.5450 us/op | 1.4510 us/op | 1.75 |
mainnet_e58758 - phase0 processParticipationRecordUpdates | 16.225 us/op | 11.301 us/op | 1.44 |
mainnet_e58758 - phase0 afterProcessEpoch | 302.25 ms/op | 115.31 ms/op | 2.62 |
phase0 processEffectiveBalanceUpdates - 250000 normalcase | 3.4499 ms/op | 1.5469 ms/op | 2.23 |
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 | 4.7612 ms/op | 1.9287 ms/op | 2.47 |
altair processInactivityUpdates - 250000 normalcase | 65.966 ms/op | 28.802 ms/op | 2.29 |
altair processInactivityUpdates - 250000 worstcase | 53.996 ms/op | 30.741 ms/op | 1.76 |
phase0 processRegistryUpdates - 250000 normalcase | 18.978 us/op | 10.647 us/op | 1.78 |
phase0 processRegistryUpdates - 250000 badcase_full_deposits | 849.45 us/op | 376.08 us/op | 2.26 |
phase0 processRegistryUpdates - 250000 worstcase 0.5 | 315.75 ms/op | 140.94 ms/op | 2.24 |
altair processRewardsAndPenalties - 250000 normalcase | 118.19 ms/op | 78.214 ms/op | 1.51 |
altair processRewardsAndPenalties - 250000 worstcase | 147.74 ms/op | 93.113 ms/op | 1.59 |
phase0 getAttestationDeltas - 250000 normalcase | 19.028 ms/op | 10.671 ms/op | 1.78 |
phase0 getAttestationDeltas - 250000 worstcase | 17.844 ms/op | 9.8250 ms/op | 1.82 |
phase0 processSlashings - 250000 worstcase | 10.009 ms/op | 4.3182 ms/op | 2.32 |
altair processSyncCommitteeUpdates - 250000 | 555.13 ms/op | 217.03 ms/op | 2.56 |
BeaconState.hashTreeRoot - No change | 1.0610 us/op | 312.00 ns/op | 3.40 |
BeaconState.hashTreeRoot - 1 full validator | 170.46 us/op | 63.766 us/op | 2.67 |
BeaconState.hashTreeRoot - 32 full validator | 1.6250 ms/op | 596.72 us/op | 2.72 |
BeaconState.hashTreeRoot - 512 full validator | 18.526 ms/op | 6.5059 ms/op | 2.85 |
BeaconState.hashTreeRoot - 1 validator.effectiveBalance | 208.91 us/op | 68.710 us/op | 3.04 |
BeaconState.hashTreeRoot - 32 validator.effectiveBalance | 3.0534 ms/op | 984.33 us/op | 3.10 |
BeaconState.hashTreeRoot - 512 validator.effectiveBalance | 35.942 ms/op | 16.077 ms/op | 2.24 |
BeaconState.hashTreeRoot - 1 balances | 159.93 us/op | 53.003 us/op | 3.02 |
BeaconState.hashTreeRoot - 32 balances | 1.2420 ms/op | 534.63 us/op | 2.32 |
BeaconState.hashTreeRoot - 512 balances | 14.070 ms/op | 4.7708 ms/op | 2.95 |
BeaconState.hashTreeRoot - 250000 balances | 241.79 ms/op | 84.047 ms/op | 2.88 |
aggregationBits - 2048 els - zipIndexesInBitList | 68.124 us/op | 19.191 us/op | 3.55 |
regular array get 100000 times | 124.70 us/op | 43.915 us/op | 2.84 |
wrappedArray get 100000 times | 158.08 us/op | 34.673 us/op | 4.56 |
arrayWithProxy get 100000 times | 62.014 ms/op | 17.291 ms/op | 3.59 |
ssz.Root.equals | 2.0250 us/op | 582.00 ns/op | 3.48 |
byteArrayEquals | 1.8360 us/op | 584.00 ns/op | 3.14 |
shuffle list - 16384 els | 20.331 ms/op | 7.1094 ms/op | 2.86 |
shuffle list - 250000 els | 292.38 ms/op | 104.32 ms/op | 2.80 |
processSlot - 1 slots | 30.003 us/op | 13.365 us/op | 2.24 |
processSlot - 32 slots | 4.5413 ms/op | 1.6532 ms/op | 2.75 |
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei | 77.021 ms/op | 42.212 ms/op | 1.82 |
getCommitteeAssignments - req 1 vs - 250000 vc | 6.7499 ms/op | 2.9801 ms/op | 2.26 |
getCommitteeAssignments - req 100 vs - 250000 vc | 12.039 ms/op | 4.2669 ms/op | 2.82 |
getCommitteeAssignments - req 1000 vs - 250000 vc | 12.493 ms/op | 4.5523 ms/op | 2.74 |
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei | 10.210 ns/op | 5.0100 ns/op | 2.04 |
state getBlockRootAtSlot - 250000 vs - 7PWei | 1.7656 us/op | 1.1022 us/op | 1.60 |
computeProposers - vc 250000 | 27.125 ms/op | 10.568 ms/op | 2.57 |
computeEpochShuffling - vc 250000 | 225.55 ms/op | 107.26 ms/op | 2.10 |
getNextSyncCommittee - vc 250000 | 451.95 ms/op | 185.46 ms/op | 2.44 |
computeSigningRoot for AttestationData | 32.210 us/op | 13.695 us/op | 2.35 |
hash AttestationData serialized data then Buffer.toString(base64) | 5.0202 us/op | 2.4222 us/op | 2.07 |
toHexString serialized data | 2.9982 us/op | 1.0524 us/op | 2.85 |
Buffer.toString(base64) | 904.96 ns/op | 325.72 ns/op | 2.78 |
by benchmarkbot/action
g11tech
approved these changes
May 17, 2023
🎉 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Replace placeholder Gnosis capella preset values.
Description