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: cleanup usage of blinded types #6903

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Conversation

nazarhussain
Copy link
Contributor

Motivation

We don't want to hide or shadow an actual consensus type name. And as defined in params package the blinded is not a defined fork group, so rather tend to use actual group name everywhere which is execution.

Description

  • Based on discussion we dont want to hide/shadow an actual type. The blinded types implementation renames types, e.g. BlindedBeaconBlock to BeaconBlock. Which is another consensus type. No such pattern used elsewhere for other fork groups.

  • Blinded itself is not defined as a fork group in params package, so keeping that implementation requires an extra effort.

Steps to test or reproduce

  • Run all tests

@nazarhussain nazarhussain requested a review from a team as a code owner June 24, 2024 08:14
@nazarhussain nazarhussain self-assigned this Jun 24, 2024
Copy link

codecov bot commented Jun 24, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 62.54%. Comparing base (802a875) to head (3675a0a).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #6903      +/-   ##
============================================
- Coverage     62.56%   62.54%   -0.03%     
============================================
  Files           575      575              
  Lines         61066    61012      -54     
  Branches       2122     2112      -10     
============================================
- Hits          38208    38161      -47     
+ Misses        22819    22812       -7     
  Partials         39       39              

Copy link
Contributor

github-actions bot commented Jun 24, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: d6b8453 Previous: 802a875 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 752.52 us/op 1.0852 ms/op 0.69
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 57.607 us/op 64.850 us/op 0.89
BLS verify - blst-native 1.2461 ms/op 1.1120 ms/op 1.12
BLS verifyMultipleSignatures 3 - blst-native 2.5997 ms/op 2.3449 ms/op 1.11
BLS verifyMultipleSignatures 8 - blst-native 5.7992 ms/op 5.1609 ms/op 1.12
BLS verifyMultipleSignatures 32 - blst-native 21.129 ms/op 19.087 ms/op 1.11
BLS verifyMultipleSignatures 64 - blst-native 41.433 ms/op 37.631 ms/op 1.10
BLS verifyMultipleSignatures 128 - blst-native 82.095 ms/op 75.129 ms/op 1.09
BLS deserializing 10000 signatures 869.62 ms/op 799.44 ms/op 1.09
BLS deserializing 100000 signatures 9.0525 s/op 8.3743 s/op 1.08
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.3074 ms/op 1.1842 ms/op 1.10
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.5399 ms/op 1.3262 ms/op 1.16
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.3110 ms/op 2.3399 ms/op 0.99
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.4449 ms/op 3.0946 ms/op 1.11
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.5313 ms/op 6.1635 ms/op 1.06
BLS aggregatePubkeys 32 - blst-native 29.339 us/op 23.840 us/op 1.23
BLS aggregatePubkeys 128 - blst-native 102.31 us/op 90.553 us/op 1.13
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 75.415 ms/op 86.646 ms/op 0.87
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 57.305 ms/op 90.338 ms/op 0.63
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 37.790 ms/op 36.436 ms/op 1.04
getSlashingsAndExits - default max 119.78 us/op 104.02 us/op 1.15
getSlashingsAndExits - 2k 326.28 us/op 372.87 us/op 0.88
proposeBlockBody type=full, size=empty 6.0603 ms/op 5.1867 ms/op 1.17
isKnown best case - 1 super set check 432.00 ns/op 650.00 ns/op 0.66
isKnown normal case - 2 super set checks 370.00 ns/op 621.00 ns/op 0.60
isKnown worse case - 16 super set checks 332.00 ns/op 589.00 ns/op 0.56
InMemoryCheckpointStateCache - add get delete 5.5420 us/op 5.0660 us/op 1.09
validate api signedAggregateAndProof - struct 2.8193 ms/op 2.3866 ms/op 1.18
validate gossip signedAggregateAndProof - struct 2.7364 ms/op 2.3871 ms/op 1.15
validate gossip attestation - vc 640000 1.3294 ms/op 1.1370 ms/op 1.17
batch validate gossip attestation - vc 640000 - chunk 32 160.29 us/op 138.41 us/op 1.16
batch validate gossip attestation - vc 640000 - chunk 64 146.47 us/op 117.97 us/op 1.24
batch validate gossip attestation - vc 640000 - chunk 128 131.65 us/op 112.10 us/op 1.17
batch validate gossip attestation - vc 640000 - chunk 256 130.78 us/op 110.52 us/op 1.18
pickEth1Vote - no votes 1.3695 ms/op 826.07 us/op 1.66
pickEth1Vote - max votes 12.494 ms/op 8.7598 ms/op 1.43
pickEth1Vote - Eth1Data hashTreeRoot value x2048 16.395 ms/op 15.484 ms/op 1.06
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 21.231 ms/op 16.118 ms/op 1.32
pickEth1Vote - Eth1Data fastSerialize value x2048 538.63 us/op 408.83 us/op 1.32
pickEth1Vote - Eth1Data fastSerialize tree x2048 4.3599 ms/op 3.6099 ms/op 1.21
bytes32 toHexString 576.00 ns/op 652.00 ns/op 0.88
bytes32 Buffer.toString(hex) 267.00 ns/op 493.00 ns/op 0.54
bytes32 Buffer.toString(hex) from Uint8Array 453.00 ns/op 615.00 ns/op 0.74
bytes32 Buffer.toString(hex) + 0x 260.00 ns/op 486.00 ns/op 0.53
Object access 1 prop 0.16300 ns/op 0.33100 ns/op 0.49
Map access 1 prop 0.15100 ns/op 0.32000 ns/op 0.47
Object get x1000 6.2800 ns/op 5.0810 ns/op 1.24
Map get x1000 6.7210 ns/op 5.7020 ns/op 1.18
Object set x1000 39.382 ns/op 26.742 ns/op 1.47
Map set x1000 26.429 ns/op 21.663 ns/op 1.22
Return object 10000 times 0.31320 ns/op 0.29950 ns/op 1.05
Throw Error 10000 times 3.4012 us/op 2.6616 us/op 1.28
fastMsgIdFn sha256 / 200 bytes 2.3230 us/op 2.0580 us/op 1.13
fastMsgIdFn h32 xxhash / 200 bytes 281.00 ns/op 462.00 ns/op 0.61
fastMsgIdFn h64 xxhash / 200 bytes 299.00 ns/op 504.00 ns/op 0.59
fastMsgIdFn sha256 / 1000 bytes 7.6290 us/op 5.9760 us/op 1.28
fastMsgIdFn h32 xxhash / 1000 bytes 439.00 ns/op 595.00 ns/op 0.74
fastMsgIdFn h64 xxhash / 1000 bytes 360.00 ns/op 557.00 ns/op 0.65
fastMsgIdFn sha256 / 10000 bytes 67.591 us/op 50.924 us/op 1.33
fastMsgIdFn h32 xxhash / 10000 bytes 2.0330 us/op 1.9980 us/op 1.02
fastMsgIdFn h64 xxhash / 10000 bytes 1.3230 us/op 1.4020 us/op 0.94
send data - 1000 256B messages 14.869 ms/op 12.081 ms/op 1.23
send data - 1000 512B messages 19.105 ms/op 17.095 ms/op 1.12
send data - 1000 1024B messages 28.791 ms/op 23.829 ms/op 1.21
send data - 1000 1200B messages 31.075 ms/op 25.623 ms/op 1.21
send data - 1000 2048B messages 35.394 ms/op 34.531 ms/op 1.02
send data - 1000 4096B messages 36.314 ms/op 29.266 ms/op 1.24
send data - 1000 16384B messages 81.267 ms/op 74.462 ms/op 1.09
send data - 1000 65536B messages 229.58 ms/op 287.00 ms/op 0.80
enrSubnets - fastDeserialize 64 bits 1.0790 us/op 1.5080 us/op 0.72
enrSubnets - ssz BitVector 64 bits 368.00 ns/op 646.00 ns/op 0.57
enrSubnets - fastDeserialize 4 bits 166.00 ns/op 403.00 ns/op 0.41
enrSubnets - ssz BitVector 4 bits 382.00 ns/op 654.00 ns/op 0.58
prioritizePeers score -10:0 att 32-0.1 sync 2-0 149.36 us/op 162.65 us/op 0.92
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 171.61 us/op 146.75 us/op 1.17
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 302.68 us/op 317.67 us/op 0.95
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 507.57 us/op 552.51 us/op 0.92
prioritizePeers score 0:0 att 64-1 sync 4-1 616.59 us/op 752.31 us/op 0.82
array of 16000 items push then shift 1.8027 us/op 1.3838 us/op 1.30
LinkedList of 16000 items push then shift 8.0250 ns/op 6.8550 ns/op 1.17
array of 16000 items push then pop 124.70 ns/op 107.18 ns/op 1.16
LinkedList of 16000 items push then pop 7.4240 ns/op 6.5430 ns/op 1.13
array of 24000 items push then shift 2.5508 us/op 2.0089 us/op 1.27
LinkedList of 24000 items push then shift 9.4210 ns/op 6.9710 ns/op 1.35
array of 24000 items push then pop 157.12 ns/op 139.48 ns/op 1.13
LinkedList of 24000 items push then pop 8.0600 ns/op 6.9780 ns/op 1.16
intersect bitArray bitLen 8 6.8980 ns/op 5.7520 ns/op 1.20
intersect array and set length 8 47.003 ns/op 41.457 ns/op 1.13
intersect bitArray bitLen 128 30.977 ns/op 27.471 ns/op 1.13
intersect array and set length 128 790.13 ns/op 617.31 ns/op 1.28
bitArray.getTrueBitIndexes() bitLen 128 1.2090 us/op 2.4990 us/op 0.48
bitArray.getTrueBitIndexes() bitLen 248 2.2390 us/op 3.8880 us/op 0.58
bitArray.getTrueBitIndexes() bitLen 512 4.5440 us/op 8.7350 us/op 0.52
Buffer.concat 32 items 1.0320 us/op 1.1330 us/op 0.91
Uint8Array.set 32 items 1.7030 us/op 1.7880 us/op 0.95
Buffer.copy 1.9640 us/op 1.8990 us/op 1.03
Uint8Array.set - with subarray 2.8700 us/op 2.9360 us/op 0.98
Uint8Array.set - without subarray 1.4110 us/op 1.7110 us/op 0.82
Set add up to 64 items then delete first 2.2890 us/op 2.0190 us/op 1.13
OrderedSet add up to 64 items then delete first 3.4059 us/op 3.3781 us/op 1.01
Set add up to 64 items then delete last 2.6396 us/op 2.5659 us/op 1.03
OrderedSet add up to 64 items then delete last 4.3215 us/op 3.3309 us/op 1.30
Set add up to 64 items then delete middle 2.6458 us/op 2.2660 us/op 1.17
OrderedSet add up to 64 items then delete middle 5.7423 us/op 5.1185 us/op 1.12
Set add up to 128 items then delete first 5.4994 us/op 4.4050 us/op 1.25
OrderedSet add up to 128 items then delete first 8.1703 us/op 6.6532 us/op 1.23
Set add up to 128 items then delete last 4.8174 us/op 4.2978 us/op 1.12
OrderedSet add up to 128 items then delete last 7.4253 us/op 7.0893 us/op 1.05
Set add up to 128 items then delete middle 5.4070 us/op 4.2366 us/op 1.28
OrderedSet add up to 128 items then delete middle 14.198 us/op 11.835 us/op 1.20
Set add up to 256 items then delete first 11.373 us/op 8.2686 us/op 1.38
OrderedSet add up to 256 items then delete first 17.068 us/op 15.928 us/op 1.07
Set add up to 256 items then delete last 10.776 us/op 9.7556 us/op 1.10
OrderedSet add up to 256 items then delete last 15.155 us/op 17.401 us/op 0.87
Set add up to 256 items then delete middle 10.637 us/op 9.7602 us/op 1.09
OrderedSet add up to 256 items then delete middle 44.397 us/op 40.184 us/op 1.10
transfer serialized Status (84 B) 1.3690 us/op 1.6000 us/op 0.86
copy serialized Status (84 B) 1.1710 us/op 1.3020 us/op 0.90
transfer serialized SignedVoluntaryExit (112 B) 1.4330 us/op 1.6390 us/op 0.87
copy serialized SignedVoluntaryExit (112 B) 1.2300 us/op 1.3370 us/op 0.92
transfer serialized ProposerSlashing (416 B) 1.7370 us/op 1.9800 us/op 0.88
copy serialized ProposerSlashing (416 B) 1.7670 us/op 2.5780 us/op 0.69
transfer serialized Attestation (485 B) 1.8460 us/op 2.3700 us/op 0.78
copy serialized Attestation (485 B) 2.0270 us/op 2.1680 us/op 0.93
transfer serialized AttesterSlashing (33232 B) 2.3260 us/op 2.2440 us/op 1.04
copy serialized AttesterSlashing (33232 B) 4.8280 us/op 5.9620 us/op 0.81
transfer serialized Small SignedBeaconBlock (128000 B) 2.2230 us/op 3.4240 us/op 0.65
copy serialized Small SignedBeaconBlock (128000 B) 20.008 us/op 12.234 us/op 1.64
transfer serialized Avg SignedBeaconBlock (200000 B) 3.6940 us/op 3.4960 us/op 1.06
copy serialized Avg SignedBeaconBlock (200000 B) 30.254 us/op 16.459 us/op 1.84
transfer serialized BlobsSidecar (524380 B) 3.8480 us/op 3.7290 us/op 1.03
copy serialized BlobsSidecar (524380 B) 89.577 us/op 89.784 us/op 1.00
transfer serialized Big SignedBeaconBlock (1000000 B) 3.9540 us/op 3.8470 us/op 1.03
copy serialized Big SignedBeaconBlock (1000000 B) 189.82 us/op 292.40 us/op 0.65
pass gossip attestations to forkchoice per slot 3.2257 ms/op 2.7796 ms/op 1.16
forkChoice updateHead vc 100000 bc 64 eq 0 510.85 us/op 445.87 us/op 1.15
forkChoice updateHead vc 600000 bc 64 eq 0 3.6240 ms/op 2.5858 ms/op 1.40
forkChoice updateHead vc 1000000 bc 64 eq 0 5.7650 ms/op 4.5044 ms/op 1.28
forkChoice updateHead vc 600000 bc 320 eq 0 3.5554 ms/op 2.6739 ms/op 1.33
forkChoice updateHead vc 600000 bc 1200 eq 0 3.7918 ms/op 2.7061 ms/op 1.40
forkChoice updateHead vc 600000 bc 7200 eq 0 4.6687 ms/op 3.3750 ms/op 1.38
forkChoice updateHead vc 600000 bc 64 eq 1000 11.330 ms/op 9.9977 ms/op 1.13
forkChoice updateHead vc 600000 bc 64 eq 10000 11.299 ms/op 9.8087 ms/op 1.15
forkChoice updateHead vc 600000 bc 64 eq 300000 22.245 ms/op 12.480 ms/op 1.78
computeDeltas 500000 validators 300 proto nodes 4.8486 ms/op 3.3217 ms/op 1.46
computeDeltas 500000 validators 1200 proto nodes 4.2042 ms/op 3.2379 ms/op 1.30
computeDeltas 500000 validators 7200 proto nodes 4.5284 ms/op 3.1865 ms/op 1.42
computeDeltas 750000 validators 300 proto nodes 7.6628 ms/op 4.8874 ms/op 1.57
computeDeltas 750000 validators 1200 proto nodes 6.3345 ms/op 4.6406 ms/op 1.37
computeDeltas 750000 validators 7200 proto nodes 6.0116 ms/op 4.4923 ms/op 1.34
computeDeltas 1400000 validators 300 proto nodes 11.263 ms/op 8.9092 ms/op 1.26
computeDeltas 1400000 validators 1200 proto nodes 11.014 ms/op 9.0300 ms/op 1.22
computeDeltas 1400000 validators 7200 proto nodes 11.209 ms/op 8.9522 ms/op 1.25
computeDeltas 2100000 validators 300 proto nodes 16.708 ms/op 14.587 ms/op 1.15
computeDeltas 2100000 validators 1200 proto nodes 16.848 ms/op 14.250 ms/op 1.18
computeDeltas 2100000 validators 7200 proto nodes 16.047 ms/op 13.783 ms/op 1.16
altair processAttestation - 250000 vs - 7PWei normalcase 2.2559 ms/op 1.9626 ms/op 1.15
altair processAttestation - 250000 vs - 7PWei worstcase 2.8049 ms/op 3.3882 ms/op 0.83
altair processAttestation - setStatus - 1/6 committees join 100.11 us/op 134.64 us/op 0.74
altair processAttestation - setStatus - 1/3 committees join 192.53 us/op 213.54 us/op 0.90
altair processAttestation - setStatus - 1/2 committees join 273.95 us/op 335.88 us/op 0.82
altair processAttestation - setStatus - 2/3 committees join 356.12 us/op 379.08 us/op 0.94
altair processAttestation - setStatus - 4/5 committees join 503.42 us/op 527.73 us/op 0.95
altair processAttestation - setStatus - 100% committees join 631.14 us/op 653.85 us/op 0.97
altair processBlock - 250000 vs - 7PWei normalcase 6.9526 ms/op 6.3284 ms/op 1.10
altair processBlock - 250000 vs - 7PWei normalcase hashState 30.610 ms/op 31.408 ms/op 0.97
altair processBlock - 250000 vs - 7PWei worstcase 47.486 ms/op 41.675 ms/op 1.14
altair processBlock - 250000 vs - 7PWei worstcase hashState 91.940 ms/op 74.173 ms/op 1.24
phase0 processBlock - 250000 vs - 7PWei normalcase 2.3989 ms/op 1.7508 ms/op 1.37
phase0 processBlock - 250000 vs - 7PWei worstcase 32.201 ms/op 33.545 ms/op 0.96
altair processEth1Data - 250000 vs - 7PWei normalcase 594.51 us/op 270.83 us/op 2.20
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 11.081 us/op 5.9100 us/op 1.87
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 41.432 us/op 21.540 us/op 1.92
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 14.044 us/op 8.6410 us/op 1.63
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 10.673 us/op 6.5420 us/op 1.63
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 145.30 us/op 83.436 us/op 1.74
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 878.85 us/op 727.67 us/op 1.21
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.2747 ms/op 806.29 us/op 1.58
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.2114 ms/op 972.05 us/op 1.25
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.3796 ms/op 2.2850 ms/op 1.48
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.2246 ms/op 1.4604 ms/op 1.52
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.1806 ms/op 3.5706 ms/op 1.17
Tree 40 250000 create 267.95 ms/op 255.64 ms/op 1.05
Tree 40 250000 get(125000) 155.46 ns/op 136.19 ns/op 1.14
Tree 40 250000 set(125000) 706.51 ns/op 596.91 ns/op 1.18
Tree 40 250000 toArray() 19.430 ms/op 15.068 ms/op 1.29
Tree 40 250000 iterate all - toArray() + loop 20.326 ms/op 15.605 ms/op 1.30
Tree 40 250000 iterate all - get(i) 58.288 ms/op 45.916 ms/op 1.27
MutableVector 250000 create 11.402 ms/op 7.3023 ms/op 1.56
MutableVector 250000 get(125000) 11.444 ns/op 6.0930 ns/op 1.88
MutableVector 250000 set(125000) 236.70 ns/op 191.52 ns/op 1.24
MutableVector 250000 toArray() 4.2232 ms/op 3.2709 ms/op 1.29
MutableVector 250000 iterate all - toArray() + loop 4.0623 ms/op 3.7931 ms/op 1.07
MutableVector 250000 iterate all - get(i) 1.7860 ms/op 1.6860 ms/op 1.06
Array 250000 create 3.2566 ms/op 2.6656 ms/op 1.22
Array 250000 clone - spread 1.7127 ms/op 1.4767 ms/op 1.16
Array 250000 get(125000) 0.43900 ns/op 0.67200 ns/op 0.65
Array 250000 set(125000) 0.45000 ns/op 0.66700 ns/op 0.67
Array 250000 iterate all - loop 94.972 us/op 82.236 us/op 1.15
effectiveBalanceIncrements clone Uint8Array 300000 36.490 us/op 15.429 us/op 2.37
effectiveBalanceIncrements clone MutableVector 300000 134.00 ns/op 343.00 ns/op 0.39
effectiveBalanceIncrements rw all Uint8Array 300000 211.39 us/op 176.30 us/op 1.20
effectiveBalanceIncrements rw all MutableVector 300000 69.892 ms/op 69.079 ms/op 1.01
phase0 afterProcessEpoch - 250000 vs - 7PWei 91.577 ms/op 76.222 ms/op 1.20
phase0 beforeProcessEpoch - 250000 vs - 7PWei 34.618 ms/op 35.668 ms/op 0.97
altair processEpoch - mainnet_e81889 381.94 ms/op 388.95 ms/op 0.98
mainnet_e81889 - altair beforeProcessEpoch 48.146 ms/op 72.804 ms/op 0.66
mainnet_e81889 - altair processJustificationAndFinalization 18.407 us/op 16.391 us/op 1.12
mainnet_e81889 - altair processInactivityUpdates 6.1888 ms/op 6.6281 ms/op 0.93
mainnet_e81889 - altair processRewardsAndPenalties 54.500 ms/op 40.715 ms/op 1.34
mainnet_e81889 - altair processRegistryUpdates 1.9610 us/op 3.5850 us/op 0.55
mainnet_e81889 - altair processSlashings 379.00 ns/op 1.0320 us/op 0.37
mainnet_e81889 - altair processEth1DataReset 310.00 ns/op 836.00 ns/op 0.37
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.7931 ms/op 1.0559 ms/op 1.70
mainnet_e81889 - altair processSlashingsReset 5.0950 us/op 4.2600 us/op 1.20
mainnet_e81889 - altair processRandaoMixesReset 4.3860 us/op 6.4540 us/op 0.68
mainnet_e81889 - altair processHistoricalRootsUpdate 1.0020 us/op 1.1340 us/op 0.88
mainnet_e81889 - altair processParticipationFlagUpdates 3.7960 us/op 2.9810 us/op 1.27
mainnet_e81889 - altair processSyncCommitteeUpdates 1.2860 us/op 886.00 ns/op 1.45
mainnet_e81889 - altair afterProcessEpoch 95.997 ms/op 82.846 ms/op 1.16
capella processEpoch - mainnet_e217614 1.2777 s/op 1.2887 s/op 0.99
mainnet_e217614 - capella beforeProcessEpoch 257.64 ms/op 272.08 ms/op 0.95
mainnet_e217614 - capella processJustificationAndFinalization 13.285 us/op 13.640 us/op 0.97
mainnet_e217614 - capella processInactivityUpdates 17.215 ms/op 17.836 ms/op 0.97
mainnet_e217614 - capella processRewardsAndPenalties 266.53 ms/op 264.05 ms/op 1.01
mainnet_e217614 - capella processRegistryUpdates 18.254 us/op 11.569 us/op 1.58
mainnet_e217614 - capella processSlashings 697.00 ns/op 1.0480 us/op 0.67
mainnet_e217614 - capella processEth1DataReset 497.00 ns/op 808.00 ns/op 0.62
mainnet_e217614 - capella processEffectiveBalanceUpdates 15.079 ms/op 4.3112 ms/op 3.50
mainnet_e217614 - capella processSlashingsReset 3.6110 us/op 3.7680 us/op 0.96
mainnet_e217614 - capella processRandaoMixesReset 5.9400 us/op 10.944 us/op 0.54
mainnet_e217614 - capella processHistoricalRootsUpdate 714.00 ns/op 1.2180 us/op 0.59
mainnet_e217614 - capella processParticipationFlagUpdates 3.4290 us/op 4.2680 us/op 0.80
mainnet_e217614 - capella afterProcessEpoch 290.20 ms/op 215.70 ms/op 1.35
phase0 processEpoch - mainnet_e58758 388.42 ms/op 317.02 ms/op 1.23
mainnet_e58758 - phase0 beforeProcessEpoch 108.92 ms/op 119.97 ms/op 0.91
mainnet_e58758 - phase0 processJustificationAndFinalization 13.041 us/op 15.806 us/op 0.83
mainnet_e58758 - phase0 processRewardsAndPenalties 34.602 ms/op 36.078 ms/op 0.96
mainnet_e58758 - phase0 processRegistryUpdates 9.3210 us/op 8.2720 us/op 1.13
mainnet_e58758 - phase0 processSlashings 502.00 ns/op 803.00 ns/op 0.63
mainnet_e58758 - phase0 processEth1DataReset 364.00 ns/op 696.00 ns/op 0.52
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.3182 ms/op 1.6927 ms/op 0.78
mainnet_e58758 - phase0 processSlashingsReset 4.7970 us/op 3.8110 us/op 1.26
mainnet_e58758 - phase0 processRandaoMixesReset 6.9960 us/op 4.6230 us/op 1.51
mainnet_e58758 - phase0 processHistoricalRootsUpdate 713.00 ns/op 962.00 ns/op 0.74
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.1660 us/op 3.7330 us/op 1.12
mainnet_e58758 - phase0 afterProcessEpoch 81.674 ms/op 66.675 ms/op 1.22
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.4645 ms/op 765.90 us/op 1.91
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.5025 ms/op 1.0650 ms/op 2.35
altair processInactivityUpdates - 250000 normalcase 24.786 ms/op 16.614 ms/op 1.49
altair processInactivityUpdates - 250000 worstcase 24.892 ms/op 17.501 ms/op 1.42
phase0 processRegistryUpdates - 250000 normalcase 8.3570 us/op 3.5090 us/op 2.38
phase0 processRegistryUpdates - 250000 badcase_full_deposits 352.29 us/op 291.72 us/op 1.21
phase0 processRegistryUpdates - 250000 worstcase 0.5 127.17 ms/op 114.60 ms/op 1.11
altair processRewardsAndPenalties - 250000 normalcase 46.067 ms/op 53.460 ms/op 0.86
altair processRewardsAndPenalties - 250000 worstcase 48.242 ms/op 44.032 ms/op 1.10
phase0 getAttestationDeltas - 250000 normalcase 7.7937 ms/op 5.8668 ms/op 1.33
phase0 getAttestationDeltas - 250000 worstcase 8.4615 ms/op 6.5877 ms/op 1.28
phase0 processSlashings - 250000 worstcase 99.575 us/op 84.499 us/op 1.18
altair processSyncCommitteeUpdates - 250000 150.69 ms/op 109.46 ms/op 1.38
BeaconState.hashTreeRoot - No change 327.00 ns/op 450.00 ns/op 0.73
BeaconState.hashTreeRoot - 1 full validator 147.40 us/op 136.04 us/op 1.08
BeaconState.hashTreeRoot - 32 full validator 1.1006 ms/op 1.3823 ms/op 0.80
BeaconState.hashTreeRoot - 512 full validator 12.520 ms/op 11.505 ms/op 1.09
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 131.97 us/op 122.31 us/op 1.08
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.6950 ms/op 1.6724 ms/op 1.01
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 24.509 ms/op 27.406 ms/op 0.89
BeaconState.hashTreeRoot - 1 balances 134.69 us/op 121.99 us/op 1.10
BeaconState.hashTreeRoot - 32 balances 1.3151 ms/op 984.00 us/op 1.34
BeaconState.hashTreeRoot - 512 balances 13.717 ms/op 6.4634 ms/op 2.12
BeaconState.hashTreeRoot - 250000 balances 193.25 ms/op 144.78 ms/op 1.33
aggregationBits - 2048 els - zipIndexesInBitList 30.490 us/op 20.605 us/op 1.48
byteArrayEquals 32 55.695 ns/op 41.579 ns/op 1.34
Buffer.compare 32 17.727 ns/op 22.731 ns/op 0.78
byteArrayEquals 1024 1.6669 us/op 1.2076 us/op 1.38
Buffer.compare 1024 27.060 ns/op 27.281 ns/op 0.99
byteArrayEquals 16384 26.788 us/op 19.227 us/op 1.39
Buffer.compare 16384 217.81 ns/op 194.59 ns/op 1.12
byteArrayEquals 123687377 204.10 ms/op 147.36 ms/op 1.39
Buffer.compare 123687377 9.7198 ms/op 5.9474 ms/op 1.63
byteArrayEquals 32 - diff last byte 57.318 ns/op 47.028 ns/op 1.22
Buffer.compare 32 - diff last byte 20.726 ns/op 15.762 ns/op 1.31
byteArrayEquals 1024 - diff last byte 1.7382 us/op 1.2745 us/op 1.36
Buffer.compare 1024 - diff last byte 29.716 ns/op 22.662 ns/op 1.31
byteArrayEquals 16384 - diff last byte 27.102 us/op 20.136 us/op 1.35
Buffer.compare 16384 - diff last byte 190.42 ns/op 202.47 ns/op 0.94
byteArrayEquals 123687377 - diff last byte 201.28 ms/op 150.69 ms/op 1.34
Buffer.compare 123687377 - diff last byte 11.511 ms/op 5.8351 ms/op 1.97
byteArrayEquals 32 - random bytes 5.6290 ns/op 4.9210 ns/op 1.14
Buffer.compare 32 - random bytes 18.701 ns/op 15.708 ns/op 1.19
byteArrayEquals 1024 - random bytes 5.7080 ns/op 4.9380 ns/op 1.16
Buffer.compare 1024 - random bytes 18.532 ns/op 15.408 ns/op 1.20
byteArrayEquals 16384 - random bytes 5.5690 ns/op 5.0330 ns/op 1.11
Buffer.compare 16384 - random bytes 18.428 ns/op 15.651 ns/op 1.18
byteArrayEquals 123687377 - random bytes 7.3700 ns/op 7.8900 ns/op 0.93
Buffer.compare 123687377 - random bytes 22.030 ns/op 20.070 ns/op 1.10
regular array get 100000 times 49.428 us/op 31.494 us/op 1.57
wrappedArray get 100000 times 44.338 us/op 32.108 us/op 1.38
arrayWithProxy get 100000 times 14.157 ms/op 9.9993 ms/op 1.42
ssz.Root.equals 48.906 ns/op 39.011 ns/op 1.25
byteArrayEquals 51.239 ns/op 42.883 ns/op 1.19
Buffer.compare 11.329 ns/op 9.4230 ns/op 1.20
shuffle list - 16384 els 6.9127 ms/op 5.8374 ms/op 1.18
shuffle list - 250000 els 100.69 ms/op 85.726 ms/op 1.17
processSlot - 1 slots 19.046 us/op 12.557 us/op 1.52
processSlot - 32 slots 3.1303 ms/op 2.8393 ms/op 1.10
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 43.081 ms/op 37.149 ms/op 1.16
getCommitteeAssignments - req 1 vs - 250000 vc 2.2696 ms/op 1.7996 ms/op 1.26
getCommitteeAssignments - req 100 vs - 250000 vc 4.4517 ms/op 3.5625 ms/op 1.25
getCommitteeAssignments - req 1000 vs - 250000 vc 4.7376 ms/op 3.7571 ms/op 1.26
findModifiedValidators - 10000 modified validators 425.09 ms/op 228.54 ms/op 1.86
findModifiedValidators - 1000 modified validators 269.25 ms/op 145.47 ms/op 1.85
findModifiedValidators - 100 modified validators 295.93 ms/op 155.19 ms/op 1.91
findModifiedValidators - 10 modified validators 274.16 ms/op 130.16 ms/op 2.11
findModifiedValidators - 1 modified validators 260.37 ms/op 125.58 ms/op 2.07
findModifiedValidators - no difference 192.36 ms/op 140.43 ms/op 1.37
compare ViewDUs 3.2053 s/op 3.2789 s/op 0.98
compare each validator Uint8Array 1.3770 s/op 1.2368 s/op 1.11
compare ViewDU to Uint8Array 1.1727 s/op 742.47 ms/op 1.58
migrate state 1000000 validators, 24 modified, 0 new 648.37 ms/op 473.08 ms/op 1.37
migrate state 1000000 validators, 1700 modified, 1000 new 824.16 ms/op 732.84 ms/op 1.12
migrate state 1000000 validators, 3400 modified, 2000 new 1.0292 s/op 948.93 ms/op 1.08
migrate state 1500000 validators, 24 modified, 0 new 568.12 ms/op 505.28 ms/op 1.12
migrate state 1500000 validators, 1700 modified, 1000 new 811.80 ms/op 757.80 ms/op 1.07
migrate state 1500000 validators, 3400 modified, 2000 new 987.60 ms/op 984.02 ms/op 1.00
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.9500 ns/op 6.2400 ns/op 0.79
state getBlockRootAtSlot - 250000 vs - 7PWei 562.97 ns/op 447.24 ns/op 1.26
computeProposers - vc 250000 7.6277 ms/op 6.7481 ms/op 1.13
computeEpochShuffling - vc 250000 99.546 ms/op 84.081 ms/op 1.18
getNextSyncCommittee - vc 250000 149.01 ms/op 121.96 ms/op 1.22
computeSigningRoot for AttestationData 21.262 us/op 18.652 us/op 1.14
hash AttestationData serialized data then Buffer.toString(base64) 1.5704 us/op 1.2170 us/op 1.29
toHexString serialized data 926.11 ns/op 822.08 ns/op 1.13
Buffer.toString(base64) 194.99 ns/op 137.45 ns/op 1.42

by benchmarkbot/action

nflaig
nflaig previously approved these changes Jun 24, 2024
@nazarhussain nazarhussain merged commit 3cc1cb4 into unstable Jun 24, 2024
20 checks passed
@nazarhussain nazarhussain deleted the nh/types-blinded branch June 24, 2024 10:47
@wemeetagain
Copy link
Member

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