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

fix: correct error message if produceBlockV3 request fails #6405

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Feb 7, 2024

Motivation

We are printing the wrong error on the vc side

Eph 0/3 0.007[]                error: Error proposing block slot=3, validator=0x9977…d373 - Failed to produce block: validator.produceBlockV2 - Bad Request: [{"instancePath":"/blinded_local","schemaPath":"#/properties/blinded_local/type","keyword":"type","params":{"type":"boolean"},"message":"must be boolean"}] - Failed to produce block
Error: Failed to produce block: validator.produceBlockV2 - Bad Request: [{"instancePath":"/blinded_local","schemaPath":"#/properties/blinded_local/type","keyword":"type","params":{"type":"boolean"},"message":"must be boolean"}] - Failed to produce block

should be produceBlockV3 instead of produceBlockV2

Description

Correct error message if produceBlockV3 request fails

@nflaig nflaig requested a review from a team as a code owner February 7, 2024 13:10
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Merging #6405 (5cd1676) into unstable (b6890ad) will not change coverage.
Report is 1 commits behind head on unstable.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6405   +/-   ##
=========================================
  Coverage     60.14%   60.14%           
=========================================
  Files           407      407           
  Lines         46512    46512           
  Branches       1551     1551           
=========================================
  Hits          27975    27975           
  Misses        18505    18505           
  Partials         32       32           

@nflaig nflaig merged commit 3bc9673 into unstable Feb 7, 2024
11 of 15 checks passed
@nflaig nflaig deleted the nflaig/fix-producev3-error branch February 7, 2024 13:26
Copy link
Contributor

github-actions bot commented Feb 7, 2024

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: f71bae0 Previous: b6890ad Ratio
Set add up to 256 items then delete last 7.9245 us/op 25.843 us/op 0.31
Set add up to 256 items then delete middle 7.7203 us/op 26.372 us/op 0.29
forkChoice updateHead vc 600000 bc 64 eq 300000 16.924 ms/op 51.162 ms/op 0.33
Full benchmark results
Benchmark suite Current: f71bae0 Previous: b6890ad Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 543.60 us/op 770.58 us/op 0.71
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 51.375 us/op 102.36 us/op 0.50
BLS verify - blst-native 1.1243 ms/op 1.3128 ms/op 0.86
BLS verifyMultipleSignatures 3 - blst-native 2.4018 ms/op 2.7598 ms/op 0.87
BLS verifyMultipleSignatures 8 - blst-native 5.3041 ms/op 6.0384 ms/op 0.88
BLS verifyMultipleSignatures 32 - blst-native 19.453 ms/op 22.145 ms/op 0.88
BLS verifyMultipleSignatures 64 - blst-native 38.154 ms/op 43.759 ms/op 0.87
BLS verifyMultipleSignatures 128 - blst-native 76.010 ms/op 86.305 ms/op 0.88
BLS deserializing 10000 signatures 825.76 ms/op 952.94 ms/op 0.87
BLS deserializing 100000 signatures 8.6109 s/op 9.6796 s/op 0.89
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.1572 ms/op 1.3665 ms/op 0.85
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.3208 ms/op 1.5474 ms/op 0.85
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.5075 ms/op 2.4132 ms/op 1.04
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.0735 ms/op 4.9912 ms/op 0.62
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.1378 ms/op 5.6105 ms/op 0.92
BLS aggregatePubkeys 32 - blst-native 23.570 us/op 26.117 us/op 0.90
BLS aggregatePubkeys 128 - blst-native 91.774 us/op 103.22 us/op 0.89
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 52.884 ms/op 54.171 ms/op 0.98
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 47.204 ms/op 54.363 ms/op 0.87
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 28.344 ms/op 40.156 ms/op 0.71
getSlashingsAndExits - default max 161.29 us/op 336.38 us/op 0.48
getSlashingsAndExits - 2k 418.23 us/op 664.54 us/op 0.63
proposeBlockBody type=full, size=empty 4.4836 ms/op 6.3766 ms/op 0.70
isKnown best case - 1 super set check 338.00 ns/op 647.00 ns/op 0.52
isKnown normal case - 2 super set checks 327.00 ns/op 688.00 ns/op 0.48
isKnown worse case - 16 super set checks 327.00 ns/op 712.00 ns/op 0.46
CheckpointStateCache - add get delete 3.4740 us/op 7.5550 us/op 0.46
validate api signedAggregateAndProof - struct 2.2817 ms/op 3.3603 ms/op 0.68
validate gossip signedAggregateAndProof - struct 2.4061 ms/op 3.3004 ms/op 0.73
validate gossip attestation - vc 640000 1.1092 ms/op 1.5764 ms/op 0.70
batch validate gossip attestation - vc 640000 - chunk 32 135.10 us/op 199.05 us/op 0.68
batch validate gossip attestation - vc 640000 - chunk 64 125.34 us/op 170.27 us/op 0.74
batch validate gossip attestation - vc 640000 - chunk 128 120.92 us/op 177.51 us/op 0.68
batch validate gossip attestation - vc 640000 - chunk 256 118.10 us/op 160.20 us/op 0.74
pickEth1Vote - no votes 946.58 us/op 1.5357 ms/op 0.62
pickEth1Vote - max votes 13.004 ms/op 15.236 ms/op 0.85
pickEth1Vote - Eth1Data hashTreeRoot value x2048 23.750 ms/op 26.550 ms/op 0.89
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 23.599 ms/op 35.988 ms/op 0.66
pickEth1Vote - Eth1Data fastSerialize value x2048 501.97 us/op 825.90 us/op 0.61
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.7827 ms/op 6.7304 ms/op 0.56
bytes32 toHexString 550.00 ns/op 870.00 ns/op 0.63
bytes32 Buffer.toString(hex) 409.00 ns/op 325.00 ns/op 1.26
bytes32 Buffer.toString(hex) from Uint8Array 612.00 ns/op 521.00 ns/op 1.17
bytes32 Buffer.toString(hex) + 0x 344.00 ns/op 326.00 ns/op 1.06
Object access 1 prop 0.27200 ns/op 0.21500 ns/op 1.27
Map access 1 prop 0.20100 ns/op 0.16700 ns/op 1.20
Object get x1000 5.4780 ns/op 7.9380 ns/op 0.69
Map get x1000 0.85600 ns/op 0.90400 ns/op 0.95
Object set x1000 34.469 ns/op 65.760 ns/op 0.52
Map set x1000 20.630 ns/op 49.070 ns/op 0.42
Return object 10000 times 0.24210 ns/op 0.25280 ns/op 0.96
Throw Error 10000 times 2.8378 us/op 3.9884 us/op 0.71
fastMsgIdFn sha256 / 200 bytes 2.1910 us/op 3.5730 us/op 0.61
fastMsgIdFn h32 xxhash / 200 bytes 389.00 ns/op 331.00 ns/op 1.18
fastMsgIdFn h64 xxhash / 200 bytes 422.00 ns/op 420.00 ns/op 1.00
fastMsgIdFn sha256 / 1000 bytes 6.8090 us/op 12.626 us/op 0.54
fastMsgIdFn h32 xxhash / 1000 bytes 594.00 ns/op 507.00 ns/op 1.17
fastMsgIdFn h64 xxhash / 1000 bytes 569.00 ns/op 495.00 ns/op 1.15
fastMsgIdFn sha256 / 10000 bytes 56.318 us/op 110.19 us/op 0.51
fastMsgIdFn h32 xxhash / 10000 bytes 1.9690 us/op 2.4200 us/op 0.81
fastMsgIdFn h64 xxhash / 10000 bytes 1.3520 us/op 1.7820 us/op 0.76
send data - 1000 256B messages 19.020 ms/op 30.797 ms/op 0.62
send data - 1000 512B messages 23.718 ms/op 33.120 ms/op 0.72
send data - 1000 1024B messages 37.094 ms/op 43.128 ms/op 0.86
send data - 1000 1200B messages 44.849 ms/op 52.770 ms/op 0.85
send data - 1000 2048B messages 72.375 ms/op 59.069 ms/op 1.23
send data - 1000 4096B messages 52.797 ms/op 53.200 ms/op 0.99
send data - 1000 16384B messages 136.98 ms/op 130.39 ms/op 1.05
send data - 1000 65536B messages 620.47 ms/op 560.63 ms/op 1.11
enrSubnets - fastDeserialize 64 bits 1.6860 us/op 1.8580 us/op 0.91
enrSubnets - ssz BitVector 64 bits 897.00 ns/op 572.00 ns/op 1.57
enrSubnets - fastDeserialize 4 bits 358.00 ns/op 243.00 ns/op 1.47
enrSubnets - ssz BitVector 4 bits 846.00 ns/op 570.00 ns/op 1.48
prioritizePeers score -10:0 att 32-0.1 sync 2-0 128.12 us/op 127.63 us/op 1.00
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 179.19 us/op 163.84 us/op 1.09
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 241.46 us/op 236.05 us/op 1.02
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 343.23 us/op 393.66 us/op 0.87
prioritizePeers score 0:0 att 64-1 sync 4-1 394.36 us/op 461.12 us/op 0.86
array of 16000 items push then shift 1.4617 us/op 2.1634 us/op 0.68
LinkedList of 16000 items push then shift 12.053 ns/op 13.252 ns/op 0.91
array of 16000 items push then pop 162.60 ns/op 149.29 ns/op 1.09
LinkedList of 16000 items push then pop 12.168 ns/op 11.492 ns/op 1.06
array of 24000 items push then shift 1.9848 us/op 2.8626 us/op 0.69
LinkedList of 24000 items push then shift 9.4410 ns/op 14.007 ns/op 0.67
array of 24000 items push then pop 179.69 ns/op 217.43 ns/op 0.83
LinkedList of 24000 items push then pop 8.2760 ns/op 11.408 ns/op 0.73
intersect bitArray bitLen 8 5.2060 ns/op 6.8720 ns/op 0.76
intersect array and set length 8 96.759 ns/op 122.13 ns/op 0.79
intersect bitArray bitLen 128 29.666 ns/op 44.015 ns/op 0.67
intersect array and set length 128 1.1044 us/op 1.4272 us/op 0.77
bitArray.getTrueBitIndexes() bitLen 128 1.9610 us/op 2.0110 us/op 0.98
bitArray.getTrueBitIndexes() bitLen 248 3.5140 us/op 3.9200 us/op 0.90
bitArray.getTrueBitIndexes() bitLen 512 6.7830 us/op 8.0430 us/op 0.84
Buffer.concat 32 items 1.0520 us/op 1.4010 us/op 0.75
Uint8Array.set 32 items 1.9170 us/op 3.0830 us/op 0.62
Set add up to 64 items then delete first 2.7711 us/op 5.6939 us/op 0.49
OrderedSet add up to 64 items then delete first 4.4257 us/op 7.3171 us/op 0.60
Set add up to 64 items then delete last 3.0453 us/op 6.2319 us/op 0.49
OrderedSet add up to 64 items then delete last 4.6612 us/op 8.3215 us/op 0.56
Set add up to 64 items then delete middle 3.0110 us/op 6.1144 us/op 0.49
OrderedSet add up to 64 items then delete middle 5.7540 us/op 9.9432 us/op 0.58
Set add up to 128 items then delete first 5.3447 us/op 12.171 us/op 0.44
OrderedSet add up to 128 items then delete first 9.0087 us/op 16.284 us/op 0.55
Set add up to 128 items then delete last 5.4441 us/op 11.703 us/op 0.47
OrderedSet add up to 128 items then delete last 8.4779 us/op 15.269 us/op 0.56
Set add up to 128 items then delete middle 5.6574 us/op 11.976 us/op 0.47
OrderedSet add up to 128 items then delete middle 13.697 us/op 22.868 us/op 0.60
Set add up to 256 items then delete first 11.100 us/op 25.187 us/op 0.44
OrderedSet add up to 256 items then delete first 14.296 us/op 37.906 us/op 0.38
Set add up to 256 items then delete last 7.9245 us/op 25.843 us/op 0.31
OrderedSet add up to 256 items then delete last 12.353 us/op 35.370 us/op 0.35
Set add up to 256 items then delete middle 7.7203 us/op 26.372 us/op 0.29
OrderedSet add up to 256 items then delete middle 33.375 us/op 63.891 us/op 0.52
transfer serialized Status (84 B) 1.6290 us/op 2.6730 us/op 0.61
copy serialized Status (84 B) 1.3260 us/op 1.9300 us/op 0.69
transfer serialized SignedVoluntaryExit (112 B) 1.7490 us/op 2.6770 us/op 0.65
copy serialized SignedVoluntaryExit (112 B) 1.4830 us/op 1.7590 us/op 0.84
transfer serialized ProposerSlashing (416 B) 2.5520 us/op 3.5760 us/op 0.71
copy serialized ProposerSlashing (416 B) 2.4690 us/op 3.1670 us/op 0.78
transfer serialized Attestation (485 B) 2.6640 us/op 3.8830 us/op 0.69
copy serialized Attestation (485 B) 1.6140 us/op 2.6720 us/op 0.60
transfer serialized AttesterSlashing (33232 B) 1.8620 us/op 2.6530 us/op 0.70
copy serialized AttesterSlashing (33232 B) 3.8580 us/op 10.785 us/op 0.36
transfer serialized Small SignedBeaconBlock (128000 B) 1.8070 us/op 3.5410 us/op 0.51
copy serialized Small SignedBeaconBlock (128000 B) 9.0030 us/op 31.223 us/op 0.29
transfer serialized Avg SignedBeaconBlock (200000 B) 3.1850 us/op 4.9460 us/op 0.64
copy serialized Avg SignedBeaconBlock (200000 B) 35.373 us/op 42.885 us/op 0.82
transfer serialized BlobsSidecar (524380 B) 3.6630 us/op 5.9440 us/op 0.62
copy serialized BlobsSidecar (524380 B) 110.09 us/op 205.59 us/op 0.54
transfer serialized Big SignedBeaconBlock (1000000 B) 4.1650 us/op 5.1040 us/op 0.82
copy serialized Big SignedBeaconBlock (1000000 B) 349.99 us/op 313.73 us/op 1.12
pass gossip attestations to forkchoice per slot 2.7786 ms/op 4.6511 ms/op 0.60
forkChoice updateHead vc 100000 bc 64 eq 0 464.63 us/op 818.83 us/op 0.57
forkChoice updateHead vc 600000 bc 64 eq 0 5.2336 ms/op 5.9583 ms/op 0.88
forkChoice updateHead vc 1000000 bc 64 eq 0 5.1253 ms/op 9.8277 ms/op 0.52
forkChoice updateHead vc 600000 bc 320 eq 0 2.9340 ms/op 6.0536 ms/op 0.48
forkChoice updateHead vc 600000 bc 1200 eq 0 3.1311 ms/op 6.9147 ms/op 0.45
forkChoice updateHead vc 600000 bc 7200 eq 0 4.9015 ms/op 8.1221 ms/op 0.60
forkChoice updateHead vc 600000 bc 64 eq 1000 10.223 ms/op 14.556 ms/op 0.70
forkChoice updateHead vc 600000 bc 64 eq 10000 10.125 ms/op 14.838 ms/op 0.68
forkChoice updateHead vc 600000 bc 64 eq 300000 16.924 ms/op 51.162 ms/op 0.33
computeDeltas 500000 validators 300 proto nodes 3.2568 ms/op 8.4208 ms/op 0.39
computeDeltas 500000 validators 1200 proto nodes 3.3597 ms/op 8.0849 ms/op 0.42
computeDeltas 500000 validators 7200 proto nodes 3.1033 ms/op 7.7036 ms/op 0.40
computeDeltas 750000 validators 300 proto nodes 4.8173 ms/op 11.059 ms/op 0.44
computeDeltas 750000 validators 1200 proto nodes 4.5985 ms/op 11.325 ms/op 0.41
computeDeltas 750000 validators 7200 proto nodes 4.7257 ms/op 10.961 ms/op 0.43
computeDeltas 1400000 validators 300 proto nodes 9.1004 ms/op 20.776 ms/op 0.44
computeDeltas 1400000 validators 1200 proto nodes 9.4281 ms/op 20.617 ms/op 0.46
computeDeltas 1400000 validators 7200 proto nodes 8.9995 ms/op 20.214 ms/op 0.45
computeDeltas 2100000 validators 300 proto nodes 12.980 ms/op 31.065 ms/op 0.42
computeDeltas 2100000 validators 1200 proto nodes 13.419 ms/op 31.689 ms/op 0.42
computeDeltas 2100000 validators 7200 proto nodes 14.141 ms/op 31.492 ms/op 0.45
altair processAttestation - 250000 vs - 7PWei normalcase 1.9812 ms/op 3.4817 ms/op 0.57
altair processAttestation - 250000 vs - 7PWei worstcase 2.7585 ms/op 4.8470 ms/op 0.57
altair processAttestation - setStatus - 1/6 committees join 77.569 us/op 215.76 us/op 0.36
altair processAttestation - setStatus - 1/3 committees join 150.42 us/op 402.29 us/op 0.37
altair processAttestation - setStatus - 1/2 committees join 227.29 us/op 542.15 us/op 0.42
altair processAttestation - setStatus - 2/3 committees join 280.81 us/op 634.25 us/op 0.44
altair processAttestation - setStatus - 4/5 committees join 394.56 us/op 852.94 us/op 0.46
altair processAttestation - setStatus - 100% committees join 473.81 us/op 1.0503 ms/op 0.45
altair processBlock - 250000 vs - 7PWei normalcase 8.5588 ms/op 11.148 ms/op 0.77
altair processBlock - 250000 vs - 7PWei normalcase hashState 30.066 ms/op 38.965 ms/op 0.77
altair processBlock - 250000 vs - 7PWei worstcase 29.021 ms/op 48.899 ms/op 0.59
altair processBlock - 250000 vs - 7PWei worstcase hashState 76.527 ms/op 107.58 ms/op 0.71
phase0 processBlock - 250000 vs - 7PWei normalcase 2.1279 ms/op 3.4773 ms/op 0.61
phase0 processBlock - 250000 vs - 7PWei worstcase 23.814 ms/op 36.126 ms/op 0.66
altair processEth1Data - 250000 vs - 7PWei normalcase 346.73 us/op 590.43 us/op 0.59
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 10.516 us/op 13.202 us/op 0.80
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 44.180 us/op 65.825 us/op 0.67
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.7240 us/op 16.394 us/op 0.53
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 9.4770 us/op 11.801 us/op 0.80
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 124.50 us/op 133.94 us/op 0.93
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1495 ms/op 1.4250 ms/op 0.81
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 956.71 us/op 1.9239 ms/op 0.50
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 849.29 us/op 1.5257 ms/op 0.56
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.0360 ms/op 3.8016 ms/op 0.54
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.4406 ms/op 2.4366 ms/op 0.59
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.4444 ms/op 5.4242 ms/op 0.64
Tree 40 250000 create 252.47 ms/op 382.80 ms/op 0.66
Tree 40 250000 get(125000) 108.99 ns/op 220.26 ns/op 0.49
Tree 40 250000 set(125000) 756.29 ns/op 1.0869 us/op 0.70
Tree 40 250000 toArray() 9.7286 ms/op 19.315 ms/op 0.50
Tree 40 250000 iterate all - toArray() + loop 9.6958 ms/op 22.104 ms/op 0.44
Tree 40 250000 iterate all - get(i) 38.043 ms/op 76.811 ms/op 0.50
MutableVector 250000 create 13.749 ms/op 12.616 ms/op 1.09
MutableVector 250000 get(125000) 5.6340 ns/op 7.3210 ns/op 0.77
MutableVector 250000 set(125000) 196.89 ns/op 256.68 ns/op 0.77
MutableVector 250000 toArray() 2.1276 ms/op 3.4950 ms/op 0.61
MutableVector 250000 iterate all - toArray() + loop 2.2079 ms/op 3.5708 ms/op 0.62
MutableVector 250000 iterate all - get(i) 1.3058 ms/op 1.5165 ms/op 0.86
Array 250000 create 2.1528 ms/op 3.1043 ms/op 0.69
Array 250000 clone - spread 1.0622 ms/op 1.2795 ms/op 0.83
Array 250000 get(125000) 1.0180 ns/op 1.0250 ns/op 0.99
Array 250000 set(125000) 1.2210 ns/op 4.1090 ns/op 0.30
Array 250000 iterate all - loop 151.84 us/op 164.19 us/op 0.92
effectiveBalanceIncrements clone Uint8Array 300000 13.496 us/op 26.402 us/op 0.51
effectiveBalanceIncrements clone MutableVector 300000 408.00 ns/op 349.00 ns/op 1.17
effectiveBalanceIncrements rw all Uint8Array 300000 182.06 us/op 200.73 us/op 0.91
effectiveBalanceIncrements rw all MutableVector 300000 63.541 ms/op 84.234 ms/op 0.75
phase0 afterProcessEpoch - 250000 vs - 7PWei 72.930 ms/op 114.08 ms/op 0.64
phase0 beforeProcessEpoch - 250000 vs - 7PWei 44.373 ms/op 51.547 ms/op 0.86
altair processEpoch - mainnet_e81889 401.12 ms/op 521.55 ms/op 0.77
mainnet_e81889 - altair beforeProcessEpoch 76.276 ms/op 84.386 ms/op 0.90
mainnet_e81889 - altair processJustificationAndFinalization 12.386 us/op 14.747 us/op 0.84
mainnet_e81889 - altair processInactivityUpdates 4.0656 ms/op 6.5667 ms/op 0.62
mainnet_e81889 - altair processRewardsAndPenalties 54.234 ms/op 62.505 ms/op 0.87
mainnet_e81889 - altair processRegistryUpdates 2.3560 us/op 2.8990 us/op 0.81
mainnet_e81889 - altair processSlashings 621.00 ns/op 420.00 ns/op 1.48
mainnet_e81889 - altair processEth1DataReset 606.00 ns/op 659.00 ns/op 0.92
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.1161 ms/op 1.6549 ms/op 0.67
mainnet_e81889 - altair processSlashingsReset 3.4540 us/op 4.1860 us/op 0.83
mainnet_e81889 - altair processRandaoMixesReset 6.9340 us/op 4.5570 us/op 1.52
mainnet_e81889 - altair processHistoricalRootsUpdate 1.0870 us/op 600.00 ns/op 1.81
mainnet_e81889 - altair processParticipationFlagUpdates 2.0480 us/op 1.8780 us/op 1.09
mainnet_e81889 - altair processSyncCommitteeUpdates 1.0110 us/op 578.00 ns/op 1.75
mainnet_e81889 - altair afterProcessEpoch 84.072 ms/op 121.27 ms/op 0.69
capella processEpoch - mainnet_e217614 1.7019 s/op 2.1924 s/op 0.78
mainnet_e217614 - capella beforeProcessEpoch 455.27 ms/op 485.88 ms/op 0.94
mainnet_e217614 - capella processJustificationAndFinalization 11.005 us/op 20.261 us/op 0.54
mainnet_e217614 - capella processInactivityUpdates 15.150 ms/op 22.436 ms/op 0.68
mainnet_e217614 - capella processRewardsAndPenalties 369.63 ms/op 418.50 ms/op 0.88
mainnet_e217614 - capella processRegistryUpdates 22.929 us/op 22.221 us/op 1.03
mainnet_e217614 - capella processSlashings 641.00 ns/op 415.00 ns/op 1.54
mainnet_e217614 - capella processEth1DataReset 598.00 ns/op 377.00 ns/op 1.59
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.9065 ms/op 4.5960 ms/op 0.85
mainnet_e217614 - capella processSlashingsReset 3.6610 us/op 3.1130 us/op 1.18
mainnet_e217614 - capella processRandaoMixesReset 4.5650 us/op 4.3590 us/op 1.05
mainnet_e217614 - capella processHistoricalRootsUpdate 915.00 ns/op 600.00 ns/op 1.52
mainnet_e217614 - capella processParticipationFlagUpdates 1.9430 us/op 1.7690 us/op 1.10
mainnet_e217614 - capella afterProcessEpoch 210.09 ms/op 336.97 ms/op 0.62
phase0 processEpoch - mainnet_e58758 385.05 ms/op 454.36 ms/op 0.85
mainnet_e58758 - phase0 beforeProcessEpoch 125.81 ms/op 116.12 ms/op 1.08
mainnet_e58758 - phase0 processJustificationAndFinalization 14.549 us/op 15.147 us/op 0.96
mainnet_e58758 - phase0 processRewardsAndPenalties 54.077 ms/op 54.623 ms/op 0.99
mainnet_e58758 - phase0 processRegistryUpdates 12.614 us/op 11.222 us/op 1.12
mainnet_e58758 - phase0 processSlashings 692.00 ns/op 489.00 ns/op 1.42
mainnet_e58758 - phase0 processEth1DataReset 501.00 ns/op 363.00 ns/op 1.38
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 919.48 us/op 1.1854 ms/op 0.78
mainnet_e58758 - phase0 processSlashingsReset 3.4550 us/op 3.2350 us/op 1.07
mainnet_e58758 - phase0 processRandaoMixesReset 5.6490 us/op 4.0470 us/op 1.40
mainnet_e58758 - phase0 processHistoricalRootsUpdate 825.00 ns/op 383.00 ns/op 2.15
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.1440 us/op 4.4930 us/op 1.14
mainnet_e58758 - phase0 afterProcessEpoch 65.170 ms/op 100.69 ms/op 0.65
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.1139 ms/op 1.4532 ms/op 0.77
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.2531 ms/op 1.5816 ms/op 0.79
altair processInactivityUpdates - 250000 normalcase 26.964 ms/op 23.235 ms/op 1.16
altair processInactivityUpdates - 250000 worstcase 31.383 ms/op 26.506 ms/op 1.18
phase0 processRegistryUpdates - 250000 normalcase 12.383 us/op 10.587 us/op 1.17
phase0 processRegistryUpdates - 250000 badcase_full_deposits 486.13 us/op 387.20 us/op 1.26
phase0 processRegistryUpdates - 250000 worstcase 0.5 145.38 ms/op 172.43 ms/op 0.84
altair processRewardsAndPenalties - 250000 normalcase 62.134 ms/op 62.844 ms/op 0.99
altair processRewardsAndPenalties - 250000 worstcase 61.285 ms/op 62.828 ms/op 0.98
phase0 getAttestationDeltas - 250000 normalcase 10.554 ms/op 9.4214 ms/op 1.12
phase0 getAttestationDeltas - 250000 worstcase 11.044 ms/op 10.597 ms/op 1.04
phase0 processSlashings - 250000 worstcase 100.55 us/op 98.560 us/op 1.02
altair processSyncCommitteeUpdates - 250000 129.11 ms/op 168.30 ms/op 0.77
BeaconState.hashTreeRoot - No change 927.00 ns/op 468.00 ns/op 1.98
BeaconState.hashTreeRoot - 1 full validator 173.26 us/op 172.28 us/op 1.01
BeaconState.hashTreeRoot - 32 full validator 1.1117 ms/op 1.4236 ms/op 0.78
BeaconState.hashTreeRoot - 512 full validator 10.084 ms/op 16.716 ms/op 0.60
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 101.04 us/op 171.75 us/op 0.59
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.4165 ms/op 2.2465 ms/op 0.63
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 17.921 ms/op 33.007 ms/op 0.54
BeaconState.hashTreeRoot - 1 balances 82.586 us/op 156.80 us/op 0.53
BeaconState.hashTreeRoot - 32 balances 770.69 us/op 1.5645 ms/op 0.49
BeaconState.hashTreeRoot - 512 balances 7.3030 ms/op 11.197 ms/op 0.65
BeaconState.hashTreeRoot - 250000 balances 154.48 ms/op 208.70 ms/op 0.74
aggregationBits - 2048 els - zipIndexesInBitList 12.412 us/op 21.395 us/op 0.58
byteArrayEquals 32 69.316 ns/op 78.260 ns/op 0.89
Buffer.compare 32 37.970 ns/op 57.895 ns/op 0.66
byteArrayEquals 1024 1.7246 us/op 2.1556 us/op 0.80
Buffer.compare 1024 44.550 ns/op 73.095 ns/op 0.61
byteArrayEquals 16384 29.234 us/op 36.741 us/op 0.80
Buffer.compare 16384 225.85 ns/op 282.49 ns/op 0.80
byteArrayEquals 123687377 220.65 ms/op 273.01 ms/op 0.81
Buffer.compare 123687377 6.1391 ms/op 7.3568 ms/op 0.83
byteArrayEquals 32 - diff last byte 65.549 ns/op 89.450 ns/op 0.73
Buffer.compare 32 - diff last byte 41.826 ns/op 60.164 ns/op 0.70
byteArrayEquals 1024 - diff last byte 1.8647 us/op 2.2075 us/op 0.84
Buffer.compare 1024 - diff last byte 47.612 ns/op 78.477 ns/op 0.61
byteArrayEquals 16384 - diff last byte 28.954 us/op 33.628 us/op 0.86
Buffer.compare 16384 - diff last byte 250.51 ns/op 258.14 ns/op 0.97
byteArrayEquals 123687377 - diff last byte 219.43 ms/op 269.13 ms/op 0.82
Buffer.compare 123687377 - diff last byte 5.0359 ms/op 7.8055 ms/op 0.65
byteArrayEquals 32 - random bytes 4.8470 ns/op 5.8280 ns/op 0.83
Buffer.compare 32 - random bytes 40.225 ns/op 65.411 ns/op 0.61
byteArrayEquals 1024 - random bytes 4.6710 ns/op 6.0630 ns/op 0.77
Buffer.compare 1024 - random bytes 38.755 ns/op 66.250 ns/op 0.58
byteArrayEquals 16384 - random bytes 4.6300 ns/op 5.6200 ns/op 0.82
Buffer.compare 16384 - random bytes 38.968 ns/op 63.661 ns/op 0.61
byteArrayEquals 123687377 - random bytes 8.3900 ns/op 8.9900 ns/op 0.93
Buffer.compare 123687377 - random bytes 42.540 ns/op 66.910 ns/op 0.64
regular array get 100000 times 42.632 us/op 49.723 us/op 0.86
wrappedArray get 100000 times 44.369 us/op 47.839 us/op 0.93
arrayWithProxy get 100000 times 10.530 ms/op 16.743 ms/op 0.63
ssz.Root.equals 58.754 ns/op 58.387 ns/op 1.01
byteArrayEquals 56.445 ns/op 56.982 ns/op 0.99
Buffer.compare 9.5760 ns/op 11.967 ns/op 0.80
shuffle list - 16384 els 4.6790 ms/op 7.4122 ms/op 0.63
shuffle list - 250000 els 71.226 ms/op 111.44 ms/op 0.64
processSlot - 1 slots 11.821 us/op 17.353 us/op 0.68
processSlot - 32 slots 2.4645 ms/op 3.0777 ms/op 0.80
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 45.196 ms/op 59.417 ms/op 0.76
getCommitteeAssignments - req 1 vs - 250000 vc 2.2678 ms/op 2.6297 ms/op 0.86
getCommitteeAssignments - req 100 vs - 250000 vc 3.4502 ms/op 3.9095 ms/op 0.88
getCommitteeAssignments - req 1000 vs - 250000 vc 3.7209 ms/op 4.2615 ms/op 0.87
findModifiedValidators - 10000 modified validators 446.78 ms/op 559.89 ms/op 0.80
findModifiedValidators - 1000 modified validators 337.10 ms/op 451.21 ms/op 0.75
findModifiedValidators - 100 modified validators 324.14 ms/op 444.55 ms/op 0.73
findModifiedValidators - 10 modified validators 303.98 ms/op 423.59 ms/op 0.72
findModifiedValidators - 1 modified validators 326.32 ms/op 453.15 ms/op 0.72
findModifiedValidators - no difference 319.34 ms/op 464.54 ms/op 0.69
compare ViewDUs 4.3877 s/op 4.6077 s/op 0.95
compare each validator Uint8Array 1.5495 s/op 1.5306 s/op 1.01
compare ViewDU to Uint8Array 1.0324 s/op 1.3745 s/op 0.75
migrate state 1000000 validators, 24 modified, 0 new 678.12 ms/op 784.18 ms/op 0.86
migrate state 1000000 validators, 1700 modified, 1000 new 929.04 ms/op 1.0164 s/op 0.91
migrate state 1000000 validators, 3400 modified, 2000 new 1.1150 s/op 1.3489 s/op 0.83
migrate state 1500000 validators, 24 modified, 0 new 655.98 ms/op 803.10 ms/op 0.82
migrate state 1500000 validators, 1700 modified, 1000 new 1.0357 s/op 1.1398 s/op 0.91
migrate state 1500000 validators, 3400 modified, 2000 new 1.2971 s/op 1.4370 s/op 0.90
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.3500 ns/op 4.8400 ns/op 1.31
state getBlockRootAtSlot - 250000 vs - 7PWei 976.42 ns/op 631.56 ns/op 1.55
computeProposers - vc 250000 7.4581 ms/op 9.7571 ms/op 0.76
computeEpochShuffling - vc 250000 70.534 ms/op 110.16 ms/op 0.64
getNextSyncCommittee - vc 250000 119.04 ms/op 160.98 ms/op 0.74
computeSigningRoot for AttestationData 31.403 us/op 27.617 us/op 1.14
hash AttestationData serialized data then Buffer.toString(base64) 1.4798 us/op 2.3827 us/op 0.62
toHexString serialized data 856.38 ns/op 1.1190 us/op 0.77
Buffer.toString(base64) 172.35 ns/op 222.25 ns/op 0.78

by benchmarkbot/action

@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