Skip to content

chore: release master#319

Merged
g11tech merged 1 commit intomasterfrom
release-please--branches--master
Apr 21, 2023
Merged

chore: release master#319
g11tech merged 1 commit intomasterfrom
release-please--branches--master

Conversation

@wemeetagain
Copy link
Copy Markdown
Member

🤖 I have created a release beep boop

as-sha256: 0.4.1

0.4.1 (2023-04-21)

Bug Fixes

persistent-merkle-tree: 0.6.1

0.6.1 (2023-04-21)

Bug Fixes

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @chainsafe/as-sha256 bumped to 0.4.1
ssz: 0.11.1

0.11.1 (2023-04-21)

Bug Fixes

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @chainsafe/as-sha256 bumped to 0.4.1
      • @chainsafe/persistent-merkle-tree bumped to 0.6.1

This PR was generated with Release Please. See documentation.

@github-actions
Copy link
Copy Markdown
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: cb2666c Previous: 0efce88 Ratio
digestTwoHashObjects 50023 times 71.050 ms/op 69.464 ms/op 1.02
digest64 50023 times 75.615 ms/op 72.243 ms/op 1.05
digest 50023 times 71.783 ms/op 72.622 ms/op 0.99
input length 32 1.6520 us/op 1.8160 us/op 0.91
input length 64 1.8730 us/op 1.9670 us/op 0.95
input length 128 3.3960 us/op 3.3980 us/op 1.00
input length 256 4.7620 us/op 4.9740 us/op 0.96
input length 512 8.4170 us/op 8.1150 us/op 1.04
input length 1024 16.497 us/op 15.912 us/op 1.04
digest 1000000 times 1.1819 s/op 1.2565 s/op 0.94
hashObjectToByteArray 50023 times 2.3001 ms/op 2.8487 ms/op 0.81
byteArrayToHashObject 50023 times 2.8213 ms/op 3.7949 ms/op 0.74
getGindicesAtDepth 7.1010 us/op 7.6710 us/op 0.93
iterateAtDepth 13.332 us/op 15.658 us/op 0.85
getGindexBits 662.00 ns/op 712.00 ns/op 0.93
gindexIterator 1.4790 us/op 1.5740 us/op 0.94
hash 2 Uint8Array 2250026 times - as-sha256 3.1231 s/op 3.3012 s/op 0.95
hashTwoObjects 2250026 times - as-sha256 2.8859 s/op 3.1612 s/op 0.91
hash 2 Uint8Array 2250026 times - noble 8.7281 s/op 12.342 s/op 0.71
hashTwoObjects 2250026 times - noble 12.887 s/op 15.338 s/op 0.84
getNodeH() x7812.5 avg hindex 26.302 us/op 30.496 us/op 0.86
getNodeH() x7812.5 index 0 7.1020 us/op 10.872 us/op 0.65
getNodeH() x7812.5 index 7 7.3820 us/op 10.831 us/op 0.68
getNodeH() x7812.5 index 7 with key array 8.2460 us/op 10.758 us/op 0.77
new LeafNode() x7812.5 406.62 us/op 804.48 us/op 0.51
multiproof - depth 15, 1 requested leaves 23.200 us/op 24.558 us/op 0.94
tree offset multiproof - depth 15, 1 requested leaves 49.431 us/op 51.963 us/op 0.95
compact multiproof - depth 15, 1 requested leaves 15.511 us/op 16.241 us/op 0.96
multiproof - depth 15, 2 requested leaves 33.055 us/op 31.346 us/op 1.05
tree offset multiproof - depth 15, 2 requested leaves 44.102 us/op 54.346 us/op 0.81
compact multiproof - depth 15, 2 requested leaves 6.4500 us/op 5.9000 us/op 1.09
multiproof - depth 15, 3 requested leaves 31.835 us/op 44.048 us/op 0.72
tree offset multiproof - depth 15, 3 requested leaves 56.957 us/op 72.029 us/op 0.79
compact multiproof - depth 15, 3 requested leaves 10.411 us/op 17.090 us/op 0.61
multiproof - depth 15, 4 requested leaves 44.493 us/op 56.424 us/op 0.79
tree offset multiproof - depth 15, 4 requested leaves 74.475 us/op 87.764 us/op 0.85
compact multiproof - depth 15, 4 requested leaves 11.071 us/op 16.066 us/op 0.69
packedRootsBytesToLeafNodes bytes 4000 offset 0 3.6890 us/op 6.1380 us/op 0.60
packedRootsBytesToLeafNodes bytes 4000 offset 1 3.7100 us/op 6.6760 us/op 0.56
packedRootsBytesToLeafNodes bytes 4000 offset 2 3.6120 us/op 5.9190 us/op 0.61
packedRootsBytesToLeafNodes bytes 4000 offset 3 4.2960 us/op 6.1600 us/op 0.70
subtreeFillToContents depth 40 count 250000 89.267 ms/op 119.11 ms/op 0.75
setRoot - gindexBitstring 22.639 ms/op 27.981 ms/op 0.81
setRoot - gindex 24.514 ms/op 27.211 ms/op 0.90
getRoot - gindexBitstring 4.4985 ms/op 5.0102 ms/op 0.90
getRoot - gindex 6.0076 ms/op 5.9647 ms/op 1.01
getHashObject then setHashObject 23.406 ms/op 26.176 ms/op 0.89
setNodeWithFn 24.957 ms/op 23.080 ms/op 1.08
getNodeAtDepth depth 0 x100000 1.8425 ms/op 2.5931 ms/op 0.71
setNodeAtDepth depth 0 x100000 6.4084 ms/op 7.0602 ms/op 0.91
getNodesAtDepth depth 0 x100000 1.7245 ms/op 2.5135 ms/op 0.69
setNodesAtDepth depth 0 x100000 2.3526 ms/op 3.1608 ms/op 0.74
getNodeAtDepth depth 1 x100000 1.9823 ms/op 2.9719 ms/op 0.67
setNodeAtDepth depth 1 x100000 15.136 ms/op 16.645 ms/op 0.91
getNodesAtDepth depth 1 x100000 1.9191 ms/op 2.5882 ms/op 0.74
setNodesAtDepth depth 1 x100000 11.512 ms/op 13.277 ms/op 0.87
getNodeAtDepth depth 2 x100000 2.6345 ms/op 3.6738 ms/op 0.72
setNodeAtDepth depth 2 x100000 22.110 ms/op 24.448 ms/op 0.90
getNodesAtDepth depth 2 x100000 34.682 ms/op 34.792 ms/op 1.00
setNodesAtDepth depth 2 x100000 34.886 ms/op 34.044 ms/op 1.02
tree.getNodesAtDepth - gindexes 11.316 ms/op 13.909 ms/op 0.81
tree.getNodesAtDepth - push all nodes 3.7668 ms/op 6.3321 ms/op 0.59
tree.getNodesAtDepth - navigation 189.98 us/op 224.34 us/op 0.85
tree.setNodesAtDepth - indexes 824.39 us/op 801.92 us/op 1.03
set at depth 8 1.2630 us/op 1.0360 us/op 1.22
set at depth 16 1.7020 us/op 1.4630 us/op 1.16
set at depth 32 2.9000 us/op 2.4170 us/op 1.20
iterateNodesAtDepth 8 256 28.828 us/op 28.891 us/op 1.00
getNodesAtDepth 8 256 6.5600 us/op 7.0950 us/op 0.92
iterateNodesAtDepth 16 65536 8.0546 ms/op 8.6959 ms/op 0.93
getNodesAtDepth 16 65536 4.9440 ms/op 4.4740 ms/op 1.11
iterateNodesAtDepth 32 250000 28.610 ms/op 31.570 ms/op 0.91
getNodesAtDepth 32 250000 10.287 ms/op 10.744 ms/op 0.96
iterateNodesAtDepth 40 250000 32.752 ms/op 30.359 ms/op 1.08
getNodesAtDepth 40 250000 7.8673 ms/op 9.6065 ms/op 0.82
250k validators 13.802 s/op 15.431 s/op 0.89
bitlist bytes to struct (120,90) 932.00 ns/op 1.4970 us/op 0.62
bitlist bytes to tree (120,90) 4.1050 us/op 4.8910 us/op 0.84
bitlist bytes to struct (2048,2048) 2.1970 us/op 2.5630 us/op 0.86
bitlist bytes to tree (2048,2048) 8.9080 us/op 8.5620 us/op 1.04
ByteListType - deserialize 22.247 ms/op 21.388 ms/op 1.04
BasicListType - deserialize 13.869 ms/op 20.875 ms/op 0.66
ByteListType - serialize 21.560 ms/op 20.483 ms/op 1.05
BasicListType - serialize 25.874 ms/op 29.057 ms/op 0.89
BasicListType - tree_convertToStruct 42.880 ms/op 58.696 ms/op 0.73
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 8.3189 ms/op 7.7733 ms/op 1.07
List[uint8, 68719476736] len 300000 ViewDU.get(i) 6.8281 ms/op 7.5801 ms/op 0.90
Array.push len 300000 empty Array - number 9.9801 ms/op 12.158 ms/op 0.82
Array.set len 300000 from new Array - number 3.7548 ms/op 3.0778 ms/op 1.22
Array.set len 300000 - number 10.527 ms/op 9.6488 ms/op 1.09
Uint8Array.set len 300000 316.63 us/op 341.20 us/op 0.93
Uint32Array.set len 300000 556.30 us/op 512.88 us/op 1.08
Container({a: uint8, b: uint8}) getViewDU x300000 59.917 ms/op 119.60 ms/op 0.50
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 17.427 ms/op 23.524 ms/op 0.74
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 460.41 ms/op 716.41 ms/op 0.64
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 647.37 ms/op 641.86 ms/op 1.01
List(Container) len 300000 ViewDU.get(i) 14.770 ms/op 25.092 ms/op 0.59
List(Container) len 300000 ViewDU.getReadonly(i) 14.233 ms/op 14.732 ms/op 0.97
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 68.710 ms/op 113.41 ms/op 0.61
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 9.9699 ms/op 12.120 ms/op 0.82
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 12.405 ms/op 18.932 ms/op 0.66
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 13.669 ms/op 19.025 ms/op 0.72
Array.push len 300000 empty Array - object 9.4993 ms/op 11.334 ms/op 0.84
Array.set len 300000 from new Array - object 3.0413 ms/op 5.5789 ms/op 0.55
Array.set len 300000 - object 9.8268 ms/op 12.089 ms/op 0.81
cachePermanentRootStruct no cache 15.565 us/op 17.547 us/op 0.89
cachePermanentRootStruct with cache 386.00 ns/op 404.00 ns/op 0.96
epochParticipation len 250000 rws 7813 4.3164 ms/op 4.0022 ms/op 1.08
deserialize Attestation - tree 6.0650 us/op 5.9780 us/op 1.01
deserialize Attestation - struct 3.9360 us/op 3.9960 us/op 0.98
deserialize SignedAggregateAndProof - tree 8.0790 us/op 7.8380 us/op 1.03
deserialize SignedAggregateAndProof - struct 6.9770 us/op 6.4660 us/op 1.08
deserialize SyncCommitteeMessage - tree 1.8870 us/op 2.0180 us/op 0.94
deserialize SyncCommitteeMessage - struct 2.4350 us/op 2.4770 us/op 0.98
deserialize SignedContributionAndProof - tree 3.7250 us/op 4.1190 us/op 0.90
deserialize SignedContributionAndProof - struct 5.7040 us/op 5.6110 us/op 1.02
deserialize SignedBeaconBlock - tree 472.58 us/op 458.17 us/op 1.03
deserialize SignedBeaconBlock - struct 292.23 us/op 291.81 us/op 1.00
BeaconState vc 300000 - deserialize tree 1.2090 s/op 1.4184 s/op 0.85
BeaconState vc 300000 - serialize tree 329.53 ms/op 344.59 ms/op 0.96
BeaconState.historicalRoots vc 300000 - deserialize tree 1.3590 us/op 1.4500 us/op 0.94
BeaconState.historicalRoots vc 300000 - serialize tree 1.7620 us/op 2.0550 us/op 0.86
BeaconState.validators vc 300000 - deserialize tree 1.2058 s/op 1.3660 s/op 0.88
BeaconState.validators vc 300000 - serialize tree 290.88 ms/op 325.85 ms/op 0.89
BeaconState.balances vc 300000 - deserialize tree 46.688 ms/op 54.600 ms/op 0.86
BeaconState.balances vc 300000 - serialize tree 6.1047 ms/op 10.353 ms/op 0.59
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 1.1303 ms/op 1.3204 ms/op 0.86
BeaconState.previousEpochParticipation vc 300000 - serialize tree 483.26 us/op 626.52 us/op 0.77
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 1.1806 ms/op 1.2829 ms/op 0.92
BeaconState.currentEpochParticipation vc 300000 - serialize tree 475.75 us/op 555.20 us/op 0.86
BeaconState.inactivityScores vc 300000 - deserialize tree 47.842 ms/op 54.832 ms/op 0.87
BeaconState.inactivityScores vc 300000 - serialize tree 6.6829 ms/op 9.9596 ms/op 0.67
hashTreeRoot Attestation - struct 63.543 us/op 68.355 us/op 0.93
hashTreeRoot Attestation - tree 37.651 us/op 33.255 us/op 1.13
hashTreeRoot SignedAggregateAndProof - struct 87.272 us/op 93.573 us/op 0.93
hashTreeRoot SignedAggregateAndProof - tree 46.852 us/op 55.653 us/op 0.84
hashTreeRoot SyncCommitteeMessage - struct 20.834 us/op 22.853 us/op 0.91
hashTreeRoot SyncCommitteeMessage - tree 9.7460 us/op 12.732 us/op 0.77
hashTreeRoot SignedContributionAndProof - struct 55.701 us/op 60.440 us/op 0.92
hashTreeRoot SignedContributionAndProof - tree 34.293 us/op 27.881 us/op 1.23
hashTreeRoot SignedBeaconBlock - struct 4.6130 ms/op 4.7285 ms/op 0.98
hashTreeRoot SignedBeaconBlock - tree 2.6065 ms/op 2.4481 ms/op 1.06
hashTreeRoot Validator - struct 24.407 us/op 23.420 us/op 1.04
hashTreeRoot Validator - tree 19.143 us/op 18.695 us/op 1.02
BeaconState vc 300000 - hashTreeRoot tree 6.0657 s/op 5.9059 s/op 1.03
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 2.0940 us/op 2.2420 us/op 0.93
BeaconState.validators vc 300000 - hashTreeRoot tree 5.4186 s/op 5.4483 s/op 0.99
BeaconState.balances vc 300000 - hashTreeRoot tree 129.17 ms/op 137.86 ms/op 0.94
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 13.832 ms/op 14.627 ms/op 0.95
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 14.367 ms/op 14.841 ms/op 0.97
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 132.89 ms/op 145.73 ms/op 0.91
hash64 x18 29.528 us/op 30.971 us/op 0.95
hashTwoObjects x18 26.399 us/op 29.613 us/op 0.89
hash64 x1740 2.8651 ms/op 2.9710 ms/op 0.96
hashTwoObjects x1740 2.4885 ms/op 2.7033 ms/op 0.92
hash64 x2700000 4.3967 s/op 4.3453 s/op 1.01
hashTwoObjects x2700000 3.9444 s/op 3.8960 s/op 1.01
get_exitEpoch - ContainerType 534.00 ns/op 700.00 ns/op 0.76
get_exitEpoch - ContainerNodeStructType 451.00 ns/op 573.00 ns/op 0.79
set_exitEpoch - ContainerType 489.00 ns/op 667.00 ns/op 0.73
set_exitEpoch - ContainerNodeStructType 329.00 ns/op 606.00 ns/op 0.54
get_pubkey - ContainerType 1.7740 us/op 2.6850 us/op 0.66
get_pubkey - ContainerNodeStructType 333.00 ns/op 459.00 ns/op 0.73
hashTreeRoot - ContainerType 553.00 ns/op 739.00 ns/op 0.75
hashTreeRoot - ContainerNodeStructType 643.00 ns/op 871.00 ns/op 0.74
createProof - ContainerType 7.9780 us/op 9.7510 us/op 0.82
createProof - ContainerNodeStructType 43.271 us/op 59.433 us/op 0.73
serialize - ContainerType 3.3330 us/op 4.3050 us/op 0.77
serialize - ContainerNodeStructType 2.5830 us/op 3.1760 us/op 0.81
set_exitEpoch_and_hashTreeRoot - ContainerType 6.2820 us/op 7.2350 us/op 0.87
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 17.973 us/op 20.833 us/op 0.86
Array - for of 7.8220 us/op 17.904 us/op 0.44
Array - for(;;) 7.0610 us/op 14.544 us/op 0.49
basicListValue.readonlyValuesArray() 5.3351 ms/op 8.8882 ms/op 0.60
basicListValue.readonlyValuesArray() + loop all 5.3359 ms/op 8.9064 ms/op 0.60
compositeListValue.readonlyValuesArray() 53.875 ms/op 51.434 ms/op 1.05
compositeListValue.readonlyValuesArray() + loop all 36.563 ms/op 48.930 ms/op 0.75
Number64UintType - get balances list 1.8162 ms/op 2.3337 ms/op 0.78
Number64UintType - set balances list 17.157 ms/op 23.636 ms/op 0.73
Number64UintType - get and increase 10 then set 62.133 ms/op 70.306 ms/op 0.88
Number64UintType - increase 10 using applyDelta 21.285 ms/op 24.600 ms/op 0.87
Number64UintType - increase 10 using applyDeltaInBatch 22.318 ms/op 25.142 ms/op 0.89
tree_newTreeFromUint64Deltas 31.377 ms/op 37.865 ms/op 0.83
unsafeUint8ArrayToTree 52.498 ms/op 65.612 ms/op 0.80
bitLength(50) 343.00 ns/op 423.00 ns/op 0.81
bitLengthStr(50) 410.00 ns/op 469.00 ns/op 0.87
bitLength(8000) 320.00 ns/op 368.00 ns/op 0.87
bitLengthStr(8000) 535.00 ns/op 605.00 ns/op 0.88
bitLength(250000) 328.00 ns/op 374.00 ns/op 0.88
bitLengthStr(250000) 673.00 ns/op 717.00 ns/op 0.94
floor - Math.floor (53) 0.64904 ns/op 0.80434 ns/op 0.81
floor - << 0 (53) 0.65147 ns/op 0.80438 ns/op 0.81
floor - Math.floor (512) 0.65385 ns/op 0.80420 ns/op 0.81
floor - << 0 (512) 0.66518 ns/op 0.80407 ns/op 0.83
fnIf(0) 2.0097 ns/op 3.2159 ns/op 0.62
fnSwitch(0) 3.5963 ns/op 6.0310 ns/op 0.60
fnObj(0) 0.62932 ns/op 0.80400 ns/op 0.78
fnArr(0) 0.64709 ns/op 0.80426 ns/op 0.80
fnIf(4) 2.9744 ns/op 5.2259 ns/op 0.57
fnSwitch(4) 3.4800 ns/op 6.0299 ns/op 0.58
fnObj(4) 0.62722 ns/op 0.80423 ns/op 0.78
fnArr(4) 0.63671 ns/op 0.80958 ns/op 0.79
fnIf(9) 4.8795 ns/op 8.0424 ns/op 0.61
fnSwitch(9) 4.5699 ns/op 6.0327 ns/op 0.76
fnObj(9) 0.63371 ns/op 0.80401 ns/op 0.79
fnArr(9) 0.66575 ns/op 0.80430 ns/op 0.83
Container {a,b,vec} - as struct x100000 66.215 us/op 80.792 us/op 0.82
Container {a,b,vec} - as tree x100000 624.03 us/op 1.0053 ms/op 0.62
Container {a,vec,b} - as struct x100000 101.87 us/op 121.03 us/op 0.84
Container {a,vec,b} - as tree x100000 703.89 us/op 1.0856 ms/op 0.65
get 2 props x1000000 - rawObject 362.64 us/op 402.46 us/op 0.90
get 2 props x1000000 - proxy 118.47 ms/op 160.40 ms/op 0.74
get 2 props x1000000 - customObj 366.75 us/op 402.51 us/op 0.91
Simple object binary -> struct 1.2150 us/op 1.4330 us/op 0.85
Simple object binary -> tree_backed 3.5210 us/op 4.4150 us/op 0.80
Simple object struct -> tree_backed 4.6850 us/op 5.9690 us/op 0.78
Simple object tree_backed -> struct 3.7910 us/op 4.7920 us/op 0.79
Simple object struct -> binary 1.8980 us/op 2.4740 us/op 0.77
Simple object tree_backed -> binary 3.3650 us/op 3.6850 us/op 0.91
aggregationBits binary -> struct 1.1460 us/op 1.4860 us/op 0.77
aggregationBits binary -> tree_backed 4.0980 us/op 6.0220 us/op 0.68
aggregationBits struct -> tree_backed 4.6360 us/op 7.6460 us/op 0.61
aggregationBits tree_backed -> struct 1.9920 us/op 2.9720 us/op 0.67
aggregationBits struct -> binary 1.3970 us/op 2.1240 us/op 0.66
aggregationBits tree_backed -> binary 1.8170 us/op 2.6320 us/op 0.69
List(uint8) 100000 binary -> struct 1.9031 ms/op 3.5997 ms/op 0.53
List(uint8) 100000 binary -> tree_backed 195.58 us/op 306.87 us/op 0.64
List(uint8) 100000 struct -> tree_backed 2.2055 ms/op 2.9589 ms/op 0.75
List(uint8) 100000 tree_backed -> struct 1.3444 ms/op 1.9749 ms/op 0.68
List(uint8) 100000 struct -> binary 1.9181 ms/op 2.5539 ms/op 0.75
List(uint8) 100000 tree_backed -> binary 147.79 us/op 182.90 us/op 0.81
List(uint64Number) 100000 binary -> struct 1.7843 ms/op 2.0469 ms/op 0.87
List(uint64Number) 100000 binary -> tree_backed 6.1625 ms/op 7.5358 ms/op 0.82
List(uint64Number) 100000 struct -> tree_backed 7.9956 ms/op 10.240 ms/op 0.78
List(uint64Number) 100000 tree_backed -> struct 3.0184 ms/op 4.9489 ms/op 0.61
List(uint64Number) 100000 struct -> binary 2.2612 ms/op 2.8802 ms/op 0.79
List(uint64Number) 100000 tree_backed -> binary 1.2928 ms/op 2.5061 ms/op 0.52
List(Uint64Bigint) 100000 binary -> struct 5.4413 ms/op 6.7857 ms/op 0.80
List(Uint64Bigint) 100000 binary -> tree_backed 6.3478 ms/op 7.6534 ms/op 0.83
List(Uint64Bigint) 100000 struct -> tree_backed 10.648 ms/op 11.964 ms/op 0.89
List(Uint64Bigint) 100000 tree_backed -> struct 6.9005 ms/op 9.7996 ms/op 0.70
List(Uint64Bigint) 100000 struct -> binary 3.2003 ms/op 4.0787 ms/op 0.78
List(Uint64Bigint) 100000 tree_backed -> binary 1.3060 ms/op 2.9717 ms/op 0.44
Vector(Root) 100000 binary -> struct 62.011 ms/op 77.439 ms/op 0.80
Vector(Root) 100000 binary -> tree_backed 66.405 ms/op 78.852 ms/op 0.84
Vector(Root) 100000 struct -> tree_backed 75.047 ms/op 91.452 ms/op 0.82
Vector(Root) 100000 tree_backed -> struct 85.673 ms/op 104.82 ms/op 0.82
Vector(Root) 100000 struct -> binary 3.1857 ms/op 4.2085 ms/op 0.76
Vector(Root) 100000 tree_backed -> binary 14.090 ms/op 16.961 ms/op 0.83
List(Validator) 100000 binary -> struct 202.83 ms/op 261.48 ms/op 0.78
List(Validator) 100000 binary -> tree_backed 565.00 ms/op 711.77 ms/op 0.79
List(Validator) 100000 struct -> tree_backed 605.52 ms/op 759.36 ms/op 0.80
List(Validator) 100000 tree_backed -> struct 355.20 ms/op 430.43 ms/op 0.83
List(Validator) 100000 struct -> binary 52.608 ms/op 61.976 ms/op 0.85
List(Validator) 100000 tree_backed -> binary 152.16 ms/op 171.61 ms/op 0.89
List(Validator-NS) 100000 binary -> struct 224.11 ms/op 247.93 ms/op 0.90
List(Validator-NS) 100000 binary -> tree_backed 297.36 ms/op 340.67 ms/op 0.87
List(Validator-NS) 100000 struct -> tree_backed 368.77 ms/op 428.84 ms/op 0.86
List(Validator-NS) 100000 tree_backed -> struct 303.82 ms/op 367.71 ms/op 0.83
List(Validator-NS) 100000 struct -> binary 52.404 ms/op 60.897 ms/op 0.86
List(Validator-NS) 100000 tree_backed -> binary 58.545 ms/op 70.759 ms/op 0.83
get epochStatuses - MutableVector 198.81 us/op 184.92 us/op 1.08
get epochStatuses - ViewDU 211.76 us/op 305.03 us/op 0.69
set epochStatuses - ListTreeView 2.1017 ms/op 2.8640 ms/op 0.73
set epochStatuses - ListTreeView - set() 615.82 us/op 806.35 us/op 0.76
set epochStatuses - ListTreeView - commit() 687.05 us/op 841.92 us/op 0.82
bitstring 789.93 ns/op 923.41 ns/op 0.86
bit mask 16.012 ns/op 15.246 ns/op 1.05
struct - increase slot to 1000000 3.0188 ms/op 2.6122 ms/op 1.16
UintNumberType - increase slot to 1000000 43.450 ms/op 58.079 ms/op 0.75
UintBigintType - increase slot to 1000000 639.42 ms/op 723.50 ms/op 0.88
UintBigint8 x 100000 tree_deserialize 5.8721 ms/op 7.6144 ms/op 0.77
UintBigint8 x 100000 tree_serialize 863.69 us/op 1.8364 ms/op 0.47
UintBigint16 x 100000 tree_deserialize 5.4085 ms/op 7.2206 ms/op 0.75
UintBigint16 x 100000 tree_serialize 1.7796 ms/op 2.7656 ms/op 0.64
UintBigint32 x 100000 tree_deserialize 7.4470 ms/op 9.4606 ms/op 0.79
UintBigint32 x 100000 tree_serialize 1.9067 ms/op 2.5245 ms/op 0.76
UintBigint64 x 100000 tree_deserialize 7.9902 ms/op 10.171 ms/op 0.79
UintBigint64 x 100000 tree_serialize 2.2675 ms/op 3.2851 ms/op 0.69
UintBigint8 x 100000 value_deserialize 578.03 us/op 1.0453 ms/op 0.55
UintBigint8 x 100000 value_serialize 1.2491 ms/op 1.5664 ms/op 0.80
UintBigint16 x 100000 value_deserialize 632.84 us/op 1.1021 ms/op 0.57
UintBigint16 x 100000 value_serialize 1.2569 ms/op 1.7198 ms/op 0.73
UintBigint32 x 100000 value_deserialize 635.75 us/op 1.0114 ms/op 0.63
UintBigint32 x 100000 value_serialize 1.3280 ms/op 1.7219 ms/op 0.77
UintBigint64 x 100000 value_deserialize 645.82 us/op 1.0887 ms/op 0.59
UintBigint64 x 100000 value_serialize 1.4658 ms/op 1.9753 ms/op 0.74
UintBigint8 x 100000 deserialize 7.1820 ms/op 9.0182 ms/op 0.80
UintBigint8 x 100000 serialize 2.1295 ms/op 3.3793 ms/op 0.63
UintBigint16 x 100000 deserialize 6.7788 ms/op 8.5429 ms/op 0.79
UintBigint16 x 100000 serialize 2.1696 ms/op 3.6209 ms/op 0.60
UintBigint32 x 100000 deserialize 8.0154 ms/op 10.471 ms/op 0.77
UintBigint32 x 100000 serialize 3.9311 ms/op 6.5152 ms/op 0.60
UintBigint64 x 100000 deserialize 5.2088 ms/op 8.0767 ms/op 0.64
UintBigint64 x 100000 serialize 2.1073 ms/op 3.7022 ms/op 0.57
UintBigint128 x 100000 deserialize 7.8025 ms/op 10.521 ms/op 0.74
UintBigint128 x 100000 serialize 26.766 ms/op 34.672 ms/op 0.77
UintBigint256 x 100000 deserialize 16.013 ms/op 21.377 ms/op 0.75
UintBigint256 x 100000 serialize 87.023 ms/op 97.862 ms/op 0.89
Slice from Uint8Array x25000 1.6199 ms/op 2.0429 ms/op 0.79
Slice from ArrayBuffer x25000 29.110 ms/op 37.508 ms/op 0.78
Slice from ArrayBuffer x25000 + new Uint8Array 30.801 ms/op 41.703 ms/op 0.74
Copy Uint8Array 100000 iterate 1.1020 ms/op 1.8911 ms/op 0.58
Copy Uint8Array 100000 slice 343.04 us/op 214.61 us/op 1.60
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 374.19 us/op 191.97 us/op 1.95
Copy Buffer 100000 Uint8Array.prototype.slice.call 374.26 us/op 188.83 us/op 1.98
Copy Uint8Array 100000 slice + set 712.87 us/op 437.35 us/op 1.63
Copy Uint8Array 100000 subarray + set 358.91 us/op 182.25 us/op 1.97
Copy Uint8Array 100000 slice arrayBuffer 313.25 us/op 188.63 us/op 1.66
Uint64 deserialize 100000 - iterate Uint8Array 2.3568 ms/op 2.9855 ms/op 0.79
Uint64 deserialize 100000 - by Uint32A 2.1216 ms/op 2.8687 ms/op 0.74
Uint64 deserialize 100000 - by DataView.getUint32 x2 2.1973 ms/op 2.9292 ms/op 0.75
Uint64 deserialize 100000 - by DataView.getBigUint64 7.9585 ms/op 9.0280 ms/op 0.88
Uint64 deserialize 100000 - by byte 62.809 ms/op 82.662 ms/op 0.76

by benchmarkbot/action

@g11tech g11tech merged commit 46dee18 into master Apr 21, 2023
@g11tech g11tech deleted the release-please--branches--master branch April 21, 2023 14:02
@wemeetagain
Copy link
Copy Markdown
Member Author

@wemeetagain
Copy link
Copy Markdown
Member Author

@wemeetagain
Copy link
Copy Markdown
Member Author

🤖 Release is at https://github.com/ChainSafe/ssz/releases/tag/ssz-v0.11.1 🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants