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: increase bodyLimit of the beacon api server #6476

Merged
merged 2 commits into from
Feb 24, 2024
Merged

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented Feb 23, 2024

EF devops reported that while testing https://dora.dencun-msf-1.ethpandaops.io/slots

Feb-23 11:43:53.455[rest]            error: Req req-aiw publishBlockV2 error - Request body is too large
FastifyError: Request body is too large
    at rawBody (/usr/app/node_modules/fastify/lib/contentTypeParser.js:209:16)
    at ContentTypeParser.run (/usr/app/node_modules/fastify/lib/contentTypeParser.js:169:5)
    at handleRequest (/usr/app/node_modules/fastify/lib/handleRequest.js:41:33)
    at runPreParsing (/usr/app/node_modules/fastify/lib/route.js:569:5)
    at next (/usr/app/node_modules/fastify/lib/hooks.js:179:7)
    at handleResolve (/usr/app/node_modules/fastify/lib/hooks.js:196:5)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

probably 7Mb blocks + blobs are pushing over the limit, locally fix seems to be working on resolving this error but there is another issue of latency between val<>beacon for these big blocks which needs to be looked as as well, but its an independent issue to be tackled (currently looking into that)

@philknows @wemeetagain we might need to cut a patch release with this

@g11tech g11tech requested a review from a team as a code owner February 23, 2024 13:16
Copy link

codecov bot commented Feb 23, 2024

Codecov Report

Merging #6476 (5055686) into unstable (8943ab6) will not change coverage.
The diff coverage is n/a.

❗ Current head 5055686 differs from pull request most recent head 95ab7a0. Consider uploading reports for the commit 95ab7a0 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6476   +/-   ##
=========================================
  Coverage     61.72%   61.72%           
=========================================
  Files           555      555           
  Lines         58204    58204           
  Branches       1839     1839           
=========================================
  Hits          35925    35925           
  Misses        22240    22240           
  Partials         39       39           

philknows
philknows previously approved these changes Feb 23, 2024
Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 61f1c0a Previous: 8943ab6 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 380.52 us/op 589.03 us/op 0.65
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 52.954 us/op 121.20 us/op 0.44
BLS verify - blst-native 1.1265 ms/op 1.4776 ms/op 0.76
BLS verifyMultipleSignatures 3 - blst-native 2.5288 ms/op 3.0468 ms/op 0.83
BLS verifyMultipleSignatures 8 - blst-native 5.3482 ms/op 6.6009 ms/op 0.81
BLS verifyMultipleSignatures 32 - blst-native 19.659 ms/op 23.852 ms/op 0.82
BLS verifyMultipleSignatures 64 - blst-native 38.734 ms/op 47.151 ms/op 0.82
BLS verifyMultipleSignatures 128 - blst-native 75.984 ms/op 96.131 ms/op 0.79
BLS deserializing 10000 signatures 811.80 ms/op 987.98 ms/op 0.82
BLS deserializing 100000 signatures 8.4250 s/op 9.8754 s/op 0.85
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.1100 ms/op 1.4382 ms/op 0.77
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.2721 ms/op 1.6181 ms/op 0.79
BLS verifyMultipleSignatures - same message - 32 - blst-native 1.9669 ms/op 2.4701 ms/op 0.80
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.6083 ms/op 3.5522 ms/op 1.02
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.2145 ms/op 5.9069 ms/op 1.05
BLS aggregatePubkeys 32 - blst-native 24.267 us/op 27.631 us/op 0.88
BLS aggregatePubkeys 128 - blst-native 87.403 us/op 105.65 us/op 0.83
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 46.573 ms/op 81.384 ms/op 0.57
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 40.251 ms/op 71.772 ms/op 0.56
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 26.858 ms/op 53.297 ms/op 0.50
getSlashingsAndExits - default max 255.79 us/op 248.29 us/op 1.03
getSlashingsAndExits - 2k 417.56 us/op 633.65 us/op 0.66
proposeBlockBody type=full, size=empty 3.8513 ms/op 6.9212 ms/op 0.56
isKnown best case - 1 super set check 346.00 ns/op 641.00 ns/op 0.54
isKnown normal case - 2 super set checks 359.00 ns/op 591.00 ns/op 0.61
isKnown worse case - 16 super set checks 345.00 ns/op 556.00 ns/op 0.62
CheckpointStateCache - add get delete 3.7970 us/op 6.0850 us/op 0.62
validate api signedAggregateAndProof - struct 2.4553 ms/op 2.9331 ms/op 0.84
validate gossip signedAggregateAndProof - struct 2.4527 ms/op 2.9807 ms/op 0.82
validate gossip attestation - vc 640000 1.1859 ms/op 1.4351 ms/op 0.83
batch validate gossip attestation - vc 640000 - chunk 32 146.57 us/op 174.14 us/op 0.84
batch validate gossip attestation - vc 640000 - chunk 64 126.19 us/op 144.20 us/op 0.88
batch validate gossip attestation - vc 640000 - chunk 128 119.42 us/op 139.15 us/op 0.86
batch validate gossip attestation - vc 640000 - chunk 256 119.92 us/op 134.36 us/op 0.89
pickEth1Vote - no votes 1.0950 ms/op 1.2292 ms/op 0.89
pickEth1Vote - max votes 10.064 ms/op 16.690 ms/op 0.60
pickEth1Vote - Eth1Data hashTreeRoot value x2048 25.278 ms/op 20.445 ms/op 1.24
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 40.862 ms/op 31.025 ms/op 1.32
pickEth1Vote - Eth1Data fastSerialize value x2048 635.04 us/op 739.40 us/op 0.86
pickEth1Vote - Eth1Data fastSerialize tree x2048 11.617 ms/op 8.4120 ms/op 1.38
bytes32 toHexString 805.00 ns/op 650.00 ns/op 1.24
bytes32 Buffer.toString(hex) 398.00 ns/op 315.00 ns/op 1.26
bytes32 Buffer.toString(hex) from Uint8Array 605.00 ns/op 510.00 ns/op 1.19
bytes32 Buffer.toString(hex) + 0x 404.00 ns/op 335.00 ns/op 1.21
Object access 1 prop 0.30000 ns/op 0.19700 ns/op 1.52
Map access 1 prop 0.24200 ns/op 0.15300 ns/op 1.58
Object get x1000 5.1820 ns/op 7.7240 ns/op 0.67
Map get x1000 0.86100 ns/op 0.86500 ns/op 1.00
Object set x1000 54.315 ns/op 56.989 ns/op 0.95
Map set x1000 40.799 ns/op 46.374 ns/op 0.88
Return object 10000 times 0.23720 ns/op 0.25010 ns/op 0.95
Throw Error 10000 times 2.9205 us/op 3.9546 us/op 0.74
fastMsgIdFn sha256 / 200 bytes 2.2410 us/op 3.4560 us/op 0.65
fastMsgIdFn h32 xxhash / 200 bytes 404.00 ns/op 331.00 ns/op 1.22
fastMsgIdFn h64 xxhash / 200 bytes 415.00 ns/op 410.00 ns/op 1.01
fastMsgIdFn sha256 / 1000 bytes 6.7640 us/op 12.532 us/op 0.54
fastMsgIdFn h32 xxhash / 1000 bytes 518.00 ns/op 479.00 ns/op 1.08
fastMsgIdFn h64 xxhash / 1000 bytes 505.00 ns/op 489.00 ns/op 1.03
fastMsgIdFn sha256 / 10000 bytes 57.263 us/op 108.52 us/op 0.53
fastMsgIdFn h32 xxhash / 10000 bytes 2.0440 us/op 2.0770 us/op 0.98
fastMsgIdFn h64 xxhash / 10000 bytes 1.3990 us/op 1.4360 us/op 0.97
send data - 1000 256B messages 18.300 ms/op 22.444 ms/op 0.82
send data - 1000 512B messages 19.119 ms/op 28.070 ms/op 0.68
send data - 1000 1024B messages 41.371 ms/op 47.417 ms/op 0.87
send data - 1000 1200B messages 45.022 ms/op 46.205 ms/op 0.97
send data - 1000 2048B messages 52.643 ms/op 54.955 ms/op 0.96
send data - 1000 4096B messages 45.225 ms/op 45.840 ms/op 0.99
send data - 1000 16384B messages 121.04 ms/op 121.35 ms/op 1.00
send data - 1000 65536B messages 473.57 ms/op 498.36 ms/op 0.95
enrSubnets - fastDeserialize 64 bits 1.1580 us/op 1.4010 us/op 0.83
enrSubnets - ssz BitVector 64 bits 627.00 ns/op 522.00 ns/op 1.20
enrSubnets - fastDeserialize 4 bits 326.00 ns/op 221.00 ns/op 1.48
enrSubnets - ssz BitVector 4 bits 612.00 ns/op 520.00 ns/op 1.18
prioritizePeers score -10:0 att 32-0.1 sync 2-0 95.874 us/op 116.75 us/op 0.82
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 138.85 us/op 141.80 us/op 0.98
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 184.16 us/op 195.60 us/op 0.94
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 283.60 us/op 364.92 us/op 0.78
prioritizePeers score 0:0 att 64-1 sync 4-1 270.99 us/op 396.33 us/op 0.68
array of 16000 items push then shift 1.4159 us/op 1.7320 us/op 0.82
LinkedList of 16000 items push then shift 11.636 ns/op 9.8030 ns/op 1.19
array of 16000 items push then pop 132.56 ns/op 108.59 ns/op 1.22
LinkedList of 16000 items push then pop 5.9890 ns/op 8.8690 ns/op 0.68
array of 24000 items push then shift 2.1255 us/op 2.4814 us/op 0.86
LinkedList of 24000 items push then shift 7.5860 ns/op 9.4860 ns/op 0.80
array of 24000 items push then pop 168.73 ns/op 135.10 ns/op 1.25
LinkedList of 24000 items push then pop 7.4710 ns/op 8.9990 ns/op 0.83
intersect bitArray bitLen 8 5.5730 ns/op 5.9890 ns/op 0.93
intersect array and set length 8 60.193 ns/op 66.316 ns/op 0.91
intersect bitArray bitLen 128 30.498 ns/op 36.454 ns/op 0.84
intersect array and set length 128 817.29 ns/op 942.41 ns/op 0.87
bitArray.getTrueBitIndexes() bitLen 128 1.6400 us/op 1.6640 us/op 0.99
bitArray.getTrueBitIndexes() bitLen 248 3.2510 us/op 2.6870 us/op 1.21
bitArray.getTrueBitIndexes() bitLen 512 5.1250 us/op 5.3560 us/op 0.96
Buffer.concat 32 items 1.0210 us/op 1.0190 us/op 1.00
Uint8Array.set 32 items 2.6850 us/op 1.7780 us/op 1.51
Set add up to 64 items then delete first 1.8444 us/op 4.7275 us/op 0.39
OrderedSet add up to 64 items then delete first 2.7504 us/op 5.5795 us/op 0.49
Set add up to 64 items then delete last 2.1026 us/op 4.9942 us/op 0.42
OrderedSet add up to 64 items then delete last 3.5027 us/op 6.2610 us/op 0.56
Set add up to 64 items then delete middle 2.2431 us/op 5.1709 us/op 0.43
OrderedSet add up to 64 items then delete middle 4.4296 us/op 7.4645 us/op 0.59
Set add up to 128 items then delete first 4.5870 us/op 9.7736 us/op 0.47
OrderedSet add up to 128 items then delete first 6.4415 us/op 12.311 us/op 0.52
Set add up to 128 items then delete last 4.1809 us/op 10.422 us/op 0.40
OrderedSet add up to 128 items then delete last 6.4061 us/op 12.559 us/op 0.51
Set add up to 128 items then delete middle 4.1463 us/op 9.6692 us/op 0.43
OrderedSet add up to 128 items then delete middle 11.435 us/op 18.949 us/op 0.60
Set add up to 256 items then delete first 7.5990 us/op 20.024 us/op 0.38
OrderedSet add up to 256 items then delete first 11.509 us/op 25.999 us/op 0.44
Set add up to 256 items then delete last 7.5605 us/op 18.846 us/op 0.40
OrderedSet add up to 256 items then delete last 12.587 us/op 25.927 us/op 0.49
Set add up to 256 items then delete middle 7.5733 us/op 20.560 us/op 0.37
OrderedSet add up to 256 items then delete middle 32.169 us/op 49.979 us/op 0.64
transfer serialized Status (84 B) 1.3390 us/op 1.9080 us/op 0.70
copy serialized Status (84 B) 1.1980 us/op 1.3990 us/op 0.86
transfer serialized SignedVoluntaryExit (112 B) 1.4390 us/op 2.0540 us/op 0.70
copy serialized SignedVoluntaryExit (112 B) 1.0940 us/op 1.5000 us/op 0.73
transfer serialized ProposerSlashing (416 B) 1.5780 us/op 3.1350 us/op 0.50
copy serialized ProposerSlashing (416 B) 1.5850 us/op 2.9640 us/op 0.53
transfer serialized Attestation (485 B) 1.7570 us/op 2.6200 us/op 0.67
copy serialized Attestation (485 B) 1.4710 us/op 2.3290 us/op 0.63
transfer serialized AttesterSlashing (33232 B) 1.6840 us/op 2.4890 us/op 0.68
copy serialized AttesterSlashing (33232 B) 3.4920 us/op 6.4560 us/op 0.54
transfer serialized Small SignedBeaconBlock (128000 B) 1.9350 us/op 2.7840 us/op 0.70
copy serialized Small SignedBeaconBlock (128000 B) 8.6010 us/op 17.327 us/op 0.50
transfer serialized Avg SignedBeaconBlock (200000 B) 1.7220 us/op 3.0220 us/op 0.57
copy serialized Avg SignedBeaconBlock (200000 B) 34.391 us/op 25.860 us/op 1.33
transfer serialized BlobsSidecar (524380 B) 2.6130 us/op 2.8630 us/op 0.91
copy serialized BlobsSidecar (524380 B) 175.74 us/op 85.232 us/op 2.06
transfer serialized Big SignedBeaconBlock (1000000 B) 2.7730 us/op 2.8180 us/op 0.98
copy serialized Big SignedBeaconBlock (1000000 B) 127.22 us/op 164.08 us/op 0.78
pass gossip attestations to forkchoice per slot 2.7578 ms/op 4.0048 ms/op 0.69
forkChoice updateHead vc 100000 bc 64 eq 0 449.90 us/op 715.60 us/op 0.63
forkChoice updateHead vc 600000 bc 64 eq 0 2.7649 ms/op 4.4140 ms/op 0.63
forkChoice updateHead vc 1000000 bc 64 eq 0 5.0784 ms/op 7.7470 ms/op 0.66
forkChoice updateHead vc 600000 bc 320 eq 0 3.1243 ms/op 4.5507 ms/op 0.69
forkChoice updateHead vc 600000 bc 1200 eq 0 2.7560 ms/op 5.8565 ms/op 0.47
forkChoice updateHead vc 600000 bc 7200 eq 0 4.0727 ms/op 5.7537 ms/op 0.71
forkChoice updateHead vc 600000 bc 64 eq 1000 10.176 ms/op 12.030 ms/op 0.85
forkChoice updateHead vc 600000 bc 64 eq 10000 10.007 ms/op 12.288 ms/op 0.81
forkChoice updateHead vc 600000 bc 64 eq 300000 18.454 ms/op 20.006 ms/op 0.92
computeDeltas 500000 validators 300 proto nodes 3.2607 ms/op 7.0802 ms/op 0.46
computeDeltas 500000 validators 1200 proto nodes 3.1828 ms/op 7.3237 ms/op 0.43
computeDeltas 500000 validators 7200 proto nodes 3.1082 ms/op 7.6794 ms/op 0.40
computeDeltas 750000 validators 300 proto nodes 4.6189 ms/op 11.227 ms/op 0.41
computeDeltas 750000 validators 1200 proto nodes 4.5979 ms/op 11.047 ms/op 0.42
computeDeltas 750000 validators 7200 proto nodes 4.6172 ms/op 11.034 ms/op 0.42
computeDeltas 1400000 validators 300 proto nodes 9.1883 ms/op 20.321 ms/op 0.45
computeDeltas 1400000 validators 1200 proto nodes 8.7750 ms/op 19.697 ms/op 0.45
computeDeltas 1400000 validators 7200 proto nodes 8.9034 ms/op 19.679 ms/op 0.45
computeDeltas 2100000 validators 300 proto nodes 13.821 ms/op 31.688 ms/op 0.44
computeDeltas 2100000 validators 1200 proto nodes 13.109 ms/op 32.485 ms/op 0.40
computeDeltas 2100000 validators 7200 proto nodes 14.118 ms/op 29.418 ms/op 0.48
altair processAttestation - 250000 vs - 7PWei normalcase 1.8238 ms/op 2.4839 ms/op 0.73
altair processAttestation - 250000 vs - 7PWei worstcase 2.4939 ms/op 3.2309 ms/op 0.77
altair processAttestation - setStatus - 1/6 committees join 117.29 us/op 144.63 us/op 0.81
altair processAttestation - setStatus - 1/3 committees join 246.81 us/op 311.95 us/op 0.79
altair processAttestation - setStatus - 1/2 committees join 322.94 us/op 411.70 us/op 0.78
altair processAttestation - setStatus - 2/3 committees join 388.09 us/op 516.50 us/op 0.75
altair processAttestation - setStatus - 4/5 committees join 528.51 us/op 682.48 us/op 0.77
altair processAttestation - setStatus - 100% committees join 613.28 us/op 823.15 us/op 0.75
altair processBlock - 250000 vs - 7PWei normalcase 10.400 ms/op 10.228 ms/op 1.02
altair processBlock - 250000 vs - 7PWei normalcase hashState 29.269 ms/op 39.661 ms/op 0.74
altair processBlock - 250000 vs - 7PWei worstcase 34.237 ms/op 39.251 ms/op 0.87
altair processBlock - 250000 vs - 7PWei worstcase hashState 90.501 ms/op 98.732 ms/op 0.92
phase0 processBlock - 250000 vs - 7PWei normalcase 2.4775 ms/op 3.1566 ms/op 0.78
phase0 processBlock - 250000 vs - 7PWei worstcase 25.306 ms/op 28.242 ms/op 0.90
altair processEth1Data - 250000 vs - 7PWei normalcase 325.04 us/op 490.00 us/op 0.66
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 16.966 us/op 11.778 us/op 1.44
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 66.609 us/op 72.666 us/op 0.92
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 18.899 us/op 28.930 us/op 0.65
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 12.343 us/op 16.708 us/op 0.74
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 160.03 us/op 250.27 us/op 0.64
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.2744 ms/op 1.8853 ms/op 0.68
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.4348 ms/op 2.7167 ms/op 0.53
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 989.85 us/op 2.2506 ms/op 0.44
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.0360 ms/op 3.5593 ms/op 0.85
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.1480 ms/op 3.4709 ms/op 0.62
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.8318 ms/op 6.0030 ms/op 0.80
Tree 40 250000 create 273.69 ms/op 405.48 ms/op 0.67
Tree 40 250000 get(125000) 124.61 ns/op 200.58 ns/op 0.62
Tree 40 250000 set(125000) 759.42 ns/op 1.0074 us/op 0.75
Tree 40 250000 toArray() 11.783 ms/op 21.337 ms/op 0.55
Tree 40 250000 iterate all - toArray() + loop 10.672 ms/op 21.026 ms/op 0.51
Tree 40 250000 iterate all - get(i) 41.506 ms/op 67.737 ms/op 0.61
MutableVector 250000 create 10.563 ms/op 19.194 ms/op 0.55
MutableVector 250000 get(125000) 5.5690 ns/op 7.0160 ns/op 0.79
MutableVector 250000 set(125000) 214.58 ns/op 286.95 ns/op 0.75
MutableVector 250000 toArray() 2.1604 ms/op 3.8791 ms/op 0.56
MutableVector 250000 iterate all - toArray() + loop 2.2310 ms/op 3.8970 ms/op 0.57
MutableVector 250000 iterate all - get(i) 1.3345 ms/op 1.5497 ms/op 0.86
Array 250000 create 3.0079 ms/op 3.8339 ms/op 0.78
Array 250000 clone - spread 1.3762 ms/op 1.2727 ms/op 1.08
Array 250000 get(125000) 1.7550 ns/op 1.0430 ns/op 1.68
Array 250000 set(125000) 1.3820 ns/op 4.0860 ns/op 0.34
Array 250000 iterate all - loop 164.22 us/op 163.36 us/op 1.01
effectiveBalanceIncrements clone Uint8Array 300000 87.764 us/op 30.688 us/op 2.86
effectiveBalanceIncrements clone MutableVector 300000 530.00 ns/op 371.00 ns/op 1.43
effectiveBalanceIncrements rw all Uint8Array 300000 186.34 us/op 203.52 us/op 0.92
effectiveBalanceIncrements rw all MutableVector 300000 122.84 ms/op 86.577 ms/op 1.42
phase0 afterProcessEpoch - 250000 vs - 7PWei 85.536 ms/op 116.92 ms/op 0.73
phase0 beforeProcessEpoch - 250000 vs - 7PWei 46.769 ms/op 59.520 ms/op 0.79
altair processEpoch - mainnet_e81889 514.29 ms/op 528.04 ms/op 0.97
mainnet_e81889 - altair beforeProcessEpoch 99.923 ms/op 87.336 ms/op 1.14
mainnet_e81889 - altair processJustificationAndFinalization 19.455 us/op 22.255 us/op 0.87
mainnet_e81889 - altair processInactivityUpdates 7.2420 ms/op 7.9362 ms/op 0.91
mainnet_e81889 - altair processRewardsAndPenalties 49.465 ms/op 73.046 ms/op 0.68
mainnet_e81889 - altair processRegistryUpdates 4.2000 us/op 3.9500 us/op 1.06
mainnet_e81889 - altair processSlashings 1.5570 us/op 639.00 ns/op 2.44
mainnet_e81889 - altair processEth1DataReset 928.00 ns/op 1.0430 us/op 0.89
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2441 ms/op 1.9427 ms/op 0.64
mainnet_e81889 - altair processSlashingsReset 4.6360 us/op 4.5660 us/op 1.02
mainnet_e81889 - altair processRandaoMixesReset 5.4850 us/op 6.3700 us/op 0.86
mainnet_e81889 - altair processHistoricalRootsUpdate 1.2070 us/op 1.4800 us/op 0.82
mainnet_e81889 - altair processParticipationFlagUpdates 3.8540 us/op 2.7570 us/op 1.40
mainnet_e81889 - altair processSyncCommitteeUpdates 992.00 ns/op 928.00 ns/op 1.07
mainnet_e81889 - altair afterProcessEpoch 88.756 ms/op 123.77 ms/op 0.72
capella processEpoch - mainnet_e217614 2.5854 s/op 2.5625 s/op 1.01
mainnet_e217614 - capella beforeProcessEpoch 485.18 ms/op 557.01 ms/op 0.87
mainnet_e217614 - capella processJustificationAndFinalization 14.910 us/op 16.856 us/op 0.88
mainnet_e217614 - capella processInactivityUpdates 22.768 ms/op 22.662 ms/op 1.00
mainnet_e217614 - capella processRewardsAndPenalties 436.61 ms/op 441.47 ms/op 0.99
mainnet_e217614 - capella processRegistryUpdates 24.529 us/op 41.783 us/op 0.59
mainnet_e217614 - capella processSlashings 907.00 ns/op 1.4190 us/op 0.64
mainnet_e217614 - capella processEth1DataReset 964.00 ns/op 569.00 ns/op 1.69
mainnet_e217614 - capella processEffectiveBalanceUpdates 5.4722 ms/op 5.3992 ms/op 1.01
mainnet_e217614 - capella processSlashingsReset 5.0580 us/op 3.1360 us/op 1.61
mainnet_e217614 - capella processRandaoMixesReset 6.6910 us/op 5.0670 us/op 1.32
mainnet_e217614 - capella processHistoricalRootsUpdate 1.0860 us/op 690.00 ns/op 1.57
mainnet_e217614 - capella processParticipationFlagUpdates 3.2090 us/op 2.6840 us/op 1.20
mainnet_e217614 - capella afterProcessEpoch 226.80 ms/op 354.06 ms/op 0.64
phase0 processEpoch - mainnet_e58758 475.88 ms/op 454.79 ms/op 1.05
mainnet_e58758 - phase0 beforeProcessEpoch 147.19 ms/op 147.62 ms/op 1.00
mainnet_e58758 - phase0 processJustificationAndFinalization 20.414 us/op 18.566 us/op 1.10
mainnet_e58758 - phase0 processRewardsAndPenalties 61.554 ms/op 57.126 ms/op 1.08
mainnet_e58758 - phase0 processRegistryUpdates 15.201 us/op 13.931 us/op 1.09
mainnet_e58758 - phase0 processSlashings 982.00 ns/op 727.00 ns/op 1.35
mainnet_e58758 - phase0 processEth1DataReset 862.00 ns/op 795.00 ns/op 1.08
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 908.54 us/op 1.4248 ms/op 0.64
mainnet_e58758 - phase0 processSlashingsReset 5.7890 us/op 4.7760 us/op 1.21
mainnet_e58758 - phase0 processRandaoMixesReset 7.3600 us/op 6.0260 us/op 1.22
mainnet_e58758 - phase0 processHistoricalRootsUpdate 716.00 ns/op 536.00 ns/op 1.34
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.1350 us/op 3.4470 us/op 1.49
mainnet_e58758 - phase0 afterProcessEpoch 65.030 ms/op 96.762 ms/op 0.67
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2322 ms/op 1.6961 ms/op 0.73
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4112 ms/op 2.0450 ms/op 0.69
altair processInactivityUpdates - 250000 normalcase 30.036 ms/op 26.058 ms/op 1.15
altair processInactivityUpdates - 250000 worstcase 22.592 ms/op 24.963 ms/op 0.91
phase0 processRegistryUpdates - 250000 normalcase 18.488 us/op 13.110 us/op 1.41
phase0 processRegistryUpdates - 250000 badcase_full_deposits 639.29 us/op 530.35 us/op 1.21
phase0 processRegistryUpdates - 250000 worstcase 0.5 219.58 ms/op 152.69 ms/op 1.44
altair processRewardsAndPenalties - 250000 normalcase 68.110 ms/op 62.512 ms/op 1.09
altair processRewardsAndPenalties - 250000 worstcase 57.953 ms/op 57.692 ms/op 1.00
phase0 getAttestationDeltas - 250000 normalcase 10.663 ms/op 12.231 ms/op 0.87
phase0 getAttestationDeltas - 250000 worstcase 8.7661 ms/op 12.336 ms/op 0.71
phase0 processSlashings - 250000 worstcase 93.392 us/op 130.51 us/op 0.72
altair processSyncCommitteeUpdates - 250000 122.53 ms/op 168.97 ms/op 0.73
BeaconState.hashTreeRoot - No change 688.00 ns/op 699.00 ns/op 0.98
BeaconState.hashTreeRoot - 1 full validator 122.09 us/op 141.44 us/op 0.86
BeaconState.hashTreeRoot - 32 full validator 1.2540 ms/op 1.6364 ms/op 0.77
BeaconState.hashTreeRoot - 512 full validator 12.086 ms/op 16.669 ms/op 0.73
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 141.08 us/op 229.17 us/op 0.62
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.8309 ms/op 2.9393 ms/op 0.62
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 30.792 ms/op 34.536 ms/op 0.89
BeaconState.hashTreeRoot - 1 balances 183.30 us/op 150.47 us/op 1.22
BeaconState.hashTreeRoot - 32 balances 1.7305 ms/op 1.2105 ms/op 1.43
BeaconState.hashTreeRoot - 512 balances 17.311 ms/op 12.506 ms/op 1.38
BeaconState.hashTreeRoot - 250000 balances 183.06 ms/op 253.20 ms/op 0.72
aggregationBits - 2048 els - zipIndexesInBitList 11.382 us/op 25.575 us/op 0.45
byteArrayEquals 32 65.222 ns/op 79.388 ns/op 0.82
Buffer.compare 32 38.459 ns/op 58.501 ns/op 0.66
byteArrayEquals 1024 1.7844 us/op 2.1471 us/op 0.83
Buffer.compare 1024 46.312 ns/op 74.822 ns/op 0.62
byteArrayEquals 16384 28.728 us/op 35.326 us/op 0.81
Buffer.compare 16384 206.24 ns/op 292.89 ns/op 0.70
byteArrayEquals 123687377 207.10 ms/op 256.93 ms/op 0.81
Buffer.compare 123687377 4.7242 ms/op 7.3570 ms/op 0.64
byteArrayEquals 32 - diff last byte 65.978 ns/op 86.681 ns/op 0.76
Buffer.compare 32 - diff last byte 40.155 ns/op 62.238 ns/op 0.65
byteArrayEquals 1024 - diff last byte 1.7845 us/op 2.0978 us/op 0.85
Buffer.compare 1024 - diff last byte 45.546 ns/op 75.623 ns/op 0.60
byteArrayEquals 16384 - diff last byte 28.179 us/op 33.949 us/op 0.83
Buffer.compare 16384 - diff last byte 215.26 ns/op 270.38 ns/op 0.80
byteArrayEquals 123687377 - diff last byte 204.94 ms/op 252.67 ms/op 0.81
Buffer.compare 123687377 - diff last byte 4.1094 ms/op 8.1914 ms/op 0.50
byteArrayEquals 32 - random bytes 4.5190 ns/op 5.7850 ns/op 0.78
Buffer.compare 32 - random bytes 39.275 ns/op 64.044 ns/op 0.61
byteArrayEquals 1024 - random bytes 4.4520 ns/op 6.2370 ns/op 0.71
Buffer.compare 1024 - random bytes 40.741 ns/op 63.272 ns/op 0.64
byteArrayEquals 16384 - random bytes 4.7370 ns/op 6.2460 ns/op 0.76
Buffer.compare 16384 - random bytes 39.333 ns/op 63.317 ns/op 0.62
byteArrayEquals 123687377 - random bytes 8.3600 ns/op 9.5100 ns/op 0.88
Buffer.compare 123687377 - random bytes 42.710 ns/op 76.740 ns/op 0.56
regular array get 100000 times 42.852 us/op 66.197 us/op 0.65
wrappedArray get 100000 times 43.214 us/op 48.471 us/op 0.89
arrayWithProxy get 100000 times 10.751 ms/op 15.345 ms/op 0.70
ssz.Root.equals 57.169 ns/op 61.449 ns/op 0.93
byteArrayEquals 56.296 ns/op 57.173 ns/op 0.98
Buffer.compare 9.8930 ns/op 12.763 ns/op 0.78
shuffle list - 16384 els 5.1706 ms/op 7.1158 ms/op 0.73
shuffle list - 250000 els 76.686 ms/op 113.80 ms/op 0.67
processSlot - 1 slots 17.913 us/op 21.010 us/op 0.85
processSlot - 32 slots 3.3539 ms/op 3.9819 ms/op 0.84
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 60.754 ms/op 70.885 ms/op 0.86
getCommitteeAssignments - req 1 vs - 250000 vc 2.7089 ms/op 2.5980 ms/op 1.04
getCommitteeAssignments - req 100 vs - 250000 vc 3.9985 ms/op 3.8469 ms/op 1.04
getCommitteeAssignments - req 1000 vs - 250000 vc 4.6399 ms/op 4.3088 ms/op 1.08
findModifiedValidators - 10000 modified validators 603.86 ms/op 613.09 ms/op 0.98
findModifiedValidators - 1000 modified validators 431.60 ms/op 544.25 ms/op 0.79
findModifiedValidators - 100 modified validators 384.94 ms/op 561.90 ms/op 0.69
findModifiedValidators - 10 modified validators 429.63 ms/op 516.79 ms/op 0.83
findModifiedValidators - 1 modified validators 383.33 ms/op 553.66 ms/op 0.69
findModifiedValidators - no difference 352.05 ms/op 519.65 ms/op 0.68
compare ViewDUs 4.5281 s/op 5.5600 s/op 0.81
compare each validator Uint8Array 1.5000 s/op 1.8838 s/op 0.80
compare ViewDU to Uint8Array 1.1992 s/op 1.3481 s/op 0.89
migrate state 1000000 validators, 24 modified, 0 new 759.26 ms/op 835.78 ms/op 0.91
migrate state 1000000 validators, 1700 modified, 1000 new 1.1254 s/op 1.0721 s/op 1.05
migrate state 1000000 validators, 3400 modified, 2000 new 1.3179 s/op 1.3850 s/op 0.95
migrate state 1500000 validators, 24 modified, 0 new 810.30 ms/op 845.15 ms/op 0.96
migrate state 1500000 validators, 1700 modified, 1000 new 965.72 ms/op 1.2003 s/op 0.80
migrate state 1500000 validators, 3400 modified, 2000 new 1.1522 s/op 1.5424 s/op 0.75
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.4500 ns/op 5.1600 ns/op 0.86
state getBlockRootAtSlot - 250000 vs - 7PWei 477.84 ns/op 645.11 ns/op 0.74
computeProposers - vc 250000 5.7936 ms/op 10.709 ms/op 0.54
computeEpochShuffling - vc 250000 68.468 ms/op 109.49 ms/op 0.63
getNextSyncCommittee - vc 250000 115.43 ms/op 183.13 ms/op 0.63
computeSigningRoot for AttestationData 27.726 us/op 33.974 us/op 0.82
hash AttestationData serialized data then Buffer.toString(base64) 1.2441 us/op 2.4387 us/op 0.51
toHexString serialized data 829.49 ns/op 1.2011 us/op 0.69
Buffer.toString(base64) 168.10 ns/op 278.48 ns/op 0.60

by benchmarkbot/action

@g11tech g11tech merged commit 5de9a74 into unstable Feb 24, 2024
18 of 20 checks passed
@g11tech g11tech deleted the increase-bodylimit branch February 24, 2024 11:45
@wemeetagain
Copy link
Member

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

4 participants