Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: blob inclusion proof PR cleanup #6239

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented Dec 26, 2023

@g11tech g11tech requested a review from a team as a code owner December 26, 2023 13:20
@g11tech g11tech enabled auto-merge (squash) December 26, 2023 13:20
Copy link

codecov bot commented Dec 26, 2023

Codecov Report

Merging #6239 (033cb8d) into unstable (6f4a9d6) will not change coverage.
Report is 4 commits behind head on unstable.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6239   +/-   ##
=========================================
  Coverage     80.95%   80.95%           
=========================================
  Files           185      185           
  Lines         17935    17935           
  Branches       1078     1078           
=========================================
  Hits          14519    14519           
  Misses         3389     3389           
  Partials         27       27           

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 7717189 Previous: 1200c59 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 930.26 us/op 773.76 us/op 1.20
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 52.280 us/op 80.228 us/op 0.65
BLS verify - blst-native 1.0721 ms/op 1.2735 ms/op 0.84
BLS verifyMultipleSignatures 3 - blst-native 2.2879 ms/op 2.6721 ms/op 0.86
BLS verifyMultipleSignatures 8 - blst-native 5.0452 ms/op 5.8582 ms/op 0.86
BLS verifyMultipleSignatures 32 - blst-native 18.534 ms/op 21.415 ms/op 0.87
BLS verifyMultipleSignatures 64 - blst-native 36.627 ms/op 42.169 ms/op 0.87
BLS verifyMultipleSignatures 128 - blst-native 72.532 ms/op 83.609 ms/op 0.87
BLS deserializing 10000 signatures 810.81 ms/op 909.90 ms/op 0.89
BLS deserializing 100000 signatures 8.1049 s/op 9.2158 s/op 0.88
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.0878 ms/op 1.3252 ms/op 0.82
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.2346 ms/op 1.4914 ms/op 0.83
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.4954 ms/op 2.7992 ms/op 0.89
BLS verifyMultipleSignatures - same message - 64 - blst-native 2.8839 ms/op 3.6391 ms/op 0.79
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.7838 ms/op 7.3249 ms/op 0.93
BLS aggregatePubkeys 32 - blst-native 22.873 us/op 26.291 us/op 0.87
BLS aggregatePubkeys 128 - blst-native 83.953 us/op 96.535 us/op 0.87
getAttestationsForBlock 32.375 ms/op 47.805 ms/op 0.68
getSlashingsAndExits - default max 111.48 us/op 184.56 us/op 0.60
getSlashingsAndExits - 2k 327.42 us/op 366.62 us/op 0.89
proposeBlockBody type=full, size=empty 3.9604 ms/op 5.0129 ms/op 0.79
isKnown best case - 1 super set check 348.00 ns/op 311.00 ns/op 1.12
isKnown normal case - 2 super set checks 359.00 ns/op 312.00 ns/op 1.15
isKnown worse case - 16 super set checks 346.00 ns/op 293.00 ns/op 1.18
CheckpointStateCache - add get delete 4.0980 us/op 5.6150 us/op 0.73
validate api signedAggregateAndProof - struct 2.2940 ms/op 2.7024 ms/op 0.85
validate gossip signedAggregateAndProof - struct 2.3183 ms/op 2.7430 ms/op 0.85
validate gossip attestation - vc 640000 1.0881 ms/op 1.3067 ms/op 0.83
batch validate gossip attestation - vc 640000 - chunk 32 130.87 us/op 155.73 us/op 0.84
batch validate gossip attestation - vc 640000 - chunk 64 119.39 us/op 138.52 us/op 0.86
batch validate gossip attestation - vc 640000 - chunk 128 111.51 us/op 128.37 us/op 0.87
batch validate gossip attestation - vc 640000 - chunk 256 110.19 us/op 127.53 us/op 0.86
pickEth1Vote - no votes 864.86 us/op 1.1709 ms/op 0.74
pickEth1Vote - max votes 9.2470 ms/op 9.5993 ms/op 0.96
pickEth1Vote - Eth1Data hashTreeRoot value x2048 17.102 ms/op 19.391 ms/op 0.88
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 29.139 ms/op 28.342 ms/op 1.03
pickEth1Vote - Eth1Data fastSerialize value x2048 402.65 us/op 545.08 us/op 0.74
pickEth1Vote - Eth1Data fastSerialize tree x2048 8.2533 ms/op 6.3564 ms/op 1.30
bytes32 toHexString 434.00 ns/op 462.00 ns/op 0.94
bytes32 Buffer.toString(hex) 312.00 ns/op 270.00 ns/op 1.16
bytes32 Buffer.toString(hex) from Uint8Array 423.00 ns/op 397.00 ns/op 1.07
bytes32 Buffer.toString(hex) + 0x 301.00 ns/op 273.00 ns/op 1.10
Object access 1 prop 0.18900 ns/op 0.15100 ns/op 1.25
Map access 1 prop 0.19000 ns/op 0.14100 ns/op 1.35
Object get x1000 4.8080 ns/op 7.6270 ns/op 0.63
Map get x1000 0.69700 ns/op 0.71300 ns/op 0.98
Object set x1000 24.575 ns/op 47.615 ns/op 0.52
Map set x1000 17.440 ns/op 37.223 ns/op 0.47
Return object 10000 times 0.21620 ns/op 0.22890 ns/op 0.94
Throw Error 10000 times 2.5982 us/op 3.7261 us/op 0.70
fastMsgIdFn sha256 / 200 bytes 1.8520 us/op 3.1310 us/op 0.59
fastMsgIdFn h32 xxhash / 200 bytes 281.00 ns/op 258.00 ns/op 1.09
fastMsgIdFn h64 xxhash / 200 bytes 329.00 ns/op 321.00 ns/op 1.02
fastMsgIdFn sha256 / 1000 bytes 5.9620 us/op 10.979 us/op 0.54
fastMsgIdFn h32 xxhash / 1000 bytes 396.00 ns/op 379.00 ns/op 1.04
fastMsgIdFn h64 xxhash / 1000 bytes 401.00 ns/op 396.00 ns/op 1.01
fastMsgIdFn sha256 / 10000 bytes 51.000 us/op 100.45 us/op 0.51
fastMsgIdFn h32 xxhash / 10000 bytes 1.7740 us/op 1.8310 us/op 0.97
fastMsgIdFn h64 xxhash / 10000 bytes 1.2210 us/op 1.2520 us/op 0.98
send data - 1000 256B messages 11.022 ms/op 18.062 ms/op 0.61
send data - 1000 512B messages 14.878 ms/op 24.565 ms/op 0.61
send data - 1000 1024B messages 22.126 ms/op 38.574 ms/op 0.57
send data - 1000 1200B messages 29.014 ms/op 37.016 ms/op 0.78
send data - 1000 2048B messages 33.157 ms/op 42.468 ms/op 0.78
send data - 1000 4096B messages 32.236 ms/op 39.643 ms/op 0.81
send data - 1000 16384B messages 81.760 ms/op 114.91 ms/op 0.71
send data - 1000 65536B messages 366.90 ms/op 475.41 ms/op 0.77
enrSubnets - fastDeserialize 64 bits 981.00 ns/op 1.2000 us/op 0.82
enrSubnets - ssz BitVector 64 bits 413.00 ns/op 419.00 ns/op 0.99
enrSubnets - fastDeserialize 4 bits 193.00 ns/op 164.00 ns/op 1.18
enrSubnets - ssz BitVector 4 bits 414.00 ns/op 416.00 ns/op 1.00
prioritizePeers score -10:0 att 32-0.1 sync 2-0 67.109 us/op 97.417 us/op 0.69
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 99.740 us/op 121.65 us/op 0.82
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 104.97 us/op 154.93 us/op 0.68
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 183.52 us/op 284.36 us/op 0.65
prioritizePeers score 0:0 att 64-1 sync 4-1 206.46 us/op 341.18 us/op 0.61
array of 16000 items push then shift 1.2832 us/op 1.5627 us/op 0.82
LinkedList of 16000 items push then shift 5.9300 ns/op 8.6560 ns/op 0.69
array of 16000 items push then pop 50.850 ns/op 70.072 ns/op 0.73
LinkedList of 16000 items push then pop 5.7350 ns/op 8.4640 ns/op 0.68
array of 24000 items push then shift 1.8895 us/op 2.3788 us/op 0.79
LinkedList of 24000 items push then shift 6.6100 ns/op 8.7990 ns/op 0.75
array of 24000 items push then pop 89.271 ns/op 95.100 ns/op 0.94
LinkedList of 24000 items push then pop 5.4880 ns/op 8.5320 ns/op 0.64
intersect bitArray bitLen 8 4.6430 ns/op 6.1570 ns/op 0.75
intersect array and set length 8 45.973 ns/op 59.855 ns/op 0.77
intersect bitArray bitLen 128 26.354 ns/op 32.709 ns/op 0.81
intersect array and set length 128 645.13 ns/op 838.17 ns/op 0.77
bitArray.getTrueBitIndexes() bitLen 128 1.1520 us/op 1.4000 us/op 0.82
bitArray.getTrueBitIndexes() bitLen 248 1.8940 us/op 2.3410 us/op 0.81
bitArray.getTrueBitIndexes() bitLen 512 3.5630 us/op 4.5570 us/op 0.78
Buffer.concat 32 items 879.00 ns/op 943.00 ns/op 0.93
Uint8Array.set 32 items 1.8570 us/op 1.8140 us/op 1.02
Set add up to 64 items then delete first 1.7345 us/op 4.2640 us/op 0.41
OrderedSet add up to 64 items then delete first 2.6507 us/op 5.3503 us/op 0.50
Set add up to 64 items then delete last 1.9733 us/op 4.5285 us/op 0.44
OrderedSet add up to 64 items then delete last 2.9474 us/op 5.6544 us/op 0.52
Set add up to 64 items then delete middle 1.9636 us/op 4.5275 us/op 0.43
OrderedSet add up to 64 items then delete middle 4.1766 us/op 6.9260 us/op 0.60
Set add up to 128 items then delete first 3.8857 us/op 9.2688 us/op 0.42
OrderedSet add up to 128 items then delete first 6.1359 us/op 12.223 us/op 0.50
Set add up to 128 items then delete last 3.7509 us/op 9.0973 us/op 0.41
OrderedSet add up to 128 items then delete last 5.7077 us/op 11.466 us/op 0.50
Set add up to 128 items then delete middle 3.7421 us/op 8.9614 us/op 0.42
OrderedSet add up to 128 items then delete middle 10.692 us/op 16.683 us/op 0.64
Set add up to 256 items then delete first 7.7055 us/op 18.453 us/op 0.42
OrderedSet add up to 256 items then delete first 12.157 us/op 25.008 us/op 0.49
Set add up to 256 items then delete last 7.5244 us/op 18.147 us/op 0.41
OrderedSet add up to 256 items then delete last 11.339 us/op 23.167 us/op 0.49
Set add up to 256 items then delete middle 7.3834 us/op 17.996 us/op 0.41
OrderedSet add up to 256 items then delete middle 30.805 us/op 45.472 us/op 0.68
transfer serialized Status (84 B) 1.5110 us/op 1.7040 us/op 0.89
copy serialized Status (84 B) 1.3190 us/op 1.4150 us/op 0.93
transfer serialized SignedVoluntaryExit (112 B) 1.6460 us/op 1.8360 us/op 0.90
copy serialized SignedVoluntaryExit (112 B) 1.4080 us/op 1.5000 us/op 0.94
transfer serialized ProposerSlashing (416 B) 2.2760 us/op 2.1780 us/op 1.04
copy serialized ProposerSlashing (416 B) 2.4910 us/op 2.2880 us/op 1.09
transfer serialized Attestation (485 B) 2.4640 us/op 2.6650 us/op 0.92
copy serialized Attestation (485 B) 2.5230 us/op 2.6910 us/op 0.94
transfer serialized AttesterSlashing (33232 B) 2.6830 us/op 2.8910 us/op 0.93
copy serialized AttesterSlashing (33232 B) 4.7900 us/op 5.8700 us/op 0.82
transfer serialized Small SignedBeaconBlock (128000 B) 2.7170 us/op 2.8870 us/op 0.94
copy serialized Small SignedBeaconBlock (128000 B) 9.0180 us/op 14.891 us/op 0.61
transfer serialized Avg SignedBeaconBlock (200000 B) 2.4170 us/op 3.3150 us/op 0.73
copy serialized Avg SignedBeaconBlock (200000 B) 12.473 us/op 20.901 us/op 0.60
transfer serialized BlobsSidecar (524380 B) 2.6000 us/op 3.1380 us/op 0.83
copy serialized BlobsSidecar (524380 B) 110.92 us/op 116.22 us/op 0.95
transfer serialized Big SignedBeaconBlock (1000000 B) 2.9720 us/op 3.2810 us/op 0.91
copy serialized Big SignedBeaconBlock (1000000 B) 240.65 us/op 152.15 us/op 1.58
pass gossip attestations to forkchoice per slot 2.7408 ms/op 3.8168 ms/op 0.72
forkChoice updateHead vc 100000 bc 64 eq 0 431.52 us/op 669.74 us/op 0.64
forkChoice updateHead vc 600000 bc 64 eq 0 2.6345 ms/op 4.4347 ms/op 0.59
forkChoice updateHead vc 1000000 bc 64 eq 0 4.4486 ms/op 6.9767 ms/op 0.64
forkChoice updateHead vc 600000 bc 320 eq 0 2.5869 ms/op 4.1915 ms/op 0.62
forkChoice updateHead vc 600000 bc 1200 eq 0 2.6626 ms/op 4.3422 ms/op 0.61
forkChoice updateHead vc 600000 bc 7200 eq 0 3.2157 ms/op 5.3508 ms/op 0.60
forkChoice updateHead vc 600000 bc 64 eq 1000 9.8834 ms/op 11.201 ms/op 0.88
forkChoice updateHead vc 600000 bc 64 eq 10000 9.7318 ms/op 11.766 ms/op 0.83
forkChoice updateHead vc 600000 bc 64 eq 300000 11.782 ms/op 15.797 ms/op 0.75
computeDeltas 500000 validators 300 proto nodes 3.0232 ms/op 6.4779 ms/op 0.47
computeDeltas 500000 validators 1200 proto nodes 3.0080 ms/op 6.4296 ms/op 0.47
computeDeltas 500000 validators 7200 proto nodes 3.0135 ms/op 6.2796 ms/op 0.48
computeDeltas 750000 validators 300 proto nodes 4.4509 ms/op 9.9190 ms/op 0.45
computeDeltas 750000 validators 1200 proto nodes 4.5139 ms/op 9.7638 ms/op 0.46
computeDeltas 750000 validators 7200 proto nodes 4.4903 ms/op 9.8104 ms/op 0.46
computeDeltas 1400000 validators 300 proto nodes 8.8628 ms/op 19.224 ms/op 0.46
computeDeltas 1400000 validators 1200 proto nodes 8.7404 ms/op 19.975 ms/op 0.44
computeDeltas 1400000 validators 7200 proto nodes 8.5730 ms/op 19.938 ms/op 0.43
computeDeltas 2100000 validators 300 proto nodes 13.368 ms/op 28.405 ms/op 0.47
computeDeltas 2100000 validators 1200 proto nodes 13.516 ms/op 28.749 ms/op 0.47
computeDeltas 2100000 validators 7200 proto nodes 12.959 ms/op 27.122 ms/op 0.48
computeProposerBoostScoreFromBalances 500000 validators 3.2674 ms/op 3.6909 ms/op 0.89
computeProposerBoostScoreFromBalances 750000 validators 3.2299 ms/op 3.6891 ms/op 0.88
computeProposerBoostScoreFromBalances 1400000 validators 3.1821 ms/op 3.6315 ms/op 0.88
computeProposerBoostScoreFromBalances 2100000 validators 3.2230 ms/op 3.6951 ms/op 0.87
altair processAttestation - 250000 vs - 7PWei normalcase 1.5544 ms/op 2.2976 ms/op 0.68
altair processAttestation - 250000 vs - 7PWei worstcase 2.3381 ms/op 3.4650 ms/op 0.67
altair processAttestation - setStatus - 1/6 committees join 77.331 us/op 174.66 us/op 0.44
altair processAttestation - setStatus - 1/3 committees join 140.89 us/op 337.44 us/op 0.42
altair processAttestation - setStatus - 1/2 committees join 217.74 us/op 457.31 us/op 0.48
altair processAttestation - setStatus - 2/3 committees join 293.90 us/op 571.63 us/op 0.51
altair processAttestation - setStatus - 4/5 committees join 405.55 us/op 770.10 us/op 0.53
altair processAttestation - setStatus - 100% committees join 471.87 us/op 894.23 us/op 0.53
altair processBlock - 250000 vs - 7PWei normalcase 7.8705 ms/op 9.7272 ms/op 0.81
altair processBlock - 250000 vs - 7PWei normalcase hashState 27.571 ms/op 39.148 ms/op 0.70
altair processBlock - 250000 vs - 7PWei worstcase 32.839 ms/op 36.169 ms/op 0.91
altair processBlock - 250000 vs - 7PWei worstcase hashState 75.186 ms/op 95.194 ms/op 0.79
phase0 processBlock - 250000 vs - 7PWei normalcase 2.3118 ms/op 2.4537 ms/op 0.94
phase0 processBlock - 250000 vs - 7PWei worstcase 27.375 ms/op 29.315 ms/op 0.93
altair processEth1Data - 250000 vs - 7PWei normalcase 296.29 us/op 556.86 us/op 0.53
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 3.6390 us/op 8.8090 us/op 0.41
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 26.137 us/op 57.586 us/op 0.45
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 13.994 us/op 14.672 us/op 0.95
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 8.7970 us/op 9.6140 us/op 0.92
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 145.76 us/op 158.67 us/op 0.92
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1301 ms/op 1.0226 ms/op 1.11
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.3981 ms/op 1.4569 ms/op 0.96
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.4127 ms/op 1.7823 ms/op 0.79
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.0623 ms/op 3.0851 ms/op 0.67
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.4874 ms/op 2.1766 ms/op 0.68
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.4124 ms/op 5.0731 ms/op 0.67
Tree 40 250000 create 252.13 ms/op 337.58 ms/op 0.75
Tree 40 250000 get(125000) 120.62 ns/op 185.54 ns/op 0.65
Tree 40 250000 set(125000) 744.75 ns/op 990.76 ns/op 0.75
Tree 40 250000 toArray() 9.4976 ms/op 18.397 ms/op 0.52
Tree 40 250000 iterate all - toArray() + loop 9.4867 ms/op 18.398 ms/op 0.52
Tree 40 250000 iterate all - get(i) 37.462 ms/op 63.738 ms/op 0.59
MutableVector 250000 create 12.190 ms/op 11.663 ms/op 1.05
MutableVector 250000 get(125000) 5.4850 ns/op 6.5010 ns/op 0.84
MutableVector 250000 set(125000) 208.56 ns/op 268.93 ns/op 0.78
MutableVector 250000 toArray() 2.3527 ms/op 3.1295 ms/op 0.75
MutableVector 250000 iterate all - toArray() + loop 3.0481 ms/op 3.2592 ms/op 0.94
MutableVector 250000 iterate all - get(i) 1.2895 ms/op 1.5257 ms/op 0.85
Array 250000 create 2.3526 ms/op 3.2357 ms/op 0.73
Array 250000 clone - spread 1.0311 ms/op 1.2026 ms/op 0.86
Array 250000 get(125000) 0.95800 ns/op 0.99000 ns/op 0.97
Array 250000 set(125000) 1.1520 ns/op 3.9880 ns/op 0.29
Array 250000 iterate all - loop 147.85 us/op 162.19 us/op 0.91
effectiveBalanceIncrements clone Uint8Array 300000 19.575 us/op 23.957 us/op 0.82
effectiveBalanceIncrements clone MutableVector 300000 361.00 ns/op 335.00 ns/op 1.08
effectiveBalanceIncrements rw all Uint8Array 300000 177.71 us/op 195.90 us/op 0.91
effectiveBalanceIncrements rw all MutableVector 300000 62.015 ms/op 78.874 ms/op 0.79
phase0 afterProcessEpoch - 250000 vs - 7PWei 71.084 ms/op 111.37 ms/op 0.64
phase0 beforeProcessEpoch - 250000 vs - 7PWei 45.353 ms/op 53.056 ms/op 0.85
altair processEpoch - mainnet_e81889 421.95 ms/op 473.93 ms/op 0.89
mainnet_e81889 - altair beforeProcessEpoch 69.302 ms/op 85.708 ms/op 0.81
mainnet_e81889 - altair processJustificationAndFinalization 10.485 us/op 14.236 us/op 0.74
mainnet_e81889 - altair processInactivityUpdates 3.7440 ms/op 5.7833 ms/op 0.65
mainnet_e81889 - altair processRewardsAndPenalties 62.217 ms/op 40.335 ms/op 1.54
mainnet_e81889 - altair processRegistryUpdates 1.4210 us/op 2.4680 us/op 0.58
mainnet_e81889 - altair processSlashings 535.00 ns/op 437.00 ns/op 1.22
mainnet_e81889 - altair processEth1DataReset 556.00 ns/op 468.00 ns/op 1.19
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.7520 ms/op 1.4155 ms/op 1.24
mainnet_e81889 - altair processSlashingsReset 2.4080 us/op 3.6480 us/op 0.66
mainnet_e81889 - altair processRandaoMixesReset 2.9190 us/op 3.9140 us/op 0.75
mainnet_e81889 - altair processHistoricalRootsUpdate 715.00 ns/op 728.00 ns/op 0.98
mainnet_e81889 - altair processParticipationFlagUpdates 1.9610 us/op 1.3640 us/op 1.44
mainnet_e81889 - altair processSyncCommitteeUpdates 672.00 ns/op 766.00 ns/op 0.88
mainnet_e81889 - altair afterProcessEpoch 73.564 ms/op 117.03 ms/op 0.63
capella processEpoch - mainnet_e217614 1.8237 s/op 2.1229 s/op 0.86
mainnet_e217614 - capella beforeProcessEpoch 423.26 ms/op 508.69 ms/op 0.83
mainnet_e217614 - capella processJustificationAndFinalization 10.830 us/op 19.084 us/op 0.57
mainnet_e217614 - capella processInactivityUpdates 19.157 ms/op 22.746 ms/op 0.84
mainnet_e217614 - capella processRewardsAndPenalties 395.25 ms/op 423.24 ms/op 0.93
mainnet_e217614 - capella processRegistryUpdates 17.562 us/op 15.091 us/op 1.16
mainnet_e217614 - capella processSlashings 558.00 ns/op 549.00 ns/op 1.02
mainnet_e217614 - capella processEth1DataReset 639.00 ns/op 589.00 ns/op 1.08
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.7270 ms/op 4.5279 ms/op 0.82
mainnet_e217614 - capella processSlashingsReset 1.9350 us/op 2.8050 us/op 0.69
mainnet_e217614 - capella processRandaoMixesReset 2.9380 us/op 3.8930 us/op 0.75
mainnet_e217614 - capella processHistoricalRootsUpdate 554.00 ns/op 508.00 ns/op 1.09
mainnet_e217614 - capella processParticipationFlagUpdates 1.4380 us/op 1.3440 us/op 1.07
mainnet_e217614 - capella afterProcessEpoch 212.26 ms/op 297.78 ms/op 0.71
phase0 processEpoch - mainnet_e58758 403.12 ms/op 433.37 ms/op 0.93
mainnet_e58758 - phase0 beforeProcessEpoch 103.31 ms/op 130.84 ms/op 0.79
mainnet_e58758 - phase0 processJustificationAndFinalization 12.939 us/op 15.624 us/op 0.83
mainnet_e58758 - phase0 processRewardsAndPenalties 49.912 ms/op 55.248 ms/op 0.90
mainnet_e58758 - phase0 processRegistryUpdates 6.8030 us/op 8.8390 us/op 0.77
mainnet_e58758 - phase0 processSlashings 578.00 ns/op 552.00 ns/op 1.05
mainnet_e58758 - phase0 processEth1DataReset 502.00 ns/op 414.00 ns/op 1.21
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.3984 ms/op 1.1546 ms/op 1.21
mainnet_e58758 - phase0 processSlashingsReset 2.9880 us/op 2.6470 us/op 1.13
mainnet_e58758 - phase0 processRandaoMixesReset 2.7630 us/op 3.9840 us/op 0.69
mainnet_e58758 - phase0 processHistoricalRootsUpdate 632.00 ns/op 513.00 ns/op 1.23
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.7660 us/op 3.0810 us/op 1.22
mainnet_e58758 - phase0 afterProcessEpoch 64.209 ms/op 93.998 ms/op 0.68
phase0 processEffectiveBalanceUpdates - 250000 normalcase 973.05 us/op 1.3423 ms/op 0.72
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.0839 ms/op 1.4540 ms/op 0.75
altair processInactivityUpdates - 250000 normalcase 21.773 ms/op 19.719 ms/op 1.10
altair processInactivityUpdates - 250000 worstcase 22.229 ms/op 20.381 ms/op 1.09
phase0 processRegistryUpdates - 250000 normalcase 6.4830 us/op 7.7090 us/op 0.84
phase0 processRegistryUpdates - 250000 badcase_full_deposits 300.60 us/op 324.44 us/op 0.93
phase0 processRegistryUpdates - 250000 worstcase 0.5 110.72 ms/op 136.58 ms/op 0.81
altair processRewardsAndPenalties - 250000 normalcase 45.700 ms/op 54.865 ms/op 0.83
altair processRewardsAndPenalties - 250000 worstcase 48.553 ms/op 52.677 ms/op 0.92
phase0 getAttestationDeltas - 250000 normalcase 5.5971 ms/op 8.8107 ms/op 0.64
phase0 getAttestationDeltas - 250000 worstcase 5.2809 ms/op 8.7546 ms/op 0.60
phase0 processSlashings - 250000 worstcase 82.650 us/op 80.714 us/op 1.02
altair processSyncCommitteeUpdates - 250000 103.89 ms/op 153.30 ms/op 0.68
BeaconState.hashTreeRoot - No change 334.00 ns/op 249.00 ns/op 1.34
BeaconState.hashTreeRoot - 1 full validator 132.98 us/op 141.25 us/op 0.94
BeaconState.hashTreeRoot - 32 full validator 1.2603 ms/op 1.4439 ms/op 0.87
BeaconState.hashTreeRoot - 512 full validator 10.581 ms/op 15.542 ms/op 0.68
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 130.83 us/op 178.55 us/op 0.73
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.7700 ms/op 1.9376 ms/op 0.91
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 30.946 ms/op 24.513 ms/op 1.26
BeaconState.hashTreeRoot - 1 balances 150.91 us/op 114.10 us/op 1.32
BeaconState.hashTreeRoot - 32 balances 1.2668 ms/op 1.2865 ms/op 0.98
BeaconState.hashTreeRoot - 512 balances 10.476 ms/op 12.754 ms/op 0.82
BeaconState.hashTreeRoot - 250000 balances 140.60 ms/op 195.30 ms/op 0.72
aggregationBits - 2048 els - zipIndexesInBitList 10.764 us/op 17.936 us/op 0.60
byteArrayEquals 32 64.397 ns/op 74.637 ns/op 0.86
Buffer.compare 32 38.320 ns/op 55.750 ns/op 0.69
byteArrayEquals 1024 1.7402 us/op 2.0238 us/op 0.86
Buffer.compare 1024 45.779 ns/op 71.613 ns/op 0.64
byteArrayEquals 16384 28.410 us/op 32.407 us/op 0.88
Buffer.compare 16384 224.60 ns/op 269.58 ns/op 0.83
byteArrayEquals 123687377 208.50 ms/op 250.99 ms/op 0.83
Buffer.compare 123687377 3.8479 ms/op 6.0576 ms/op 0.64
byteArrayEquals 32 - diff last byte 61.989 ns/op 72.948 ns/op 0.85
Buffer.compare 32 - diff last byte 38.515 ns/op 57.415 ns/op 0.67
byteArrayEquals 1024 - diff last byte 1.7640 us/op 2.0577 us/op 0.86
Buffer.compare 1024 - diff last byte 47.572 ns/op 74.485 ns/op 0.64
byteArrayEquals 16384 - diff last byte 28.009 us/op 32.743 us/op 0.86
Buffer.compare 16384 - diff last byte 221.84 ns/op 246.12 ns/op 0.90
byteArrayEquals 123687377 - diff last byte 207.03 ms/op 244.31 ms/op 0.85
Buffer.compare 123687377 - diff last byte 4.2075 ms/op 6.1137 ms/op 0.69
byteArrayEquals 32 - random bytes 4.2770 ns/op 5.2610 ns/op 0.81
Buffer.compare 32 - random bytes 35.498 ns/op 58.940 ns/op 0.60
byteArrayEquals 1024 - random bytes 4.1220 ns/op 7.1830 ns/op 0.57
Buffer.compare 1024 - random bytes 33.663 ns/op 58.367 ns/op 0.58
byteArrayEquals 16384 - random bytes 4.1250 ns/op 5.0540 ns/op 0.82
Buffer.compare 16384 - random bytes 33.714 ns/op 58.420 ns/op 0.58
byteArrayEquals 123687377 - random bytes 7.1800 ns/op 8.2100 ns/op 0.87
Buffer.compare 123687377 - random bytes 36.250 ns/op 61.670 ns/op 0.59
regular array get 100000 times 37.704 us/op 43.019 us/op 0.88
wrappedArray get 100000 times 37.909 us/op 43.036 us/op 0.88
arrayWithProxy get 100000 times 9.3330 ms/op 14.372 ms/op 0.65
ssz.Root.equals 51.067 ns/op 52.394 ns/op 0.97
byteArrayEquals 50.216 ns/op 51.289 ns/op 0.98
Buffer.compare 8.4670 ns/op 10.448 ns/op 0.81
shuffle list - 16384 els 4.2483 ms/op 6.8176 ms/op 0.62
shuffle list - 250000 els 61.946 ms/op 99.671 ms/op 0.62
processSlot - 1 slots 17.301 us/op 16.120 us/op 1.07
processSlot - 32 slots 3.1959 ms/op 3.2216 ms/op 0.99
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 54.648 ms/op 58.393 ms/op 0.94
getCommitteeAssignments - req 1 vs - 250000 vc 2.3042 ms/op 2.4537 ms/op 0.94
getCommitteeAssignments - req 100 vs - 250000 vc 3.3741 ms/op 3.6239 ms/op 0.93
getCommitteeAssignments - req 1000 vs - 250000 vc 3.6822 ms/op 4.0692 ms/op 0.90
findModifiedValidators - 10000 modified validators 425.07 ms/op 530.92 ms/op 0.80
findModifiedValidators - 1000 modified validators 284.12 ms/op 421.67 ms/op 0.67
findModifiedValidators - 100 modified validators 297.69 ms/op 420.65 ms/op 0.71
findModifiedValidators - 10 modified validators 305.73 ms/op 388.59 ms/op 0.79
findModifiedValidators - 1 modified validators 284.02 ms/op 395.21 ms/op 0.72
findModifiedValidators - no difference 309.57 ms/op 409.10 ms/op 0.76
compare ViewDUs 3.8602 s/op 4.3091 s/op 0.90
compare each validator Uint8Array 1.6330 s/op 1.8792 s/op 0.87
compare ViewDU to Uint8Array 762.37 ms/op 1.1009 s/op 0.69
migrate state 1000000 validators, 24 modified, 0 new 743.03 ms/op 766.10 ms/op 0.97
migrate state 1000000 validators, 1700 modified, 1000 new 1.0201 s/op 1.0694 s/op 0.95
migrate state 1000000 validators, 3400 modified, 2000 new 1.2678 s/op 1.3239 s/op 0.96
migrate state 1500000 validators, 24 modified, 0 new 744.37 ms/op 791.93 ms/op 0.94
migrate state 1500000 validators, 1700 modified, 1000 new 992.72 ms/op 1.1054 s/op 0.90
migrate state 1500000 validators, 3400 modified, 2000 new 1.1976 s/op 1.3488 s/op 0.89
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.3500 ns/op 4.3000 ns/op 1.01
state getBlockRootAtSlot - 250000 vs - 7PWei 770.70 ns/op 535.22 ns/op 1.44
computeProposers - vc 250000 6.4690 ms/op 9.0298 ms/op 0.72
computeEpochShuffling - vc 250000 64.321 ms/op 103.55 ms/op 0.62
getNextSyncCommittee - vc 250000 105.77 ms/op 153.41 ms/op 0.69
computeSigningRoot for AttestationData 23.695 us/op 23.317 us/op 1.02
hash AttestationData serialized data then Buffer.toString(base64) 1.1664 us/op 2.3464 us/op 0.50
toHexString serialized data 748.81 ns/op 1.1035 us/op 0.68
Buffer.toString(base64) 141.95 ns/op 217.37 ns/op 0.65

by benchmarkbot/action

@g11tech g11tech merged commit bd83b09 into unstable Dec 27, 2023
15 checks passed
@g11tech g11tech deleted the inclusion-proof-cleanup branch December 27, 2023 01:18
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.14.0 🎉

ensi321 pushed a commit to ensi321/lodestar that referenced this pull request Jan 22, 2024
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