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: merge stable v1.12 back to unstable #6100

Merged
merged 2 commits into from
Nov 9, 2023
Merged

chore: merge stable v1.12 back to unstable #6100

merged 2 commits into from
Nov 9, 2023

Conversation

philknows
Copy link
Member

No description provided.

@philknows philknows requested a review from a team as a code owner November 9, 2023 07:45
@philknows philknows changed the title Merge stable v1.12 back to unstable chore: merge stable v1.12 back to unstable Nov 9, 2023
Copy link
Contributor

github-actions bot commented Nov 9, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: fd55e0c Previous: 37cf9dd Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 659.54 us/op 632.73 us/op 1.04
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 100.10 us/op 81.985 us/op 1.22
BLS verify - blst-native 1.3057 ms/op 1.2858 ms/op 1.02
BLS verifyMultipleSignatures 3 - blst-native 2.7212 ms/op 2.6953 ms/op 1.01
BLS verifyMultipleSignatures 8 - blst-native 5.9745 ms/op 5.8983 ms/op 1.01
BLS verifyMultipleSignatures 32 - blst-native 21.875 ms/op 21.615 ms/op 1.01
BLS verifyMultipleSignatures 64 - blst-native 43.348 ms/op 41.320 ms/op 1.05
BLS verifyMultipleSignatures 128 - blst-native 85.920 ms/op 84.938 ms/op 1.01
BLS deserializing 10000 signatures 907.71 ms/op 905.99 ms/op 1.00
BLS deserializing 100000 signatures 9.1131 s/op 9.0837 s/op 1.00
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.3206 ms/op 1.3229 ms/op 1.00
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.4898 ms/op 1.6162 ms/op 0.92
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.6055 ms/op 2.3027 ms/op 1.13
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.3862 ms/op 3.8613 ms/op 0.88
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.5208 ms/op 5.5870 ms/op 0.99
BLS aggregatePubkeys 32 - blst-native 25.570 us/op 25.603 us/op 1.00
BLS aggregatePubkeys 128 - blst-native 99.104 us/op 100.21 us/op 0.99
getAttestationsForBlock 39.981 ms/op 39.307 ms/op 1.02
isKnown best case - 1 super set check 307.00 ns/op 330.00 ns/op 0.93
isKnown normal case - 2 super set checks 295.00 ns/op 322.00 ns/op 0.92
isKnown worse case - 16 super set checks 306.00 ns/op 324.00 ns/op 0.94
CheckpointStateCache - add get delete 5.5280 us/op 5.5710 us/op 0.99
validate api signedAggregateAndProof - struct 2.7856 ms/op 2.7667 ms/op 1.01
validate gossip signedAggregateAndProof - struct 2.7596 ms/op 2.8520 ms/op 0.97
validate gossip attestation - vc 640000 1.3419 ms/op 1.3456 ms/op 1.00
batch validate gossip attestation - vc 640000 - chunk 32 161.16 us/op 160.00 us/op 1.01
batch validate gossip attestation - vc 640000 - chunk 64 142.67 us/op 139.80 us/op 1.02
batch validate gossip attestation - vc 640000 - chunk 128 129.56 us/op 131.04 us/op 0.99
batch validate gossip attestation - vc 640000 - chunk 256 126.53 us/op 126.60 us/op 1.00
pickEth1Vote - no votes 1.1261 ms/op 1.1546 ms/op 0.98
pickEth1Vote - max votes 10.359 ms/op 7.8394 ms/op 1.32
pickEth1Vote - Eth1Data hashTreeRoot value x2048 16.948 ms/op 13.910 ms/op 1.22
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 24.851 ms/op 26.740 ms/op 0.93
pickEth1Vote - Eth1Data fastSerialize value x2048 590.26 us/op 584.39 us/op 1.01
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.4811 ms/op 5.7330 ms/op 1.13
bytes32 toHexString 512.00 ns/op 489.00 ns/op 1.05
bytes32 Buffer.toString(hex) 296.00 ns/op 290.00 ns/op 1.02
bytes32 Buffer.toString(hex) from Uint8Array 420.00 ns/op 435.00 ns/op 0.97
bytes32 Buffer.toString(hex) + 0x 291.00 ns/op 288.00 ns/op 1.01
Object access 1 prop 0.15800 ns/op 0.16500 ns/op 0.96
Map access 1 prop 0.14500 ns/op 0.14400 ns/op 1.01
Object get x1000 7.6870 ns/op 7.1990 ns/op 1.07
Map get x1000 0.52600 ns/op 0.63100 ns/op 0.83
Object set x1000 50.234 ns/op 48.847 ns/op 1.03
Map set x1000 38.719 ns/op 38.179 ns/op 1.01
Return object 10000 times 0.23340 ns/op 0.23340 ns/op 1.00
Throw Error 10000 times 3.8105 us/op 3.7568 us/op 1.01
fastMsgIdFn sha256 / 200 bytes 3.2650 us/op 3.2090 us/op 1.02
fastMsgIdFn h32 xxhash / 200 bytes 272.00 ns/op 274.00 ns/op 0.99
fastMsgIdFn h64 xxhash / 200 bytes 341.00 ns/op 328.00 ns/op 1.04
fastMsgIdFn sha256 / 1000 bytes 11.169 us/op 11.283 us/op 0.99
fastMsgIdFn h32 xxhash / 1000 bytes 403.00 ns/op 400.00 ns/op 1.01
fastMsgIdFn h64 xxhash / 1000 bytes 410.00 ns/op 396.00 ns/op 1.04
fastMsgIdFn sha256 / 10000 bytes 102.26 us/op 102.23 us/op 1.00
fastMsgIdFn h32 xxhash / 10000 bytes 1.9160 us/op 1.9340 us/op 0.99
fastMsgIdFn h64 xxhash / 10000 bytes 1.3120 us/op 1.3260 us/op 0.99
send data - 1000 256B messages 18.243 ms/op 19.816 ms/op 0.92
send data - 1000 512B messages 25.194 ms/op 26.750 ms/op 0.94
send data - 1000 1024B messages 40.365 ms/op 39.551 ms/op 1.02
send data - 1000 1200B messages 35.039 ms/op 22.183 ms/op 1.58
send data - 1000 2048B messages 39.710 ms/op 39.700 ms/op 1.00
send data - 1000 4096B messages 27.786 ms/op 38.175 ms/op 0.73
send data - 1000 16384B messages 104.14 ms/op 107.30 ms/op 0.97
send data - 1000 65536B messages 430.65 ms/op 413.89 ms/op 1.04
enrSubnets - fastDeserialize 64 bits 1.2480 us/op 1.2350 us/op 1.01
enrSubnets - ssz BitVector 64 bits 422.00 ns/op 406.00 ns/op 1.04
enrSubnets - fastDeserialize 4 bits 164.00 ns/op 162.00 ns/op 1.01
enrSubnets - ssz BitVector 4 bits 408.00 ns/op 405.00 ns/op 1.01
prioritizePeers score -10:0 att 32-0.1 sync 2-0 100.59 us/op 103.10 us/op 0.98
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 125.84 us/op 115.47 us/op 1.09
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 161.21 us/op 155.59 us/op 1.04
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 288.13 us/op 278.99 us/op 1.03
prioritizePeers score 0:0 att 64-1 sync 4-1 328.98 us/op 328.02 us/op 1.00
array of 16000 items push then shift 1.5854 us/op 1.6100 us/op 0.98
LinkedList of 16000 items push then shift 8.7990 ns/op 8.9150 ns/op 0.99
array of 16000 items push then pop 96.822 ns/op 87.206 ns/op 1.11
LinkedList of 16000 items push then pop 8.6270 ns/op 8.6620 ns/op 1.00
array of 24000 items push then shift 2.3585 us/op 2.4020 us/op 0.98
LinkedList of 24000 items push then shift 8.7880 ns/op 8.9660 ns/op 0.98
array of 24000 items push then pop 119.26 ns/op 102.89 ns/op 1.16
LinkedList of 24000 items push then pop 8.4310 ns/op 8.6980 ns/op 0.97
intersect bitArray bitLen 8 6.7190 ns/op 6.8190 ns/op 0.99
intersect array and set length 8 56.627 ns/op 57.918 ns/op 0.98
intersect bitArray bitLen 128 31.450 ns/op 31.891 ns/op 0.99
intersect array and set length 128 758.96 ns/op 776.75 ns/op 0.98
bitArray.getTrueBitIndexes() bitLen 128 1.4740 us/op 1.4360 us/op 1.03
bitArray.getTrueBitIndexes() bitLen 248 2.6040 us/op 2.4710 us/op 1.05
bitArray.getTrueBitIndexes() bitLen 512 4.6090 us/op 4.8100 us/op 0.96
Buffer.concat 32 items 964.00 ns/op 957.00 ns/op 1.01
Uint8Array.set 32 items 1.9970 us/op 2.6840 us/op 0.74
Set add up to 64 items then delete first 4.2467 us/op 4.2226 us/op 1.01
OrderedSet add up to 64 items then delete first 5.3579 us/op 5.6957 us/op 0.94
Set add up to 64 items then delete last 4.6599 us/op 4.8790 us/op 0.96
OrderedSet add up to 64 items then delete last 5.6575 us/op 5.6555 us/op 1.00
Set add up to 64 items then delete middle 4.7302 us/op 4.5606 us/op 1.04
OrderedSet add up to 64 items then delete middle 6.9968 us/op 7.0398 us/op 0.99
Set add up to 128 items then delete first 9.3527 us/op 9.3096 us/op 1.00
OrderedSet add up to 128 items then delete first 12.715 us/op 12.260 us/op 1.04
Set add up to 128 items then delete last 9.1221 us/op 9.0473 us/op 1.01
OrderedSet add up to 128 items then delete last 11.798 us/op 11.558 us/op 1.02
Set add up to 128 items then delete middle 9.1778 us/op 9.0367 us/op 1.02
OrderedSet add up to 128 items then delete middle 18.820 us/op 16.686 us/op 1.13
Set add up to 256 items then delete first 19.804 us/op 18.298 us/op 1.08
OrderedSet add up to 256 items then delete first 25.487 us/op 24.768 us/op 1.03
Set add up to 256 items then delete last 18.670 us/op 19.983 us/op 0.93
OrderedSet add up to 256 items then delete last 24.296 us/op 24.311 us/op 1.00
Set add up to 256 items then delete middle 18.532 us/op 17.942 us/op 1.03
OrderedSet add up to 256 items then delete middle 45.642 us/op 47.578 us/op 0.96
transfer serialized Status (84 B) 1.8120 us/op 1.8870 us/op 0.96
copy serialized Status (84 B) 1.5310 us/op 1.6090 us/op 0.95
transfer serialized SignedVoluntaryExit (112 B) 1.9280 us/op 1.8410 us/op 1.05
copy serialized SignedVoluntaryExit (112 B) 1.5800 us/op 1.6950 us/op 0.93
transfer serialized ProposerSlashing (416 B) 2.0230 us/op 3.0170 us/op 0.67
copy serialized ProposerSlashing (416 B) 1.9630 us/op 2.9230 us/op 0.67
transfer serialized Attestation (485 B) 2.5500 us/op 3.1860 us/op 0.80
copy serialized Attestation (485 B) 2.4730 us/op 2.9290 us/op 0.84
transfer serialized AttesterSlashing (33232 B) 2.3480 us/op 3.0380 us/op 0.77
copy serialized AttesterSlashing (33232 B) 6.0200 us/op 6.1700 us/op 0.98
transfer serialized Small SignedBeaconBlock (128000 B) 2.5940 us/op 3.0370 us/op 0.85
copy serialized Small SignedBeaconBlock (128000 B) 14.071 us/op 15.213 us/op 0.92
transfer serialized Avg SignedBeaconBlock (200000 B) 3.1280 us/op 3.2690 us/op 0.96
copy serialized Avg SignedBeaconBlock (200000 B) 22.804 us/op 23.227 us/op 0.98
transfer serialized BlobsSidecar (524380 B) 3.2220 us/op 3.1670 us/op 1.02
copy serialized BlobsSidecar (524380 B) 112.16 us/op 98.458 us/op 1.14
transfer serialized Big SignedBeaconBlock (1000000 B) 3.6280 us/op 2.9370 us/op 1.24
copy serialized Big SignedBeaconBlock (1000000 B) 156.71 us/op 161.18 us/op 0.97
pass gossip attestations to forkchoice per slot 3.8563 ms/op 3.9561 ms/op 0.97
forkChoice updateHead vc 100000 bc 64 eq 0 683.85 us/op 645.36 us/op 1.06
forkChoice updateHead vc 600000 bc 64 eq 0 4.0883 ms/op 4.6028 ms/op 0.89
forkChoice updateHead vc 1000000 bc 64 eq 0 7.0290 ms/op 6.9833 ms/op 1.01
forkChoice updateHead vc 600000 bc 320 eq 0 5.5903 ms/op 4.1726 ms/op 1.34
forkChoice updateHead vc 600000 bc 1200 eq 0 4.1739 ms/op 4.1294 ms/op 1.01
forkChoice updateHead vc 600000 bc 7200 eq 0 5.4801 ms/op 5.2214 ms/op 1.05
forkChoice updateHead vc 600000 bc 64 eq 1000 10.990 ms/op 11.222 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 10000 12.143 ms/op 12.028 ms/op 1.01
forkChoice updateHead vc 600000 bc 64 eq 300000 15.721 ms/op 16.229 ms/op 0.97
computeDeltas 500000 validators 300 proto nodes 6.5305 ms/op 6.3284 ms/op 1.03
computeDeltas 500000 validators 1200 proto nodes 6.5131 ms/op 6.3125 ms/op 1.03
computeDeltas 500000 validators 7200 proto nodes 6.4215 ms/op 6.3202 ms/op 1.02
computeDeltas 750000 validators 300 proto nodes 9.5224 ms/op 9.6323 ms/op 0.99
computeDeltas 750000 validators 1200 proto nodes 9.6147 ms/op 9.7142 ms/op 0.99
computeDeltas 750000 validators 7200 proto nodes 9.6967 ms/op 9.7649 ms/op 0.99
computeDeltas 1400000 validators 300 proto nodes 18.694 ms/op 17.889 ms/op 1.04
computeDeltas 1400000 validators 1200 proto nodes 19.165 ms/op 18.246 ms/op 1.05
computeDeltas 1400000 validators 7200 proto nodes 18.639 ms/op 18.053 ms/op 1.03
computeDeltas 2100000 validators 300 proto nodes 29.655 ms/op 28.000 ms/op 1.06
computeDeltas 2100000 validators 1200 proto nodes 29.455 ms/op 26.773 ms/op 1.10
computeDeltas 2100000 validators 7200 proto nodes 27.272 ms/op 27.597 ms/op 0.99
computeProposerBoostScoreFromBalances 500000 validators 3.2769 ms/op 3.1972 ms/op 1.02
computeProposerBoostScoreFromBalances 750000 validators 3.2546 ms/op 3.2003 ms/op 1.02
computeProposerBoostScoreFromBalances 1400000 validators 3.2350 ms/op 3.2189 ms/op 1.00
computeProposerBoostScoreFromBalances 2100000 validators 3.2634 ms/op 3.1989 ms/op 1.02
altair processAttestation - 250000 vs - 7PWei normalcase 2.4847 ms/op 2.0018 ms/op 1.24
altair processAttestation - 250000 vs - 7PWei worstcase 3.2158 ms/op 3.0269 ms/op 1.06
altair processAttestation - setStatus - 1/6 committees join 138.71 us/op 134.72 us/op 1.03
altair processAttestation - setStatus - 1/3 committees join 281.08 us/op 262.99 us/op 1.07
altair processAttestation - setStatus - 1/2 committees join 379.01 us/op 353.89 us/op 1.07
altair processAttestation - setStatus - 2/3 committees join 467.55 us/op 425.83 us/op 1.10
altair processAttestation - setStatus - 4/5 committees join 664.69 us/op 620.06 us/op 1.07
altair processAttestation - setStatus - 100% committees join 736.36 us/op 726.54 us/op 1.01
altair processBlock - 250000 vs - 7PWei normalcase 9.1618 ms/op 9.4573 ms/op 0.97
altair processBlock - 250000 vs - 7PWei normalcase hashState 35.910 ms/op 35.350 ms/op 1.02
altair processBlock - 250000 vs - 7PWei worstcase 40.968 ms/op 38.389 ms/op 1.07
altair processBlock - 250000 vs - 7PWei worstcase hashState 92.402 ms/op 88.364 ms/op 1.05
phase0 processBlock - 250000 vs - 7PWei normalcase 3.2545 ms/op 2.9131 ms/op 1.12
phase0 processBlock - 250000 vs - 7PWei worstcase 31.456 ms/op 31.462 ms/op 1.00
altair processEth1Data - 250000 vs - 7PWei normalcase 639.18 us/op 607.05 us/op 1.05
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 7.9660 us/op 7.9810 us/op 1.00
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 59.983 us/op 30.975 us/op 1.94
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 16.545 us/op 19.737 us/op 0.84
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 12.675 us/op 11.469 us/op 1.11
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 196.48 us/op 159.66 us/op 1.23
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1757 ms/op 1.1211 ms/op 1.05
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.5751 ms/op 1.4578 ms/op 1.08
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.8209 ms/op 1.4910 ms/op 1.22
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.6995 ms/op 3.3005 ms/op 1.12
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.4726 ms/op 2.2963 ms/op 1.08
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 6.2228 ms/op 5.1870 ms/op 1.20
Tree 40 250000 create 375.79 ms/op 351.88 ms/op 1.07
Tree 40 250000 get(125000) 206.79 ns/op 193.49 ns/op 1.07
Tree 40 250000 set(125000) 1.0380 us/op 958.58 ns/op 1.08
Tree 40 250000 toArray() 21.876 ms/op 17.559 ms/op 1.25
Tree 40 250000 iterate all - toArray() + loop 19.809 ms/op 17.734 ms/op 1.12
Tree 40 250000 iterate all - get(i) 70.565 ms/op 64.720 ms/op 1.09
MutableVector 250000 create 13.977 ms/op 11.543 ms/op 1.21
MutableVector 250000 get(125000) 6.5620 ns/op 6.4820 ns/op 1.01
MutableVector 250000 set(125000) 297.98 ns/op 258.98 ns/op 1.15
MutableVector 250000 toArray() 3.3652 ms/op 3.1745 ms/op 1.06
MutableVector 250000 iterate all - toArray() + loop 4.8228 ms/op 3.1982 ms/op 1.51
MutableVector 250000 iterate all - get(i) 1.5617 ms/op 1.5257 ms/op 1.02
Array 250000 create 3.5105 ms/op 2.8070 ms/op 1.25
Array 250000 clone - spread 1.3016 ms/op 1.2807 ms/op 1.02
Array 250000 get(125000) 0.65000 ns/op 0.58900 ns/op 1.10
Array 250000 set(125000) 0.71100 ns/op 0.66000 ns/op 1.08
Array 250000 iterate all - loop 85.638 us/op 77.885 us/op 1.10
effectiveBalanceIncrements clone Uint8Array 300000 38.785 us/op 28.251 us/op 1.37
effectiveBalanceIncrements clone MutableVector 300000 373.00 ns/op 371.00 ns/op 1.01
effectiveBalanceIncrements rw all Uint8Array 300000 183.53 us/op 176.62 us/op 1.04
effectiveBalanceIncrements rw all MutableVector 300000 87.060 ms/op 84.012 ms/op 1.04
phase0 afterProcessEpoch - 250000 vs - 7PWei 117.35 ms/op 113.61 ms/op 1.03
phase0 beforeProcessEpoch - 250000 vs - 7PWei 53.043 ms/op 31.944 ms/op 1.66
altair processEpoch - mainnet_e81889 498.33 ms/op 472.36 ms/op 1.05
mainnet_e81889 - altair beforeProcessEpoch 89.830 ms/op 75.853 ms/op 1.18
mainnet_e81889 - altair processJustificationAndFinalization 19.450 us/op 15.767 us/op 1.23
mainnet_e81889 - altair processInactivityUpdates 6.5795 ms/op 5.3648 ms/op 1.23
mainnet_e81889 - altair processRewardsAndPenalties 61.195 ms/op 75.344 ms/op 0.81
mainnet_e81889 - altair processRegistryUpdates 4.9400 us/op 2.4970 us/op 1.98
mainnet_e81889 - altair processSlashings 815.00 ns/op 442.00 ns/op 1.84
mainnet_e81889 - altair processEth1DataReset 756.00 ns/op 528.00 ns/op 1.43
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2933 ms/op 1.1969 ms/op 1.08
mainnet_e81889 - altair processSlashingsReset 3.6100 us/op 4.1090 us/op 0.88
mainnet_e81889 - altair processRandaoMixesReset 6.4200 us/op 4.2670 us/op 1.50
mainnet_e81889 - altair processHistoricalRootsUpdate 1.0180 us/op 1.0280 us/op 0.99
mainnet_e81889 - altair processParticipationFlagUpdates 3.8110 us/op 1.6840 us/op 2.26
mainnet_e81889 - altair processSyncCommitteeUpdates 952.00 ns/op 724.00 ns/op 1.31
mainnet_e81889 - altair afterProcessEpoch 127.75 ms/op 116.90 ms/op 1.09
capella processEpoch - mainnet_e217614 2.5413 s/op 1.9199 s/op 1.32
mainnet_e217614 - capella beforeProcessEpoch 589.35 ms/op 452.35 ms/op 1.30
mainnet_e217614 - capella processJustificationAndFinalization 25.061 us/op 14.077 us/op 1.78
mainnet_e217614 - capella processInactivityUpdates 29.959 ms/op 15.675 ms/op 1.91
mainnet_e217614 - capella processRewardsAndPenalties 780.61 ms/op 490.40 ms/op 1.59
mainnet_e217614 - capella processRegistryUpdates 43.120 us/op 25.709 us/op 1.68
mainnet_e217614 - capella processSlashings 1.3650 us/op 515.00 ns/op 2.65
mainnet_e217614 - capella processEth1DataReset 1.3390 us/op 651.00 ns/op 2.06
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.3342 ms/op 3.9434 ms/op 1.10
mainnet_e217614 - capella processSlashingsReset 7.9620 us/op 2.5570 us/op 3.11
mainnet_e217614 - capella processRandaoMixesReset 8.7790 us/op 4.8320 us/op 1.82
mainnet_e217614 - capella processHistoricalRootsUpdate 1.4470 us/op 691.00 ns/op 2.09
mainnet_e217614 - capella processParticipationFlagUpdates 3.0790 us/op 2.1350 us/op 1.44
mainnet_e217614 - capella afterProcessEpoch 385.24 ms/op 319.45 ms/op 1.21
phase0 processEpoch - mainnet_e58758 631.43 ms/op 381.77 ms/op 1.65
mainnet_e58758 - phase0 beforeProcessEpoch 198.63 ms/op 108.33 ms/op 1.83
mainnet_e58758 - phase0 processJustificationAndFinalization 32.036 us/op 14.340 us/op 2.23
mainnet_e58758 - phase0 processRewardsAndPenalties 72.777 ms/op 55.573 ms/op 1.31
mainnet_e58758 - phase0 processRegistryUpdates 21.362 us/op 10.500 us/op 2.03
mainnet_e58758 - phase0 processSlashings 1.3540 us/op 502.00 ns/op 2.70
mainnet_e58758 - phase0 processEth1DataReset 885.00 ns/op 439.00 ns/op 2.02
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.2276 ms/op 945.95 us/op 1.30
mainnet_e58758 - phase0 processSlashingsReset 4.0350 us/op 2.4090 us/op 1.67
mainnet_e58758 - phase0 processRandaoMixesReset 9.7090 us/op 4.0300 us/op 2.41
mainnet_e58758 - phase0 processHistoricalRootsUpdate 804.00 ns/op 628.00 ns/op 1.28
mainnet_e58758 - phase0 processParticipationRecordUpdates 7.5790 us/op 3.5900 us/op 2.11
mainnet_e58758 - phase0 afterProcessEpoch 106.55 ms/op 96.687 ms/op 1.10
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.4066 ms/op 1.2192 ms/op 1.15
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.6362 ms/op 1.9287 ms/op 0.85
altair processInactivityUpdates - 250000 normalcase 23.738 ms/op 18.568 ms/op 1.28
altair processInactivityUpdates - 250000 worstcase 23.326 ms/op 19.042 ms/op 1.23
phase0 processRegistryUpdates - 250000 normalcase 19.108 us/op 8.9670 us/op 2.13
phase0 processRegistryUpdates - 250000 badcase_full_deposits 498.42 us/op 340.43 us/op 1.46
phase0 processRegistryUpdates - 250000 worstcase 0.5 196.49 ms/op 122.57 ms/op 1.60
altair processRewardsAndPenalties - 250000 normalcase 78.426 ms/op 64.201 ms/op 1.22
altair processRewardsAndPenalties - 250000 worstcase 71.855 ms/op 63.583 ms/op 1.13
phase0 getAttestationDeltas - 250000 normalcase 12.358 ms/op 7.9192 ms/op 1.56
phase0 getAttestationDeltas - 250000 worstcase 12.922 ms/op 8.0352 ms/op 1.61
phase0 processSlashings - 250000 worstcase 2.5016 ms/op 2.1898 ms/op 1.14
altair processSyncCommitteeUpdates - 250000 171.15 ms/op 147.54 ms/op 1.16
BeaconState.hashTreeRoot - No change 310.00 ns/op 246.00 ns/op 1.26
BeaconState.hashTreeRoot - 1 full validator 170.63 us/op 125.10 us/op 1.36
BeaconState.hashTreeRoot - 32 full validator 1.6418 ms/op 1.2928 ms/op 1.27
BeaconState.hashTreeRoot - 512 full validator 19.256 ms/op 16.374 ms/op 1.18
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 217.87 us/op 138.19 us/op 1.58
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.8880 ms/op 2.4595 ms/op 1.17
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 33.156 ms/op 30.646 ms/op 1.08
BeaconState.hashTreeRoot - 1 balances 145.45 us/op 139.32 us/op 1.04
BeaconState.hashTreeRoot - 32 balances 1.7722 ms/op 1.3661 ms/op 1.30
BeaconState.hashTreeRoot - 512 balances 14.426 ms/op 13.021 ms/op 1.11
BeaconState.hashTreeRoot - 250000 balances 232.88 ms/op 182.72 ms/op 1.27
aggregationBits - 2048 els - zipIndexesInBitList 33.970 us/op 15.453 us/op 2.20
byteArrayEquals 32 52.684 ns/op 48.422 ns/op 1.09
Buffer.compare 32 57.597 ns/op 53.863 ns/op 1.07
byteArrayEquals 1024 1.5260 us/op 1.4016 us/op 1.09
Buffer.compare 1024 74.208 ns/op 67.292 ns/op 1.10
byteArrayEquals 16384 24.267 us/op 22.297 us/op 1.09
Buffer.compare 16384 269.55 ns/op 249.06 ns/op 1.08
byteArrayEquals 123687377 184.60 ms/op 174.60 ms/op 1.06
Buffer.compare 123687377 9.6556 ms/op 6.1787 ms/op 1.56
byteArrayEquals 32 - diff last byte 50.690 ns/op 49.205 ns/op 1.03
Buffer.compare 32 - diff last byte 58.454 ns/op 55.745 ns/op 1.05
byteArrayEquals 1024 - diff last byte 1.5219 us/op 1.4574 us/op 1.04
Buffer.compare 1024 - diff last byte 74.785 ns/op 71.263 ns/op 1.05
byteArrayEquals 16384 - diff last byte 24.190 us/op 23.203 us/op 1.04
Buffer.compare 16384 - diff last byte 285.94 ns/op 267.81 ns/op 1.07
byteArrayEquals 123687377 - diff last byte 183.92 ms/op 178.07 ms/op 1.03
Buffer.compare 123687377 - diff last byte 13.045 ms/op 6.5119 ms/op 2.00
byteArrayEquals 32 - random bytes 8.1450 ns/op 5.9150 ns/op 1.38
Buffer.compare 32 - random bytes 69.814 ns/op 58.356 ns/op 1.20
byteArrayEquals 1024 - random bytes 7.9280 ns/op 5.5070 ns/op 1.44
Buffer.compare 1024 - random bytes 63.803 ns/op 57.857 ns/op 1.10
byteArrayEquals 16384 - random bytes 7.5320 ns/op 5.7270 ns/op 1.32
Buffer.compare 16384 - random bytes 63.692 ns/op 59.329 ns/op 1.07
byteArrayEquals 123687377 - random bytes 18.550 ns/op 8.0200 ns/op 2.31
Buffer.compare 123687377 - random bytes 79.270 ns/op 61.700 ns/op 1.28
regular array get 100000 times 37.654 us/op 42.691 us/op 0.88
wrappedArray get 100000 times 37.903 us/op 34.866 us/op 1.09
arrayWithProxy get 100000 times 14.909 ms/op 14.011 ms/op 1.06
ssz.Root.equals 56.818 ns/op 49.379 ns/op 1.15
byteArrayEquals 54.931 ns/op 48.610 ns/op 1.13
Buffer.compare 13.189 ns/op 10.593 ns/op 1.25
shuffle list - 16384 els 7.4397 ms/op 6.6830 ms/op 1.11
shuffle list - 250000 els 108.23 ms/op 98.034 ms/op 1.10
processSlot - 1 slots 18.457 us/op 15.365 us/op 1.20
processSlot - 32 slots 3.3103 ms/op 3.1873 ms/op 1.04
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 62.656 ms/op 55.864 ms/op 1.12
getCommitteeAssignments - req 1 vs - 250000 vc 2.6306 ms/op 2.5385 ms/op 1.04
getCommitteeAssignments - req 100 vs - 250000 vc 3.8701 ms/op 3.7181 ms/op 1.04
getCommitteeAssignments - req 1000 vs - 250000 vc 4.2119 ms/op 4.1247 ms/op 1.02
findModifiedValidators - 10000 modified validators 613.90 ms/op 516.90 ms/op 1.19
findModifiedValidators - 1000 modified validators 469.94 ms/op 429.89 ms/op 1.09
findModifiedValidators - 100 modified validators 445.49 ms/op 399.01 ms/op 1.12
findModifiedValidators - 10 modified validators 531.55 ms/op 391.62 ms/op 1.36
findModifiedValidators - 1 modified validators 457.51 ms/op 416.07 ms/op 1.10
findModifiedValidators - no difference 431.61 ms/op 415.01 ms/op 1.04
compare ViewDUs 4.8420 s/op 4.2006 s/op 1.15
compare each validator Uint8Array 1.4911 s/op 1.8663 s/op 0.80
compare ViewDU to Uint8Array 1.2081 s/op 1.0586 s/op 1.14
migrate state 1000000 validators, 24 modified, 0 new 696.27 ms/op 759.74 ms/op 0.92
migrate state 1000000 validators, 1700 modified, 1000 new 1.0316 s/op 1.0260 s/op 1.01
migrate state 1000000 validators, 3400 modified, 2000 new 1.2852 s/op 1.3296 s/op 0.97
migrate state 1500000 validators, 24 modified, 0 new 765.74 ms/op 773.52 ms/op 0.99
migrate state 1500000 validators, 1700 modified, 1000 new 1.0395 s/op 1.0873 s/op 0.96
migrate state 1500000 validators, 3400 modified, 2000 new 1.4002 s/op 1.3990 s/op 1.00
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.9600 ns/op 4.6300 ns/op 1.07
state getBlockRootAtSlot - 250000 vs - 7PWei 744.70 ns/op 522.73 ns/op 1.42
computeProposers - vc 250000 10.739 ms/op 9.9449 ms/op 1.08
computeEpochShuffling - vc 250000 112.94 ms/op 104.21 ms/op 1.08
getNextSyncCommittee - vc 250000 161.29 ms/op 154.82 ms/op 1.04
computeSigningRoot for AttestationData 25.372 us/op 25.739 us/op 0.99
hash AttestationData serialized data then Buffer.toString(base64) 2.4173 us/op 2.2994 us/op 1.05
toHexString serialized data 1.3145 us/op 1.1303 us/op 1.16
Buffer.toString(base64) 264.13 ns/op 220.89 ns/op 1.20

by benchmarkbot/action

@philknows philknows merged commit 8c5e7e4 into unstable Nov 9, 2023
32 of 35 checks passed
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.13.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.

3 participants