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

update and publish simpleserialize.com #267

Merged
merged 2 commits into from
May 19, 2022
Merged

update and publish simpleserialize.com #267

merged 2 commits into from
May 19, 2022

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented May 18, 2022

Motivation
The ssz types in simple serialize are old and error on bellatrix execution types (raised on chainsafe discord ssz troubleshooting)
this push updates the ssz and types package to latest and should resolve issues.

@g11tech g11tech requested a review from a team as a code owner May 18, 2022 20:30
@github-actions
Copy link

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 775c748 Previous: 23fcd05 Ratio
digestTwoHashObjects 50023 times 56.873 ms/op 56.919 ms/op 1.00
digest64 50023 times 61.311 ms/op 59.560 ms/op 1.03
digest 50023 times 59.326 ms/op 59.466 ms/op 1.00
input length 32 1.6170 us/op 1.6070 us/op 1.01
input length 64 1.7030 us/op 1.7010 us/op 1.00
input length 128 2.9150 us/op 2.9410 us/op 0.99
input length 256 4.2410 us/op 4.2350 us/op 1.00
input length 512 6.8770 us/op 6.8870 us/op 1.00
input length 1024 13.158 us/op 13.249 us/op 0.99
digest 1000000 times 1.0373 s/op 1.0378 s/op 1.00
hashObjectToByteArray 50023 times 2.2501 ms/op 2.2454 ms/op 1.00
byteArrayToHashObject 50023 times 2.6962 ms/op 2.7644 ms/op 0.98
getGindicesAtDepth 6.8360 us/op 6.8560 us/op 1.00
iterateAtDepth 14.410 us/op 14.124 us/op 1.02
getGindexBits 651.00 ns/op 690.00 ns/op 0.94
gindexIterator 1.4780 us/op 1.5030 us/op 0.98
hash 2 Uint8Array 2250026 times 2.7491 s/op 2.7496 s/op 1.00
hashTwoObjects 2250026 times 2.5852 s/op 2.5792 s/op 1.00
getNodeH() x7812.5 avg hindex 21.522 us/op 21.508 us/op 1.00
getNodeH() x7812.5 index 0 8.2430 us/op 8.2420 us/op 1.00
getNodeH() x7812.5 index 7 8.2940 us/op 8.2950 us/op 1.00
getNodeH() x7812.5 index 7 with key array 8.2440 us/op 8.2530 us/op 1.00
new LeafNode() x7812.5 144.25 us/op 161.49 us/op 0.89
packedRootsBytesToLeafNodes bytes 4000 offset 0 3.7030 us/op 4.1680 us/op 0.89
packedRootsBytesToLeafNodes bytes 4000 offset 1 3.6840 us/op 4.0580 us/op 0.91
packedRootsBytesToLeafNodes bytes 4000 offset 2 3.6100 us/op 4.0260 us/op 0.90
packedRootsBytesToLeafNodes bytes 4000 offset 3 3.6220 us/op 3.9830 us/op 0.91
subtreeFillToContents depth 40 count 250000 51.935 ms/op 55.155 ms/op 0.94
setRoot - gindexBitstring 16.118 ms/op 16.845 ms/op 0.96
setRoot - gindex 16.704 ms/op 19.292 ms/op 0.87
getRoot - gindexBitstring 5.1880 ms/op 5.5132 ms/op 0.94
getRoot - gindex 5.2077 ms/op 5.2665 ms/op 0.99
getHashObject then setHashObject 22.550 ms/op 23.180 ms/op 0.97
setNodeWithFn 16.226 ms/op 17.732 ms/op 0.92
getNodeAtDepth depth 0 x100000 2.0508 ms/op 2.0182 ms/op 1.02
setNodeAtDepth depth 0 x100000 4.7092 ms/op 4.9011 ms/op 0.96
getNodesAtDepth depth 0 x100000 1.8127 ms/op 1.7832 ms/op 1.02
setNodesAtDepth depth 0 x100000 2.3362 ms/op 2.2347 ms/op 1.05
getNodeAtDepth depth 1 x100000 2.1388 ms/op 2.1605 ms/op 0.99
setNodeAtDepth depth 1 x100000 10.201 ms/op 10.556 ms/op 0.97
getNodesAtDepth depth 1 x100000 1.8900 ms/op 1.8979 ms/op 1.00
setNodesAtDepth depth 1 x100000 7.8558 ms/op 8.4072 ms/op 0.93
getNodeAtDepth depth 2 x100000 2.7130 ms/op 2.6416 ms/op 1.03
setNodeAtDepth depth 2 x100000 16.761 ms/op 17.787 ms/op 0.94
getNodesAtDepth depth 2 x100000 10.101 ms/op 10.658 ms/op 0.95
setNodesAtDepth depth 2 x100000 25.458 ms/op 23.192 ms/op 1.10
tree.getNodesAtDepth - gindexes 9.4151 ms/op 11.579 ms/op 0.81
tree.getNodesAtDepth - push all nodes 2.2601 ms/op 2.3991 ms/op 0.94
tree.getNodesAtDepth - navigation 335.60 us/op 336.06 us/op 1.00
tree.setNodesAtDepth - indexes 558.74 us/op 632.57 us/op 0.88
set at depth 8 976.00 ns/op 1.0640 us/op 0.92
set at depth 16 1.0180 us/op 1.0530 us/op 0.97
set at depth 32 1.8120 us/op 2.0180 us/op 0.90
iterateNodesAtDepth 8 256 21.133 us/op 22.511 us/op 0.94
getNodesAtDepth 8 256 5.4750 us/op 5.5630 us/op 0.98
iterateNodesAtDepth 16 65536 6.1607 ms/op 6.4145 ms/op 0.96
getNodesAtDepth 16 65536 2.2360 ms/op 2.3264 ms/op 0.96
iterateNodesAtDepth 32 250000 23.384 ms/op 23.821 ms/op 0.98
getNodesAtDepth 32 250000 6.3868 ms/op 6.6298 ms/op 0.96
iterateNodesAtDepth 40 250000 23.289 ms/op 23.941 ms/op 0.97
getNodesAtDepth 40 250000 6.8037 ms/op 7.1637 ms/op 0.95
250k validators 3.0269 s/op 3.1844 s/op 0.95
bitlist bytes to struct (120,90) 1.1620 us/op 1.1250 us/op 1.03
bitlist bytes to tree (120,90) 4.8180 us/op 4.7970 us/op 1.00
bitlist bytes to struct (2048,2048) 2.2640 us/op 1.9580 us/op 1.16
bitlist bytes to tree (2048,2048) 7.1200 us/op 7.0120 us/op 1.02
ByteListType - deserialize 18.499 ms/op 19.517 ms/op 0.95
BasicListType - deserialize 18.737 ms/op 18.878 ms/op 0.99
ByteListType - serialize 18.440 ms/op 18.970 ms/op 0.97
BasicListType - serialize 20.400 ms/op 22.291 ms/op 0.92
BasicListType - tree_convertToStruct 39.130 ms/op 40.424 ms/op 0.97
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 5.6294 ms/op 5.9817 ms/op 0.94
List[uint8, 68719476736] len 300000 ViewDU.get(i) 6.1589 ms/op 6.2763 ms/op 0.98
Array.push len 300000 empty Array - number 8.0061 ms/op 8.2332 ms/op 0.97
Array.set len 300000 from new Array - number 2.2968 ms/op 2.3821 ms/op 0.96
Array.set len 300000 - number 8.2714 ms/op 8.9133 ms/op 0.93
Uint8Array.set len 300000 283.22 us/op 283.26 us/op 1.00
Uint32Array.set len 300000 494.75 us/op 507.18 us/op 0.98
Container({a: uint8, b: uint8}) getViewDU x300000 41.484 ms/op 42.360 ms/op 0.98
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 14.460 ms/op 15.223 ms/op 0.95
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 362.69 ms/op 377.69 ms/op 0.96
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 409.30 ms/op 429.55 ms/op 0.95
List(Container) len 300000 ViewDU.get(i) 12.009 ms/op 13.731 ms/op 0.87
List(Container) len 300000 ViewDU.getReadonly(i) 11.998 ms/op 12.790 ms/op 0.94
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 66.954 ms/op 67.567 ms/op 0.99
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 8.0703 ms/op 9.2640 ms/op 0.87
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 10.842 ms/op 12.777 ms/op 0.85
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 10.579 ms/op 13.009 ms/op 0.81
Array.push len 300000 empty Array - object 7.7709 ms/op 8.5148 ms/op 0.91
Array.set len 300000 from new Array - object 2.3232 ms/op 2.4335 ms/op 0.95
Array.set len 300000 - object 7.8250 ms/op 8.7476 ms/op 0.89
cachePermanentRootStruct no cache 11.396 us/op 11.749 us/op 0.97
cachePermanentRootStruct with cache 480.00 ns/op 472.00 ns/op 1.02
epochParticipation len 250000 rws 7813 3.2771 ms/op 3.3466 ms/op 0.98
deserialize Attestation - tree 4.1680 us/op 4.5570 us/op 0.91
deserialize Attestation - struct 2.7850 us/op 2.9420 us/op 0.95
deserialize SignedAggregateAndProof - tree 4.9730 us/op 5.3860 us/op 0.92
deserialize SignedAggregateAndProof - struct 4.4870 us/op 4.6790 us/op 0.96
deserialize SyncCommitteeMessage - tree 1.6500 us/op 1.4820 us/op 1.11
deserialize SyncCommitteeMessage - struct 1.5480 us/op 1.6720 us/op 0.93
deserialize SignedContributionAndProof - tree 3.0280 us/op 3.2930 us/op 0.92
deserialize SignedContributionAndProof - struct 3.6670 us/op 3.8210 us/op 0.96
deserialize SignedBeaconBlock - tree 306.82 us/op 330.11 us/op 0.93
deserialize SignedBeaconBlock - struct 194.13 us/op 207.37 us/op 0.94
BeaconState vc 300000 - deserialize tree 942.63 ms/op 958.60 ms/op 0.98
BeaconState vc 300000 - serialize tree 313.32 ms/op 321.35 ms/op 0.98
BeaconState.historicalRoots vc 300000 - deserialize tree 1.2090 us/op 1.2960 us/op 0.93
BeaconState.historicalRoots vc 300000 - serialize tree 1.4110 us/op 1.4100 us/op 1.00
BeaconState.validators vc 300000 - deserialize tree 867.25 ms/op 889.44 ms/op 0.98
BeaconState.validators vc 300000 - serialize tree 222.33 ms/op 218.21 ms/op 1.02
BeaconState.balances vc 300000 - deserialize tree 34.108 ms/op 37.871 ms/op 0.90
BeaconState.balances vc 300000 - serialize tree 6.7390 ms/op 6.8770 ms/op 0.98
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 831.79 us/op 763.46 us/op 1.09
BeaconState.previousEpochParticipation vc 300000 - serialize tree 523.43 us/op 484.99 us/op 1.08
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 846.96 us/op 731.08 us/op 1.16
BeaconState.currentEpochParticipation vc 300000 - serialize tree 496.96 us/op 481.39 us/op 1.03
BeaconState.inactivityScores vc 300000 - deserialize tree 38.897 ms/op 44.637 ms/op 0.87
BeaconState.inactivityScores vc 300000 - serialize tree 6.2177 ms/op 6.6022 ms/op 0.94
hashTreeRoot Attestation - struct 45.221 us/op 39.675 us/op 1.14
hashTreeRoot Attestation - tree 25.264 us/op 25.108 us/op 1.01
hashTreeRoot SignedAggregateAndProof - struct 67.584 us/op 56.423 us/op 1.20
hashTreeRoot SignedAggregateAndProof - tree 38.050 us/op 38.182 us/op 1.00
hashTreeRoot SyncCommitteeMessage - struct 13.735 us/op 12.352 us/op 1.11
hashTreeRoot SyncCommitteeMessage - tree 8.8060 us/op 8.5870 us/op 1.03
hashTreeRoot SignedContributionAndProof - struct 38.192 us/op 35.085 us/op 1.09
hashTreeRoot SignedContributionAndProof - tree 25.824 us/op 25.916 us/op 1.00
hashTreeRoot SignedBeaconBlock - struct 2.9307 ms/op 2.9140 ms/op 1.01
hashTreeRoot SignedBeaconBlock - tree 2.4704 ms/op 2.4198 ms/op 1.02
hashTreeRoot Validator - struct 14.881 us/op 15.105 us/op 0.99
hashTreeRoot Validator - tree 16.291 us/op 15.887 us/op 1.03
BeaconState vc 300000 - hashTreeRoot tree 5.0473 s/op 5.0775 s/op 0.99
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 2.1580 us/op 2.1320 us/op 1.01
BeaconState.validators vc 300000 - hashTreeRoot tree 4.8268 s/op 4.7757 s/op 1.01
BeaconState.balances vc 300000 - hashTreeRoot tree 115.45 ms/op 132.11 ms/op 0.87
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 12.417 ms/op 12.332 ms/op 1.01
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 12.408 ms/op 12.329 ms/op 1.01
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 113.85 ms/op 119.62 ms/op 0.95
hash64 x18 22.894 us/op 22.569 us/op 1.01
hashTwoObjects x18 23.568 us/op 23.584 us/op 1.00
hash64 x1740 2.1583 ms/op 2.1407 ms/op 1.01
hashTwoObjects x1740 2.2237 ms/op 2.2177 ms/op 1.00
hash64 x2700000 3.3482 s/op 3.3244 s/op 1.01
hashTwoObjects x2700000 3.4514 s/op 3.4442 s/op 1.00
get_exitEpoch - ContainerType 478.00 ns/op 466.00 ns/op 1.03
get_exitEpoch - ContainerNodeStructType 412.00 ns/op 460.00 ns/op 0.90
set_exitEpoch - ContainerType 450.00 ns/op 484.00 ns/op 0.93
set_exitEpoch - ContainerNodeStructType 426.00 ns/op 443.00 ns/op 0.96
get_pubkey - ContainerType 1.7130 us/op 1.6230 us/op 1.06
get_pubkey - ContainerNodeStructType 474.00 ns/op 454.00 ns/op 1.04
hashTreeRoot - ContainerType 868.00 ns/op 717.00 ns/op 1.21
hashTreeRoot - ContainerNodeStructType 934.00 ns/op 843.00 ns/op 1.11
createProof - ContainerType 7.2780 us/op 7.2050 us/op 1.01
createProof - ContainerNodeStructType 35.228 us/op 38.842 us/op 0.91
serialize - ContainerType 2.9110 us/op 2.7110 us/op 1.07
serialize - ContainerNodeStructType 2.2330 us/op 2.3070 us/op 0.97
set_exitEpoch_and_hashTreeRoot - ContainerType 6.0790 us/op 6.0140 us/op 1.01
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 15.728 us/op 15.862 us/op 0.99
Array - for of 10.664 us/op 10.639 us/op 1.00
Array - for(;;) 7.2910 us/op 7.3360 us/op 0.99
basicListValue.readonlyValuesArray() 7.0595 ms/op 8.1430 ms/op 0.87
basicListValue.readonlyValuesArray() + loop all 6.7374 ms/op 6.7936 ms/op 0.99
compositeListValue.readonlyValuesArray() 46.420 ms/op 47.398 ms/op 0.98
compositeListValue.readonlyValuesArray() + loop all 44.493 ms/op 45.439 ms/op 0.98
Number64UintType - get balances list 1.7216 ms/op 1.7296 ms/op 1.00
Number64UintType - set balances list 15.357 ms/op 14.674 ms/op 1.05
Number64UintType - get and increase 10 then set 50.366 ms/op 50.773 ms/op 0.99
Number64UintType - increase 10 using applyDelta 18.935 ms/op 18.577 ms/op 1.02
Number64UintType - increase 10 using applyDeltaInBatch 19.438 ms/op 18.764 ms/op 1.04
tree_newTreeFromUint64Deltas 34.673 ms/op 38.124 ms/op 0.91
unsafeUint8ArrayToTree 47.901 ms/op 49.848 ms/op 0.96
bitLength(50) 458.00 ns/op 488.00 ns/op 0.94
bitLengthStr(50) 679.00 ns/op 655.00 ns/op 1.04
bitLength(8000) 457.00 ns/op 462.00 ns/op 0.99
bitLengthStr(8000) 813.00 ns/op 807.00 ns/op 1.01
bitLength(250000) 456.00 ns/op 465.00 ns/op 0.98
bitLengthStr(250000) 887.00 ns/op 874.00 ns/op 1.01
floor - Math.floor (53) 0.67024 ns/op 0.67040 ns/op 1.00
floor - << 0 (53) 0.67020 ns/op 0.50286 ns/op 1.33
floor - Math.floor (512) 0.66992 ns/op 0.66988 ns/op 1.00
floor - << 0 (512) 0.67058 ns/op 0.50630 ns/op 1.32
fnIf(0) 2.6797 ns/op 2.6785 ns/op 1.00
fnSwitch(0) 3.6815 ns/op 3.6824 ns/op 1.00
fnObj(0) 0.66985 ns/op 0.66995 ns/op 1.00
fnArr(0) 0.66989 ns/op 0.66997 ns/op 1.00
fnIf(4) 4.3514 ns/op 4.3526 ns/op 1.00
fnSwitch(4) 5.0279 ns/op 5.0212 ns/op 1.00
fnObj(4) 0.67041 ns/op 0.66994 ns/op 1.00
fnArr(4) 0.67010 ns/op 0.67014 ns/op 1.00
fnIf(9) 6.7036 ns/op 6.6958 ns/op 1.00
fnSwitch(9) 6.6938 ns/op 6.6967 ns/op 1.00
fnObj(9) 0.67048 ns/op 0.67024 ns/op 1.00
fnArr(9) 0.66981 ns/op 0.67003 ns/op 1.00
Container {a,b,vec} - as struct x100000 50.754 us/op 67.437 us/op 0.75
Container {a,b,vec} - as tree x100000 803.80 us/op 703.47 us/op 1.14
Container {a,vec,b} - as struct x100000 100.95 us/op 100.92 us/op 1.00
Container {a,vec,b} - as tree x100000 839.55 us/op 904.50 us/op 0.93
get 2 props x1000000 - rawObject 335.16 us/op 335.30 us/op 1.00
get 2 props x1000000 - proxy 117.05 ms/op 116.51 ms/op 1.00
get 2 props x1000000 - customObj 335.38 us/op 335.37 us/op 1.00
Simple object binary -> struct 1.2820 us/op 930.00 ns/op 1.38
Simple object binary -> tree_backed 3.3450 us/op 2.5010 us/op 1.34
Simple object struct -> tree_backed 4.4830 us/op 3.2730 us/op 1.37
Simple object tree_backed -> struct 3.7490 us/op 2.8330 us/op 1.32
Simple object struct -> binary 1.8590 us/op 1.5220 us/op 1.22
Simple object tree_backed -> binary 3.3530 us/op 2.5790 us/op 1.30
aggregationBits binary -> struct 1.1440 us/op 730.00 ns/op 1.57
aggregationBits binary -> tree_backed 4.4970 us/op 3.0000 us/op 1.50
aggregationBits struct -> tree_backed 4.3930 us/op 4.0500 us/op 1.08
aggregationBits tree_backed -> struct 1.6590 us/op 1.5640 us/op 1.06
aggregationBits struct -> binary 1.3370 us/op 1.2760 us/op 1.05
aggregationBits tree_backed -> binary 1.7460 us/op 1.5710 us/op 1.11
List(uint8) 100000 binary -> struct 1.9706 ms/op 1.8530 ms/op 1.06
List(uint8) 100000 binary -> tree_backed 182.20 us/op 192.03 us/op 0.95
List(uint8) 100000 struct -> tree_backed 2.2555 ms/op 2.2946 ms/op 0.98
List(uint8) 100000 tree_backed -> struct 1.5448 ms/op 1.5516 ms/op 1.00
List(uint8) 100000 struct -> binary 2.0868 ms/op 2.1033 ms/op 0.99
List(uint8) 100000 tree_backed -> binary 139.80 us/op 146.99 us/op 0.95
List(uint64Number) 100000 binary -> struct 1.5107 ms/op 1.6192 ms/op 0.93
List(uint64Number) 100000 binary -> tree_backed 4.6415 ms/op 5.4948 ms/op 0.84
List(uint64Number) 100000 struct -> tree_backed 7.6784 ms/op 7.9177 ms/op 0.97
List(uint64Number) 100000 tree_backed -> struct 2.9604 ms/op 3.0439 ms/op 0.97
List(uint64Number) 100000 struct -> binary 2.4984 ms/op 2.4856 ms/op 1.01
List(uint64Number) 100000 tree_backed -> binary 1.5136 ms/op 1.5407 ms/op 0.98
List(Uint64Bigint) 100000 binary -> struct 5.6025 ms/op 5.3746 ms/op 1.04
List(Uint64Bigint) 100000 binary -> tree_backed 5.6502 ms/op 5.2636 ms/op 1.07
List(Uint64Bigint) 100000 struct -> tree_backed 8.8486 ms/op 9.1384 ms/op 0.97
List(Uint64Bigint) 100000 tree_backed -> struct 7.1238 ms/op 7.1389 ms/op 1.00
List(Uint64Bigint) 100000 struct -> binary 3.1766 ms/op 3.1625 ms/op 1.00
List(Uint64Bigint) 100000 tree_backed -> binary 1.6860 ms/op 1.5677 ms/op 1.08
Vector(Root) 100000 binary -> struct 51.112 ms/op 51.305 ms/op 1.00
Vector(Root) 100000 binary -> tree_backed 54.149 ms/op 55.850 ms/op 0.97
Vector(Root) 100000 struct -> tree_backed 66.342 ms/op 65.635 ms/op 1.01
Vector(Root) 100000 tree_backed -> struct 77.512 ms/op 72.930 ms/op 1.06
Vector(Root) 100000 struct -> binary 3.0593 ms/op 3.0653 ms/op 1.00
Vector(Root) 100000 tree_backed -> binary 19.143 ms/op 14.295 ms/op 1.34
List(Validator) 100000 binary -> struct 156.63 ms/op 161.24 ms/op 0.97
List(Validator) 100000 binary -> tree_backed 443.07 ms/op 479.05 ms/op 0.92
List(Validator) 100000 struct -> tree_backed 507.22 ms/op 518.66 ms/op 0.98
List(Validator) 100000 tree_backed -> struct 293.66 ms/op 281.69 ms/op 1.04
List(Validator) 100000 struct -> binary 43.230 ms/op 42.627 ms/op 1.01
List(Validator) 100000 tree_backed -> binary 127.89 ms/op 125.12 ms/op 1.02
List(Validator-NS) 100000 binary -> struct 170.62 ms/op 180.29 ms/op 0.95
List(Validator-NS) 100000 binary -> tree_backed 233.36 ms/op 234.51 ms/op 1.00
List(Validator-NS) 100000 struct -> tree_backed 309.77 ms/op 306.89 ms/op 1.01
List(Validator-NS) 100000 tree_backed -> struct 262.07 ms/op 269.19 ms/op 0.97
List(Validator-NS) 100000 struct -> binary 42.289 ms/op 42.515 ms/op 0.99
List(Validator-NS) 100000 tree_backed -> binary 50.882 ms/op 51.253 ms/op 0.99
get epochStatuses - MutableVector 130.13 us/op 120.64 us/op 1.08
get epochStatuses - ViewDU 278.79 us/op 291.36 us/op 0.96
set epochStatuses - ListTreeView 2.4022 ms/op 2.4540 ms/op 0.98
set epochStatuses - ListTreeView - set() 606.93 us/op 629.34 us/op 0.96
set epochStatuses - ListTreeView - commit() 805.89 us/op 832.40 us/op 0.97
bitstring 822.91 ns/op 822.55 ns/op 1.00
bit mask 21.556 ns/op 21.537 ns/op 1.00
struct - increase slot to 1000000 2.1865 ms/op 2.1890 ms/op 1.00
UintNumberType - increase slot to 1000000 41.731 ms/op 41.083 ms/op 1.02
UintBigintType - increase slot to 1000000 672.67 ms/op 678.50 ms/op 0.99
UintBigint8 x 100000 tree_deserialize 7.1389 ms/op 8.5938 ms/op 0.83
UintBigint8 x 100000 tree_serialize 1.1208 ms/op 2.0423 ms/op 0.55
UintBigint16 x 100000 tree_deserialize 6.8474 ms/op 8.4194 ms/op 0.81
UintBigint16 x 100000 tree_serialize 1.8090 ms/op 1.9334 ms/op 0.94
UintBigint32 x 100000 tree_deserialize 8.3960 ms/op 9.5694 ms/op 0.88
UintBigint32 x 100000 tree_serialize 1.9409 ms/op 2.1218 ms/op 0.91
UintBigint64 x 100000 tree_deserialize 10.320 ms/op 10.357 ms/op 1.00
UintBigint64 x 100000 tree_serialize 2.6845 ms/op 2.8936 ms/op 0.93
UintBigint8 x 100000 value_deserialize 803.94 us/op 803.97 us/op 1.00
UintBigint8 x 100000 value_serialize 1.3795 ms/op 1.5639 ms/op 0.88
UintBigint16 x 100000 value_deserialize 854.69 us/op 838.44 us/op 1.02
UintBigint16 x 100000 value_serialize 1.4120 ms/op 1.5750 ms/op 0.90
UintBigint32 x 100000 value_deserialize 736.73 us/op 737.15 us/op 1.00
UintBigint32 x 100000 value_serialize 1.4847 ms/op 1.6719 ms/op 0.89
UintBigint64 x 100000 value_deserialize 831.93 us/op 815.73 us/op 1.02
UintBigint64 x 100000 value_serialize 1.6548 ms/op 1.8479 ms/op 0.90
UintBigint8 x 100000 deserialize 8.2693 ms/op 8.3513 ms/op 0.99
UintBigint8 x 100000 serialize 2.2313 ms/op 2.2130 ms/op 1.01
UintBigint16 x 100000 deserialize 8.4435 ms/op 8.5679 ms/op 0.99
UintBigint16 x 100000 serialize 2.4048 ms/op 2.4128 ms/op 1.00
UintBigint32 x 100000 deserialize 9.0966 ms/op 9.1158 ms/op 1.00
UintBigint32 x 100000 serialize 4.3752 ms/op 4.3329 ms/op 1.01
UintBigint64 x 100000 deserialize 5.9777 ms/op 6.1041 ms/op 0.98
UintBigint64 x 100000 serialize 2.2688 ms/op 2.2758 ms/op 1.00
UintBigint128 x 100000 deserialize 8.5790 ms/op 8.7042 ms/op 0.99
UintBigint128 x 100000 serialize 23.737 ms/op 23.996 ms/op 0.99
UintBigint256 x 100000 deserialize 16.120 ms/op 16.370 ms/op 0.98
UintBigint256 x 100000 serialize 86.792 ms/op 87.889 ms/op 0.99
Slice from Uint8Array x25000 1.5663 ms/op 1.6800 ms/op 0.93
Slice from ArrayBuffer x25000 29.210 ms/op 29.773 ms/op 0.98
Slice from ArrayBuffer x25000 + new Uint8Array 31.273 ms/op 33.246 ms/op 0.94
Copy Uint8Array 100000 iterate 1.0696 ms/op 1.0719 ms/op 1.00
Copy Uint8Array 100000 slice 275.58 us/op 147.25 us/op 1.87
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 274.60 us/op 147.72 us/op 1.86
Copy Buffer 100000 Uint8Array.prototype.slice.call 279.03 us/op 157.93 us/op 1.77
Copy Uint8Array 100000 slice + set 255.33 us/op 331.27 us/op 0.77
Copy Uint8Array 100000 subarray + set 110.54 us/op 154.22 us/op 0.72
Copy Uint8Array 100000 slice arrayBuffer 108.06 us/op 151.22 us/op 0.71
Uint64 deserialize 100000 - iterate Uint8Array 2.2028 ms/op 2.4407 ms/op 0.90
Uint64 deserialize 100000 - by Uint32A 1.9620 ms/op 2.2876 ms/op 0.86
Uint64 deserialize 100000 - by DataView.getUint32 x2 2.0361 ms/op 2.3127 ms/op 0.88
Uint64 deserialize 100000 - by DataView.getBigUint64 7.0373 ms/op 7.0747 ms/op 0.99
Uint64 deserialize 100000 - by byte 69.773 ms/op 69.329 ms/op 1.01

by benchmarkbot/action

@wemeetagain wemeetagain merged commit 23cf358 into master May 19, 2022
@wemeetagain wemeetagain deleted the ss-0.2.0 branch May 19, 2022 01:53
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.

None yet

2 participants