Skip to content

Commit

Permalink
fix: update npm publish step (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain authored Jan 23, 2025
1 parent 26d605e commit a07548a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Check npm config
run: npm config list

- run: node_modules/.bin/lerna exec --ignore root --ignore simpleserialize.com --no-private "npm publish --access public"
- run: node_modules/.bin/lerna publish from-package --no-verify-access
if: ${{ steps.release.outputs.releases_created }}


Expand All @@ -69,4 +69,4 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: simpleserialize
directory: ./packages/simpleserialize.com/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

1 comment on commit a07548a

@github-actions
Copy link

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for some benchmarks.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold.

Benchmark suite Current: a07548a Previous: 26d605e Ratio
Container({a: uint8, b: uint8}) getViewDU x300000 120.63 ms/op 24.954 ms/op 4.83
Full benchmark results
Benchmark suite Current: a07548a Previous: 26d605e Ratio
digestTwoHashObjects 50023 times 48.448 ms/op 48.242 ms/op 1.00
digest2Bytes32 50023 times 55.589 ms/op 54.480 ms/op 1.02
digest 50023 times 53.842 ms/op 53.155 ms/op 1.01
input length 32 1.1890 us/op 1.1800 us/op 1.01
input length 64 1.3090 us/op 1.3260 us/op 0.99
input length 128 2.2480 us/op 2.3000 us/op 0.98
input length 256 3.4420 us/op 3.3890 us/op 1.02
input length 512 5.5740 us/op 5.6600 us/op 0.98
input length 1024 10.767 us/op 10.848 us/op 0.99
digest 1000000 times 892.00 ms/op 871.50 ms/op 1.02
hashObjectToByteArray 50023 times 1.2306 ms/op 1.2296 ms/op 1.00
byteArrayToHashObject 50023 times 1.5653 ms/op 1.5306 ms/op 1.02
digest64 200092 times 215.08 ms/op 210.39 ms/op 1.02
hash 200092 times using batchHash4UintArray64s 237.81 ms/op 237.08 ms/op 1.00
digest64HashObjects 200092 times 192.81 ms/op 192.34 ms/op 1.00
hash 200092 times using batchHash4HashObjectInputs 208.11 ms/op 198.60 ms/op 1.05
getGindicesAtDepth 3.6430 us/op 3.4690 us/op 1.05
iterateAtDepth 6.9780 us/op 6.2510 us/op 1.12
getGindexBits 418.00 ns/op 394.00 ns/op 1.06
gindexIterator 910.00 ns/op 846.00 ns/op 1.08
HashComputationLevel.push then loop 28.609 ms/op 25.884 ms/op 1.11
HashComputation[] push then loop 40.123 ms/op 37.965 ms/op 1.06
hash 2 Uint8Array 500000 times - hashtree 221.98 ms/op 219.36 ms/op 1.01
hashTwoObjects 500000 times - hashtree 207.81 ms/op 215.93 ms/op 0.96
executeHashComputations - hashtree 10.186 ms/op 10.076 ms/op 1.01
hash 2 Uint8Array 500000 times - as-sha256 566.17 ms/op 557.13 ms/op 1.02
hashTwoObjects 500000 times - as-sha256 513.52 ms/op 513.14 ms/op 1.00
executeHashComputations - as-sha256 46.823 ms/op 47.589 ms/op 0.98
hash 2 Uint8Array 500000 times - noble 1.3140 s/op 1.2187 s/op 1.08
hashTwoObjects 500000 times - noble 1.8919 s/op 1.6471 s/op 1.15
executeHashComputations - noble 37.588 ms/op 36.573 ms/op 1.03
getHashComputations 2.5763 ms/op 2.6698 ms/op 0.96
executeHashComputations 9.7111 ms/op 9.4143 ms/op 1.03
get root 15.714 ms/op 15.792 ms/op 1.00
getNodeH() x7812.5 avg hindex 12.279 us/op 12.220 us/op 1.00
getNodeH() x7812.5 index 0 7.5130 us/op 7.6040 us/op 0.99
getNodeH() x7812.5 index 7 7.5580 us/op 7.5770 us/op 1.00
getNodeH() x7812.5 index 7 with key array 6.3480 us/op 6.3750 us/op 1.00
new LeafNode() x7812.5 341.63 us/op 314.16 us/op 1.09
getHashComputations 250000 nodes 15.334 ms/op 14.991 ms/op 1.02
batchHash 250000 nodes 97.852 ms/op 102.41 ms/op 0.96
get root 250000 nodes 114.52 ms/op 122.30 ms/op 0.94
getHashComputations 500000 nodes 28.800 ms/op 41.938 ms/op 0.69
batchHash 500000 nodes 160.82 ms/op 193.87 ms/op 0.83
get root 500000 nodes 237.66 ms/op 236.52 ms/op 1.00
getHashComputations 1000000 nodes 67.901 ms/op 77.162 ms/op 0.88
batchHash 1000000 nodes 312.66 ms/op 363.19 ms/op 0.86
get root 1000000 nodes 458.53 ms/op 472.34 ms/op 0.97
multiproof - depth 15, 1 requested leaves 10.152 us/op 8.1550 us/op 1.24
tree offset multiproof - depth 15, 1 requested leaves 22.211 us/op 17.613 us/op 1.26
compact multiproof - depth 15, 1 requested leaves 4.2960 us/op 2.9840 us/op 1.44
multiproof - depth 15, 2 requested leaves 14.317 us/op 11.454 us/op 1.25
tree offset multiproof - depth 15, 2 requested leaves 25.776 us/op 21.056 us/op 1.22
compact multiproof - depth 15, 2 requested leaves 4.2930 us/op 3.0120 us/op 1.43
multiproof - depth 15, 3 requested leaves 19.910 us/op 16.095 us/op 1.24
tree offset multiproof - depth 15, 3 requested leaves 33.882 us/op 27.465 us/op 1.23
compact multiproof - depth 15, 3 requested leaves 6.0540 us/op 3.6920 us/op 1.64
multiproof - depth 15, 4 requested leaves 25.956 us/op 21.255 us/op 1.22
tree offset multiproof - depth 15, 4 requested leaves 40.974 us/op 33.857 us/op 1.21
compact multiproof - depth 15, 4 requested leaves 6.7850 us/op 4.2590 us/op 1.59
packedRootsBytesToLeafNodes bytes 4000 offset 0 7.7220 us/op 5.6490 us/op 1.37
packedRootsBytesToLeafNodes bytes 4000 offset 1 7.2820 us/op 5.5700 us/op 1.31
packedRootsBytesToLeafNodes bytes 4000 offset 2 6.8220 us/op 5.5640 us/op 1.23
packedRootsBytesToLeafNodes bytes 4000 offset 3 6.4340 us/op 5.6070 us/op 1.15
subtreeFillToContents depth 40 count 250000 45.092 ms/op 48.036 ms/op 0.94
setRoot - gindexBitstring 21.546 ms/op 20.649 ms/op 1.04
setRoot - gindex 23.644 ms/op 21.477 ms/op 1.10
getRoot - gindexBitstring 2.8292 ms/op 2.4876 ms/op 1.14
getRoot - gindex 3.4924 ms/op 3.1590 ms/op 1.11
getHashObject then setHashObject 26.560 ms/op 22.076 ms/op 1.20
setNodeWithFn 21.647 ms/op 20.627 ms/op 1.05
getNodeAtDepth depth 0 x100000 280.06 us/op 280.98 us/op 1.00
setNodeAtDepth depth 0 x100000 2.6699 ms/op 2.6289 ms/op 1.02
getNodesAtDepth depth 0 x100000 312.54 us/op 313.93 us/op 1.00
setNodesAtDepth depth 0 x100000 768.82 us/op 756.81 us/op 1.02
getNodeAtDepth depth 1 x100000 342.09 us/op 342.98 us/op 1.00
setNodeAtDepth depth 1 x100000 9.2201 ms/op 8.1381 ms/op 1.13
getNodesAtDepth depth 1 x100000 435.91 us/op 436.30 us/op 1.00
setNodesAtDepth depth 1 x100000 6.8441 ms/op 7.2749 ms/op 0.94
getNodeAtDepth depth 2 x100000 762.67 us/op 728.39 us/op 1.05
setNodeAtDepth depth 2 x100000 17.931 ms/op 15.266 ms/op 1.17
getNodesAtDepth depth 2 x100000 19.054 ms/op 17.966 ms/op 1.06
setNodesAtDepth depth 2 x100000 23.035 ms/op 21.984 ms/op 1.05
tree.getNodesAtDepth - gindexes 9.7587 ms/op 8.5321 ms/op 1.14
tree.getNodesAtDepth - push all nodes 2.4652 ms/op 2.3108 ms/op 1.07
tree.getNodesAtDepth - navigation 311.40 us/op 311.54 us/op 1.00
tree.setNodesAtDepth - indexes 751.94 us/op 690.13 us/op 1.09
set at depth 8 915.00 ns/op 754.00 ns/op 1.21
set at depth 16 1.3070 us/op 1.1430 us/op 1.14
set at depth 32 2.2710 us/op 1.9240 us/op 1.18
iterateNodesAtDepth 8 256 13.993 us/op 13.735 us/op 1.02
getNodesAtDepth 8 256 3.8290 us/op 3.7280 us/op 1.03
iterateNodesAtDepth 16 65536 4.6565 ms/op 4.4829 ms/op 1.04
getNodesAtDepth 16 65536 2.0190 ms/op 2.0300 ms/op 0.99
iterateNodesAtDepth 32 250000 16.842 ms/op 16.109 ms/op 1.05
getNodesAtDepth 32 250000 4.9039 ms/op 4.8798 ms/op 1.00
iterateNodesAtDepth 40 250000 17.313 ms/op 16.671 ms/op 1.04
getNodesAtDepth 40 250000 5.7422 ms/op 6.6263 ms/op 0.87
250000 validators root getter 115.71 ms/op 120.60 ms/op 0.96
250000 validators batchHash() 92.939 ms/op 86.766 ms/op 1.07
250000 validators hashComputations 15.735 ms/op 20.395 ms/op 0.77
bitlist bytes to struct (120,90) 972.00 ns/op 722.00 ns/op 1.35
bitlist bytes to tree (120,90) 3.5960 us/op 2.8560 us/op 1.26
bitlist bytes to struct (2048,2048) 1.4160 us/op 1.1370 us/op 1.25
bitlist bytes to tree (2048,2048) 4.5780 us/op 4.5990 us/op 1.00
ByteListType - deserialize 9.3671 ms/op 7.4674 ms/op 1.25
BasicListType - deserialize 16.995 ms/op 13.827 ms/op 1.23
ByteListType - serialize 10.308 ms/op 7.4006 ms/op 1.39
BasicListType - serialize 12.968 ms/op 9.9934 ms/op 1.30
BasicListType - tree_convertToStruct 29.209 ms/op 25.822 ms/op 1.13
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 5.4749 ms/op 4.7035 ms/op 1.16
List[uint8, 68719476736] len 300000 ViewDU.get(i) 4.3956 ms/op 4.3949 ms/op 1.00
Array.push len 300000 empty Array - number 7.8023 ms/op 6.8307 ms/op 1.14
Array.set len 300000 from new Array - number 2.6811 ms/op 1.7425 ms/op 1.54
Array.set len 300000 - number 7.4365 ms/op 5.4770 ms/op 1.36
Uint8Array.set len 300000 511.59 us/op 479.57 us/op 1.07
Uint32Array.set len 300000 638.53 us/op 545.45 us/op 1.17
Container({a: uint8, b: uint8}) getViewDU x300000 120.63 ms/op 24.954 ms/op 4.83
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 20.754 ms/op 10.537 ms/op 1.97
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 215.88 ms/op 197.99 ms/op 1.09
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 308.61 ms/op 239.93 ms/op 1.29
List(Container) len 300000 ViewDU.get(i) 10.888 ms/op 6.5940 ms/op 1.65
List(Container) len 300000 ViewDU.getReadonly(i) 9.9303 ms/op 6.3300 ms/op 1.57
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 39.070 ms/op 37.161 ms/op 1.05
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 6.7565 ms/op 5.2513 ms/op 1.29
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 10.284 ms/op 6.0194 ms/op 1.71
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 9.7024 ms/op 5.8522 ms/op 1.66
Array.push len 300000 empty Array - object 7.1282 ms/op 6.4067 ms/op 1.11
Array.set len 300000 from new Array - object 2.0323 ms/op 2.2947 ms/op 0.89
Array.set len 300000 - object 6.5576 ms/op 5.8766 ms/op 1.12
cachePermanentRootStruct no cache 5.3630 us/op 5.1820 us/op 1.03
cachePermanentRootStruct with cache 204.00 ns/op 215.00 ns/op 0.95
epochParticipation len 250000 rws 7813 2.3400 ms/op 2.3305 ms/op 1.00
BeaconState ViewDU hashTreeRoot() vc=200000 114.31 ms/op 110.66 ms/op 1.03
BeaconState ViewDU recursive hash - commit step vc=200000 5.0023 ms/op 4.7006 ms/op 1.06
BeaconState ViewDU validator tree creation vc=10000 41.433 ms/op 38.071 ms/op 1.09
BeaconState ViewDU batchHashTreeRoot vc=200000 105.99 ms/op 99.617 ms/op 1.06
BeaconState ViewDU hashTreeRoot - commit step vc=200000 90.568 ms/op 89.008 ms/op 1.02
BeaconState ViewDU hashTreeRoot - hash step vc=200000 17.058 ms/op 16.318 ms/op 1.05
deserialize Attestation - tree 3.9690 us/op 3.4760 us/op 1.14
deserialize Attestation - struct 2.0180 us/op 1.7850 us/op 1.13
deserialize SignedAggregateAndProof - tree 4.8920 us/op 4.6600 us/op 1.05
deserialize SignedAggregateAndProof - struct 3.0640 us/op 2.8200 us/op 1.09
deserialize SyncCommitteeMessage - tree 1.5080 us/op 1.3800 us/op 1.09
deserialize SyncCommitteeMessage - struct 1.0530 us/op 1.0610 us/op 0.99
deserialize SignedContributionAndProof - tree 3.0550 us/op 2.8090 us/op 1.09
deserialize SignedContributionAndProof - struct 2.3530 us/op 2.2060 us/op 1.07
deserialize SignedBeaconBlock - tree 303.10 us/op 273.30 us/op 1.11
deserialize SignedBeaconBlock - struct 126.56 us/op 114.56 us/op 1.10
BeaconState vc 300000 - deserialize tree 647.56 ms/op 627.26 ms/op 1.03
BeaconState vc 300000 - serialize tree 161.64 ms/op 115.17 ms/op 1.40
BeaconState.historicalRoots vc 300000 - deserialize tree 918.00 ns/op 821.00 ns/op 1.12
BeaconState.historicalRoots vc 300000 - serialize tree 746.00 ns/op 634.00 ns/op 1.18
BeaconState.validators vc 300000 - deserialize tree 624.20 ms/op 569.06 ms/op 1.10
BeaconState.validators vc 300000 - serialize tree 119.27 ms/op 111.17 ms/op 1.07
BeaconState.balances vc 300000 - deserialize tree 30.330 ms/op 25.101 ms/op 1.21
BeaconState.balances vc 300000 - serialize tree 5.1792 ms/op 4.3554 ms/op 1.19
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 1.1071 ms/op 990.23 us/op 1.12
BeaconState.previousEpochParticipation vc 300000 - serialize tree 348.06 us/op 353.16 us/op 0.99
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 1.1637 ms/op 983.82 us/op 1.18
BeaconState.currentEpochParticipation vc 300000 - serialize tree 343.31 us/op 355.97 us/op 0.96
BeaconState.inactivityScores vc 300000 - deserialize tree 28.265 ms/op 29.491 ms/op 0.96
BeaconState.inactivityScores vc 300000 - serialize tree 5.3343 ms/op 3.5144 ms/op 1.52
hashTreeRoot Attestation - struct 24.874 us/op 19.865 us/op 1.25
hashTreeRoot Attestation - tree 9.1920 us/op 9.0920 us/op 1.01
hashTreeRoot SignedAggregateAndProof - struct 30.735 us/op 23.935 us/op 1.28
hashTreeRoot SignedAggregateAndProof - tree 13.574 us/op 13.714 us/op 0.99
hashTreeRoot SyncCommitteeMessage - struct 7.8690 us/op 6.1900 us/op 1.27
hashTreeRoot SyncCommitteeMessage - tree 3.9260 us/op 3.6140 us/op 1.09
hashTreeRoot SignedContributionAndProof - struct 16.841 us/op 16.549 us/op 1.02
hashTreeRoot SignedContributionAndProof - tree 9.3250 us/op 9.4270 us/op 0.99
hashTreeRoot SignedBeaconBlock - struct 1.5376 ms/op 1.2425 ms/op 1.24
hashTreeRoot SignedBeaconBlock - tree 811.40 us/op 814.23 us/op 1.00
hashTreeRoot Validator - struct 9.0370 us/op 7.5840 us/op 1.19
hashTreeRoot Validator - tree 8.2940 us/op 6.8970 us/op 1.20
BeaconState vc 300000 - hashTreeRoot tree 2.3015 s/op 2.2141 s/op 1.04
BeaconState vc 300000 - batchHashTreeRoot tree 4.3243 s/op 4.1420 s/op 1.04
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 1.0360 us/op 983.00 ns/op 1.05
BeaconState.validators vc 300000 - hashTreeRoot tree 2.5911 s/op 2.4133 s/op 1.07
BeaconState.balances vc 300000 - hashTreeRoot tree 34.830 ms/op 35.335 ms/op 0.99
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 4.4164 ms/op 4.3482 ms/op 1.02
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 4.3233 ms/op 4.3482 ms/op 0.99
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 34.840 ms/op 39.670 ms/op 0.88
hash64 x18 9.6550 us/op 8.8570 us/op 1.09
hashTwoObjects x18 8.2210 us/op 8.0260 us/op 1.02
hash64 x1740 799.73 us/op 796.83 us/op 1.00
hashTwoObjects x1740 746.18 us/op 742.40 us/op 1.01
hash64 x2700000 1.2514 s/op 1.2765 s/op 0.98
hashTwoObjects x2700000 1.1437 s/op 1.1629 s/op 0.98
get_exitEpoch - ContainerType 258.00 ns/op 232.00 ns/op 1.11
get_exitEpoch - ContainerNodeStructType 262.00 ns/op 225.00 ns/op 1.16
set_exitEpoch - ContainerType 281.00 ns/op 245.00 ns/op 1.15
set_exitEpoch - ContainerNodeStructType 265.00 ns/op 233.00 ns/op 1.14
get_pubkey - ContainerType 1.0780 us/op 828.00 ns/op 1.30
get_pubkey - ContainerNodeStructType 261.00 ns/op 224.00 ns/op 1.17
hashTreeRoot - ContainerType 452.00 ns/op 403.00 ns/op 1.12
hashTreeRoot - ContainerNodeStructType 443.00 ns/op 362.00 ns/op 1.22
createProof - ContainerType 4.5620 us/op 3.9220 us/op 1.16
createProof - ContainerNodeStructType 23.988 us/op 21.021 us/op 1.14
serialize - ContainerType 1.9730 us/op 1.6120 us/op 1.22
serialize - ContainerNodeStructType 1.6810 us/op 1.4050 us/op 1.20
set_exitEpoch_and_hashTreeRoot - ContainerType 2.7820 us/op 3.6010 us/op 0.77
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 7.9450 us/op 7.6190 us/op 1.04
Array - for of 5.6590 us/op 5.5710 us/op 1.02
Array - for(;;) 5.5670 us/op 5.5280 us/op 1.01
basicListValue.readonlyValuesArray() 6.9353 ms/op 4.1366 ms/op 1.68
basicListValue.readonlyValuesArray() + loop all 7.8731 ms/op 4.2296 ms/op 1.86
compositeListValue.readonlyValuesArray() 28.638 ms/op 25.958 ms/op 1.10
compositeListValue.readonlyValuesArray() + loop all 34.340 ms/op 33.789 ms/op 1.02
Number64UintType - get balances list 4.7987 ms/op 4.3095 ms/op 1.11
Number64UintType - set balances list 10.080 ms/op 10.138 ms/op 0.99
Number64UintType - get and increase 10 then set 40.156 ms/op 36.876 ms/op 1.09
Number64UintType - increase 10 using applyDelta 18.201 ms/op 16.459 ms/op 1.11
Number64UintType - increase 10 using applyDeltaInBatch 18.116 ms/op 16.952 ms/op 1.07
tree_newTreeFromUint64Deltas 22.065 ms/op 21.418 ms/op 1.03
unsafeUint8ArrayToTree 45.511 ms/op 40.481 ms/op 1.12
bitLength(50) 292.00 ns/op 230.00 ns/op 1.27
bitLengthStr(50) 257.00 ns/op 210.00 ns/op 1.22
bitLength(8000) 285.00 ns/op 214.00 ns/op 1.33
bitLengthStr(8000) 293.00 ns/op 259.00 ns/op 1.13
bitLength(250000) 277.00 ns/op 219.00 ns/op 1.26
bitLengthStr(250000) 345.00 ns/op 300.00 ns/op 1.15
floor - Math.floor (53) 1.2427 ns/op 1.2435 ns/op 1.00
floor - << 0 (53) 1.2530 ns/op 1.2655 ns/op 0.99
floor - Math.floor (512) 1.2428 ns/op 1.2432 ns/op 1.00
floor - << 0 (512) 1.2435 ns/op 1.2470 ns/op 1.00
fnIf(0) 1.5536 ns/op 1.5558 ns/op 1.00
fnSwitch(0) 2.1762 ns/op 2.1762 ns/op 1.00
fnObj(0) 1.5591 ns/op 1.5746 ns/op 0.99
fnArr(0) 1.5608 ns/op 1.5540 ns/op 1.00
fnIf(4) 2.1976 ns/op 2.2007 ns/op 1.00
fnSwitch(4) 2.1752 ns/op 2.2021 ns/op 0.99
fnObj(4) 1.5568 ns/op 1.5613 ns/op 1.00
fnArr(4) 1.5548 ns/op 1.5559 ns/op 1.00
fnIf(9) 3.1073 ns/op 3.1120 ns/op 1.00
fnSwitch(9) 2.2193 ns/op 2.1767 ns/op 1.02
fnObj(9) 1.5559 ns/op 1.5547 ns/op 1.00
fnArr(9) 1.5862 ns/op 1.5854 ns/op 1.00
Container {a,b,vec} - as struct x100000 124.67 us/op 126.03 us/op 0.99
Container {a,b,vec} - as tree x100000 559.67 us/op 901.61 us/op 0.62
Container {a,vec,b} - as struct x100000 155.59 us/op 156.33 us/op 1.00
Container {a,vec,b} - as tree x100000 564.65 us/op 564.03 us/op 1.00
get 2 props x1000000 - rawObject 312.00 us/op 311.26 us/op 1.00
get 2 props x1000000 - proxy 73.090 ms/op 73.095 ms/op 1.00
get 2 props x1000000 - customObj 314.85 us/op 311.19 us/op 1.01
Simple object binary -> struct 638.00 ns/op 945.00 ns/op 0.68
Simple object binary -> tree_backed 1.8130 us/op 2.5550 us/op 0.71
Simple object struct -> tree_backed 2.4420 us/op 2.8710 us/op 0.85
Simple object tree_backed -> struct 1.6850 us/op 2.5360 us/op 0.66
Simple object struct -> binary 843.00 ns/op 813.00 ns/op 1.04
Simple object tree_backed -> binary 1.5000 us/op 2.1510 us/op 0.70
aggregationBits binary -> struct 591.00 ns/op 920.00 ns/op 0.64
aggregationBits binary -> tree_backed 2.5750 us/op 3.4560 us/op 0.75
aggregationBits struct -> tree_backed 2.9460 us/op 3.2370 us/op 0.91
aggregationBits tree_backed -> struct 1.1710 us/op 1.2420 us/op 0.94
aggregationBits struct -> binary 752.00 ns/op 810.00 ns/op 0.93
aggregationBits tree_backed -> binary 1.0510 us/op 1.0800 us/op 0.97
List(uint8) 100000 binary -> struct 1.8854 ms/op 1.7173 ms/op 1.10
List(uint8) 100000 binary -> tree_backed 324.66 us/op 271.74 us/op 1.19
List(uint8) 100000 struct -> tree_backed 1.4697 ms/op 1.4152 ms/op 1.04
List(uint8) 100000 tree_backed -> struct 1.1920 ms/op 1.1632 ms/op 1.02
List(uint8) 100000 struct -> binary 1.1018 ms/op 1.0995 ms/op 1.00
List(uint8) 100000 tree_backed -> binary 116.91 us/op 114.82 us/op 1.02
List(uint64Number) 100000 binary -> struct 1.5975 ms/op 1.3802 ms/op 1.16
List(uint64Number) 100000 binary -> tree_backed 4.9799 ms/op 5.2088 ms/op 0.96
List(uint64Number) 100000 struct -> tree_backed 7.2370 ms/op 6.4775 ms/op 1.12
List(uint64Number) 100000 tree_backed -> struct 2.7790 ms/op 2.4408 ms/op 1.14
List(uint64Number) 100000 struct -> binary 1.7515 ms/op 1.5265 ms/op 1.15
List(uint64Number) 100000 tree_backed -> binary 1.0623 ms/op 1.1368 ms/op 0.93
List(Uint64Bigint) 100000 binary -> struct 4.1345 ms/op 3.8934 ms/op 1.06
List(Uint64Bigint) 100000 binary -> tree_backed 5.4988 ms/op 4.5657 ms/op 1.20
List(Uint64Bigint) 100000 struct -> tree_backed 7.7650 ms/op 6.7882 ms/op 1.14
List(Uint64Bigint) 100000 tree_backed -> struct 5.5229 ms/op 5.2603 ms/op 1.05
List(Uint64Bigint) 100000 struct -> binary 2.0848 ms/op 2.2496 ms/op 0.93
List(Uint64Bigint) 100000 tree_backed -> binary 1.5564 ms/op 1.0788 ms/op 1.44
Vector(Root) 100000 binary -> struct 38.509 ms/op 33.262 ms/op 1.16
Vector(Root) 100000 binary -> tree_backed 41.153 ms/op 41.702 ms/op 0.99
Vector(Root) 100000 struct -> tree_backed 54.513 ms/op 50.359 ms/op 1.08
Vector(Root) 100000 tree_backed -> struct 52.245 ms/op 50.346 ms/op 1.04
Vector(Root) 100000 struct -> binary 2.8026 ms/op 2.6936 ms/op 1.04
Vector(Root) 100000 tree_backed -> binary 6.6332 ms/op 6.3356 ms/op 1.05
List(Validator) 100000 binary -> struct 109.95 ms/op 99.827 ms/op 1.10
List(Validator) 100000 binary -> tree_backed 360.64 ms/op 324.14 ms/op 1.11
List(Validator) 100000 struct -> tree_backed 382.52 ms/op 374.20 ms/op 1.02
List(Validator) 100000 tree_backed -> struct 215.98 ms/op 207.61 ms/op 1.04
List(Validator) 100000 struct -> binary 29.645 ms/op 29.420 ms/op 1.01
List(Validator) 100000 tree_backed -> binary 112.74 ms/op 111.08 ms/op 1.02
List(Validator-NS) 100000 binary -> struct 104.60 ms/op 100.80 ms/op 1.04
List(Validator-NS) 100000 binary -> tree_backed 171.91 ms/op 166.43 ms/op 1.03
List(Validator-NS) 100000 struct -> tree_backed 217.12 ms/op 208.44 ms/op 1.04
List(Validator-NS) 100000 tree_backed -> struct 173.52 ms/op 173.76 ms/op 1.00
List(Validator-NS) 100000 struct -> binary 29.254 ms/op 28.991 ms/op 1.01
List(Validator-NS) 100000 tree_backed -> binary 35.917 ms/op 34.311 ms/op 1.05
get epochStatuses - MutableVector 94.358 us/op 92.940 us/op 1.02
get epochStatuses - ViewDU 210.97 us/op 209.16 us/op 1.01
set epochStatuses - ListTreeView 2.2053 ms/op 1.9656 ms/op 1.12
set epochStatuses - ListTreeView - set() 473.12 us/op 451.30 us/op 1.05
set epochStatuses - ListTreeView - commit() 799.90 us/op 784.44 us/op 1.02
bitstring 518.65 ns/op 515.51 ns/op 1.01
bit mask 13.874 ns/op 13.617 ns/op 1.02
struct - increase slot to 1000000 932.86 us/op 932.85 us/op 1.00
UintNumberType - increase slot to 1000000 28.519 ms/op 27.686 ms/op 1.03
UintBigintType - increase slot to 1000000 176.71 ms/op 169.10 ms/op 1.04
UintBigint8 x 100000 tree_deserialize 6.5790 ms/op 4.8903 ms/op 1.35
UintBigint8 x 100000 tree_serialize 1.1296 ms/op 1.1277 ms/op 1.00
UintBigint16 x 100000 tree_deserialize 5.7423 ms/op 4.9589 ms/op 1.16
UintBigint16 x 100000 tree_serialize 1.4812 ms/op 1.3675 ms/op 1.08
UintBigint32 x 100000 tree_deserialize 6.0607 ms/op 5.5648 ms/op 1.09
UintBigint32 x 100000 tree_serialize 2.0377 ms/op 1.7011 ms/op 1.20
UintBigint64 x 100000 tree_deserialize 6.6265 ms/op 6.2867 ms/op 1.05
UintBigint64 x 100000 tree_serialize 2.6007 ms/op 1.7389 ms/op 1.50
UintBigint8 x 100000 value_deserialize 436.09 us/op 437.08 us/op 1.00
UintBigint8 x 100000 value_serialize 812.59 us/op 828.79 us/op 0.98
UintBigint16 x 100000 value_deserialize 466.55 us/op 466.67 us/op 1.00
UintBigint16 x 100000 value_serialize 909.44 us/op 824.38 us/op 1.10
UintBigint32 x 100000 value_deserialize 500.09 us/op 497.92 us/op 1.00
UintBigint32 x 100000 value_serialize 1.0554 ms/op 867.43 us/op 1.22
UintBigint64 x 100000 value_deserialize 562.51 us/op 567.92 us/op 0.99
UintBigint64 x 100000 value_serialize 1.2863 ms/op 1.0637 ms/op 1.21
UintBigint8 x 100000 deserialize 3.7106 ms/op 3.2019 ms/op 1.16
UintBigint8 x 100000 serialize 1.6191 ms/op 1.5584 ms/op 1.04
UintBigint16 x 100000 deserialize 3.7453 ms/op 3.3501 ms/op 1.12
UintBigint16 x 100000 serialize 1.5241 ms/op 1.6043 ms/op 0.95
UintBigint32 x 100000 deserialize 3.7499 ms/op 3.4861 ms/op 1.08
UintBigint32 x 100000 serialize 3.0264 ms/op 2.8817 ms/op 1.05
UintBigint64 x 100000 deserialize 4.4959 ms/op 4.3433 ms/op 1.04
UintBigint64 x 100000 serialize 1.6670 ms/op 1.7030 ms/op 0.98
UintBigint128 x 100000 deserialize 6.5268 ms/op 5.1260 ms/op 1.27
UintBigint128 x 100000 serialize 16.381 ms/op 15.301 ms/op 1.07
UintBigint256 x 100000 deserialize 10.220 ms/op 7.9832 ms/op 1.28
UintBigint256 x 100000 serialize 44.811 ms/op 43.755 ms/op 1.02
Slice from Uint8Array x25000 1.3314 ms/op 1.2927 ms/op 1.03
Slice from ArrayBuffer x25000 17.355 ms/op 16.203 ms/op 1.07
Slice from ArrayBuffer x25000 + new Uint8Array 18.651 ms/op 16.301 ms/op 1.14
Copy Uint8Array 100000 iterate 2.6656 ms/op 2.6388 ms/op 1.01
Copy Uint8Array 100000 slice 125.02 us/op 96.317 us/op 1.30
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 122.46 us/op 96.159 us/op 1.27
Copy Buffer 100000 Uint8Array.prototype.slice.call 119.84 us/op 96.871 us/op 1.24
Copy Uint8Array 100000 slice + set 246.92 us/op 203.29 us/op 1.21
Copy Uint8Array 100000 subarray + set 121.67 us/op 96.832 us/op 1.26
Copy Uint8Array 100000 slice arrayBuffer 125.73 us/op 98.772 us/op 1.27
Uint64 deserialize 100000 - iterate Uint8Array 2.1523 ms/op 2.0015 ms/op 1.08
Uint64 deserialize 100000 - by Uint32A 2.1800 ms/op 1.7632 ms/op 1.24
Uint64 deserialize 100000 - by DataView.getUint32 x2 2.1648 ms/op 1.8065 ms/op 1.20
Uint64 deserialize 100000 - by DataView.getBigUint64 5.3435 ms/op 4.8522 ms/op 1.10
Uint64 deserialize 100000 - by byte 40.970 ms/op 40.816 ms/op 1.00

Please sign in to comment.