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

refactor: shift usage to publishblock v2 endpoint, cleanup v1 post deneb #6084

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented Nov 3, 2023

publishblock v1 doesn't need to be supported or used - however cleanup to be done post deneb, still deprecation should be annouced along with some other endpoints (to be coordinated separately )

@g11tech g11tech requested a review from a team as a code owner November 3, 2023 17:22
Copy link
Contributor

github-actions bot commented Nov 3, 2023

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 4eabfe8 Previous: 52b9e15 Ratio
isKnown best case - 1 super set check 247.00 ns/op 743.00 ns/op 0.33
isKnown normal case - 2 super set checks 230.00 ns/op 776.00 ns/op 0.30
byteArrayEquals 123687377 - random bytes 6.4700 ns/op 21.580 ns/op 0.30
Full benchmark results
Benchmark suite Current: 4eabfe8 Previous: 52b9e15 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 957.30 us/op 698.59 us/op 1.37
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 53.698 us/op 123.63 us/op 0.43
BLS verify - blst-native 1.1253 ms/op 1.4242 ms/op 0.79
BLS verifyMultipleSignatures 3 - blst-native 2.4054 ms/op 3.0068 ms/op 0.80
BLS verifyMultipleSignatures 8 - blst-native 5.2775 ms/op 6.6067 ms/op 0.80
BLS verifyMultipleSignatures 32 - blst-native 19.447 ms/op 24.717 ms/op 0.79
BLS verifyMultipleSignatures 64 - blst-native 38.337 ms/op 48.519 ms/op 0.79
BLS verifyMultipleSignatures 128 - blst-native 77.519 ms/op 96.514 ms/op 0.80
BLS deserializing 10000 signatures 846.34 ms/op 1.0307 s/op 0.82
BLS deserializing 100000 signatures 8.0321 s/op 10.779 s/op 0.75
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.1121 ms/op 1.6374 ms/op 0.68
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.2656 ms/op 1.9913 ms/op 0.64
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.4294 ms/op 3.1466 ms/op 0.77
BLS verifyMultipleSignatures - same message - 64 - blst-native 2.9840 ms/op 4.4440 ms/op 0.67
BLS verifyMultipleSignatures - same message - 128 - blst-native 4.9842 ms/op 6.8315 ms/op 0.73
BLS aggregatePubkeys 32 - blst-native 22.627 us/op 30.351 us/op 0.75
BLS aggregatePubkeys 128 - blst-native 89.449 us/op 123.75 us/op 0.72
getAttestationsForBlock 28.983 ms/op 58.348 ms/op 0.50
isKnown best case - 1 super set check 247.00 ns/op 743.00 ns/op 0.33
isKnown normal case - 2 super set checks 230.00 ns/op 776.00 ns/op 0.30
isKnown worse case - 16 super set checks 268.00 ns/op 778.00 ns/op 0.34
CheckpointStateCache - add get delete 4.9790 us/op 7.9660 us/op 0.63
validate api signedAggregateAndProof - struct 2.7377 ms/op 3.1689 ms/op 0.86
validate gossip signedAggregateAndProof - struct 2.7564 ms/op 3.0987 ms/op 0.89
validate gossip attestation - vc 640000 1.1836 ms/op 1.4917 ms/op 0.79
batch validate gossip attestation - vc 640000 - chunk 32 146.43 us/op 176.88 us/op 0.83
batch validate gossip attestation - vc 640000 - chunk 64 125.29 us/op 164.29 us/op 0.76
batch validate gossip attestation - vc 640000 - chunk 128 116.39 us/op 154.85 us/op 0.75
batch validate gossip attestation - vc 640000 - chunk 256 108.39 us/op 147.18 us/op 0.74
pickEth1Vote - no votes 901.26 us/op 1.4747 ms/op 0.61
pickEth1Vote - max votes 6.0271 ms/op 11.333 ms/op 0.53
pickEth1Vote - Eth1Data hashTreeRoot value x2048 10.543 ms/op 18.574 ms/op 0.57
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 21.629 ms/op 28.780 ms/op 0.75
pickEth1Vote - Eth1Data fastSerialize value x2048 390.94 us/op 657.98 us/op 0.59
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.6585 ms/op 6.1265 ms/op 1.09
bytes32 toHexString 381.00 ns/op 599.00 ns/op 0.64
bytes32 Buffer.toString(hex) 213.00 ns/op 299.00 ns/op 0.71
bytes32 Buffer.toString(hex) from Uint8Array 317.00 ns/op 470.00 ns/op 0.67
bytes32 Buffer.toString(hex) + 0x 202.00 ns/op 290.00 ns/op 0.70
Object access 1 prop 0.10700 ns/op 0.17300 ns/op 0.62
Map access 1 prop 0.096000 ns/op 0.15900 ns/op 0.60
Object get x1000 5.7590 ns/op 7.3510 ns/op 0.78
Map get x1000 0.44500 ns/op 0.72600 ns/op 0.61
Object set x1000 24.526 ns/op 54.426 ns/op 0.45
Map set x1000 17.918 ns/op 47.529 ns/op 0.38
Return object 10000 times 0.23620 ns/op 0.25540 ns/op 0.92
Throw Error 10000 times 2.7745 us/op 4.1031 us/op 0.68
fastMsgIdFn sha256 / 200 bytes 1.8260 us/op 3.4610 us/op 0.53
fastMsgIdFn h32 xxhash / 200 bytes 195.00 ns/op 347.00 ns/op 0.56
fastMsgIdFn h64 xxhash / 200 bytes 233.00 ns/op 376.00 ns/op 0.62
fastMsgIdFn sha256 / 1000 bytes 6.0060 us/op 11.756 us/op 0.51
fastMsgIdFn h32 xxhash / 1000 bytes 312.00 ns/op 443.00 ns/op 0.70
fastMsgIdFn h64 xxhash / 1000 bytes 292.00 ns/op 434.00 ns/op 0.67
fastMsgIdFn sha256 / 10000 bytes 52.741 us/op 106.34 us/op 0.50
fastMsgIdFn h32 xxhash / 10000 bytes 1.6830 us/op 2.0410 us/op 0.82
fastMsgIdFn h64 xxhash / 10000 bytes 1.1130 us/op 1.4020 us/op 0.79
send data - 1000 256B messages 10.848 ms/op 20.933 ms/op 0.52
send data - 1000 512B messages 14.834 ms/op 28.643 ms/op 0.52
send data - 1000 1024B messages 22.469 ms/op 45.328 ms/op 0.50
send data - 1000 1200B messages 27.649 ms/op 28.298 ms/op 0.98
send data - 1000 2048B messages 30.000 ms/op 46.113 ms/op 0.65
send data - 1000 4096B messages 30.084 ms/op 46.494 ms/op 0.65
send data - 1000 16384B messages 86.007 ms/op 121.99 ms/op 0.71
send data - 1000 65536B messages 395.50 ms/op 442.65 ms/op 0.89
enrSubnets - fastDeserialize 64 bits 1.3430 us/op 1.4350 us/op 0.94
enrSubnets - ssz BitVector 64 bits 541.00 ns/op 605.00 ns/op 0.89
enrSubnets - fastDeserialize 4 bits 187.00 ns/op 200.00 ns/op 0.94
enrSubnets - ssz BitVector 4 bits 420.00 ns/op 489.00 ns/op 0.86
prioritizePeers score -10:0 att 32-0.1 sync 2-0 88.964 us/op 113.51 us/op 0.78
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 92.756 us/op 143.13 us/op 0.65
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 140.65 us/op 195.48 us/op 0.72
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 249.34 us/op 331.04 us/op 0.75
prioritizePeers score 0:0 att 64-1 sync 4-1 230.54 us/op 375.12 us/op 0.61
array of 16000 items push then shift 1.3227 us/op 1.6911 us/op 0.78
LinkedList of 16000 items push then shift 5.8400 ns/op 9.6680 ns/op 0.60
array of 16000 items push then pop 67.987 ns/op 110.27 ns/op 0.62
LinkedList of 16000 items push then pop 5.5160 ns/op 8.9800 ns/op 0.61
array of 24000 items push then shift 1.9979 us/op 2.7132 us/op 0.74
LinkedList of 24000 items push then shift 5.9500 ns/op 9.1940 ns/op 0.65
array of 24000 items push then pop 83.560 ns/op 140.46 ns/op 0.59
LinkedList of 24000 items push then pop 5.5190 ns/op 8.9930 ns/op 0.61
intersect bitArray bitLen 8 5.4080 ns/op 7.3910 ns/op 0.73
intersect array and set length 8 45.525 ns/op 61.380 ns/op 0.74
intersect bitArray bitLen 128 24.956 ns/op 32.986 ns/op 0.76
intersect array and set length 128 668.88 ns/op 840.17 ns/op 0.80
bitArray.getTrueBitIndexes() bitLen 128 1.2620 us/op 1.6110 us/op 0.78
bitArray.getTrueBitIndexes() bitLen 248 2.1030 us/op 2.9250 us/op 0.72
bitArray.getTrueBitIndexes() bitLen 512 4.6620 us/op 5.3390 us/op 0.87
Buffer.concat 32 items 804.00 ns/op 1.0960 us/op 0.73
Uint8Array.set 32 items 2.0440 us/op 2.7590 us/op 0.74
Set add up to 64 items then delete first 1.8713 us/op 4.6365 us/op 0.40
OrderedSet add up to 64 items then delete first 2.9192 us/op 5.7232 us/op 0.51
Set add up to 64 items then delete last 1.9244 us/op 4.9108 us/op 0.39
OrderedSet add up to 64 items then delete last 3.6479 us/op 6.5386 us/op 0.56
Set add up to 64 items then delete middle 1.9928 us/op 4.8847 us/op 0.41
OrderedSet add up to 64 items then delete middle 4.0920 us/op 7.8852 us/op 0.52
Set add up to 128 items then delete first 4.2216 us/op 9.7856 us/op 0.43
OrderedSet add up to 128 items then delete first 6.6373 us/op 12.018 us/op 0.55
Set add up to 128 items then delete last 3.7382 us/op 9.6661 us/op 0.39
OrderedSet add up to 128 items then delete last 5.6403 us/op 12.630 us/op 0.45
Set add up to 128 items then delete middle 3.7530 us/op 9.4632 us/op 0.40
OrderedSet add up to 128 items then delete middle 10.486 us/op 18.383 us/op 0.57
Set add up to 256 items then delete first 7.5467 us/op 20.002 us/op 0.38
OrderedSet add up to 256 items then delete first 12.247 us/op 25.185 us/op 0.49
Set add up to 256 items then delete last 7.3104 us/op 21.107 us/op 0.35
OrderedSet add up to 256 items then delete last 11.156 us/op 28.353 us/op 0.39
Set add up to 256 items then delete middle 7.3524 us/op 21.868 us/op 0.34
OrderedSet add up to 256 items then delete middle 30.133 us/op 51.487 us/op 0.59
transfer serialized Status (84 B) 1.2990 us/op 1.8770 us/op 0.69
copy serialized Status (84 B) 1.2010 us/op 1.5880 us/op 0.76
transfer serialized SignedVoluntaryExit (112 B) 1.5210 us/op 2.1540 us/op 0.71
copy serialized SignedVoluntaryExit (112 B) 1.2700 us/op 1.7500 us/op 0.73
transfer serialized ProposerSlashing (416 B) 2.3920 us/op 2.4610 us/op 0.97
copy serialized ProposerSlashing (416 B) 2.2540 us/op 2.5630 us/op 0.88
transfer serialized Attestation (485 B) 2.0620 us/op 2.1690 us/op 0.95
copy serialized Attestation (485 B) 2.7190 us/op 2.9320 us/op 0.93
transfer serialized AttesterSlashing (33232 B) 1.7660 us/op 3.6980 us/op 0.48
copy serialized AttesterSlashing (33232 B) 4.6490 us/op 9.4440 us/op 0.49
transfer serialized Small SignedBeaconBlock (128000 B) 2.3500 us/op 3.6810 us/op 0.64
copy serialized Small SignedBeaconBlock (128000 B) 18.984 us/op 26.463 us/op 0.72
transfer serialized Avg SignedBeaconBlock (200000 B) 2.1650 us/op 3.8010 us/op 0.57
copy serialized Avg SignedBeaconBlock (200000 B) 25.637 us/op 40.852 us/op 0.63
transfer serialized BlobsSidecar (524380 B) 2.5100 us/op 5.4710 us/op 0.46
copy serialized BlobsSidecar (524380 B) 65.955 us/op 131.63 us/op 0.50
transfer serialized Big SignedBeaconBlock (1000000 B) 2.9700 us/op 4.3740 us/op 0.68
copy serialized Big SignedBeaconBlock (1000000 B) 133.65 us/op 218.86 us/op 0.61
pass gossip attestations to forkchoice per slot 2.9443 ms/op 4.7685 ms/op 0.62
forkChoice updateHead vc 100000 bc 64 eq 0 547.64 us/op 713.32 us/op 0.77
forkChoice updateHead vc 600000 bc 64 eq 0 3.4188 ms/op 5.9757 ms/op 0.57
forkChoice updateHead vc 1000000 bc 64 eq 0 4.3694 ms/op 8.2276 ms/op 0.53
forkChoice updateHead vc 600000 bc 320 eq 0 2.8195 ms/op 4.5002 ms/op 0.63
forkChoice updateHead vc 600000 bc 1200 eq 0 3.1938 ms/op 4.8160 ms/op 0.66
forkChoice updateHead vc 600000 bc 7200 eq 0 5.2989 ms/op 5.7102 ms/op 0.93
forkChoice updateHead vc 600000 bc 64 eq 1000 10.376 ms/op 11.987 ms/op 0.87
forkChoice updateHead vc 600000 bc 64 eq 10000 10.390 ms/op 12.650 ms/op 0.82
forkChoice updateHead vc 600000 bc 64 eq 300000 16.933 ms/op 22.704 ms/op 0.75
computeDeltas 500000 validators 300 proto nodes 3.4312 ms/op 6.7949 ms/op 0.50
computeDeltas 500000 validators 1200 proto nodes 3.3157 ms/op 6.8219 ms/op 0.49
computeDeltas 500000 validators 7200 proto nodes 3.1462 ms/op 6.7597 ms/op 0.47
computeDeltas 750000 validators 300 proto nodes 4.6782 ms/op 10.275 ms/op 0.46
computeDeltas 750000 validators 1200 proto nodes 4.5807 ms/op 10.355 ms/op 0.44
computeDeltas 750000 validators 7200 proto nodes 4.7287 ms/op 10.229 ms/op 0.46
computeDeltas 1400000 validators 300 proto nodes 8.9031 ms/op 20.329 ms/op 0.44
computeDeltas 1400000 validators 1200 proto nodes 9.1933 ms/op 19.853 ms/op 0.46
computeDeltas 1400000 validators 7200 proto nodes 8.8739 ms/op 20.711 ms/op 0.43
computeDeltas 2100000 validators 300 proto nodes 14.243 ms/op 32.460 ms/op 0.44
computeDeltas 2100000 validators 1200 proto nodes 14.272 ms/op 32.490 ms/op 0.44
computeDeltas 2100000 validators 7200 proto nodes 15.375 ms/op 29.604 ms/op 0.52
computeProposerBoostScoreFromBalances 500000 validators 2.8271 ms/op 3.5230 ms/op 0.80
computeProposerBoostScoreFromBalances 750000 validators 2.8177 ms/op 3.4727 ms/op 0.81
computeProposerBoostScoreFromBalances 1400000 validators 2.8443 ms/op 3.4110 ms/op 0.83
computeProposerBoostScoreFromBalances 2100000 validators 2.7884 ms/op 3.4342 ms/op 0.81
altair processAttestation - 250000 vs - 7PWei normalcase 1.6679 ms/op 3.4087 ms/op 0.49
altair processAttestation - 250000 vs - 7PWei worstcase 2.8458 ms/op 4.5673 ms/op 0.62
altair processAttestation - setStatus - 1/6 committees join 125.92 us/op 211.95 us/op 0.59
altair processAttestation - setStatus - 1/3 committees join 216.64 us/op 406.34 us/op 0.53
altair processAttestation - setStatus - 1/2 committees join 309.78 us/op 549.81 us/op 0.56
altair processAttestation - setStatus - 2/3 committees join 490.71 us/op 655.75 us/op 0.75
altair processAttestation - setStatus - 4/5 committees join 603.18 us/op 899.10 us/op 0.67
altair processAttestation - setStatus - 100% committees join 804.39 us/op 1.1025 ms/op 0.73
altair processBlock - 250000 vs - 7PWei normalcase 11.053 ms/op 13.545 ms/op 0.82
altair processBlock - 250000 vs - 7PWei normalcase hashState 30.207 ms/op 38.524 ms/op 0.78
altair processBlock - 250000 vs - 7PWei worstcase 39.499 ms/op 45.312 ms/op 0.87
altair processBlock - 250000 vs - 7PWei worstcase hashState 86.337 ms/op 108.78 ms/op 0.79
phase0 processBlock - 250000 vs - 7PWei normalcase 3.2373 ms/op 3.3815 ms/op 0.96
phase0 processBlock - 250000 vs - 7PWei worstcase 31.971 ms/op 38.988 ms/op 0.82
altair processEth1Data - 250000 vs - 7PWei normalcase 692.52 us/op 750.25 us/op 0.92
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 9.2140 us/op 20.680 us/op 0.45
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 63.126 us/op 88.907 us/op 0.71
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 17.320 us/op 34.279 us/op 0.51
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 16.104 us/op 23.318 us/op 0.69
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 191.58 us/op 233.84 us/op 0.82
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.3020 ms/op 1.8292 ms/op 0.71
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.6391 ms/op 2.3009 ms/op 0.71
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.4747 ms/op 2.0237 ms/op 0.73
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.2866 ms/op 4.5266 ms/op 0.73
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.4908 ms/op 2.9597 ms/op 0.84
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.7104 ms/op 7.5002 ms/op 0.76
Tree 40 250000 create 442.50 ms/op 518.54 ms/op 0.85
Tree 40 250000 get(125000) 136.69 ns/op 221.99 ns/op 0.62
Tree 40 250000 set(125000) 1.0960 us/op 1.3205 us/op 0.83
Tree 40 250000 toArray() 29.359 ms/op 23.745 ms/op 1.24
Tree 40 250000 iterate all - toArray() + loop 32.341 ms/op 25.021 ms/op 1.29
Tree 40 250000 iterate all - get(i) 61.201 ms/op 77.509 ms/op 0.79
MutableVector 250000 create 13.981 ms/op 15.846 ms/op 0.88
MutableVector 250000 get(125000) 7.3480 ns/op 6.9900 ns/op 1.05
MutableVector 250000 set(125000) 224.52 ns/op 348.72 ns/op 0.64
MutableVector 250000 toArray() 4.9313 ms/op 5.0546 ms/op 0.98
MutableVector 250000 iterate all - toArray() + loop 5.0313 ms/op 4.3850 ms/op 1.15
MutableVector 250000 iterate all - get(i) 1.9202 ms/op 1.6699 ms/op 1.15
Array 250000 create 4.6519 ms/op 3.7074 ms/op 1.25
Array 250000 clone - spread 1.3879 ms/op 1.2768 ms/op 1.09
Array 250000 get(125000) 0.53900 ns/op 0.62900 ns/op 0.86
Array 250000 set(125000) 0.60400 ns/op 0.71100 ns/op 0.85
Array 250000 iterate all - loop 78.864 us/op 86.958 us/op 0.91
effectiveBalanceIncrements clone Uint8Array 300000 15.318 us/op 41.130 us/op 0.37
effectiveBalanceIncrements clone MutableVector 300000 315.00 ns/op 392.00 ns/op 0.80
effectiveBalanceIncrements rw all Uint8Array 300000 174.58 us/op 187.03 us/op 0.93
effectiveBalanceIncrements rw all MutableVector 300000 68.715 ms/op 118.43 ms/op 0.58
phase0 afterProcessEpoch - 250000 vs - 7PWei 104.99 ms/op 122.43 ms/op 0.86
phase0 beforeProcessEpoch - 250000 vs - 7PWei 52.957 ms/op 54.449 ms/op 0.97
altair processEpoch - mainnet_e81889 553.90 ms/op 491.13 ms/op 1.13
mainnet_e81889 - altair beforeProcessEpoch 95.485 ms/op 54.755 ms/op 1.74
mainnet_e81889 - altair processJustificationAndFinalization 19.680 us/op 18.036 us/op 1.09
mainnet_e81889 - altair processInactivityUpdates 7.9937 ms/op 7.8667 ms/op 1.02
mainnet_e81889 - altair processRewardsAndPenalties 85.768 ms/op 75.924 ms/op 1.13
mainnet_e81889 - altair processRegistryUpdates 4.0410 us/op 4.2860 us/op 0.94
mainnet_e81889 - altair processSlashings 1.1230 us/op 888.00 ns/op 1.26
mainnet_e81889 - altair processEth1DataReset 1.1850 us/op 610.00 ns/op 1.94
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.7143 ms/op 1.4359 ms/op 1.19
mainnet_e81889 - altair processSlashingsReset 6.8670 us/op 4.6700 us/op 1.47
mainnet_e81889 - altair processRandaoMixesReset 8.6970 us/op 6.8270 us/op 1.27
mainnet_e81889 - altair processHistoricalRootsUpdate 1.1260 us/op 1.2850 us/op 0.88
mainnet_e81889 - altair processParticipationFlagUpdates 2.6160 us/op 5.3090 us/op 0.49
mainnet_e81889 - altair processSyncCommitteeUpdates 1.2260 us/op 1.5550 us/op 0.79
mainnet_e81889 - altair afterProcessEpoch 85.996 ms/op 139.55 ms/op 0.62
capella processEpoch - mainnet_e217614 2.3544 s/op 2.5457 s/op 0.92
mainnet_e217614 - capella beforeProcessEpoch 610.41 ms/op 584.40 ms/op 1.04
mainnet_e217614 - capella processJustificationAndFinalization 10.784 us/op 20.072 us/op 0.54
mainnet_e217614 - capella processInactivityUpdates 18.832 ms/op 20.939 ms/op 0.90
mainnet_e217614 - capella processRewardsAndPenalties 555.56 ms/op 764.96 ms/op 0.73
mainnet_e217614 - capella processRegistryUpdates 25.603 us/op 39.789 us/op 0.64
mainnet_e217614 - capella processSlashings 544.00 ns/op 1.4830 us/op 0.37
mainnet_e217614 - capella processEth1DataReset 414.00 ns/op 1.4340 us/op 0.29
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.8779 ms/op 6.3512 ms/op 0.77
mainnet_e217614 - capella processSlashingsReset 4.8710 us/op 5.5270 us/op 0.88
mainnet_e217614 - capella processRandaoMixesReset 6.9600 us/op 12.059 us/op 0.58
mainnet_e217614 - capella processHistoricalRootsUpdate 1.2560 us/op 1.3980 us/op 0.90
mainnet_e217614 - capella processParticipationFlagUpdates 3.4830 us/op 4.4260 us/op 0.79
mainnet_e217614 - capella afterProcessEpoch 240.31 ms/op 350.98 ms/op 0.68
phase0 processEpoch - mainnet_e58758 462.82 ms/op 675.37 ms/op 0.69
mainnet_e58758 - phase0 beforeProcessEpoch 152.44 ms/op 160.39 ms/op 0.95
mainnet_e58758 - phase0 processJustificationAndFinalization 23.576 us/op 26.062 us/op 0.90
mainnet_e58758 - phase0 processRewardsAndPenalties 54.351 ms/op 72.473 ms/op 0.75
mainnet_e58758 - phase0 processRegistryUpdates 4.7380 us/op 18.225 us/op 0.26
mainnet_e58758 - phase0 processSlashings 513.00 ns/op 955.00 ns/op 0.54
mainnet_e58758 - phase0 processEth1DataReset 442.00 ns/op 1.1000 us/op 0.40
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 779.55 us/op 1.1930 ms/op 0.65
mainnet_e58758 - phase0 processSlashingsReset 3.0730 us/op 8.3880 us/op 0.37
mainnet_e58758 - phase0 processRandaoMixesReset 6.0820 us/op 10.880 us/op 0.56
mainnet_e58758 - phase0 processHistoricalRootsUpdate 593.00 ns/op 907.00 ns/op 0.65
mainnet_e58758 - phase0 processParticipationRecordUpdates 2.4780 us/op 8.9990 us/op 0.28
mainnet_e58758 - phase0 afterProcessEpoch 68.914 ms/op 110.48 ms/op 0.62
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0915 ms/op 1.4498 ms/op 0.75
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.2094 ms/op 1.6765 ms/op 0.72
altair processInactivityUpdates - 250000 normalcase 19.292 ms/op 28.309 ms/op 0.68
altair processInactivityUpdates - 250000 worstcase 20.366 ms/op 26.766 ms/op 0.76
phase0 processRegistryUpdates - 250000 normalcase 10.986 us/op 11.382 us/op 0.97
phase0 processRegistryUpdates - 250000 badcase_full_deposits 274.72 us/op 374.13 us/op 0.73
phase0 processRegistryUpdates - 250000 worstcase 0.5 122.42 ms/op 166.28 ms/op 0.74
altair processRewardsAndPenalties - 250000 normalcase 63.561 ms/op 75.758 ms/op 0.84
altair processRewardsAndPenalties - 250000 worstcase 58.012 ms/op 53.926 ms/op 1.08
phase0 getAttestationDeltas - 250000 normalcase 5.8778 ms/op 13.466 ms/op 0.44
phase0 getAttestationDeltas - 250000 worstcase 5.9943 ms/op 13.891 ms/op 0.43
phase0 processSlashings - 250000 worstcase 1.7289 ms/op 2.8429 ms/op 0.61
altair processSyncCommitteeUpdates - 250000 118.18 ms/op 182.98 ms/op 0.65
BeaconState.hashTreeRoot - No change 227.00 ns/op 268.00 ns/op 0.85
BeaconState.hashTreeRoot - 1 full validator 116.94 us/op 161.22 us/op 0.73
BeaconState.hashTreeRoot - 32 full validator 1.5783 ms/op 1.7624 ms/op 0.90
BeaconState.hashTreeRoot - 512 full validator 17.316 ms/op 19.351 ms/op 0.89
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 161.59 us/op 196.91 us/op 0.82
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.6000 ms/op 2.9903 ms/op 0.54
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 19.798 ms/op 37.030 ms/op 0.53
BeaconState.hashTreeRoot - 1 balances 146.86 us/op 169.00 us/op 0.87
BeaconState.hashTreeRoot - 32 balances 1.5201 ms/op 1.6833 ms/op 0.90
BeaconState.hashTreeRoot - 512 balances 13.049 ms/op 15.159 ms/op 0.86
BeaconState.hashTreeRoot - 250000 balances 198.52 ms/op 240.98 ms/op 0.82
aggregationBits - 2048 els - zipIndexesInBitList 19.870 us/op 35.807 us/op 0.55
byteArrayEquals 32 48.380 ns/op 56.159 ns/op 0.86
Buffer.compare 32 36.787 ns/op 62.926 ns/op 0.58
byteArrayEquals 1024 1.2618 us/op 1.6275 us/op 0.78
Buffer.compare 1024 43.720 ns/op 79.837 ns/op 0.55
byteArrayEquals 16384 20.125 us/op 25.697 us/op 0.78
Buffer.compare 16384 222.13 ns/op 298.83 ns/op 0.74
byteArrayEquals 123687377 152.54 ms/op 192.40 ms/op 0.79
Buffer.compare 123687377 6.6325 ms/op 12.465 ms/op 0.53
byteArrayEquals 32 - diff last byte 42.001 ns/op 58.606 ns/op 0.72
Buffer.compare 32 - diff last byte 36.627 ns/op 65.256 ns/op 0.56
byteArrayEquals 1024 - diff last byte 1.2517 us/op 1.6079 us/op 0.78
Buffer.compare 1024 - diff last byte 45.887 ns/op 79.372 ns/op 0.58
byteArrayEquals 16384 - diff last byte 19.944 us/op 25.895 us/op 0.77
Buffer.compare 16384 - diff last byte 228.35 ns/op 298.80 ns/op 0.76
byteArrayEquals 123687377 - diff last byte 150.19 ms/op 203.98 ms/op 0.74
Buffer.compare 123687377 - diff last byte 5.4732 ms/op 14.814 ms/op 0.37
byteArrayEquals 32 - random bytes 4.7760 ns/op 9.1170 ns/op 0.52
Buffer.compare 32 - random bytes 35.499 ns/op 72.464 ns/op 0.49
byteArrayEquals 1024 - random bytes 4.2390 ns/op 8.3080 ns/op 0.51
Buffer.compare 1024 - random bytes 33.260 ns/op 72.314 ns/op 0.46
byteArrayEquals 16384 - random bytes 4.2300 ns/op 8.8080 ns/op 0.48
Buffer.compare 16384 - random bytes 32.819 ns/op 70.629 ns/op 0.46
byteArrayEquals 123687377 - random bytes 6.4700 ns/op 21.580 ns/op 0.30
Buffer.compare 123687377 - random bytes 34.950 ns/op 84.270 ns/op 0.41
regular array get 100000 times 28.735 us/op 42.784 us/op 0.67
wrappedArray get 100000 times 28.991 us/op 37.726 us/op 0.77
arrayWithProxy get 100000 times 10.376 ms/op 16.433 ms/op 0.63
ssz.Root.equals 48.589 ns/op 56.466 ns/op 0.86
byteArrayEquals 47.983 ns/op 56.358 ns/op 0.85
Buffer.compare 9.4790 ns/op 14.257 ns/op 0.66
shuffle list - 16384 els 4.2701 ms/op 7.8019 ms/op 0.55
shuffle list - 250000 els 61.718 ms/op 118.06 ms/op 0.52
processSlot - 1 slots 15.077 us/op 24.167 us/op 0.62
processSlot - 32 slots 2.6941 ms/op 4.3513 ms/op 0.62
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 48.907 ms/op 64.348 ms/op 0.76
getCommitteeAssignments - req 1 vs - 250000 vc 2.2495 ms/op 2.8053 ms/op 0.80
getCommitteeAssignments - req 100 vs - 250000 vc 3.2770 ms/op 4.1799 ms/op 0.78
getCommitteeAssignments - req 1000 vs - 250000 vc 3.6588 ms/op 4.5943 ms/op 0.80
findModifiedValidators - 10000 modified validators 410.87 ms/op 635.17 ms/op 0.65
findModifiedValidators - 1000 modified validators 307.75 ms/op 505.82 ms/op 0.61
findModifiedValidators - 100 modified validators 296.88 ms/op 470.65 ms/op 0.63
findModifiedValidators - 10 modified validators 300.21 ms/op 498.84 ms/op 0.60
findModifiedValidators - 1 modified validators 334.57 ms/op 514.06 ms/op 0.65
findModifiedValidators - no difference 315.77 ms/op 460.42 ms/op 0.69
compare ViewDUs 3.9813 s/op 5.5181 s/op 0.72
compare each validator Uint8Array 1.6865 s/op 1.6169 s/op 1.04
compare ViewDU to Uint8Array 1.1205 s/op 1.3527 s/op 0.83
migrate state 1000000 validators, 24 modified, 0 new 633.10 ms/op 853.08 ms/op 0.74
migrate state 1000000 validators, 1700 modified, 1000 new 806.58 ms/op 1.1124 s/op 0.73
migrate state 1000000 validators, 3400 modified, 2000 new 1.1202 s/op 1.4022 s/op 0.80
migrate state 1500000 validators, 24 modified, 0 new 592.84 ms/op 892.21 ms/op 0.66
migrate state 1500000 validators, 1700 modified, 1000 new 779.23 ms/op 1.4553 s/op 0.54
migrate state 1500000 validators, 3400 modified, 2000 new 1.2018 s/op 1.7376 s/op 0.69
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 3.4600 ns/op 6.5100 ns/op 0.53
state getBlockRootAtSlot - 250000 vs - 7PWei 683.19 ns/op 967.31 ns/op 0.71
computeProposers - vc 250000 5.7509 ms/op 12.593 ms/op 0.46
computeEpochShuffling - vc 250000 68.280 ms/op 123.59 ms/op 0.55
getNextSyncCommittee - vc 250000 126.88 ms/op 216.45 ms/op 0.59
computeSigningRoot for AttestationData 29.672 us/op 44.629 us/op 0.66
hash AttestationData serialized data then Buffer.toString(base64) 1.2367 us/op 3.0936 us/op 0.40
toHexString serialized data 756.23 ns/op 1.7375 us/op 0.44
Buffer.toString(base64) 179.36 ns/op 277.27 ns/op 0.65

by benchmarkbot/action

@g11tech g11tech changed the title refactor: cleanup publishblock v1 support and usage refactor: shift usage to publishblock v2 endpoint, cleanup v1 post deneb Nov 4, 2023
@g11tech g11tech merged commit bf5d92b into unstable Nov 4, 2023
20 checks passed
@g11tech g11tech deleted the g11tech/cleanup-publishblockv1 branch November 4, 2023 09:27
@wemeetagain
Copy link
Member

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