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

docs: add comment to RequestErrorCode.SSZ_OVER_MAX_SIZE #6373

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

matthewkeil
Copy link
Member

Motivation

Follow up to #6366

Description

Adds comment to why the error is used

@matthewkeil matthewkeil requested a review from a team as a code owner January 30, 2024 02:28
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

Merging #6373 (3442ad8) into unstable (ed43a98) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6373   +/-   ##
=========================================
  Coverage     60.15%   60.15%           
=========================================
  Files           407      407           
  Lines         46511    46511           
  Branches       1550     1550           
=========================================
  Hits          27980    27980           
  Misses        18499    18499           
  Partials         32       32           

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 4d2e9df Previous: ed43a98 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 607.99 us/op 578.74 us/op 1.05
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 126.49 us/op 123.11 us/op 1.03
BLS verify - blst-native 1.4420 ms/op 1.3391 ms/op 1.08
BLS verifyMultipleSignatures 3 - blst-native 3.1316 ms/op 2.7858 ms/op 1.12
BLS verifyMultipleSignatures 8 - blst-native 6.8774 ms/op 6.1180 ms/op 1.12
BLS verifyMultipleSignatures 32 - blst-native 23.886 ms/op 22.196 ms/op 1.08
BLS verifyMultipleSignatures 64 - blst-native 48.407 ms/op 43.883 ms/op 1.10
BLS verifyMultipleSignatures 128 - blst-native 96.236 ms/op 87.836 ms/op 1.10
BLS deserializing 10000 signatures 1.0417 s/op 951.16 ms/op 1.10
BLS deserializing 100000 signatures 9.6410 s/op 9.2077 s/op 1.05
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.4717 ms/op 1.3800 ms/op 1.07
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.6466 ms/op 1.5968 ms/op 1.03
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.5082 ms/op 2.3782 ms/op 1.05
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.7072 ms/op 3.5077 ms/op 1.06
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.0557 ms/op 5.7801 ms/op 1.05
BLS aggregatePubkeys 32 - blst-native 27.697 us/op 26.442 us/op 1.05
BLS aggregatePubkeys 128 - blst-native 108.78 us/op 102.77 us/op 1.06
getAttestationsForBlock 58.481 ms/op 57.168 ms/op 1.02
getSlashingsAndExits - default max 173.27 us/op 150.22 us/op 1.15
getSlashingsAndExits - 2k 550.12 us/op 537.38 us/op 1.02
proposeBlockBody type=full, size=empty 7.0254 ms/op 5.3949 ms/op 1.30
isKnown best case - 1 super set check 556.00 ns/op 324.00 ns/op 1.72
isKnown normal case - 2 super set checks 543.00 ns/op 324.00 ns/op 1.68
isKnown worse case - 16 super set checks 544.00 ns/op 339.00 ns/op 1.60
CheckpointStateCache - add get delete 7.2640 us/op 6.0090 us/op 1.21
validate api signedAggregateAndProof - struct 3.1456 ms/op 2.8199 ms/op 1.12
validate gossip signedAggregateAndProof - struct 3.1090 ms/op 2.8096 ms/op 1.11
validate gossip attestation - vc 640000 1.5242 ms/op 1.3771 ms/op 1.11
batch validate gossip attestation - vc 640000 - chunk 32 179.35 us/op 167.40 us/op 1.07
batch validate gossip attestation - vc 640000 - chunk 64 159.75 us/op 146.44 us/op 1.09
batch validate gossip attestation - vc 640000 - chunk 128 150.87 us/op 133.74 us/op 1.13
batch validate gossip attestation - vc 640000 - chunk 256 155.38 us/op 130.03 us/op 1.19
pickEth1Vote - no votes 1.4642 ms/op 1.2819 ms/op 1.14
pickEth1Vote - max votes 12.643 ms/op 7.8639 ms/op 1.61
pickEth1Vote - Eth1Data hashTreeRoot value x2048 22.770 ms/op 17.378 ms/op 1.31
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 36.172 ms/op 33.090 ms/op 1.09
pickEth1Vote - Eth1Data fastSerialize value x2048 755.50 us/op 614.39 us/op 1.23
pickEth1Vote - Eth1Data fastSerialize tree x2048 7.5043 ms/op 4.5916 ms/op 1.63
bytes32 toHexString 699.00 ns/op 537.00 ns/op 1.30
bytes32 Buffer.toString(hex) 322.00 ns/op 298.00 ns/op 1.08
bytes32 Buffer.toString(hex) from Uint8Array 517.00 ns/op 444.00 ns/op 1.16
bytes32 Buffer.toString(hex) + 0x 315.00 ns/op 296.00 ns/op 1.06
Object access 1 prop 0.22800 ns/op 0.15900 ns/op 1.43
Map access 1 prop 0.17400 ns/op 0.15500 ns/op 1.12
Object get x1000 7.8450 ns/op 7.7870 ns/op 1.01
Map get x1000 0.89100 ns/op 0.87200 ns/op 1.02
Object set x1000 69.004 ns/op 59.082 ns/op 1.17
Map set x1000 51.801 ns/op 45.448 ns/op 1.14
Return object 10000 times 0.27630 ns/op 0.24760 ns/op 1.12
Throw Error 10000 times 4.2629 us/op 3.8709 us/op 1.10
fastMsgIdFn sha256 / 200 bytes 3.6120 us/op 3.3990 us/op 1.06
fastMsgIdFn h32 xxhash / 200 bytes 364.00 ns/op 293.00 ns/op 1.24
fastMsgIdFn h64 xxhash / 200 bytes 403.00 ns/op 346.00 ns/op 1.16
fastMsgIdFn sha256 / 1000 bytes 12.675 us/op 11.627 us/op 1.09
fastMsgIdFn h32 xxhash / 1000 bytes 513.00 ns/op 447.00 ns/op 1.15
fastMsgIdFn h64 xxhash / 1000 bytes 487.00 ns/op 444.00 ns/op 1.10
fastMsgIdFn sha256 / 10000 bytes 113.39 us/op 103.00 us/op 1.10
fastMsgIdFn h32 xxhash / 10000 bytes 2.1220 us/op 2.0000 us/op 1.06
fastMsgIdFn h64 xxhash / 10000 bytes 1.4540 us/op 1.3540 us/op 1.07
send data - 1000 256B messages 23.482 ms/op 19.166 ms/op 1.23
send data - 1000 512B messages 29.552 ms/op 27.931 ms/op 1.06
send data - 1000 1024B messages 43.029 ms/op 40.623 ms/op 1.06
send data - 1000 1200B messages 42.772 ms/op 38.023 ms/op 1.12
send data - 1000 2048B messages 58.698 ms/op 47.976 ms/op 1.22
send data - 1000 4096B messages 53.163 ms/op 43.221 ms/op 1.23
send data - 1000 16384B messages 134.12 ms/op 121.25 ms/op 1.11
send data - 1000 65536B messages 547.18 ms/op 450.15 ms/op 1.22
enrSubnets - fastDeserialize 64 bits 1.5940 us/op 1.3180 us/op 1.21
enrSubnets - ssz BitVector 64 bits 553.00 ns/op 435.00 ns/op 1.27
enrSubnets - fastDeserialize 4 bits 248.00 ns/op 170.00 ns/op 1.46
enrSubnets - ssz BitVector 4 bits 593.00 ns/op 476.00 ns/op 1.25
prioritizePeers score -10:0 att 32-0.1 sync 2-0 128.76 us/op 106.48 us/op 1.21
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 159.77 us/op 134.85 us/op 1.18
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 208.57 us/op 190.10 us/op 1.10
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 364.42 us/op 325.39 us/op 1.12
prioritizePeers score 0:0 att 64-1 sync 4-1 423.16 us/op 366.94 us/op 1.15
array of 16000 items push then shift 1.8448 us/op 1.6773 us/op 1.10
LinkedList of 16000 items push then shift 9.7370 ns/op 9.1230 ns/op 1.07
array of 16000 items push then pop 117.12 ns/op 101.46 ns/op 1.15
LinkedList of 16000 items push then pop 9.5580 ns/op 8.8190 ns/op 1.08
array of 24000 items push then shift 2.9259 us/op 2.5267 us/op 1.16
LinkedList of 24000 items push then shift 10.147 ns/op 9.2090 ns/op 1.10
array of 24000 items push then pop 161.50 ns/op 112.84 ns/op 1.43
LinkedList of 24000 items push then pop 9.6200 ns/op 9.2360 ns/op 1.04
intersect bitArray bitLen 8 7.0570 ns/op 6.5410 ns/op 1.08
intersect array and set length 8 77.787 ns/op 65.140 ns/op 1.19
intersect bitArray bitLen 128 36.960 ns/op 34.419 ns/op 1.07
intersect array and set length 128 1.2257 us/op 895.84 ns/op 1.37
bitArray.getTrueBitIndexes() bitLen 128 2.1130 us/op 1.6030 us/op 1.32
bitArray.getTrueBitIndexes() bitLen 248 3.2930 us/op 2.4420 us/op 1.35
bitArray.getTrueBitIndexes() bitLen 512 6.9470 us/op 5.0640 us/op 1.37
Buffer.concat 32 items 1.3190 us/op 1.0940 us/op 1.21
Uint8Array.set 32 items 2.4650 us/op 1.9700 us/op 1.25
Set add up to 64 items then delete first 5.5362 us/op 4.9905 us/op 1.11
OrderedSet add up to 64 items then delete first 7.2490 us/op 6.1921 us/op 1.17
Set add up to 64 items then delete last 5.8711 us/op 5.0000 us/op 1.17
OrderedSet add up to 64 items then delete last 7.4305 us/op 6.1881 us/op 1.20
Set add up to 64 items then delete middle 5.6471 us/op 4.6460 us/op 1.22
OrderedSet add up to 64 items then delete middle 8.9458 us/op 7.2685 us/op 1.23
Set add up to 128 items then delete first 11.238 us/op 9.3606 us/op 1.20
OrderedSet add up to 128 items then delete first 15.201 us/op 12.577 us/op 1.21
Set add up to 128 items then delete last 11.791 us/op 9.2721 us/op 1.27
OrderedSet add up to 128 items then delete last 15.858 us/op 11.756 us/op 1.35
Set add up to 128 items then delete middle 11.385 us/op 9.2847 us/op 1.23
OrderedSet add up to 128 items then delete middle 21.069 us/op 17.072 us/op 1.23
Set add up to 256 items then delete first 23.234 us/op 19.531 us/op 1.19
OrderedSet add up to 256 items then delete first 33.263 us/op 25.885 us/op 1.29
Set add up to 256 items then delete last 23.649 us/op 18.663 us/op 1.27
OrderedSet add up to 256 items then delete last 32.259 us/op 23.459 us/op 1.38
Set add up to 256 items then delete middle 23.473 us/op 18.434 us/op 1.27
OrderedSet add up to 256 items then delete middle 55.655 us/op 46.073 us/op 1.21
transfer serialized Status (84 B) 2.2440 us/op 1.7540 us/op 1.28
copy serialized Status (84 B) 1.7050 us/op 1.2460 us/op 1.37
transfer serialized SignedVoluntaryExit (112 B) 2.6350 us/op 1.8540 us/op 1.42
copy serialized SignedVoluntaryExit (112 B) 1.6790 us/op 1.3280 us/op 1.26
transfer serialized ProposerSlashing (416 B) 3.1820 us/op 2.0740 us/op 1.53
copy serialized ProposerSlashing (416 B) 3.1360 us/op 1.7710 us/op 1.77
transfer serialized Attestation (485 B) 2.9300 us/op 2.1280 us/op 1.38
copy serialized Attestation (485 B) 2.6650 us/op 1.9510 us/op 1.37
transfer serialized AttesterSlashing (33232 B) 3.6780 us/op 2.0740 us/op 1.77
copy serialized AttesterSlashing (33232 B) 10.471 us/op 6.2360 us/op 1.68
transfer serialized Small SignedBeaconBlock (128000 B) 4.3260 us/op 3.3620 us/op 1.29
copy serialized Small SignedBeaconBlock (128000 B) 30.833 us/op 19.557 us/op 1.58
transfer serialized Avg SignedBeaconBlock (200000 B) 4.6650 us/op 3.7370 us/op 1.25
copy serialized Avg SignedBeaconBlock (200000 B) 41.208 us/op 27.306 us/op 1.51
transfer serialized BlobsSidecar (524380 B) 5.5940 us/op 2.9740 us/op 1.88
copy serialized BlobsSidecar (524380 B) 163.45 us/op 106.39 us/op 1.54
transfer serialized Big SignedBeaconBlock (1000000 B) 5.0370 us/op 3.7080 us/op 1.36
copy serialized Big SignedBeaconBlock (1000000 B) 242.23 us/op 270.58 us/op 0.90
pass gossip attestations to forkchoice per slot 5.6421 ms/op 4.5160 ms/op 1.25
forkChoice updateHead vc 100000 bc 64 eq 0 744.06 us/op 692.33 us/op 1.07
forkChoice updateHead vc 600000 bc 64 eq 0 4.9540 ms/op 4.5256 ms/op 1.09
forkChoice updateHead vc 1000000 bc 64 eq 0 7.8705 ms/op 7.3672 ms/op 1.07
forkChoice updateHead vc 600000 bc 320 eq 0 4.6608 ms/op 4.3301 ms/op 1.08
forkChoice updateHead vc 600000 bc 1200 eq 0 4.8996 ms/op 4.4835 ms/op 1.09
forkChoice updateHead vc 600000 bc 7200 eq 0 5.9243 ms/op 5.6148 ms/op 1.06
forkChoice updateHead vc 600000 bc 64 eq 1000 12.239 ms/op 12.063 ms/op 1.01
forkChoice updateHead vc 600000 bc 64 eq 10000 12.743 ms/op 12.205 ms/op 1.04
forkChoice updateHead vc 600000 bc 64 eq 300000 18.833 ms/op 16.509 ms/op 1.14
computeDeltas 500000 validators 300 proto nodes 7.8149 ms/op 7.2644 ms/op 1.08
computeDeltas 500000 validators 1200 proto nodes 8.2419 ms/op 7.0790 ms/op 1.16
computeDeltas 500000 validators 7200 proto nodes 7.2709 ms/op 6.7170 ms/op 1.08
computeDeltas 750000 validators 300 proto nodes 11.250 ms/op 10.255 ms/op 1.10
computeDeltas 750000 validators 1200 proto nodes 11.294 ms/op 9.8883 ms/op 1.14
computeDeltas 750000 validators 7200 proto nodes 10.687 ms/op 10.175 ms/op 1.05
computeDeltas 1400000 validators 300 proto nodes 19.644 ms/op 19.385 ms/op 1.01
computeDeltas 1400000 validators 1200 proto nodes 19.198 ms/op 19.990 ms/op 0.96
computeDeltas 1400000 validators 7200 proto nodes 19.108 ms/op 20.817 ms/op 0.92
computeDeltas 2100000 validators 300 proto nodes 28.962 ms/op 30.793 ms/op 0.94
computeDeltas 2100000 validators 1200 proto nodes 29.437 ms/op 28.865 ms/op 1.02
computeDeltas 2100000 validators 7200 proto nodes 28.453 ms/op 29.728 ms/op 0.96
altair processAttestation - 250000 vs - 7PWei normalcase 2.6556 ms/op 3.5391 ms/op 0.75
altair processAttestation - 250000 vs - 7PWei worstcase 3.9263 ms/op 5.0751 ms/op 0.77
altair processAttestation - setStatus - 1/6 committees join 200.36 us/op 161.70 us/op 1.24
altair processAttestation - setStatus - 1/3 committees join 352.41 us/op 282.36 us/op 1.25
altair processAttestation - setStatus - 1/2 committees join 495.48 us/op 392.89 us/op 1.26
altair processAttestation - setStatus - 2/3 committees join 638.68 us/op 475.54 us/op 1.34
altair processAttestation - setStatus - 4/5 committees join 864.96 us/op 721.47 us/op 1.20
altair processAttestation - setStatus - 100% committees join 1.0490 ms/op 794.52 us/op 1.32
altair processBlock - 250000 vs - 7PWei normalcase 10.532 ms/op 11.194 ms/op 0.94
altair processBlock - 250000 vs - 7PWei normalcase hashState 42.052 ms/op 44.829 ms/op 0.94
altair processBlock - 250000 vs - 7PWei worstcase 43.835 ms/op 42.933 ms/op 1.02
altair processBlock - 250000 vs - 7PWei worstcase hashState 89.910 ms/op 114.30 ms/op 0.79
phase0 processBlock - 250000 vs - 7PWei normalcase 2.5555 ms/op 3.2319 ms/op 0.79
phase0 processBlock - 250000 vs - 7PWei worstcase 32.088 ms/op 35.322 ms/op 0.91
altair processEth1Data - 250000 vs - 7PWei normalcase 655.58 us/op 705.00 us/op 0.93
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 13.751 us/op 18.556 us/op 0.74
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 68.653 us/op 59.278 us/op 1.16
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 23.113 us/op 26.068 us/op 0.89
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 12.638 us/op 18.346 us/op 0.69
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 176.32 us/op 223.85 us/op 0.79
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.3525 ms/op 1.6376 ms/op 0.83
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.6588 ms/op 2.0279 ms/op 0.82
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.8008 ms/op 1.9046 ms/op 0.95
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.7972 ms/op 4.2016 ms/op 0.90
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.4896 ms/op 3.0264 ms/op 0.82
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.7494 ms/op 6.4870 ms/op 0.89
Tree 40 250000 create 360.60 ms/op 478.30 ms/op 0.75
Tree 40 250000 get(125000) 214.30 ns/op 224.69 ns/op 0.95
Tree 40 250000 set(125000) 1.0061 us/op 1.3882 us/op 0.72
Tree 40 250000 toArray() 22.532 ms/op 26.413 ms/op 0.85
Tree 40 250000 iterate all - toArray() + loop 21.016 ms/op 26.006 ms/op 0.81
Tree 40 250000 iterate all - get(i) 73.563 ms/op 81.027 ms/op 0.91
MutableVector 250000 create 13.450 ms/op 15.339 ms/op 0.88
MutableVector 250000 get(125000) 6.7490 ns/op 6.8570 ns/op 0.98
MutableVector 250000 set(125000) 293.13 ns/op 555.39 ns/op 0.53
MutableVector 250000 toArray() 3.6375 ms/op 4.9517 ms/op 0.73
MutableVector 250000 iterate all - toArray() + loop 3.7532 ms/op 5.0667 ms/op 0.74
MutableVector 250000 iterate all - get(i) 1.5867 ms/op 1.5956 ms/op 0.99
Array 250000 create 3.2154 ms/op 4.6289 ms/op 0.69
Array 250000 clone - spread 1.3463 ms/op 1.7595 ms/op 0.77
Array 250000 get(125000) 1.1590 ns/op 1.9020 ns/op 0.61
Array 250000 set(125000) 4.2410 ns/op 5.6420 ns/op 0.75
Array 250000 iterate all - loop 167.47 us/op 175.16 us/op 0.96
effectiveBalanceIncrements clone Uint8Array 300000 37.737 us/op 70.213 us/op 0.54
effectiveBalanceIncrements clone MutableVector 300000 433.00 ns/op 508.00 ns/op 0.85
effectiveBalanceIncrements rw all Uint8Array 300000 204.62 us/op 204.58 us/op 1.00
effectiveBalanceIncrements rw all MutableVector 300000 93.624 ms/op 171.28 ms/op 0.55
phase0 afterProcessEpoch - 250000 vs - 7PWei 121.27 ms/op 132.30 ms/op 0.92
phase0 beforeProcessEpoch - 250000 vs - 7PWei 41.469 ms/op 47.557 ms/op 0.87
altair processEpoch - mainnet_e81889 553.33 ms/op 563.96 ms/op 0.98
mainnet_e81889 - altair beforeProcessEpoch 84.841 ms/op 94.742 ms/op 0.90
mainnet_e81889 - altair processJustificationAndFinalization 15.570 us/op 17.674 us/op 0.88
mainnet_e81889 - altair processInactivityUpdates 6.1499 ms/op 5.9791 ms/op 1.03
mainnet_e81889 - altair processRewardsAndPenalties 64.222 ms/op 43.043 ms/op 1.49
mainnet_e81889 - altair processRegistryUpdates 2.9710 us/op 2.6080 us/op 1.14
mainnet_e81889 - altair processSlashings 578.00 ns/op 530.00 ns/op 1.09
mainnet_e81889 - altair processEth1DataReset 576.00 ns/op 522.00 ns/op 1.10
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.4466 ms/op 1.4473 ms/op 1.00
mainnet_e81889 - altair processSlashingsReset 4.0850 us/op 3.4870 us/op 1.17
mainnet_e81889 - altair processRandaoMixesReset 5.6490 us/op 7.2750 us/op 0.78
mainnet_e81889 - altair processHistoricalRootsUpdate 767.00 ns/op 1.0420 us/op 0.74
mainnet_e81889 - altair processParticipationFlagUpdates 2.2210 us/op 2.1650 us/op 1.03
mainnet_e81889 - altair processSyncCommitteeUpdates 675.00 ns/op 1.3480 us/op 0.50
mainnet_e81889 - altair afterProcessEpoch 121.33 ms/op 123.33 ms/op 0.98
capella processEpoch - mainnet_e217614 2.2869 s/op 2.5325 s/op 0.90
mainnet_e217614 - capella beforeProcessEpoch 523.72 ms/op 617.58 ms/op 0.85
mainnet_e217614 - capella processJustificationAndFinalization 16.349 us/op 31.018 us/op 0.53
mainnet_e217614 - capella processInactivityUpdates 23.873 ms/op 31.802 ms/op 0.75
mainnet_e217614 - capella processRewardsAndPenalties 422.94 ms/op 447.85 ms/op 0.94
mainnet_e217614 - capella processRegistryUpdates 19.268 us/op 32.475 us/op 0.59
mainnet_e217614 - capella processSlashings 490.00 ns/op 1.0660 us/op 0.46
mainnet_e217614 - capella processEth1DataReset 596.00 ns/op 1.1550 us/op 0.52
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.6586 ms/op 6.4566 ms/op 0.72
mainnet_e217614 - capella processSlashingsReset 3.0870 us/op 5.3090 us/op 0.58
mainnet_e217614 - capella processRandaoMixesReset 5.4000 us/op 8.6010 us/op 0.63
mainnet_e217614 - capella processHistoricalRootsUpdate 600.00 ns/op 1.4180 us/op 0.42
mainnet_e217614 - capella processParticipationFlagUpdates 1.6100 us/op 2.4530 us/op 0.66
mainnet_e217614 - capella afterProcessEpoch 349.36 ms/op 322.09 ms/op 1.08
phase0 processEpoch - mainnet_e58758 486.76 ms/op 534.80 ms/op 0.91
mainnet_e58758 - phase0 beforeProcessEpoch 139.82 ms/op 163.00 ms/op 0.86
mainnet_e58758 - phase0 processJustificationAndFinalization 15.791 us/op 24.980 us/op 0.63
mainnet_e58758 - phase0 processRewardsAndPenalties 38.679 ms/op 60.148 ms/op 0.64
mainnet_e58758 - phase0 processRegistryUpdates 9.1300 us/op 14.460 us/op 0.63
mainnet_e58758 - phase0 processSlashings 485.00 ns/op 786.00 ns/op 0.62
mainnet_e58758 - phase0 processEth1DataReset 553.00 ns/op 676.00 ns/op 0.82
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.1581 ms/op 1.2370 ms/op 0.94
mainnet_e58758 - phase0 processSlashingsReset 2.8900 us/op 3.7970 us/op 0.76
mainnet_e58758 - phase0 processRandaoMixesReset 5.8740 us/op 8.8600 us/op 0.66
mainnet_e58758 - phase0 processHistoricalRootsUpdate 765.00 ns/op 700.00 ns/op 1.09
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.4000 us/op 4.1050 us/op 1.07
mainnet_e58758 - phase0 afterProcessEpoch 100.67 ms/op 96.744 ms/op 1.04
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.4490 ms/op 1.4392 ms/op 1.01
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.5215 ms/op 1.6247 ms/op 0.94
altair processInactivityUpdates - 250000 normalcase 32.017 ms/op 30.786 ms/op 1.04
altair processInactivityUpdates - 250000 worstcase 31.658 ms/op 27.200 ms/op 1.16
phase0 processRegistryUpdates - 250000 normalcase 8.0950 us/op 11.395 us/op 0.71
phase0 processRegistryUpdates - 250000 badcase_full_deposits 409.42 us/op 434.61 us/op 0.94
phase0 processRegistryUpdates - 250000 worstcase 0.5 152.77 ms/op 159.28 ms/op 0.96
altair processRewardsAndPenalties - 250000 normalcase 55.600 ms/op 52.897 ms/op 1.05
altair processRewardsAndPenalties - 250000 worstcase 58.660 ms/op 62.662 ms/op 0.94
phase0 getAttestationDeltas - 250000 normalcase 9.5449 ms/op 11.167 ms/op 0.85
phase0 getAttestationDeltas - 250000 worstcase 9.4788 ms/op 12.481 ms/op 0.76
phase0 processSlashings - 250000 worstcase 91.924 us/op 128.00 us/op 0.72
altair processSyncCommitteeUpdates - 250000 150.72 ms/op 173.97 ms/op 0.87
BeaconState.hashTreeRoot - No change 399.00 ns/op 736.00 ns/op 0.54
BeaconState.hashTreeRoot - 1 full validator 114.89 us/op 151.26 us/op 0.76
BeaconState.hashTreeRoot - 32 full validator 1.2178 ms/op 1.5728 ms/op 0.77
BeaconState.hashTreeRoot - 512 full validator 17.605 ms/op 22.116 ms/op 0.80
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 179.80 us/op 195.42 us/op 0.92
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.0626 ms/op 2.3697 ms/op 0.87
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 25.236 ms/op 33.906 ms/op 0.74
BeaconState.hashTreeRoot - 1 balances 111.67 us/op 128.58 us/op 0.87
BeaconState.hashTreeRoot - 32 balances 1.0003 ms/op 1.3087 ms/op 0.76
BeaconState.hashTreeRoot - 512 balances 13.802 ms/op 16.927 ms/op 0.82
BeaconState.hashTreeRoot - 250000 balances 218.77 ms/op 218.23 ms/op 1.00
aggregationBits - 2048 els - zipIndexesInBitList 17.713 us/op 21.281 us/op 0.83
byteArrayEquals 32 74.941 ns/op 77.793 ns/op 0.96
Buffer.compare 32 55.575 ns/op 58.565 ns/op 0.95
byteArrayEquals 1024 2.0389 us/op 2.1320 us/op 0.96
Buffer.compare 1024 71.002 ns/op 73.747 ns/op 0.96
byteArrayEquals 16384 32.534 us/op 33.912 us/op 0.96
Buffer.compare 16384 253.52 ns/op 285.68 ns/op 0.89
byteArrayEquals 123687377 245.25 ms/op 251.40 ms/op 0.98
Buffer.compare 123687377 6.0655 ms/op 6.2332 ms/op 0.97
byteArrayEquals 32 - diff last byte 70.287 ns/op 73.700 ns/op 0.95
Buffer.compare 32 - diff last byte 54.139 ns/op 56.404 ns/op 0.96
byteArrayEquals 1024 - diff last byte 1.9958 us/op 2.0849 us/op 0.96
Buffer.compare 1024 - diff last byte 68.910 ns/op 72.042 ns/op 0.96
byteArrayEquals 16384 - diff last byte 31.807 us/op 32.407 us/op 0.98
Buffer.compare 16384 - diff last byte 251.55 ns/op 276.79 ns/op 0.91
byteArrayEquals 123687377 - diff last byte 242.68 ms/op 249.76 ms/op 0.97
Buffer.compare 123687377 - diff last byte 6.1595 ms/op 7.9721 ms/op 0.77
byteArrayEquals 32 - random bytes 5.2760 ns/op 5.9150 ns/op 0.89
Buffer.compare 32 - random bytes 61.113 ns/op 62.913 ns/op 0.97
byteArrayEquals 1024 - random bytes 5.3010 ns/op 5.6050 ns/op 0.95
Buffer.compare 1024 - random bytes 60.582 ns/op 62.140 ns/op 0.97
byteArrayEquals 16384 - random bytes 5.2420 ns/op 5.4970 ns/op 0.95
Buffer.compare 16384 - random bytes 61.287 ns/op 62.345 ns/op 0.98
byteArrayEquals 123687377 - random bytes 8.6600 ns/op 9.4500 ns/op 0.92
Buffer.compare 123687377 - random bytes 63.220 ns/op 69.530 ns/op 0.91
regular array get 100000 times 44.470 us/op 46.253 us/op 0.96
wrappedArray get 100000 times 45.232 us/op 46.262 us/op 0.98
arrayWithProxy get 100000 times 14.551 ms/op 14.345 ms/op 1.01
ssz.Root.equals 54.421 ns/op 55.168 ns/op 0.99
byteArrayEquals 53.483 ns/op 54.205 ns/op 0.99
Buffer.compare 10.904 ns/op 12.276 ns/op 0.89
shuffle list - 16384 els 7.0418 ms/op 7.1604 ms/op 0.98
shuffle list - 250000 els 102.75 ms/op 105.01 ms/op 0.98
processSlot - 1 slots 15.009 us/op 17.471 us/op 0.86
processSlot - 32 slots 2.8876 ms/op 3.5126 ms/op 0.82
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 59.363 ms/op 60.058 ms/op 0.99
getCommitteeAssignments - req 1 vs - 250000 vc 2.5883 ms/op 2.5045 ms/op 1.03
getCommitteeAssignments - req 100 vs - 250000 vc 3.8407 ms/op 3.7498 ms/op 1.02
getCommitteeAssignments - req 1000 vs - 250000 vc 4.2240 ms/op 4.0164 ms/op 1.05
findModifiedValidators - 10000 modified validators 528.10 ms/op 546.18 ms/op 0.97
findModifiedValidators - 1000 modified validators 442.06 ms/op 436.85 ms/op 1.01
findModifiedValidators - 100 modified validators 384.42 ms/op 404.82 ms/op 0.95
findModifiedValidators - 10 modified validators 408.44 ms/op 464.56 ms/op 0.88
findModifiedValidators - 1 modified validators 370.05 ms/op 430.69 ms/op 0.86
findModifiedValidators - no difference 407.92 ms/op 454.20 ms/op 0.90
compare ViewDUs 4.1514 s/op 4.7274 s/op 0.88
compare each validator Uint8Array 1.5915 s/op 1.8256 s/op 0.87
compare ViewDU to Uint8Array 1.1667 s/op 1.3148 s/op 0.89
migrate state 1000000 validators, 24 modified, 0 new 742.41 ms/op 827.61 ms/op 0.90
migrate state 1000000 validators, 1700 modified, 1000 new 1.0999 s/op 1.1480 s/op 0.96
migrate state 1000000 validators, 3400 modified, 2000 new 1.3667 s/op 1.3755 s/op 0.99
migrate state 1500000 validators, 24 modified, 0 new 734.57 ms/op 839.32 ms/op 0.88
migrate state 1500000 validators, 1700 modified, 1000 new 1.0855 s/op 1.1903 s/op 0.91
migrate state 1500000 validators, 3400 modified, 2000 new 1.3233 s/op 1.4908 s/op 0.89
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.2500 ns/op 5.3500 ns/op 0.79
state getBlockRootAtSlot - 250000 vs - 7PWei 618.53 ns/op 689.17 ns/op 0.90
computeProposers - vc 250000 8.9933 ms/op 10.183 ms/op 0.88
computeEpochShuffling - vc 250000 103.12 ms/op 108.06 ms/op 0.95
getNextSyncCommittee - vc 250000 156.79 ms/op 174.60 ms/op 0.90
computeSigningRoot for AttestationData 27.195 us/op 30.940 us/op 0.88
hash AttestationData serialized data then Buffer.toString(base64) 2.2657 us/op 2.4678 us/op 0.92
toHexString serialized data 1.1079 us/op 1.4613 us/op 0.76
Buffer.toString(base64) 227.38 ns/op 285.94 ns/op 0.80

by benchmarkbot/action

Copy link
Member

@nflaig nflaig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Matt ❤️

@matthewkeil matthewkeil merged commit 8b354f2 into unstable Jan 30, 2024
14 of 15 checks passed
@matthewkeil matthewkeil deleted the mkeil/metadata-ssz-error-comment branch January 30, 2024 09:17
@wemeetagain
Copy link
Member

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