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

fix: publish nested package.json files in the lib #438

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

nazarhussain
Copy link
Contributor

Motivation

Support both cjs and esm builds.

Description

  • Fix the files to include in the package`

Steps to test or reproduce

  • Run all tests

@wemeetagain wemeetagain merged commit 2fd9c04 into master Jan 16, 2025
8 checks passed
@wemeetagain wemeetagain deleted the nh/fix-published-files branch January 16, 2025 17:17
Copy link

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 1b432c5 Previous: bd1bf71 Ratio
digestTwoHashObjects 50023 times 48.660 ms/op 48.214 ms/op 1.01
digest2Bytes32 50023 times 54.475 ms/op 54.910 ms/op 0.99
digest 50023 times 54.375 ms/op 55.334 ms/op 0.98
input length 32 1.1910 us/op 1.1960 us/op 1.00
input length 64 1.3420 us/op 1.3700 us/op 0.98
input length 128 2.2580 us/op 2.3220 us/op 0.97
input length 256 3.4230 us/op 3.4280 us/op 1.00
input length 512 5.6690 us/op 5.7200 us/op 0.99
input length 1024 11.002 us/op 11.290 us/op 0.97
digest 1000000 times 870.46 ms/op 893.12 ms/op 0.97
hashObjectToByteArray 50023 times 1.2315 ms/op 1.2521 ms/op 0.98
byteArrayToHashObject 50023 times 1.7857 ms/op 1.7845 ms/op 1.00
digest64 200092 times 214.66 ms/op 216.99 ms/op 0.99
hash 200092 times using batchHash4UintArray64s 240.28 ms/op 238.63 ms/op 1.01
digest64HashObjects 200092 times 193.76 ms/op 194.21 ms/op 1.00
hash 200092 times using batchHash4HashObjectInputs 206.71 ms/op 201.71 ms/op 1.02
getGindicesAtDepth 4.1550 us/op 4.1560 us/op 1.00
iterateAtDepth 7.5510 us/op 7.6520 us/op 0.99
getGindexBits 461.00 ns/op 459.00 ns/op 1.00
gindexIterator 1.0260 us/op 1.0330 us/op 0.99
HashComputationLevel.push then loop 27.215 ms/op 28.450 ms/op 0.96
HashComputation[] push then loop 48.196 ms/op 48.582 ms/op 0.99
hash 2 Uint8Array 500000 times - hashtree 214.37 ms/op 217.13 ms/op 0.99
hashTwoObjects 500000 times - hashtree 219.14 ms/op 207.38 ms/op 1.06
executeHashComputations - hashtree 9.6422 ms/op 10.842 ms/op 0.89
hash 2 Uint8Array 500000 times - as-sha256 553.23 ms/op 566.56 ms/op 0.98
hashTwoObjects 500000 times - as-sha256 511.25 ms/op 509.85 ms/op 1.00
executeHashComputations - as-sha256 45.953 ms/op 49.679 ms/op 0.92
hash 2 Uint8Array 500000 times - noble 1.2087 s/op 1.2028 s/op 1.00
hashTwoObjects 500000 times - noble 1.6291 s/op 1.6233 s/op 1.00
executeHashComputations - noble 37.023 ms/op 40.285 ms/op 0.92
getHashComputations 2.1183 ms/op 2.7797 ms/op 0.76
executeHashComputations 9.3387 ms/op 11.721 ms/op 0.80
get root 15.810 ms/op 15.433 ms/op 1.02
getNodeH() x7812.5 avg hindex 12.299 us/op 12.236 us/op 1.01
getNodeH() x7812.5 index 0 7.4540 us/op 7.4850 us/op 1.00
getNodeH() x7812.5 index 7 7.4560 us/op 7.5400 us/op 0.99
getNodeH() x7812.5 index 7 with key array 6.3770 us/op 6.2710 us/op 1.02
new LeafNode() x7812.5 312.34 us/op 288.37 us/op 1.08
getHashComputations 250000 nodes 14.779 ms/op 17.417 ms/op 0.85
batchHash 250000 nodes 86.712 ms/op 87.200 ms/op 0.99
get root 250000 nodes 120.72 ms/op 117.47 ms/op 1.03
getHashComputations 500000 nodes 28.052 ms/op 29.153 ms/op 0.96
batchHash 500000 nodes 153.96 ms/op 173.10 ms/op 0.89
get root 500000 nodes 245.05 ms/op 241.83 ms/op 1.01
getHashComputations 1000000 nodes 62.265 ms/op 62.902 ms/op 0.99
batchHash 1000000 nodes 334.23 ms/op 335.86 ms/op 1.00
get root 1000000 nodes 480.88 ms/op 458.68 ms/op 1.05
multiproof - depth 15, 1 requested leaves 7.8490 us/op 8.4580 us/op 0.93
tree offset multiproof - depth 15, 1 requested leaves 17.269 us/op 17.978 us/op 0.96
compact multiproof - depth 15, 1 requested leaves 2.9480 us/op 3.2160 us/op 0.92
multiproof - depth 15, 2 requested leaves 11.448 us/op 12.402 us/op 0.92
tree offset multiproof - depth 15, 2 requested leaves 20.700 us/op 22.156 us/op 0.93
compact multiproof - depth 15, 2 requested leaves 2.9290 us/op 3.1740 us/op 0.92
multiproof - depth 15, 3 requested leaves 15.975 us/op 16.775 us/op 0.95
tree offset multiproof - depth 15, 3 requested leaves 26.851 us/op 28.282 us/op 0.95
compact multiproof - depth 15, 3 requested leaves 3.5490 us/op 3.9830 us/op 0.89
multiproof - depth 15, 4 requested leaves 20.926 us/op 22.347 us/op 0.94
tree offset multiproof - depth 15, 4 requested leaves 33.339 us/op 34.748 us/op 0.96
compact multiproof - depth 15, 4 requested leaves 4.2300 us/op 5.0820 us/op 0.83
packedRootsBytesToLeafNodes bytes 4000 offset 0 5.4750 us/op 5.8990 us/op 0.93
packedRootsBytesToLeafNodes bytes 4000 offset 1 5.4470 us/op 5.6500 us/op 0.96
packedRootsBytesToLeafNodes bytes 4000 offset 2 5.4280 us/op 5.7870 us/op 0.94
packedRootsBytesToLeafNodes bytes 4000 offset 3 5.5160 us/op 5.6940 us/op 0.97
subtreeFillToContents depth 40 count 250000 46.533 ms/op 50.868 ms/op 0.91
setRoot - gindexBitstring 20.802 ms/op 21.547 ms/op 0.97
setRoot - gindex 21.449 ms/op 21.337 ms/op 1.01
getRoot - gindexBitstring 2.5362 ms/op 2.5354 ms/op 1.00
getRoot - gindex 3.2056 ms/op 3.2442 ms/op 0.99
getHashObject then setHashObject 21.811 ms/op 21.674 ms/op 1.01
setNodeWithFn 20.583 ms/op 19.686 ms/op 1.05
getNodeAtDepth depth 0 x100000 279.90 us/op 280.21 us/op 1.00
setNodeAtDepth depth 0 x100000 2.5504 ms/op 2.5287 ms/op 1.01
getNodesAtDepth depth 0 x100000 311.78 us/op 314.34 us/op 0.99
setNodesAtDepth depth 0 x100000 759.20 us/op 758.80 us/op 1.00
getNodeAtDepth depth 1 x100000 342.59 us/op 342.12 us/op 1.00
setNodeAtDepth depth 1 x100000 8.4678 ms/op 8.6922 ms/op 0.97
getNodesAtDepth depth 1 x100000 435.78 us/op 440.62 us/op 0.99
setNodesAtDepth depth 1 x100000 7.6986 ms/op 7.7253 ms/op 1.00
getNodeAtDepth depth 2 x100000 869.01 us/op 738.74 us/op 1.18
setNodeAtDepth depth 2 x100000 15.898 ms/op 15.800 ms/op 1.01
getNodesAtDepth depth 2 x100000 18.281 ms/op 18.549 ms/op 0.99
setNodesAtDepth depth 2 x100000 25.730 ms/op 24.295 ms/op 1.06
tree.getNodesAtDepth - gindexes 8.4317 ms/op 9.9424 ms/op 0.85
tree.getNodesAtDepth - push all nodes 2.2994 ms/op 2.4207 ms/op 0.95
tree.getNodesAtDepth - navigation 320.26 us/op 311.21 us/op 1.03
tree.setNodesAtDepth - indexes 726.94 us/op 730.39 us/op 1.00
set at depth 8 777.00 ns/op 674.00 ns/op 1.15
set at depth 16 1.1460 us/op 1.2660 us/op 0.91
set at depth 32 1.9450 us/op 2.0550 us/op 0.95
iterateNodesAtDepth 8 256 13.638 us/op 13.735 us/op 0.99
getNodesAtDepth 8 256 3.7410 us/op 3.6980 us/op 1.01
iterateNodesAtDepth 16 65536 4.3937 ms/op 4.7917 ms/op 0.92
getNodesAtDepth 16 65536 2.0330 ms/op 2.0483 ms/op 0.99
iterateNodesAtDepth 32 250000 18.257 ms/op 16.722 ms/op 1.09
getNodesAtDepth 32 250000 4.4499 ms/op 4.9688 ms/op 0.90
iterateNodesAtDepth 40 250000 15.373 ms/op 17.428 ms/op 0.88
getNodesAtDepth 40 250000 4.4527 ms/op 5.0833 ms/op 0.88
250000 validators root getter 122.38 ms/op 116.26 ms/op 1.05
250000 validators batchHash() 83.559 ms/op 97.811 ms/op 0.85
250000 validators hashComputations 14.346 ms/op 20.447 ms/op 0.70
bitlist bytes to struct (120,90) 1.0210 us/op 702.00 ns/op 1.45
bitlist bytes to tree (120,90) 3.7950 us/op 2.4700 us/op 1.54
bitlist bytes to struct (2048,2048) 1.3850 us/op 977.00 ns/op 1.42
bitlist bytes to tree (2048,2048) 4.6870 us/op 4.0440 us/op 1.16
ByteListType - deserialize 8.0470 ms/op 7.2957 ms/op 1.10
BasicListType - deserialize 18.291 ms/op 13.843 ms/op 1.32
ByteListType - serialize 7.6781 ms/op 7.5326 ms/op 1.02
BasicListType - serialize 11.239 ms/op 9.5721 ms/op 1.17
BasicListType - tree_convertToStruct 30.872 ms/op 25.295 ms/op 1.22
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 5.0456 ms/op 4.6766 ms/op 1.08
List[uint8, 68719476736] len 300000 ViewDU.get(i) 4.2539 ms/op 4.4999 ms/op 0.95
Array.push len 300000 empty Array - number 7.0583 ms/op 6.7360 ms/op 1.05
Array.set len 300000 from new Array - number 1.7398 ms/op 1.7898 ms/op 0.97
Array.set len 300000 - number 5.6376 ms/op 5.4363 ms/op 1.04
Uint8Array.set len 300000 477.87 us/op 481.58 us/op 0.99
Uint32Array.set len 300000 539.82 us/op 562.31 us/op 0.96
Container({a: uint8, b: uint8}) getViewDU x300000 25.509 ms/op 25.864 ms/op 0.99
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 10.627 ms/op 10.543 ms/op 1.01
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 206.30 ms/op 210.93 ms/op 0.98
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 239.68 ms/op 222.12 ms/op 1.08
List(Container) len 300000 ViewDU.get(i) 6.4757 ms/op 6.6587 ms/op 0.97
List(Container) len 300000 ViewDU.getReadonly(i) 6.2752 ms/op 6.4152 ms/op 0.98
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 39.066 ms/op 40.093 ms/op 0.97
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 5.3844 ms/op 5.0879 ms/op 1.06
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 6.1412 ms/op 6.1277 ms/op 1.00
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 5.9571 ms/op 6.1256 ms/op 0.97
Array.push len 300000 empty Array - object 6.3281 ms/op 7.1656 ms/op 0.88
Array.set len 300000 from new Array - object 2.1315 ms/op 2.1657 ms/op 0.98
Array.set len 300000 - object 6.1385 ms/op 7.1649 ms/op 0.86
cachePermanentRootStruct no cache 5.2750 us/op 5.2470 us/op 1.01
cachePermanentRootStruct with cache 213.00 ns/op 198.00 ns/op 1.08
epochParticipation len 250000 rws 7813 2.2573 ms/op 2.3664 ms/op 0.95
BeaconState ViewDU hashTreeRoot() vc=200000 114.59 ms/op 116.19 ms/op 0.99
BeaconState ViewDU recursive hash - commit step vc=200000 4.8306 ms/op 4.7105 ms/op 1.03
BeaconState ViewDU validator tree creation vc=10000 37.559 ms/op 40.202 ms/op 0.93
BeaconState ViewDU batchHashTreeRoot vc=200000 102.82 ms/op 103.14 ms/op 1.00
BeaconState ViewDU hashTreeRoot - commit step vc=200000 89.467 ms/op 92.118 ms/op 0.97
BeaconState ViewDU hashTreeRoot - hash step vc=200000 17.363 ms/op 17.299 ms/op 1.00
deserialize Attestation - tree 3.5250 us/op 3.6000 us/op 0.98
deserialize Attestation - struct 1.7850 us/op 1.8260 us/op 0.98
deserialize SignedAggregateAndProof - tree 4.6580 us/op 4.7990 us/op 0.97
deserialize SignedAggregateAndProof - struct 2.8710 us/op 2.9530 us/op 0.97
deserialize SyncCommitteeMessage - tree 1.3560 us/op 1.3650 us/op 0.99
deserialize SyncCommitteeMessage - struct 1.1060 us/op 1.0170 us/op 1.09
deserialize SignedContributionAndProof - tree 2.8770 us/op 3.2270 us/op 0.89
deserialize SignedContributionAndProof - struct 2.4680 us/op 2.3520 us/op 1.05
deserialize SignedBeaconBlock - tree 287.61 us/op 280.02 us/op 1.03
deserialize SignedBeaconBlock - struct 118.58 us/op 119.85 us/op 0.99
BeaconState vc 300000 - deserialize tree 640.78 ms/op 642.68 ms/op 1.00
BeaconState vc 300000 - serialize tree 145.22 ms/op 165.36 ms/op 0.88
BeaconState.historicalRoots vc 300000 - deserialize tree 816.00 ns/op 831.00 ns/op 0.98
BeaconState.historicalRoots vc 300000 - serialize tree 632.00 ns/op 637.00 ns/op 0.99
BeaconState.validators vc 300000 - deserialize tree 607.17 ms/op 617.43 ms/op 0.98
BeaconState.validators vc 300000 - serialize tree 113.63 ms/op 118.78 ms/op 0.96
BeaconState.balances vc 300000 - deserialize tree 25.446 ms/op 28.246 ms/op 0.90
BeaconState.balances vc 300000 - serialize tree 3.7632 ms/op 4.5370 ms/op 0.83
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 905.67 us/op 1.0529 ms/op 0.86
BeaconState.previousEpochParticipation vc 300000 - serialize tree 322.36 us/op 347.93 us/op 0.93
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 895.55 us/op 1.1216 ms/op 0.80
BeaconState.currentEpochParticipation vc 300000 - serialize tree 327.04 us/op 343.60 us/op 0.95
BeaconState.inactivityScores vc 300000 - deserialize tree 29.030 ms/op 30.829 ms/op 0.94
BeaconState.inactivityScores vc 300000 - serialize tree 3.7958 ms/op 3.7332 ms/op 1.02
hashTreeRoot Attestation - struct 16.195 us/op 16.216 us/op 1.00
hashTreeRoot Attestation - tree 9.5690 us/op 9.5400 us/op 1.00
hashTreeRoot SignedAggregateAndProof - struct 24.256 us/op 24.008 us/op 1.01
hashTreeRoot SignedAggregateAndProof - tree 14.330 us/op 14.287 us/op 1.00
hashTreeRoot SyncCommitteeMessage - struct 6.1800 us/op 6.1000 us/op 1.01
hashTreeRoot SyncCommitteeMessage - tree 3.7450 us/op 3.8370 us/op 0.98
hashTreeRoot SignedContributionAndProof - struct 14.715 us/op 14.473 us/op 1.02
hashTreeRoot SignedContributionAndProof - tree 9.7780 us/op 9.8740 us/op 0.99
hashTreeRoot SignedBeaconBlock - struct 1.2540 ms/op 1.2317 ms/op 1.02
hashTreeRoot SignedBeaconBlock - tree 854.32 us/op 850.81 us/op 1.00
hashTreeRoot Validator - struct 7.4770 us/op 7.7140 us/op 0.97
hashTreeRoot Validator - tree 7.1700 us/op 7.1500 us/op 1.00
BeaconState vc 300000 - hashTreeRoot tree 2.3868 s/op 2.3188 s/op 1.03
BeaconState vc 300000 - batchHashTreeRoot tree 4.2513 s/op 4.2688 s/op 1.00
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 1.0990 us/op 1.0600 us/op 1.04
BeaconState.validators vc 300000 - hashTreeRoot tree 2.5665 s/op 2.5275 s/op 1.02
BeaconState.balances vc 300000 - hashTreeRoot tree 36.496 ms/op 36.638 ms/op 1.00
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 4.5443 ms/op 4.5346 ms/op 1.00
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 4.5355 ms/op 4.5472 ms/op 1.00
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 40.949 ms/op 36.914 ms/op 1.11
hash64 x18 8.7840 us/op 8.8460 us/op 0.99
hashTwoObjects x18 8.3710 us/op 8.6650 us/op 0.97
hash64 x1740 813.60 us/op 808.29 us/op 1.01
hashTwoObjects x1740 774.18 us/op 806.87 us/op 0.96
hash64 x2700000 1.2569 s/op 1.2755 s/op 0.99
hashTwoObjects x2700000 1.2048 s/op 1.2520 s/op 0.96
get_exitEpoch - ContainerType 239.00 ns/op 233.00 ns/op 1.03
get_exitEpoch - ContainerNodeStructType 248.00 ns/op 224.00 ns/op 1.11
set_exitEpoch - ContainerType 259.00 ns/op 257.00 ns/op 1.01
set_exitEpoch - ContainerNodeStructType 258.00 ns/op 246.00 ns/op 1.05
get_pubkey - ContainerType 993.00 ns/op 954.00 ns/op 1.04
get_pubkey - ContainerNodeStructType 229.00 ns/op 231.00 ns/op 0.99
hashTreeRoot - ContainerType 463.00 ns/op 441.00 ns/op 1.05
hashTreeRoot - ContainerNodeStructType 474.00 ns/op 427.00 ns/op 1.11
createProof - ContainerType 4.1830 us/op 4.1220 us/op 1.01
createProof - ContainerNodeStructType 22.102 us/op 22.006 us/op 1.00
serialize - ContainerType 1.7090 us/op 1.7350 us/op 0.99
serialize - ContainerNodeStructType 1.4980 us/op 1.4230 us/op 1.05
set_exitEpoch_and_hashTreeRoot - ContainerType 3.8330 us/op 3.1570 us/op 1.21
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 7.8950 us/op 7.5090 us/op 1.05
Array - for of 5.9810 us/op 5.8700 us/op 1.02
Array - for(;;) 5.9000 us/op 5.5060 us/op 1.07
basicListValue.readonlyValuesArray() 4.0937 ms/op 4.1652 ms/op 0.98
basicListValue.readonlyValuesArray() + loop all 4.1778 ms/op 4.1403 ms/op 1.01
compositeListValue.readonlyValuesArray() 24.369 ms/op 31.045 ms/op 0.78
compositeListValue.readonlyValuesArray() + loop all 31.011 ms/op 32.391 ms/op 0.96
Number64UintType - get balances list 4.4167 ms/op 4.1857 ms/op 1.06
Number64UintType - set balances list 9.9473 ms/op 10.021 ms/op 0.99
Number64UintType - get and increase 10 then set 41.201 ms/op 41.113 ms/op 1.00
Number64UintType - increase 10 using applyDelta 16.550 ms/op 16.931 ms/op 0.98
Number64UintType - increase 10 using applyDeltaInBatch 16.671 ms/op 16.979 ms/op 0.98
tree_newTreeFromUint64Deltas 22.665 ms/op 22.539 ms/op 1.01
unsafeUint8ArrayToTree 41.604 ms/op 39.846 ms/op 1.04
bitLength(50) 240.00 ns/op 243.00 ns/op 0.99
bitLengthStr(50) 217.00 ns/op 225.00 ns/op 0.96
bitLength(8000) 229.00 ns/op 229.00 ns/op 1.00
bitLengthStr(8000) 260.00 ns/op 266.00 ns/op 0.98
bitLength(250000) 233.00 ns/op 239.00 ns/op 0.97
bitLengthStr(250000) 300.00 ns/op 301.00 ns/op 1.00
floor - Math.floor (53) 1.2431 ns/op 1.2436 ns/op 1.00
floor - << 0 (53) 1.2460 ns/op 1.2473 ns/op 1.00
floor - Math.floor (512) 1.2429 ns/op 1.2430 ns/op 1.00
floor - << 0 (512) 1.2434 ns/op 1.2436 ns/op 1.00
fnIf(0) 1.5538 ns/op 1.5557 ns/op 1.00
fnSwitch(0) 2.1812 ns/op 2.1763 ns/op 1.00
fnObj(0) 1.5599 ns/op 1.5571 ns/op 1.00
fnArr(0) 1.5541 ns/op 1.5550 ns/op 1.00
fnIf(4) 2.1801 ns/op 2.2063 ns/op 0.99
fnSwitch(4) 2.1760 ns/op 2.1766 ns/op 1.00
fnObj(4) 1.5587 ns/op 1.5680 ns/op 0.99
fnArr(4) 1.5540 ns/op 1.5603 ns/op 1.00
fnIf(9) 3.1063 ns/op 3.1087 ns/op 1.00
fnSwitch(9) 2.1741 ns/op 2.1752 ns/op 1.00
fnObj(9) 1.5554 ns/op 1.5579 ns/op 1.00
fnArr(9) 1.5602 ns/op 1.5547 ns/op 1.00
Container {a,b,vec} - as struct x100000 124.51 us/op 124.67 us/op 1.00
Container {a,b,vec} - as tree x100000 529.11 us/op 528.76 us/op 1.00
Container {a,vec,b} - as struct x100000 155.51 us/op 155.62 us/op 1.00
Container {a,vec,b} - as tree x100000 497.68 us/op 498.75 us/op 1.00
get 2 props x1000000 - rawObject 312.57 us/op 311.38 us/op 1.00
get 2 props x1000000 - proxy 73.097 ms/op 89.591 ms/op 0.82
get 2 props x1000000 - customObj 312.40 us/op 311.45 us/op 1.00
Simple object binary -> struct 784.00 ns/op 568.00 ns/op 1.38
Simple object binary -> tree_backed 2.0540 us/op 1.6000 us/op 1.28
Simple object struct -> tree_backed 2.6830 us/op 2.1350 us/op 1.26
Simple object tree_backed -> struct 2.0120 us/op 1.5180 us/op 1.33
Simple object struct -> binary 1.0080 us/op 869.00 ns/op 1.16
Simple object tree_backed -> binary 1.7440 us/op 1.2690 us/op 1.37
aggregationBits binary -> struct 721.00 ns/op 476.00 ns/op 1.51
aggregationBits binary -> tree_backed 2.8300 us/op 2.0600 us/op 1.37
aggregationBits struct -> tree_backed 3.2710 us/op 2.4430 us/op 1.34
aggregationBits tree_backed -> struct 1.3680 us/op 934.00 ns/op 1.46
aggregationBits struct -> binary 892.00 ns/op 771.00 ns/op 1.16
aggregationBits tree_backed -> binary 1.1820 us/op 860.00 ns/op 1.37
List(uint8) 100000 binary -> struct 1.9513 ms/op 1.7822 ms/op 1.09
List(uint8) 100000 binary -> tree_backed 324.19 us/op 271.95 us/op 1.19
List(uint8) 100000 struct -> tree_backed 1.4820 ms/op 1.4009 ms/op 1.06
List(uint8) 100000 tree_backed -> struct 1.2667 ms/op 1.1636 ms/op 1.09
List(uint8) 100000 struct -> binary 1.1406 ms/op 1.1384 ms/op 1.00
List(uint8) 100000 tree_backed -> binary 108.09 us/op 108.84 us/op 0.99
List(uint64Number) 100000 binary -> struct 1.4438 ms/op 1.3507 ms/op 1.07
List(uint64Number) 100000 binary -> tree_backed 4.9246 ms/op 4.5207 ms/op 1.09
List(uint64Number) 100000 struct -> tree_backed 6.4700 ms/op 6.4283 ms/op 1.01
List(uint64Number) 100000 tree_backed -> struct 2.4619 ms/op 2.6392 ms/op 0.93
List(uint64Number) 100000 struct -> binary 1.6783 ms/op 1.5768 ms/op 1.06
List(uint64Number) 100000 tree_backed -> binary 1.0350 ms/op 1.0442 ms/op 0.99
List(Uint64Bigint) 100000 binary -> struct 4.0683 ms/op 4.0865 ms/op 1.00
List(Uint64Bigint) 100000 binary -> tree_backed 5.2138 ms/op 4.6684 ms/op 1.12
List(Uint64Bigint) 100000 struct -> tree_backed 7.4821 ms/op 7.8694 ms/op 0.95
List(Uint64Bigint) 100000 tree_backed -> struct 5.4148 ms/op 5.0070 ms/op 1.08
List(Uint64Bigint) 100000 struct -> binary 2.0782 ms/op 2.0652 ms/op 1.01
List(Uint64Bigint) 100000 tree_backed -> binary 1.3184 ms/op 1.1303 ms/op 1.17
Vector(Root) 100000 binary -> struct 38.278 ms/op 37.813 ms/op 1.01
Vector(Root) 100000 binary -> tree_backed 37.654 ms/op 38.221 ms/op 0.99
Vector(Root) 100000 struct -> tree_backed 52.981 ms/op 52.337 ms/op 1.01
Vector(Root) 100000 tree_backed -> struct 50.857 ms/op 55.220 ms/op 0.92
Vector(Root) 100000 struct -> binary 2.9004 ms/op 3.6535 ms/op 0.79
Vector(Root) 100000 tree_backed -> binary 7.9125 ms/op 6.5915 ms/op 1.20
List(Validator) 100000 binary -> struct 100.10 ms/op 105.59 ms/op 0.95
List(Validator) 100000 binary -> tree_backed 365.72 ms/op 359.11 ms/op 1.02
List(Validator) 100000 struct -> tree_backed 387.00 ms/op 389.67 ms/op 0.99
List(Validator) 100000 tree_backed -> struct 219.18 ms/op 221.30 ms/op 0.99
List(Validator) 100000 struct -> binary 29.335 ms/op 29.717 ms/op 0.99
List(Validator) 100000 tree_backed -> binary 108.84 ms/op 110.32 ms/op 0.99
List(Validator-NS) 100000 binary -> struct 115.74 ms/op 122.02 ms/op 0.95
List(Validator-NS) 100000 binary -> tree_backed 154.46 ms/op 161.88 ms/op 0.95
List(Validator-NS) 100000 struct -> tree_backed 221.71 ms/op 227.28 ms/op 0.98
List(Validator-NS) 100000 tree_backed -> struct 186.01 ms/op 191.80 ms/op 0.97
List(Validator-NS) 100000 struct -> binary 29.270 ms/op 30.125 ms/op 0.97
List(Validator-NS) 100000 tree_backed -> binary 33.549 ms/op 35.259 ms/op 0.95
get epochStatuses - MutableVector 96.356 us/op 94.189 us/op 1.02
get epochStatuses - ViewDU 200.78 us/op 203.11 us/op 0.99
set epochStatuses - ListTreeView 2.1499 ms/op 2.1797 ms/op 0.99
set epochStatuses - ListTreeView - set() 439.67 us/op 440.89 us/op 1.00
set epochStatuses - ListTreeView - commit() 747.23 us/op 819.82 us/op 0.91
bitstring 514.16 ns/op 519.33 ns/op 0.99
bit mask 13.777 ns/op 14.022 ns/op 0.98
struct - increase slot to 1000000 945.95 us/op 932.53 us/op 1.01
UintNumberType - increase slot to 1000000 26.778 ms/op 26.767 ms/op 1.00
UintBigintType - increase slot to 1000000 168.17 ms/op 174.63 ms/op 0.96
UintBigint8 x 100000 tree_deserialize 5.0770 ms/op 4.9949 ms/op 1.02
UintBigint8 x 100000 tree_serialize 1.0962 ms/op 1.0974 ms/op 1.00
UintBigint16 x 100000 tree_deserialize 5.1743 ms/op 5.0827 ms/op 1.02
UintBigint16 x 100000 tree_serialize 1.2610 ms/op 1.3560 ms/op 0.93
UintBigint32 x 100000 tree_deserialize 5.3368 ms/op 5.6325 ms/op 0.95
UintBigint32 x 100000 tree_serialize 1.7761 ms/op 1.8834 ms/op 0.94
UintBigint64 x 100000 tree_deserialize 6.0404 ms/op 6.4982 ms/op 0.93
UintBigint64 x 100000 tree_serialize 2.4200 ms/op 2.5889 ms/op 0.93
UintBigint8 x 100000 value_deserialize 507.17 us/op 436.21 us/op 1.16
UintBigint8 x 100000 value_serialize 726.35 us/op 825.21 us/op 0.88
UintBigint16 x 100000 value_deserialize 467.09 us/op 470.74 us/op 0.99
UintBigint16 x 100000 value_serialize 773.07 us/op 857.11 us/op 0.90
UintBigint32 x 100000 value_deserialize 497.85 us/op 497.57 us/op 1.00
UintBigint32 x 100000 value_serialize 806.89 us/op 897.77 us/op 0.90
UintBigint64 x 100000 value_deserialize 562.08 us/op 562.67 us/op 1.00
UintBigint64 x 100000 value_serialize 1.0036 ms/op 1.0921 ms/op 0.92
UintBigint8 x 100000 deserialize 3.2556 ms/op 3.6778 ms/op 0.89
UintBigint8 x 100000 serialize 1.5509 ms/op 1.6121 ms/op 0.96
UintBigint16 x 100000 deserialize 3.1918 ms/op 3.6563 ms/op 0.87
UintBigint16 x 100000 serialize 1.6624 ms/op 1.6078 ms/op 1.03
UintBigint32 x 100000 deserialize 3.3212 ms/op 3.8181 ms/op 0.87
UintBigint32 x 100000 serialize 2.9192 ms/op 2.9663 ms/op 0.98
UintBigint64 x 100000 deserialize 4.1042 ms/op 4.7081 ms/op 0.87
UintBigint64 x 100000 serialize 1.7145 ms/op 1.6950 ms/op 1.01
UintBigint128 x 100000 deserialize 5.4499 ms/op 6.5791 ms/op 0.83
UintBigint128 x 100000 serialize 15.506 ms/op 14.522 ms/op 1.07
UintBigint256 x 100000 deserialize 8.9313 ms/op 8.2350 ms/op 1.08
UintBigint256 x 100000 serialize 46.860 ms/op 44.426 ms/op 1.05
Slice from Uint8Array x25000 1.3836 ms/op 1.3203 ms/op 1.05
Slice from ArrayBuffer x25000 15.974 ms/op 15.977 ms/op 1.00
Slice from ArrayBuffer x25000 + new Uint8Array 15.864 ms/op 17.905 ms/op 0.89
Copy Uint8Array 100000 iterate 2.7870 ms/op 2.7332 ms/op 1.02
Copy Uint8Array 100000 slice 84.787 us/op 101.58 us/op 0.83
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 81.954 us/op 103.18 us/op 0.79
Copy Buffer 100000 Uint8Array.prototype.slice.call 81.724 us/op 100.87 us/op 0.81
Copy Uint8Array 100000 slice + set 166.45 us/op 194.21 us/op 0.86
Copy Uint8Array 100000 subarray + set 82.254 us/op 101.28 us/op 0.81
Copy Uint8Array 100000 slice arrayBuffer 82.910 us/op 102.36 us/op 0.81
Uint64 deserialize 100000 - iterate Uint8Array 1.9082 ms/op 1.8770 ms/op 1.02
Uint64 deserialize 100000 - by Uint32A 1.8532 ms/op 1.8280 ms/op 1.01
Uint64 deserialize 100000 - by DataView.getUint32 x2 2.0599 ms/op 1.9334 ms/op 1.07
Uint64 deserialize 100000 - by DataView.getBigUint64 4.7929 ms/op 5.0404 ms/op 0.95
Uint64 deserialize 100000 - by byte 40.409 ms/op 40.837 ms/op 0.99

by benchmarkbot/action

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.

3 participants