Skip to content

Commit

Permalink
Fix published files for packages (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain authored Jan 16, 2025
1 parent bd1bf71 commit 2fd9c04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/persistent-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"files": [
"lib/**/*.d.ts",
"lib/**/*.js",
"lib/**/*.js.map"
"lib/**/*.js.map",
"lib/**/package.json"
],
"scripts": {
"clean": "rm -rf lib",
Expand Down
3 changes: 2 additions & 1 deletion packages/ssz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"files": [
"lib/**/*.d.ts",
"lib/**/*.js",
"lib/**/*.js.map"
"lib/**/*.js.map",
"lib/**/package.json"
],
"scripts": {
"build": "yarn run build:cjs && yarn build:esm && yarn build:types",
Expand Down

1 comment on commit 2fd9c04

@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: 2fd9c04 Previous: bd1bf71 Ratio
set_exitEpoch - ContainerNodeStructType 867.00 ns/op 246.00 ns/op 3.52
Full benchmark results
Benchmark suite Current: 2fd9c04 Previous: bd1bf71 Ratio
digestTwoHashObjects 50023 times 48.385 ms/op 48.214 ms/op 1.00
digest2Bytes32 50023 times 54.739 ms/op 54.910 ms/op 1.00
digest 50023 times 55.134 ms/op 55.334 ms/op 1.00
input length 32 1.2220 us/op 1.1960 us/op 1.02
input length 64 1.3350 us/op 1.3700 us/op 0.97
input length 128 2.2710 us/op 2.3220 us/op 0.98
input length 256 3.3710 us/op 3.4280 us/op 0.98
input length 512 5.5760 us/op 5.7200 us/op 0.97
input length 1024 10.768 us/op 11.290 us/op 0.95
digest 1000000 times 884.65 ms/op 893.12 ms/op 0.99
hashObjectToByteArray 50023 times 1.2315 ms/op 1.2521 ms/op 0.98
byteArrayToHashObject 50023 times 1.8030 ms/op 1.7845 ms/op 1.01
digest64 200092 times 213.67 ms/op 216.99 ms/op 0.98
hash 200092 times using batchHash4UintArray64s 240.28 ms/op 238.63 ms/op 1.01
digest64HashObjects 200092 times 194.67 ms/op 194.21 ms/op 1.00
hash 200092 times using batchHash4HashObjectInputs 207.74 ms/op 201.71 ms/op 1.03
getGindicesAtDepth 4.1450 us/op 4.1560 us/op 1.00
iterateAtDepth 7.4670 us/op 7.6520 us/op 0.98
getGindexBits 454.00 ns/op 459.00 ns/op 0.99
gindexIterator 1.0330 us/op 1.0330 us/op 1.00
HashComputationLevel.push then loop 27.802 ms/op 28.450 ms/op 0.98
HashComputation[] push then loop 49.368 ms/op 48.582 ms/op 1.02
hash 2 Uint8Array 500000 times - hashtree 216.43 ms/op 217.13 ms/op 1.00
hashTwoObjects 500000 times - hashtree 214.97 ms/op 207.38 ms/op 1.04
executeHashComputations - hashtree 9.8174 ms/op 10.842 ms/op 0.91
hash 2 Uint8Array 500000 times - as-sha256 566.39 ms/op 566.56 ms/op 1.00
hashTwoObjects 500000 times - as-sha256 512.46 ms/op 509.85 ms/op 1.01
executeHashComputations - as-sha256 49.092 ms/op 49.679 ms/op 0.99
hash 2 Uint8Array 500000 times - noble 1.2320 s/op 1.2028 s/op 1.02
hashTwoObjects 500000 times - noble 1.6458 s/op 1.6233 s/op 1.01
executeHashComputations - noble 40.524 ms/op 40.285 ms/op 1.01
getHashComputations 3.2876 ms/op 2.7797 ms/op 1.18
executeHashComputations 11.015 ms/op 11.721 ms/op 0.94
get root 17.228 ms/op 15.433 ms/op 1.12
getNodeH() x7812.5 avg hindex 12.973 us/op 12.236 us/op 1.06
getNodeH() x7812.5 index 0 7.4830 us/op 7.4850 us/op 1.00
getNodeH() x7812.5 index 7 7.4880 us/op 7.5400 us/op 0.99
getNodeH() x7812.5 index 7 with key array 6.2660 us/op 6.2710 us/op 1.00
new LeafNode() x7812.5 288.84 us/op 288.37 us/op 1.00
getHashComputations 250000 nodes 17.077 ms/op 17.417 ms/op 0.98
batchHash 250000 nodes 83.672 ms/op 87.200 ms/op 0.96
get root 250000 nodes 118.39 ms/op 117.47 ms/op 1.01
getHashComputations 500000 nodes 32.790 ms/op 29.153 ms/op 1.12
batchHash 500000 nodes 170.81 ms/op 173.10 ms/op 0.99
get root 500000 nodes 237.45 ms/op 241.83 ms/op 0.98
getHashComputations 1000000 nodes 68.401 ms/op 62.902 ms/op 1.09
batchHash 1000000 nodes 314.97 ms/op 335.86 ms/op 0.94
get root 1000000 nodes 474.60 ms/op 458.68 ms/op 1.03
multiproof - depth 15, 1 requested leaves 8.0360 us/op 8.4580 us/op 0.95
tree offset multiproof - depth 15, 1 requested leaves 17.505 us/op 17.978 us/op 0.97
compact multiproof - depth 15, 1 requested leaves 2.9850 us/op 3.2160 us/op 0.93
multiproof - depth 15, 2 requested leaves 11.659 us/op 12.402 us/op 0.94
tree offset multiproof - depth 15, 2 requested leaves 21.064 us/op 22.156 us/op 0.95
compact multiproof - depth 15, 2 requested leaves 3.0240 us/op 3.1740 us/op 0.95
multiproof - depth 15, 3 requested leaves 16.464 us/op 16.775 us/op 0.98
tree offset multiproof - depth 15, 3 requested leaves 27.416 us/op 28.282 us/op 0.97
compact multiproof - depth 15, 3 requested leaves 3.6760 us/op 3.9830 us/op 0.92
multiproof - depth 15, 4 requested leaves 21.480 us/op 22.347 us/op 0.96
tree offset multiproof - depth 15, 4 requested leaves 33.923 us/op 34.748 us/op 0.98
compact multiproof - depth 15, 4 requested leaves 4.2500 us/op 5.0820 us/op 0.84
packedRootsBytesToLeafNodes bytes 4000 offset 0 5.5760 us/op 5.8990 us/op 0.95
packedRootsBytesToLeafNodes bytes 4000 offset 1 5.5020 us/op 5.6500 us/op 0.97
packedRootsBytesToLeafNodes bytes 4000 offset 2 5.5960 us/op 5.7870 us/op 0.97
packedRootsBytesToLeafNodes bytes 4000 offset 3 5.5090 us/op 5.6940 us/op 0.97
subtreeFillToContents depth 40 count 250000 49.667 ms/op 50.868 ms/op 0.98
setRoot - gindexBitstring 20.717 ms/op 21.547 ms/op 0.96
setRoot - gindex 21.769 ms/op 21.337 ms/op 1.02
getRoot - gindexBitstring 2.6428 ms/op 2.5354 ms/op 1.04
getRoot - gindex 3.4452 ms/op 3.2442 ms/op 1.06
getHashObject then setHashObject 22.668 ms/op 21.674 ms/op 1.05
setNodeWithFn 19.949 ms/op 19.686 ms/op 1.01
getNodeAtDepth depth 0 x100000 284.47 us/op 280.21 us/op 1.02
setNodeAtDepth depth 0 x100000 2.5826 ms/op 2.5287 ms/op 1.02
getNodesAtDepth depth 0 x100000 312.60 us/op 314.34 us/op 0.99
setNodesAtDepth depth 0 x100000 770.25 us/op 758.80 us/op 1.02
getNodeAtDepth depth 1 x100000 345.54 us/op 342.12 us/op 1.01
setNodeAtDepth depth 1 x100000 8.3900 ms/op 8.6922 ms/op 0.97
getNodesAtDepth depth 1 x100000 436.17 us/op 440.62 us/op 0.99
setNodesAtDepth depth 1 x100000 8.0911 ms/op 7.7253 ms/op 1.05
getNodeAtDepth depth 2 x100000 742.41 us/op 738.74 us/op 1.00
setNodeAtDepth depth 2 x100000 15.448 ms/op 15.800 ms/op 0.98
getNodesAtDepth depth 2 x100000 19.301 ms/op 18.549 ms/op 1.04
setNodesAtDepth depth 2 x100000 22.443 ms/op 24.295 ms/op 0.92
tree.getNodesAtDepth - gindexes 9.0838 ms/op 9.9424 ms/op 0.91
tree.getNodesAtDepth - push all nodes 2.2499 ms/op 2.4207 ms/op 0.93
tree.getNodesAtDepth - navigation 312.00 us/op 311.21 us/op 1.00
tree.setNodesAtDepth - indexes 702.50 us/op 730.39 us/op 0.96
set at depth 8 673.00 ns/op 674.00 ns/op 1.00
set at depth 16 1.2090 us/op 1.2660 us/op 0.95
set at depth 32 1.9830 us/op 2.0550 us/op 0.96
iterateNodesAtDepth 8 256 14.029 us/op 13.735 us/op 1.02
getNodesAtDepth 8 256 3.9860 us/op 3.6980 us/op 1.08
iterateNodesAtDepth 16 65536 4.9523 ms/op 4.7917 ms/op 1.03
getNodesAtDepth 16 65536 2.1318 ms/op 2.0483 ms/op 1.04
iterateNodesAtDepth 32 250000 17.971 ms/op 16.722 ms/op 1.07
getNodesAtDepth 32 250000 5.0235 ms/op 4.9688 ms/op 1.01
iterateNodesAtDepth 40 250000 16.973 ms/op 17.428 ms/op 0.97
getNodesAtDepth 40 250000 5.2017 ms/op 5.0833 ms/op 1.02
250000 validators root getter 119.60 ms/op 116.26 ms/op 1.03
250000 validators batchHash() 96.226 ms/op 97.811 ms/op 0.98
250000 validators hashComputations 13.681 ms/op 20.447 ms/op 0.67
bitlist bytes to struct (120,90) 1.0320 us/op 702.00 ns/op 1.47
bitlist bytes to tree (120,90) 2.9040 us/op 2.4700 us/op 1.18
bitlist bytes to struct (2048,2048) 1.1460 us/op 977.00 ns/op 1.17
bitlist bytes to tree (2048,2048) 4.6090 us/op 4.0440 us/op 1.14
ByteListType - deserialize 8.2940 ms/op 7.2957 ms/op 1.14
BasicListType - deserialize 17.814 ms/op 13.843 ms/op 1.29
ByteListType - serialize 8.2229 ms/op 7.5326 ms/op 1.09
BasicListType - serialize 10.528 ms/op 9.5721 ms/op 1.10
BasicListType - tree_convertToStruct 30.733 ms/op 25.295 ms/op 1.21
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 5.0479 ms/op 4.6766 ms/op 1.08
List[uint8, 68719476736] len 300000 ViewDU.get(i) 4.4003 ms/op 4.4999 ms/op 0.98
Array.push len 300000 empty Array - number 7.7576 ms/op 6.7360 ms/op 1.15
Array.set len 300000 from new Array - number 2.3929 ms/op 1.7898 ms/op 1.34
Array.set len 300000 - number 6.8603 ms/op 5.4363 ms/op 1.26
Uint8Array.set len 300000 490.48 us/op 481.58 us/op 1.02
Uint32Array.set len 300000 554.60 us/op 562.31 us/op 0.99
Container({a: uint8, b: uint8}) getViewDU x300000 25.535 ms/op 25.864 ms/op 0.99
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 10.557 ms/op 10.543 ms/op 1.00
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 222.67 ms/op 210.93 ms/op 1.06
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 288.04 ms/op 222.12 ms/op 1.30
List(Container) len 300000 ViewDU.get(i) 8.4440 ms/op 6.6587 ms/op 1.27
List(Container) len 300000 ViewDU.getReadonly(i) 7.2905 ms/op 6.4152 ms/op 1.14
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 34.764 ms/op 40.093 ms/op 0.87
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 6.9714 ms/op 5.0879 ms/op 1.37
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 6.7554 ms/op 6.1277 ms/op 1.10
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 6.6821 ms/op 6.1256 ms/op 1.09
Array.push len 300000 empty Array - object 8.2629 ms/op 7.1656 ms/op 1.15
Array.set len 300000 from new Array - object 2.0682 ms/op 2.1657 ms/op 0.95
Array.set len 300000 - object 6.8760 ms/op 7.1649 ms/op 0.96
cachePermanentRootStruct no cache 5.9280 us/op 5.2470 us/op 1.13
cachePermanentRootStruct with cache 245.00 ns/op 198.00 ns/op 1.24
epochParticipation len 250000 rws 7813 2.3026 ms/op 2.3664 ms/op 0.97
BeaconState ViewDU hashTreeRoot() vc=200000 119.71 ms/op 116.19 ms/op 1.03
BeaconState ViewDU recursive hash - commit step vc=200000 5.0692 ms/op 4.7105 ms/op 1.08
BeaconState ViewDU validator tree creation vc=10000 42.276 ms/op 40.202 ms/op 1.05
BeaconState ViewDU batchHashTreeRoot vc=200000 109.21 ms/op 103.14 ms/op 1.06
BeaconState ViewDU hashTreeRoot - commit step vc=200000 96.290 ms/op 92.118 ms/op 1.05
BeaconState ViewDU hashTreeRoot - hash step vc=200000 18.397 ms/op 17.299 ms/op 1.06
deserialize Attestation - tree 3.9770 us/op 3.6000 us/op 1.10
deserialize Attestation - struct 2.1880 us/op 1.8260 us/op 1.20
deserialize SignedAggregateAndProof - tree 5.3310 us/op 4.7990 us/op 1.11
deserialize SignedAggregateAndProof - struct 3.4600 us/op 2.9530 us/op 1.17
deserialize SyncCommitteeMessage - tree 1.5160 us/op 1.3650 us/op 1.11
deserialize SyncCommitteeMessage - struct 1.2600 us/op 1.0170 us/op 1.24
deserialize SignedContributionAndProof - tree 3.3480 us/op 3.2270 us/op 1.04
deserialize SignedContributionAndProof - struct 2.7630 us/op 2.3520 us/op 1.17
deserialize SignedBeaconBlock - tree 320.10 us/op 280.02 us/op 1.14
deserialize SignedBeaconBlock - struct 146.11 us/op 119.85 us/op 1.22
BeaconState vc 300000 - deserialize tree 676.70 ms/op 642.68 ms/op 1.05
BeaconState vc 300000 - serialize tree 176.66 ms/op 165.36 ms/op 1.07
BeaconState.historicalRoots vc 300000 - deserialize tree 963.00 ns/op 831.00 ns/op 1.16
BeaconState.historicalRoots vc 300000 - serialize tree 797.00 ns/op 637.00 ns/op 1.25
BeaconState.validators vc 300000 - deserialize tree 645.65 ms/op 617.43 ms/op 1.05
BeaconState.validators vc 300000 - serialize tree 108.09 ms/op 118.78 ms/op 0.91
BeaconState.balances vc 300000 - deserialize tree 31.118 ms/op 28.246 ms/op 1.10
BeaconState.balances vc 300000 - serialize tree 5.4166 ms/op 4.5370 ms/op 1.19
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 1.1177 ms/op 1.0529 ms/op 1.06
BeaconState.previousEpochParticipation vc 300000 - serialize tree 329.73 us/op 347.93 us/op 0.95
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 1.1398 ms/op 1.1216 ms/op 1.02
BeaconState.currentEpochParticipation vc 300000 - serialize tree 329.92 us/op 343.60 us/op 0.96
BeaconState.inactivityScores vc 300000 - deserialize tree 28.841 ms/op 30.829 ms/op 0.94
BeaconState.inactivityScores vc 300000 - serialize tree 6.4320 ms/op 3.7332 ms/op 1.72
hashTreeRoot Attestation - struct 22.568 us/op 16.216 us/op 1.39
hashTreeRoot Attestation - tree 9.7040 us/op 9.5400 us/op 1.02
hashTreeRoot SignedAggregateAndProof - struct 34.438 us/op 24.008 us/op 1.43
hashTreeRoot SignedAggregateAndProof - tree 14.744 us/op 14.287 us/op 1.03
hashTreeRoot SyncCommitteeMessage - struct 9.1540 us/op 6.1000 us/op 1.50
hashTreeRoot SyncCommitteeMessage - tree 3.6090 us/op 3.8370 us/op 0.94
hashTreeRoot SignedContributionAndProof - struct 24.373 us/op 14.473 us/op 1.68
hashTreeRoot SignedContributionAndProof - tree 10.036 us/op 9.8740 us/op 1.02
hashTreeRoot SignedBeaconBlock - struct 1.7085 ms/op 1.2317 ms/op 1.39
hashTreeRoot SignedBeaconBlock - tree 874.80 us/op 850.81 us/op 1.03
hashTreeRoot Validator - struct 10.415 us/op 7.7140 us/op 1.35
hashTreeRoot Validator - tree 8.8040 us/op 7.1500 us/op 1.23
BeaconState vc 300000 - hashTreeRoot tree 2.5106 s/op 2.3188 s/op 1.08
BeaconState vc 300000 - batchHashTreeRoot tree 4.5668 s/op 4.2688 s/op 1.07
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 1.1800 us/op 1.0600 us/op 1.11
BeaconState.validators vc 300000 - hashTreeRoot tree 2.6840 s/op 2.5275 s/op 1.06
BeaconState.balances vc 300000 - hashTreeRoot tree 37.232 ms/op 36.638 ms/op 1.02
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 4.6431 ms/op 4.5346 ms/op 1.02
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 4.5680 ms/op 4.5472 ms/op 1.00
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 39.894 ms/op 36.914 ms/op 1.08
hash64 x18 9.8100 us/op 8.8460 us/op 1.11
hashTwoObjects x18 8.9900 us/op 8.6650 us/op 1.04
hash64 x1740 889.16 us/op 808.29 us/op 1.10
hashTwoObjects x1740 817.95 us/op 806.87 us/op 1.01
hash64 x2700000 1.3707 s/op 1.2755 s/op 1.07
hashTwoObjects x2700000 1.2561 s/op 1.2520 s/op 1.00
get_exitEpoch - ContainerType 470.00 ns/op 233.00 ns/op 2.02
get_exitEpoch - ContainerNodeStructType 531.00 ns/op 224.00 ns/op 2.37
set_exitEpoch - ContainerType 743.00 ns/op 257.00 ns/op 2.89
set_exitEpoch - ContainerNodeStructType 867.00 ns/op 246.00 ns/op 3.52
get_pubkey - ContainerType 2.1440 us/op 954.00 ns/op 2.25
get_pubkey - ContainerNodeStructType 628.00 ns/op 231.00 ns/op 2.72
hashTreeRoot - ContainerType 911.00 ns/op 441.00 ns/op 2.07
hashTreeRoot - ContainerNodeStructType 822.00 ns/op 427.00 ns/op 1.93
createProof - ContainerType 7.2270 us/op 4.1220 us/op 1.75
createProof - ContainerNodeStructType 38.455 us/op 22.006 us/op 1.75
serialize - ContainerType 3.0960 us/op 1.7350 us/op 1.78
serialize - ContainerNodeStructType 2.3860 us/op 1.4230 us/op 1.68
set_exitEpoch_and_hashTreeRoot - ContainerType 5.1660 us/op 3.1570 us/op 1.64
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 11.845 us/op 7.5090 us/op 1.58
Array - for of 6.0820 us/op 5.8700 us/op 1.04
Array - for(;;) 6.0990 us/op 5.5060 us/op 1.11
basicListValue.readonlyValuesArray() 8.5034 ms/op 4.1652 ms/op 2.04
basicListValue.readonlyValuesArray() + loop all 9.2078 ms/op 4.1403 ms/op 2.22
compositeListValue.readonlyValuesArray() 31.312 ms/op 31.045 ms/op 1.01
compositeListValue.readonlyValuesArray() + loop all 32.164 ms/op 32.391 ms/op 0.99
Number64UintType - get balances list 4.9334 ms/op 4.1857 ms/op 1.18
Number64UintType - set balances list 10.233 ms/op 10.021 ms/op 1.02
Number64UintType - get and increase 10 then set 45.730 ms/op 41.113 ms/op 1.11
Number64UintType - increase 10 using applyDelta 19.214 ms/op 16.931 ms/op 1.13
Number64UintType - increase 10 using applyDeltaInBatch 18.532 ms/op 16.979 ms/op 1.09
tree_newTreeFromUint64Deltas 23.803 ms/op 22.539 ms/op 1.06
unsafeUint8ArrayToTree 43.554 ms/op 39.846 ms/op 1.09
bitLength(50) 283.00 ns/op 243.00 ns/op 1.16
bitLengthStr(50) 260.00 ns/op 225.00 ns/op 1.16
bitLength(8000) 280.00 ns/op 229.00 ns/op 1.22
bitLengthStr(8000) 301.00 ns/op 266.00 ns/op 1.13
bitLength(250000) 276.00 ns/op 239.00 ns/op 1.15
bitLengthStr(250000) 340.00 ns/op 301.00 ns/op 1.13
floor - Math.floor (53) 1.2463 ns/op 1.2436 ns/op 1.00
floor - << 0 (53) 1.2449 ns/op 1.2473 ns/op 1.00
floor - Math.floor (512) 1.2485 ns/op 1.2430 ns/op 1.00
floor - << 0 (512) 1.2445 ns/op 1.2436 ns/op 1.00
fnIf(0) 1.5550 ns/op 1.5557 ns/op 1.00
fnSwitch(0) 2.2084 ns/op 2.1763 ns/op 1.01
fnObj(0) 1.5592 ns/op 1.5571 ns/op 1.00
fnArr(0) 1.5564 ns/op 1.5550 ns/op 1.00
fnIf(4) 2.2012 ns/op 2.2063 ns/op 1.00
fnSwitch(4) 2.1851 ns/op 2.1766 ns/op 1.00
fnObj(4) 1.5553 ns/op 1.5680 ns/op 0.99
fnArr(4) 1.5566 ns/op 1.5603 ns/op 1.00
fnIf(9) 3.1105 ns/op 3.1087 ns/op 1.00
fnSwitch(9) 2.1789 ns/op 2.1752 ns/op 1.00
fnObj(9) 1.5566 ns/op 1.5579 ns/op 1.00
fnArr(9) 1.5585 ns/op 1.5547 ns/op 1.00
Container {a,b,vec} - as struct x100000 124.70 us/op 124.67 us/op 1.00
Container {a,b,vec} - as tree x100000 528.88 us/op 528.76 us/op 1.00
Container {a,vec,b} - as struct x100000 156.29 us/op 155.62 us/op 1.00
Container {a,vec,b} - as tree x100000 497.88 us/op 498.75 us/op 1.00
get 2 props x1000000 - rawObject 311.55 us/op 311.38 us/op 1.00
get 2 props x1000000 - proxy 73.231 ms/op 89.591 ms/op 0.82
get 2 props x1000000 - customObj 311.63 us/op 311.45 us/op 1.00
Simple object binary -> struct 666.00 ns/op 568.00 ns/op 1.17
Simple object binary -> tree_backed 1.8000 us/op 1.6000 us/op 1.13
Simple object struct -> tree_backed 2.5550 us/op 2.1350 us/op 1.20
Simple object tree_backed -> struct 1.8870 us/op 1.5180 us/op 1.24
Simple object struct -> binary 1.1100 us/op 869.00 ns/op 1.28
Simple object tree_backed -> binary 1.5810 us/op 1.2690 us/op 1.25
aggregationBits binary -> struct 556.00 ns/op 476.00 ns/op 1.17
aggregationBits binary -> tree_backed 2.3520 us/op 2.0600 us/op 1.14
aggregationBits struct -> tree_backed 2.8250 us/op 2.4430 us/op 1.16
aggregationBits tree_backed -> struct 1.1760 us/op 934.00 ns/op 1.26
aggregationBits struct -> binary 895.00 ns/op 771.00 ns/op 1.16
aggregationBits tree_backed -> binary 1.0710 us/op 860.00 ns/op 1.25
List(uint8) 100000 binary -> struct 1.7193 ms/op 1.7822 ms/op 0.96
List(uint8) 100000 binary -> tree_backed 378.88 us/op 271.95 us/op 1.39
List(uint8) 100000 struct -> tree_backed 1.4716 ms/op 1.4009 ms/op 1.05
List(uint8) 100000 tree_backed -> struct 1.1255 ms/op 1.1636 ms/op 0.97
List(uint8) 100000 struct -> binary 1.1255 ms/op 1.1384 ms/op 0.99
List(uint8) 100000 tree_backed -> binary 133.70 us/op 108.84 us/op 1.23
List(uint64Number) 100000 binary -> struct 1.4898 ms/op 1.3507 ms/op 1.10
List(uint64Number) 100000 binary -> tree_backed 5.0622 ms/op 4.5207 ms/op 1.12
List(uint64Number) 100000 struct -> tree_backed 7.2356 ms/op 6.4283 ms/op 1.13
List(uint64Number) 100000 tree_backed -> struct 2.9213 ms/op 2.6392 ms/op 1.11
List(uint64Number) 100000 struct -> binary 1.8754 ms/op 1.5768 ms/op 1.19
List(uint64Number) 100000 tree_backed -> binary 1.9946 ms/op 1.0442 ms/op 1.91
List(Uint64Bigint) 100000 binary -> struct 4.3077 ms/op 4.0865 ms/op 1.05
List(Uint64Bigint) 100000 binary -> tree_backed 5.2529 ms/op 4.6684 ms/op 1.13
List(Uint64Bigint) 100000 struct -> tree_backed 8.0646 ms/op 7.8694 ms/op 1.02
List(Uint64Bigint) 100000 tree_backed -> struct 5.6323 ms/op 5.0070 ms/op 1.12
List(Uint64Bigint) 100000 struct -> binary 2.0885 ms/op 2.0652 ms/op 1.01
List(Uint64Bigint) 100000 tree_backed -> binary 1.8135 ms/op 1.1303 ms/op 1.60
Vector(Root) 100000 binary -> struct 41.100 ms/op 37.813 ms/op 1.09
Vector(Root) 100000 binary -> tree_backed 44.078 ms/op 38.221 ms/op 1.15
Vector(Root) 100000 struct -> tree_backed 55.892 ms/op 52.337 ms/op 1.07
Vector(Root) 100000 tree_backed -> struct 56.983 ms/op 55.220 ms/op 1.03
Vector(Root) 100000 struct -> binary 2.7534 ms/op 3.6535 ms/op 0.75
Vector(Root) 100000 tree_backed -> binary 8.0801 ms/op 6.5915 ms/op 1.23
List(Validator) 100000 binary -> struct 113.34 ms/op 105.59 ms/op 1.07
List(Validator) 100000 binary -> tree_backed 390.64 ms/op 359.11 ms/op 1.09
List(Validator) 100000 struct -> tree_backed 417.76 ms/op 389.67 ms/op 1.07
List(Validator) 100000 tree_backed -> struct 226.69 ms/op 221.30 ms/op 1.02
List(Validator) 100000 struct -> binary 29.274 ms/op 29.717 ms/op 0.99
List(Validator) 100000 tree_backed -> binary 108.34 ms/op 110.32 ms/op 0.98
List(Validator-NS) 100000 binary -> struct 135.28 ms/op 122.02 ms/op 1.11
List(Validator-NS) 100000 binary -> tree_backed 184.51 ms/op 161.88 ms/op 1.14
List(Validator-NS) 100000 struct -> tree_backed 235.91 ms/op 227.28 ms/op 1.04
List(Validator-NS) 100000 tree_backed -> struct 192.62 ms/op 191.80 ms/op 1.00
List(Validator-NS) 100000 struct -> binary 29.747 ms/op 30.125 ms/op 0.99
List(Validator-NS) 100000 tree_backed -> binary 35.712 ms/op 35.259 ms/op 1.01
get epochStatuses - MutableVector 101.62 us/op 94.189 us/op 1.08
get epochStatuses - ViewDU 203.65 us/op 203.11 us/op 1.00
set epochStatuses - ListTreeView 2.2079 ms/op 2.1797 ms/op 1.01
set epochStatuses - ListTreeView - set() 431.41 us/op 440.89 us/op 0.98
set epochStatuses - ListTreeView - commit() 804.31 us/op 819.82 us/op 0.98
bitstring 520.44 ns/op 519.33 ns/op 1.00
bit mask 13.407 ns/op 14.022 ns/op 0.96
struct - increase slot to 1000000 936.53 us/op 932.53 us/op 1.00
UintNumberType - increase slot to 1000000 26.798 ms/op 26.767 ms/op 1.00
UintBigintType - increase slot to 1000000 214.36 ms/op 174.63 ms/op 1.23
UintBigint8 x 100000 tree_deserialize 5.8918 ms/op 4.9949 ms/op 1.18
UintBigint8 x 100000 tree_serialize 1.1095 ms/op 1.0974 ms/op 1.01
UintBigint16 x 100000 tree_deserialize 6.7823 ms/op 5.0827 ms/op 1.33
UintBigint16 x 100000 tree_serialize 1.7868 ms/op 1.3560 ms/op 1.32
UintBigint32 x 100000 tree_deserialize 7.0351 ms/op 5.6325 ms/op 1.25
UintBigint32 x 100000 tree_serialize 2.3450 ms/op 1.8834 ms/op 1.25
UintBigint64 x 100000 tree_deserialize 8.0089 ms/op 6.4982 ms/op 1.23
UintBigint64 x 100000 tree_serialize 3.3089 ms/op 2.5889 ms/op 1.28
UintBigint8 x 100000 value_deserialize 436.55 us/op 436.21 us/op 1.00
UintBigint8 x 100000 value_serialize 944.72 us/op 825.21 us/op 1.14
UintBigint16 x 100000 value_deserialize 466.98 us/op 470.74 us/op 0.99
UintBigint16 x 100000 value_serialize 949.22 us/op 857.11 us/op 1.11
UintBigint32 x 100000 value_deserialize 497.75 us/op 497.57 us/op 1.00
UintBigint32 x 100000 value_serialize 1.0340 ms/op 897.77 us/op 1.15
UintBigint64 x 100000 value_deserialize 561.86 us/op 562.67 us/op 1.00
UintBigint64 x 100000 value_serialize 1.4075 ms/op 1.0921 ms/op 1.29
UintBigint8 x 100000 deserialize 4.0786 ms/op 3.6778 ms/op 1.11
UintBigint8 x 100000 serialize 1.6495 ms/op 1.6121 ms/op 1.02
UintBigint16 x 100000 deserialize 4.2306 ms/op 3.6563 ms/op 1.16
UintBigint16 x 100000 serialize 1.5280 ms/op 1.6078 ms/op 0.95
UintBigint32 x 100000 deserialize 4.1933 ms/op 3.8181 ms/op 1.10
UintBigint32 x 100000 serialize 3.1683 ms/op 2.9663 ms/op 1.07
UintBigint64 x 100000 deserialize 4.8024 ms/op 4.7081 ms/op 1.02
UintBigint64 x 100000 serialize 1.6952 ms/op 1.6950 ms/op 1.00
UintBigint128 x 100000 deserialize 6.8769 ms/op 6.5791 ms/op 1.05
UintBigint128 x 100000 serialize 15.576 ms/op 14.522 ms/op 1.07
UintBigint256 x 100000 deserialize 9.2019 ms/op 8.2350 ms/op 1.12
UintBigint256 x 100000 serialize 45.317 ms/op 44.426 ms/op 1.02
Slice from Uint8Array x25000 1.3730 ms/op 1.3203 ms/op 1.04
Slice from ArrayBuffer x25000 16.661 ms/op 15.977 ms/op 1.04
Slice from ArrayBuffer x25000 + new Uint8Array 18.610 ms/op 17.905 ms/op 1.04
Copy Uint8Array 100000 iterate 2.6541 ms/op 2.7332 ms/op 0.97
Copy Uint8Array 100000 slice 120.03 us/op 101.58 us/op 1.18
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 119.67 us/op 103.18 us/op 1.16
Copy Buffer 100000 Uint8Array.prototype.slice.call 124.86 us/op 100.87 us/op 1.24
Copy Uint8Array 100000 slice + set 251.50 us/op 194.21 us/op 1.30
Copy Uint8Array 100000 subarray + set 122.68 us/op 101.28 us/op 1.21
Copy Uint8Array 100000 slice arrayBuffer 124.22 us/op 102.36 us/op 1.21
Uint64 deserialize 100000 - iterate Uint8Array 2.2252 ms/op 1.8770 ms/op 1.19
Uint64 deserialize 100000 - by Uint32A 2.1293 ms/op 1.8280 ms/op 1.16
Uint64 deserialize 100000 - by DataView.getUint32 x2 2.1917 ms/op 1.9334 ms/op 1.13
Uint64 deserialize 100000 - by DataView.getBigUint64 5.4629 ms/op 5.0404 ms/op 1.08
Uint64 deserialize 100000 - by byte 41.007 ms/op 40.837 ms/op 1.00

Please sign in to comment.