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: update license on state-transition #7037

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

philknows
Copy link
Member

Motivation

It has been clarified on #6835 that the state-transition package is actually Apache 2.0 and should be clarified in all references.

Description

This PR aligns the LICENSE in the actual package to reflect this.

@philknows philknows requested a review from a team as a code owner August 19, 2024 12:09
Copy link

codecov bot commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.24%. Comparing base (6f470f8) to head (aa3df1b).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #7037      +/-   ##
============================================
- Coverage     49.25%   49.24%   -0.01%     
============================================
  Files           578      578              
  Lines         37443    37443              
  Branches       2172     2165       -7     
============================================
- Hits          18441    18440       -1     
- Misses        18962    18963       +1     
  Partials         40       40              

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 49f3ee3 Previous: 6f470f8 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.9516 ms/op 1.7230 ms/op 1.13
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 61.435 us/op 40.122 us/op 1.53
BLS verify - blst 910.29 us/op 867.07 us/op 1.05
BLS verifyMultipleSignatures 3 - blst 1.2750 ms/op 1.3004 ms/op 0.98
BLS verifyMultipleSignatures 8 - blst 1.7643 ms/op 2.0663 ms/op 0.85
BLS verifyMultipleSignatures 32 - blst 5.4683 ms/op 4.3748 ms/op 1.25
BLS verifyMultipleSignatures 64 - blst 10.616 ms/op 8.1234 ms/op 1.31
BLS verifyMultipleSignatures 128 - blst 18.672 ms/op 15.546 ms/op 1.20
BLS deserializing 10000 signatures 715.63 ms/op 585.11 ms/op 1.22
BLS deserializing 100000 signatures 7.0450 s/op 5.9947 s/op 1.18
BLS verifyMultipleSignatures - same message - 3 - blst 928.98 us/op 922.43 us/op 1.01
BLS verifyMultipleSignatures - same message - 8 - blst 1.0676 ms/op 1.0358 ms/op 1.03
BLS verifyMultipleSignatures - same message - 32 - blst 1.7404 ms/op 1.5911 ms/op 1.09
BLS verifyMultipleSignatures - same message - 64 - blst 2.6308 ms/op 2.5011 ms/op 1.05
BLS verifyMultipleSignatures - same message - 128 - blst 4.4120 ms/op 3.9425 ms/op 1.12
BLS aggregatePubkeys 32 - blst 20.038 us/op 16.978 us/op 1.18
BLS aggregatePubkeys 128 - blst 72.398 us/op 59.489 us/op 1.22
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 64.050 ms/op 66.801 ms/op 0.96
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 54.273 ms/op 57.223 ms/op 0.95
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 34.717 ms/op 28.951 ms/op 1.20
getSlashingsAndExits - default max 110.97 us/op 65.160 us/op 1.70
getSlashingsAndExits - 2k 319.64 us/op 217.06 us/op 1.47
proposeBlockBody type=full, size=empty 6.5757 ms/op 5.1930 ms/op 1.27
isKnown best case - 1 super set check 684.00 ns/op 454.00 ns/op 1.51
isKnown normal case - 2 super set checks 591.00 ns/op 442.00 ns/op 1.34
isKnown worse case - 16 super set checks 647.00 ns/op 437.00 ns/op 1.48
InMemoryCheckpointStateCache - add get delete 3.4400 us/op 2.5990 us/op 1.32
validate api signedAggregateAndProof - struct 1.5941 ms/op 1.4219 ms/op 1.12
validate gossip signedAggregateAndProof - struct 1.5254 ms/op 1.4060 ms/op 1.08
validate gossip attestation - vc 640000 1.0266 ms/op 963.58 us/op 1.07
batch validate gossip attestation - vc 640000 - chunk 32 140.41 us/op 115.14 us/op 1.22
batch validate gossip attestation - vc 640000 - chunk 64 124.98 us/op 102.74 us/op 1.22
batch validate gossip attestation - vc 640000 - chunk 128 115.95 us/op 93.769 us/op 1.24
batch validate gossip attestation - vc 640000 - chunk 256 113.74 us/op 91.242 us/op 1.25
pickEth1Vote - no votes 1.2577 ms/op 794.01 us/op 1.58
pickEth1Vote - max votes 7.1356 ms/op 5.3306 ms/op 1.34
pickEth1Vote - Eth1Data hashTreeRoot value x2048 13.570 ms/op 12.904 ms/op 1.05
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 19.604 ms/op 19.538 ms/op 1.00
pickEth1Vote - Eth1Data fastSerialize value x2048 588.36 us/op 366.75 us/op 1.60
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.2336 ms/op 3.2083 ms/op 1.01
bytes32 toHexString 713.00 ns/op 531.00 ns/op 1.34
bytes32 Buffer.toString(hex) 277.00 ns/op 402.00 ns/op 0.69
bytes32 Buffer.toString(hex) from Uint8Array 465.00 ns/op 491.00 ns/op 0.95
bytes32 Buffer.toString(hex) + 0x 278.00 ns/op 403.00 ns/op 0.69
Object access 1 prop 0.20700 ns/op 0.29500 ns/op 0.70
Map access 1 prop 0.14400 ns/op 0.29600 ns/op 0.49
Object get x1000 6.1940 ns/op 4.7520 ns/op 1.30
Map get x1000 6.9640 ns/op 5.3080 ns/op 1.31
Object set x1000 42.689 ns/op 24.958 ns/op 1.71
Map set x1000 27.949 ns/op 18.701 ns/op 1.49
Return object 10000 times 0.31460 ns/op 0.29250 ns/op 1.08
Throw Error 10000 times 3.6075 us/op 2.6753 us/op 1.35
toHex 170.01 ns/op 109.96 ns/op 1.55
Buffer.from 156.61 ns/op 101.73 ns/op 1.54
shared Buffer 104.05 ns/op 69.298 ns/op 1.50
fastMsgIdFn sha256 / 200 bytes 2.4980 us/op 1.9960 us/op 1.25
fastMsgIdFn h32 xxhash / 200 bytes 309.00 ns/op 392.00 ns/op 0.79
fastMsgIdFn h64 xxhash / 200 bytes 288.00 ns/op 436.00 ns/op 0.66
fastMsgIdFn sha256 / 1000 bytes 7.6650 us/op 5.9750 us/op 1.28
fastMsgIdFn h32 xxhash / 1000 bytes 440.00 ns/op 511.00 ns/op 0.86
fastMsgIdFn h64 xxhash / 1000 bytes 375.00 ns/op 504.00 ns/op 0.74
fastMsgIdFn sha256 / 10000 bytes 67.210 us/op 50.143 us/op 1.34
fastMsgIdFn h32 xxhash / 10000 bytes 1.9760 us/op 1.8670 us/op 1.06
fastMsgIdFn h64 xxhash / 10000 bytes 1.2720 us/op 1.3140 us/op 0.97
send data - 1000 256B messages 14.852 ms/op 9.8582 ms/op 1.51
send data - 1000 512B messages 19.498 ms/op 12.812 ms/op 1.52
send data - 1000 1024B messages 29.758 ms/op 22.796 ms/op 1.31
send data - 1000 1200B messages 27.965 ms/op 22.767 ms/op 1.23
send data - 1000 2048B messages 35.572 ms/op 28.392 ms/op 1.25
send data - 1000 4096B messages 35.386 ms/op 18.502 ms/op 1.91
send data - 1000 16384B messages 75.674 ms/op 65.496 ms/op 1.16
send data - 1000 65536B messages 225.28 ms/op 221.83 ms/op 1.02
enrSubnets - fastDeserialize 64 bits 1.3670 us/op 1.1860 us/op 1.15
enrSubnets - ssz BitVector 64 bits 449.00 ns/op 496.00 ns/op 0.91
enrSubnets - fastDeserialize 4 bits 207.00 ns/op 322.00 ns/op 0.64
enrSubnets - ssz BitVector 4 bits 441.00 ns/op 505.00 ns/op 0.87
prioritizePeers score -10:0 att 32-0.1 sync 2-0 189.35 us/op 121.32 us/op 1.56
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 194.16 us/op 175.39 us/op 1.11
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 297.96 us/op 228.50 us/op 1.30
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 442.05 us/op 445.77 us/op 0.99
prioritizePeers score 0:0 att 64-1 sync 4-1 739.81 us/op 643.43 us/op 1.15
array of 16000 items push then shift 1.7319 us/op 1.2746 us/op 1.36
LinkedList of 16000 items push then shift 8.3100 ns/op 6.3080 ns/op 1.32
array of 16000 items push then pop 144.33 ns/op 75.226 ns/op 1.92
LinkedList of 16000 items push then pop 8.0960 ns/op 6.1320 ns/op 1.32
array of 24000 items push then shift 2.5781 us/op 1.8632 us/op 1.38
LinkedList of 24000 items push then shift 8.3960 ns/op 6.3330 ns/op 1.33
array of 24000 items push then pop 196.62 ns/op 105.28 ns/op 1.87
LinkedList of 24000 items push then pop 7.7780 ns/op 6.2060 ns/op 1.25
intersect bitArray bitLen 8 6.6890 ns/op 5.3500 ns/op 1.25
intersect array and set length 8 54.022 ns/op 38.388 ns/op 1.41
intersect bitArray bitLen 128 30.716 ns/op 26.008 ns/op 1.18
intersect array and set length 128 842.54 ns/op 576.60 ns/op 1.46
bitArray.getTrueBitIndexes() bitLen 128 2.1940 us/op 2.0390 us/op 1.08
bitArray.getTrueBitIndexes() bitLen 248 3.9150 us/op 3.1710 us/op 1.23
bitArray.getTrueBitIndexes() bitLen 512 9.9760 us/op 6.2680 us/op 1.59
Buffer.concat 32 items 1.0450 us/op 1.0850 us/op 0.96
Uint8Array.set 32 items 1.7990 us/op 1.8660 us/op 0.96
Buffer.copy 1.8670 us/op 2.3930 us/op 0.78
Uint8Array.set - with subarray 3.4180 us/op 2.9930 us/op 1.14
Uint8Array.set - without subarray 1.7650 us/op 1.6280 us/op 1.08
getUint32 - dataview 318.00 ns/op 388.00 ns/op 0.82
getUint32 - manual 283.00 ns/op 328.00 ns/op 0.86
Set add up to 64 items then delete first 3.0765 us/op 1.7660 us/op 1.74
OrderedSet add up to 64 items then delete first 4.0187 us/op 2.7551 us/op 1.46
Set add up to 64 items then delete last 3.3172 us/op 2.0117 us/op 1.65
OrderedSet add up to 64 items then delete last 4.9278 us/op 3.0392 us/op 1.62
Set add up to 64 items then delete middle 3.4755 us/op 2.0226 us/op 1.72
OrderedSet add up to 64 items then delete middle 6.7982 us/op 4.4184 us/op 1.54
Set add up to 128 items then delete first 6.8272 us/op 3.9663 us/op 1.72
OrderedSet add up to 128 items then delete first 11.030 us/op 6.2235 us/op 1.77
Set add up to 128 items then delete last 6.5338 us/op 3.4869 us/op 1.87
OrderedSet add up to 128 items then delete last 9.6310 us/op 5.3086 us/op 1.81
Set add up to 128 items then delete middle 6.8159 us/op 3.4707 us/op 1.96
OrderedSet add up to 128 items then delete middle 17.263 us/op 10.755 us/op 1.61
Set add up to 256 items then delete first 14.120 us/op 7.0650 us/op 2.00
OrderedSet add up to 256 items then delete first 22.191 us/op 11.371 us/op 1.95
Set add up to 256 items then delete last 12.457 us/op 6.8329 us/op 1.82
OrderedSet add up to 256 items then delete last 21.251 us/op 10.743 us/op 1.98
Set add up to 256 items then delete middle 12.930 us/op 6.8301 us/op 1.89
OrderedSet add up to 256 items then delete middle 49.013 us/op 31.546 us/op 1.55
transfer serialized Status (84 B) 1.4630 us/op 1.4400 us/op 1.02
copy serialized Status (84 B) 1.3010 us/op 1.2210 us/op 1.07
transfer serialized SignedVoluntaryExit (112 B) 1.4670 us/op 1.7270 us/op 0.85
copy serialized SignedVoluntaryExit (112 B) 1.3100 us/op 1.3770 us/op 0.95
transfer serialized ProposerSlashing (416 B) 1.8410 us/op 2.6950 us/op 0.68
copy serialized ProposerSlashing (416 B) 1.9140 us/op 1.6620 us/op 1.15
transfer serialized Attestation (485 B) 1.8880 us/op 2.1890 us/op 0.86
copy serialized Attestation (485 B) 1.8030 us/op 1.9610 us/op 0.92
transfer serialized AttesterSlashing (33232 B) 1.9750 us/op 2.7740 us/op 0.71
copy serialized AttesterSlashing (33232 B) 8.4890 us/op 4.3320 us/op 1.96
transfer serialized Small SignedBeaconBlock (128000 B) 2.8310 us/op 2.4690 us/op 1.15
copy serialized Small SignedBeaconBlock (128000 B) 21.570 us/op 13.923 us/op 1.55
transfer serialized Avg SignedBeaconBlock (200000 B) 3.6060 us/op 2.7070 us/op 1.33
copy serialized Avg SignedBeaconBlock (200000 B) 31.558 us/op 11.745 us/op 2.69
transfer serialized BlobsSidecar (524380 B) 3.5500 us/op 2.3510 us/op 1.51
copy serialized BlobsSidecar (524380 B) 127.58 us/op 65.908 us/op 1.94
transfer serialized Big SignedBeaconBlock (1000000 B) 4.5190 us/op 2.8160 us/op 1.60
copy serialized Big SignedBeaconBlock (1000000 B) 225.77 us/op 341.00 us/op 0.66
pass gossip attestations to forkchoice per slot 2.9888 ms/op 2.3937 ms/op 1.25
forkChoice updateHead vc 100000 bc 64 eq 0 538.22 us/op 432.83 us/op 1.24
forkChoice updateHead vc 600000 bc 64 eq 0 3.3030 ms/op 2.5778 ms/op 1.28
forkChoice updateHead vc 1000000 bc 64 eq 0 5.8696 ms/op 4.3047 ms/op 1.36
forkChoice updateHead vc 600000 bc 320 eq 0 3.2491 ms/op 2.5355 ms/op 1.28
forkChoice updateHead vc 600000 bc 1200 eq 0 3.5218 ms/op 2.5918 ms/op 1.36
forkChoice updateHead vc 600000 bc 7200 eq 0 4.0040 ms/op 2.8401 ms/op 1.41
forkChoice updateHead vc 600000 bc 64 eq 1000 11.310 ms/op 9.6062 ms/op 1.18
forkChoice updateHead vc 600000 bc 64 eq 10000 11.366 ms/op 8.8903 ms/op 1.28
forkChoice updateHead vc 600000 bc 64 eq 300000 18.856 ms/op 11.477 ms/op 1.64
computeDeltas 500000 validators 300 proto nodes 3.7872 ms/op 3.0184 ms/op 1.25
computeDeltas 500000 validators 1200 proto nodes 3.9793 ms/op 2.9966 ms/op 1.33
computeDeltas 500000 validators 7200 proto nodes 4.0340 ms/op 3.0632 ms/op 1.32
computeDeltas 750000 validators 300 proto nodes 5.7672 ms/op 4.4998 ms/op 1.28
computeDeltas 750000 validators 1200 proto nodes 7.5833 ms/op 4.5118 ms/op 1.68
computeDeltas 750000 validators 7200 proto nodes 9.5604 ms/op 4.4856 ms/op 2.13
computeDeltas 1400000 validators 300 proto nodes 18.207 ms/op 7.9338 ms/op 2.29
computeDeltas 1400000 validators 1200 proto nodes 19.142 ms/op 7.9885 ms/op 2.40
computeDeltas 1400000 validators 7200 proto nodes 10.470 ms/op 8.0274 ms/op 1.30
computeDeltas 2100000 validators 300 proto nodes 15.860 ms/op 12.015 ms/op 1.32
computeDeltas 2100000 validators 1200 proto nodes 16.118 ms/op 12.113 ms/op 1.33
computeDeltas 2100000 validators 7200 proto nodes 16.386 ms/op 11.918 ms/op 1.37
altair processAttestation - 250000 vs - 7PWei normalcase 1.9539 ms/op 1.4207 ms/op 1.38
altair processAttestation - 250000 vs - 7PWei worstcase 3.1863 ms/op 2.1389 ms/op 1.49
altair processAttestation - setStatus - 1/6 committees join 99.087 us/op 64.253 us/op 1.54
altair processAttestation - setStatus - 1/3 committees join 182.02 us/op 123.95 us/op 1.47
altair processAttestation - setStatus - 1/2 committees join 258.10 us/op 177.78 us/op 1.45
altair processAttestation - setStatus - 2/3 committees join 334.06 us/op 240.83 us/op 1.39
altair processAttestation - setStatus - 4/5 committees join 496.80 us/op 368.96 us/op 1.35
altair processAttestation - setStatus - 100% committees join 590.32 us/op 451.79 us/op 1.31
altair processBlock - 250000 vs - 7PWei normalcase 4.3686 ms/op 4.3658 ms/op 1.00
altair processBlock - 250000 vs - 7PWei normalcase hashState 27.992 ms/op 30.590 ms/op 0.92
altair processBlock - 250000 vs - 7PWei worstcase 36.668 ms/op 35.940 ms/op 1.02
altair processBlock - 250000 vs - 7PWei worstcase hashState 71.814 ms/op 71.731 ms/op 1.00
phase0 processBlock - 250000 vs - 7PWei normalcase 1.8377 ms/op 1.7533 ms/op 1.05
phase0 processBlock - 250000 vs - 7PWei worstcase 22.726 ms/op 21.387 ms/op 1.06
altair processEth1Data - 250000 vs - 7PWei normalcase 391.18 us/op 229.66 us/op 1.70
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 5.9620 us/op 2.5970 us/op 2.30
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 28.474 us/op 31.606 us/op 0.90
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.8290 us/op 6.9750 us/op 1.27
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.8810 us/op 2.8620 us/op 2.40
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 119.91 us/op 42.950 us/op 2.79
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 670.05 us/op 884.32 us/op 0.76
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 934.26 us/op 1.0760 ms/op 0.87
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 924.94 us/op 1.0863 ms/op 0.85
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.5350 ms/op 2.0191 ms/op 1.26
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.6328 ms/op 1.2009 ms/op 1.36
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.0736 ms/op 3.1219 ms/op 1.30
Tree 40 250000 create 286.17 ms/op 173.63 ms/op 1.65
Tree 40 250000 get(125000) 154.83 ns/op 117.77 ns/op 1.31
Tree 40 250000 set(125000) 713.63 ns/op 520.17 ns/op 1.37
Tree 40 250000 toArray() 21.025 ms/op 9.8801 ms/op 2.13
Tree 40 250000 iterate all - toArray() + loop 21.124 ms/op 10.166 ms/op 2.08
Tree 40 250000 iterate all - get(i) 58.887 ms/op 39.952 ms/op 1.47
MutableVector 250000 create 9.0544 ms/op 7.7771 ms/op 1.16
MutableVector 250000 get(125000) 7.2800 ns/op 5.7940 ns/op 1.26
MutableVector 250000 set(125000) 201.47 ns/op 180.00 ns/op 1.12
MutableVector 250000 toArray() 3.9374 ms/op 2.6594 ms/op 1.48
MutableVector 250000 iterate all - toArray() + loop 4.0184 ms/op 2.7521 ms/op 1.46
MutableVector 250000 iterate all - get(i) 1.6108 ms/op 1.4511 ms/op 1.11
Array 250000 create 3.4855 ms/op 2.3101 ms/op 1.51
Array 250000 clone - spread 1.4082 ms/op 1.3123 ms/op 1.07
Array 250000 get(125000) 0.43100 ns/op 0.57700 ns/op 0.75
Array 250000 set(125000) 0.45100 ns/op 0.59000 ns/op 0.76
Array 250000 iterate all - loop 111.71 us/op 76.317 us/op 1.46
effectiveBalanceIncrements clone Uint8Array 300000 34.870 us/op 14.135 us/op 2.47
effectiveBalanceIncrements clone MutableVector 300000 129.00 ns/op 312.00 ns/op 0.41
effectiveBalanceIncrements rw all Uint8Array 300000 203.84 us/op 165.53 us/op 1.23
effectiveBalanceIncrements rw all MutableVector 300000 66.532 ms/op 58.184 ms/op 1.14
phase0 afterProcessEpoch - 250000 vs - 7PWei 93.942 ms/op 69.310 ms/op 1.36
Array.fill - length 1000000 3.4842 ms/op 2.5099 ms/op 1.39
Array push - length 1000000 18.305 ms/op 14.083 ms/op 1.30
Array.get 0.28374 ns/op 0.25945 ns/op 1.09
Uint8Array.get 0.44517 ns/op 0.34172 ns/op 1.30
phase0 beforeProcessEpoch - 250000 vs - 7PWei 16.126 ms/op 12.319 ms/op 1.31
altair processEpoch - mainnet_e81889 308.17 ms/op 299.99 ms/op 1.03
mainnet_e81889 - altair beforeProcessEpoch 18.951 ms/op 15.511 ms/op 1.22
mainnet_e81889 - altair processJustificationAndFinalization 15.270 us/op 9.7310 us/op 1.57
mainnet_e81889 - altair processInactivityUpdates 6.6158 ms/op 3.9139 ms/op 1.69
mainnet_e81889 - altair processRewardsAndPenalties 47.256 ms/op 54.952 ms/op 0.86
mainnet_e81889 - altair processRegistryUpdates 1.7970 us/op 1.9990 us/op 0.90
mainnet_e81889 - altair processSlashings 545.00 ns/op 758.00 ns/op 0.72
mainnet_e81889 - altair processEth1DataReset 441.00 ns/op 712.00 ns/op 0.62
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.7897 ms/op 1.3482 ms/op 1.33
mainnet_e81889 - altair processSlashingsReset 3.4080 us/op 2.3830 us/op 1.43
mainnet_e81889 - altair processRandaoMixesReset 4.5600 us/op 2.6860 us/op 1.70
mainnet_e81889 - altair processHistoricalRootsUpdate 523.00 ns/op 678.00 ns/op 0.77
mainnet_e81889 - altair processParticipationFlagUpdates 2.6480 us/op 1.5650 us/op 1.69
mainnet_e81889 - altair processSyncCommitteeUpdates 403.00 ns/op 609.00 ns/op 0.66
mainnet_e81889 - altair afterProcessEpoch 98.736 ms/op 76.011 ms/op 1.30
capella processEpoch - mainnet_e217614 1.2762 s/op 1.1192 s/op 1.14
mainnet_e217614 - capella beforeProcessEpoch 72.561 ms/op 59.625 ms/op 1.22
mainnet_e217614 - capella processJustificationAndFinalization 16.641 us/op 6.9760 us/op 2.39
mainnet_e217614 - capella processInactivityUpdates 19.911 ms/op 12.167 ms/op 1.64
mainnet_e217614 - capella processRewardsAndPenalties 234.19 ms/op 253.02 ms/op 0.93
mainnet_e217614 - capella processRegistryUpdates 13.190 us/op 11.447 us/op 1.15
mainnet_e217614 - capella processSlashings 404.00 ns/op 771.00 ns/op 0.52
mainnet_e217614 - capella processEth1DataReset 361.00 ns/op 763.00 ns/op 0.47
mainnet_e217614 - capella processEffectiveBalanceUpdates 16.024 ms/op 11.474 ms/op 1.40
mainnet_e217614 - capella processSlashingsReset 6.0060 us/op 1.6440 us/op 3.65
mainnet_e217614 - capella processRandaoMixesReset 5.2800 us/op 2.3140 us/op 2.28
mainnet_e217614 - capella processHistoricalRootsUpdate 510.00 ns/op 484.00 ns/op 1.05
mainnet_e217614 - capella processParticipationFlagUpdates 1.7230 us/op 1.1520 us/op 1.50
mainnet_e217614 - capella afterProcessEpoch 244.08 ms/op 200.43 ms/op 1.22
phase0 processEpoch - mainnet_e58758 440.02 ms/op 337.12 ms/op 1.31
mainnet_e58758 - phase0 beforeProcessEpoch 89.903 ms/op 77.293 ms/op 1.16
mainnet_e58758 - phase0 processJustificationAndFinalization 16.403 us/op 10.281 us/op 1.60
mainnet_e58758 - phase0 processRewardsAndPenalties 30.797 ms/op 38.278 ms/op 0.80
mainnet_e58758 - phase0 processRegistryUpdates 7.5860 us/op 6.4480 us/op 1.18
mainnet_e58758 - phase0 processSlashings 302.00 ns/op 760.00 ns/op 0.40
mainnet_e58758 - phase0 processEth1DataReset 314.00 ns/op 738.00 ns/op 0.43
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.2184 ms/op 1.1130 ms/op 1.09
mainnet_e58758 - phase0 processSlashingsReset 1.8940 us/op 2.1960 us/op 0.86
mainnet_e58758 - phase0 processRandaoMixesReset 4.4980 us/op 3.2600 us/op 1.38
mainnet_e58758 - phase0 processHistoricalRootsUpdate 408.00 ns/op 679.00 ns/op 0.60
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.7860 us/op 3.2260 us/op 1.17
mainnet_e58758 - phase0 afterProcessEpoch 85.006 ms/op 64.347 ms/op 1.32
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2223 ms/op 1.1624 ms/op 1.05
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.0441 ms/op 1.1979 ms/op 1.71
altair processInactivityUpdates - 250000 normalcase 16.354 ms/op 16.631 ms/op 0.98
altair processInactivityUpdates - 250000 worstcase 15.318 ms/op 16.814 ms/op 0.91
phase0 processRegistryUpdates - 250000 normalcase 8.4910 us/op 3.3700 us/op 2.52
phase0 processRegistryUpdates - 250000 badcase_full_deposits 281.25 us/op 293.46 us/op 0.96
phase0 processRegistryUpdates - 250000 worstcase 0.5 116.57 ms/op 104.45 ms/op 1.12
altair processRewardsAndPenalties - 250000 normalcase 32.931 ms/op 47.136 ms/op 0.70
altair processRewardsAndPenalties - 250000 worstcase 38.663 ms/op 33.519 ms/op 1.15
phase0 getAttestationDeltas - 250000 normalcase 8.0996 ms/op 5.4802 ms/op 1.48
phase0 getAttestationDeltas - 250000 worstcase 8.3407 ms/op 5.8786 ms/op 1.42
phase0 processSlashings - 250000 worstcase 96.378 us/op 81.854 us/op 1.18
altair processSyncCommitteeUpdates - 250000 135.74 ms/op 100.19 ms/op 1.35
BeaconState.hashTreeRoot - No change 285.00 ns/op 500.00 ns/op 0.57
BeaconState.hashTreeRoot - 1 full validator 132.21 us/op 110.54 us/op 1.20
BeaconState.hashTreeRoot - 32 full validator 991.08 us/op 1.0940 ms/op 0.91
BeaconState.hashTreeRoot - 512 full validator 10.471 ms/op 12.920 ms/op 0.81
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 127.17 us/op 144.40 us/op 0.88
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.6750 ms/op 1.9813 ms/op 0.85
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 22.538 ms/op 22.122 ms/op 1.02
BeaconState.hashTreeRoot - 1 balances 102.69 us/op 101.88 us/op 1.01
BeaconState.hashTreeRoot - 32 balances 908.64 us/op 958.76 us/op 0.95
BeaconState.hashTreeRoot - 512 balances 8.0277 ms/op 9.6294 ms/op 0.83
BeaconState.hashTreeRoot - 250000 balances 155.41 ms/op 172.15 ms/op 0.90
aggregationBits - 2048 els - zipIndexesInBitList 27.298 us/op 20.613 us/op 1.32
byteArrayEquals 32 53.789 ns/op 45.652 ns/op 1.18
Buffer.compare 32 17.122 ns/op 14.623 ns/op 1.17
byteArrayEquals 1024 1.5940 us/op 1.1932 us/op 1.34
Buffer.compare 1024 24.541 ns/op 22.827 ns/op 1.08
byteArrayEquals 16384 25.263 us/op 18.972 us/op 1.33
Buffer.compare 16384 212.28 ns/op 168.08 ns/op 1.26
byteArrayEquals 123687377 193.01 ms/op 149.12 ms/op 1.29
Buffer.compare 123687377 7.7115 ms/op 4.6518 ms/op 1.66
byteArrayEquals 32 - diff last byte 53.773 ns/op 46.503 ns/op 1.16
Buffer.compare 32 - diff last byte 17.528 ns/op 16.673 ns/op 1.05
byteArrayEquals 1024 - diff last byte 1.6115 us/op 1.2462 us/op 1.29
Buffer.compare 1024 - diff last byte 25.605 ns/op 23.739 ns/op 1.08
byteArrayEquals 16384 - diff last byte 25.659 us/op 19.683 us/op 1.30
Buffer.compare 16384 - diff last byte 195.31 ns/op 196.76 ns/op 0.99
byteArrayEquals 123687377 - diff last byte 194.27 ms/op 143.07 ms/op 1.36
Buffer.compare 123687377 - diff last byte 6.9174 ms/op 5.4120 ms/op 1.28
byteArrayEquals 32 - random bytes 5.1910 ns/op 4.4150 ns/op 1.18
Buffer.compare 32 - random bytes 17.080 ns/op 14.254 ns/op 1.20
byteArrayEquals 1024 - random bytes 5.1440 ns/op 7.5410 ns/op 0.68
Buffer.compare 1024 - random bytes 17.166 ns/op 22.070 ns/op 0.78
byteArrayEquals 16384 - random bytes 5.1250 ns/op 4.4310 ns/op 1.16
Buffer.compare 16384 - random bytes 17.001 ns/op 14.041 ns/op 1.21
byteArrayEquals 123687377 - random bytes 6.4500 ns/op 7.1200 ns/op 0.91
Buffer.compare 123687377 - random bytes 18.360 ns/op 16.710 ns/op 1.10
regular array get 100000 times 43.957 us/op 27.403 us/op 1.60
wrappedArray get 100000 times 34.545 us/op 27.297 us/op 1.27
arrayWithProxy get 100000 times 13.570 ms/op 9.8341 ms/op 1.38
ssz.Root.equals 44.934 ns/op 39.475 ns/op 1.14
byteArrayEquals 44.564 ns/op 39.578 ns/op 1.13
Buffer.compare 10.268 ns/op 8.2710 ns/op 1.24
shuffle list - 16384 els 6.3912 ms/op 4.8922 ms/op 1.31
shuffle list - 250000 els 93.404 ms/op 72.968 ms/op 1.28
processSlot - 1 slots 12.234 us/op 10.899 us/op 1.12
processSlot - 32 slots 2.6406 ms/op 3.4710 ms/op 0.76
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 37.075 ms/op 41.540 ms/op 0.89
getCommitteeAssignments - req 1 vs - 250000 vc 2.1555 ms/op 1.8263 ms/op 1.18
getCommitteeAssignments - req 100 vs - 250000 vc 4.1869 ms/op 3.5400 ms/op 1.18
getCommitteeAssignments - req 1000 vs - 250000 vc 4.4566 ms/op 3.8066 ms/op 1.17
findModifiedValidators - 10000 modified validators 271.17 ms/op 229.89 ms/op 1.18
findModifiedValidators - 1000 modified validators 177.35 ms/op 142.22 ms/op 1.25
findModifiedValidators - 100 modified validators 159.75 ms/op 141.50 ms/op 1.13
findModifiedValidators - 10 modified validators 156.52 ms/op 145.53 ms/op 1.08
findModifiedValidators - 1 modified validators 171.28 ms/op 141.62 ms/op 1.21
findModifiedValidators - no difference 172.17 ms/op 134.80 ms/op 1.28
compare ViewDUs 2.9330 s/op 3.2241 s/op 0.91
compare each validator Uint8Array 1.3535 s/op 1.6117 s/op 0.84
compare ViewDU to Uint8Array 1.3375 s/op 671.66 ms/op 1.99
migrate state 1000000 validators, 24 modified, 0 new 618.18 ms/op 516.60 ms/op 1.20
migrate state 1000000 validators, 1700 modified, 1000 new 855.10 ms/op 675.78 ms/op 1.27
migrate state 1000000 validators, 3400 modified, 2000 new 983.25 ms/op 994.68 ms/op 0.99
migrate state 1500000 validators, 24 modified, 0 new 624.23 ms/op 582.64 ms/op 1.07
migrate state 1500000 validators, 1700 modified, 1000 new 913.44 ms/op 657.86 ms/op 1.39
migrate state 1500000 validators, 3400 modified, 2000 new 1.0748 s/op 1.0258 s/op 1.05
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.8600 ns/op 6.1700 ns/op 0.79
state getBlockRootAtSlot - 250000 vs - 7PWei 751.51 ns/op 705.95 ns/op 1.06
computeProposers - vc 250000 7.9168 ms/op 6.0855 ms/op 1.30
computeEpochShuffling - vc 250000 96.608 ms/op 81.575 ms/op 1.18
getNextSyncCommittee - vc 250000 137.15 ms/op 106.30 ms/op 1.29
computeSigningRoot for AttestationData 22.735 us/op 16.614 us/op 1.37
hash AttestationData serialized data then Buffer.toString(base64) 1.6443 us/op 1.1850 us/op 1.39
toHexString serialized data 919.86 ns/op 792.96 ns/op 1.16
Buffer.toString(base64) 191.98 ns/op 133.79 ns/op 1.43
block root to RootHex using toHex 178.86 ns/op 116.37 ns/op 1.54
block root to RootHex using toRootHex 95.208 ns/op 78.181 ns/op 1.22

by benchmarkbot/action

Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

LGTM, the package.json is already aligned there

@wemeetagain wemeetagain merged commit 4ea7edd into unstable Aug 19, 2024
20 checks passed
@wemeetagain wemeetagain deleted the philknows/apache-license-statetransition branch August 19, 2024 14:33
philknows added a commit that referenced this pull request Sep 3, 2024
@wemeetagain
Copy link
Member

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

2 participants