Skip to content

Conversation

@nazarhussain
Copy link
Contributor

Motivation

Remove unused code.

Description

  • Remove unused files

Steps to test or reproduce

  • Run all workflows

@nazarhussain nazarhussain requested a review from a team as a code owner December 1, 2025 19:12
@ensi321 ensi321 enabled auto-merge (squash) December 1, 2025 19:18
@ensi321 ensi321 merged commit 62a5783 into master Dec 1, 2025
9 checks passed
@ensi321 ensi321 deleted the nh/remove-lerna-dep-2 branch December 1, 2025 19:24
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 238e162 Previous: 78c0600 Ratio
digestTwoHashObjects 50023 times 48.211 ms/op 48.054 ms/op 1.00
digest2Bytes32 50023 times 54.886 ms/op 55.036 ms/op 1.00
digest 50023 times 53.182 ms/op 54.032 ms/op 0.98
input length 32 1.2690 us/op 1.2350 us/op 1.03
input length 64 1.3820 us/op 1.3820 us/op 1.00
input length 128 2.3600 us/op 2.3730 us/op 0.99
input length 256 3.4610 us/op 3.5130 us/op 0.99
input length 512 5.6340 us/op 5.8090 us/op 0.97
input length 1024 10.731 us/op 11.058 us/op 0.97
digest 1000000 times 883.70 ms/op 883.31 ms/op 1.00
hashObjectToByteArray 50023 times 934.59 us/op 936.10 us/op 1.00
byteArrayToHashObject 50023 times 1.3307 ms/op 1.3122 ms/op 1.01
digest64 200092 times 212.86 ms/op 214.42 ms/op 0.99
hash 200092 times using batchHash4UintArray64s 245.84 ms/op 231.67 ms/op 1.06
digest64HashObjects 200092 times 191.76 ms/op 194.70 ms/op 0.98
hash 200092 times using batchHash4HashObjectInputs 201.93 ms/op 196.37 ms/op 1.03
getGindicesAtDepth 4.0650 us/op 3.5680 us/op 1.14
iterateAtDepth 7.1200 us/op 6.3560 us/op 1.12
getGindexBits 527.00 ns/op 450.00 ns/op 1.17
gindexIterator 1.0150 us/op 911.00 ns/op 1.11
HashComputationLevel.push then loop 31.540 ms/op 26.381 ms/op 1.20
HashComputation[] push then loop 50.541 ms/op 47.277 ms/op 1.07
hash 2 32 bytes Uint8Array 500000 times - hashtree 149.87 ms/op 151.17 ms/op 0.99
batch hash 16 x 64 Uint8Array 31250 times - hashtree 24.576 ms/op 24.651 ms/op 1.00
hashTwoObjects 500000 times - hashtree 171.74 ms/op 169.37 ms/op 1.01
executeHashComputations - hashtree 9.4243 ms/op 8.9379 ms/op 1.05
hash 2 32 bytes Uint8Array 500000 times - as-sha256 491.49 ms/op 491.83 ms/op 1.00
batch hash 16 x 64 Uint8Array 31250 times - as-sha256 523.84 ms/op 500.98 ms/op 1.05
hashTwoObjects 500000 times - as-sha256 505.19 ms/op 505.78 ms/op 1.00
executeHashComputations - as-sha256 47.546 ms/op 45.080 ms/op 1.05
hash 2 32 bytes Uint8Array 500000 times - noble 1.3995 s/op 1.2213 s/op 1.15
batch hash 16 x 64 Uint8Array 31250 times - noble 1.3502 s/op 1.1733 s/op 1.15
hashTwoObjects 500000 times - noble 1.8498 s/op 1.5283 s/op 1.21
executeHashComputations - noble 36.508 ms/op 36.044 ms/op 1.01
getHashComputations 2.4967 ms/op 2.2191 ms/op 1.13
executeHashComputations 10.667 ms/op 9.7883 ms/op 1.09
get root 12.938 ms/op 12.591 ms/op 1.03
getNodeH() x7812.5 avg hindex 12.051 us/op 12.178 us/op 0.99
getNodeH() x7812.5 index 0 7.4810 us/op 7.5960 us/op 0.98
getNodeH() x7812.5 index 7 7.6270 us/op 7.4520 us/op 1.02
getNodeH() x7812.5 index 7 with key array 6.2570 us/op 6.2430 us/op 1.00
new LeafNode() x7812.5 307.54 us/op 310.07 us/op 0.99
getHashComputations 250000 nodes 15.170 ms/op 14.808 ms/op 1.02
batchHash 250000 nodes 91.669 ms/op 86.080 ms/op 1.06
get root 250000 nodes 96.132 ms/op 94.413 ms/op 1.02
getHashComputations 500000 nodes 29.386 ms/op 28.047 ms/op 1.05
batchHash 500000 nodes 158.35 ms/op 145.94 ms/op 1.09
get root 500000 nodes 192.01 ms/op 188.48 ms/op 1.02
getHashComputations 1000000 nodes 67.086 ms/op 63.540 ms/op 1.06
batchHash 1000000 nodes 314.95 ms/op 312.94 ms/op 1.01
get root 1000000 nodes 386.77 ms/op 376.24 ms/op 1.03
multiproof - depth 15, 1 requested leaves 7.8650 us/op 7.6380 us/op 1.03
tree offset multiproof - depth 15, 1 requested leaves 20.397 us/op 16.862 us/op 1.21
compact multiproof - depth 15, 1 requested leaves 4.5830 us/op 3.2170 us/op 1.42
multiproof - depth 15, 2 requested leaves 13.363 us/op 11.009 us/op 1.21
tree offset multiproof - depth 15, 2 requested leaves 22.927 us/op 20.337 us/op 1.13
compact multiproof - depth 15, 2 requested leaves 4.3880 us/op 3.1730 us/op 1.38
multiproof - depth 15, 3 requested leaves 15.884 us/op 15.606 us/op 1.02
tree offset multiproof - depth 15, 3 requested leaves 30.720 us/op 26.475 us/op 1.16
compact multiproof - depth 15, 3 requested leaves 5.9410 us/op 3.7940 us/op 1.57
multiproof - depth 15, 4 requested leaves 23.421 us/op 20.454 us/op 1.15
tree offset multiproof - depth 15, 4 requested leaves 34.179 us/op 32.669 us/op 1.05
compact multiproof - depth 15, 4 requested leaves 4.2600 us/op 3.7530 us/op 1.14
packedRootsBytesToLeafNodes bytes 4000 offset 0 7.6030 us/op 5.5890 us/op 1.36
packedRootsBytesToLeafNodes bytes 4000 offset 1 7.7640 us/op 5.5970 us/op 1.39
packedRootsBytesToLeafNodes bytes 4000 offset 2 7.8120 us/op 5.5800 us/op 1.40
packedRootsBytesToLeafNodes bytes 4000 offset 3 6.0150 us/op 5.5720 us/op 1.08
subtreeFillToContents depth 40 count 250000 48.692 ms/op 46.627 ms/op 1.04
setRoot - gindexBitstring 31.136 ms/op 20.966 ms/op 1.49
setRoot - gindex 26.716 ms/op 21.634 ms/op 1.23
getRoot - gindexBitstring 2.4555 ms/op 2.4563 ms/op 1.00
getRoot - gindex 3.6157 ms/op 3.0628 ms/op 1.18
getHashObject then setHashObject 32.299 ms/op 21.988 ms/op 1.47
setNodeWithFn 20.678 ms/op 19.387 ms/op 1.07
getNodeAtDepth depth 0 x100000 280.02 us/op 280.38 us/op 1.00
setNodeAtDepth depth 0 x100000 4.8950 ms/op 2.7013 ms/op 1.81
getNodesAtDepth depth 0 x100000 314.42 us/op 312.14 us/op 1.01
setNodesAtDepth depth 0 x100000 760.47 us/op 837.80 us/op 0.91
getNodeAtDepth depth 1 x100000 342.02 us/op 341.97 us/op 1.00
setNodeAtDepth depth 1 x100000 13.405 ms/op 8.1645 ms/op 1.64
getNodesAtDepth depth 1 x100000 436.14 us/op 436.34 us/op 1.00
setNodesAtDepth depth 1 x100000 8.8802 ms/op 6.6953 ms/op 1.33
getNodeAtDepth depth 2 x100000 742.72 us/op 730.88 us/op 1.02
setNodeAtDepth depth 2 x100000 16.479 ms/op 16.142 ms/op 1.02
getNodesAtDepth depth 2 x100000 22.215 ms/op 19.761 ms/op 1.12
setNodesAtDepth depth 2 x100000 23.507 ms/op 22.698 ms/op 1.04
tree.getNodesAtDepth - gindexes 10.969 ms/op 8.3123 ms/op 1.32
tree.getNodesAtDepth - push all nodes 2.4154 ms/op 2.3235 ms/op 1.04
tree.getNodesAtDepth - navigation 311.37 us/op 316.35 us/op 0.98
tree.setNodesAtDepth - indexes 900.39 us/op 665.98 us/op 1.35
set at depth 8 1.1730 us/op 876.00 ns/op 1.34
set at depth 16 1.1590 us/op 1.2240 us/op 0.95
set at depth 32 1.8660 us/op 1.8700 us/op 1.00
iterateNodesAtDepth 8 256 13.350 us/op 13.133 us/op 1.02
getNodesAtDepth 8 256 3.5430 us/op 3.5580 us/op 1.00
iterateNodesAtDepth 16 65536 4.1939 ms/op 4.4006 ms/op 0.95
getNodesAtDepth 16 65536 1.1165 ms/op 1.1291 ms/op 0.99
iterateNodesAtDepth 32 250000 17.489 ms/op 15.696 ms/op 1.11
getNodesAtDepth 32 250000 6.3498 ms/op 4.5252 ms/op 1.40
iterateNodesAtDepth 40 250000 15.391 ms/op 15.607 ms/op 0.99
getNodesAtDepth 40 250000 4.5432 ms/op 4.4585 ms/op 1.02
250000 validators root getter 96.497 ms/op 95.289 ms/op 1.01
250000 validators batchHash() 86.352 ms/op 80.896 ms/op 1.07
250000 validators hashComputations 14.879 ms/op 13.992 ms/op 1.06
bitlist bytes to struct (120,90) 496.00 ns/op 500.00 ns/op 0.99
bitlist bytes to tree (120,90) 2.2440 us/op 2.1620 us/op 1.04
bitlist bytes to struct (2048,2048) 930.00 ns/op 861.00 ns/op 1.08
bitlist bytes to tree (2048,2048) 3.3800 us/op 3.4230 us/op 0.99
ByteListType - deserialize 8.9141 ms/op 8.7825 ms/op 1.01
BasicListType - deserialize 9.2058 ms/op 9.7765 ms/op 0.94
ByteListType - serialize 9.0004 ms/op 8.6117 ms/op 1.05
BasicListType - serialize 10.356 ms/op 9.7918 ms/op 1.06
BasicListType - tree_convertToStruct 22.958 ms/op 16.857 ms/op 1.36
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 4.3672 ms/op 5.0741 ms/op 0.86
List[uint8, 68719476736] len 300000 ViewDU.get(i) 4.4329 ms/op 4.3780 ms/op 1.01
Array.push len 300000 empty Array - number 5.8002 ms/op 6.7158 ms/op 0.86
Array.set len 300000 from new Array - number 1.8251 ms/op 2.2683 ms/op 0.80
Array.set len 300000 - number 5.6885 ms/op 6.1409 ms/op 0.93
Uint8Array.set len 300000 387.60 us/op 377.77 us/op 1.03
Uint32Array.set len 300000 459.59 us/op 450.37 us/op 1.02
Container({a: uint8, b: uint8}) getViewDU x300000 29.312 ms/op 29.130 ms/op 1.01
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 10.499 ms/op 10.545 ms/op 1.00
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 200.63 ms/op 199.66 ms/op 1.00
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 248.14 ms/op 217.10 ms/op 1.14
List(Container) len 300000 ViewDU.get(i) 6.4317 ms/op 6.3802 ms/op 1.01
List(Container) len 300000 ViewDU.getReadonly(i) 6.5727 ms/op 6.3834 ms/op 1.03
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 37.036 ms/op 37.028 ms/op 1.00
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 5.1708 ms/op 4.4860 ms/op 1.15
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 6.3627 ms/op 6.1420 ms/op 1.04
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 6.1808 ms/op 6.1121 ms/op 1.01
Array.push len 300000 empty Array - object 6.9074 ms/op 6.2679 ms/op 1.10
Array.set len 300000 from new Array - object 2.1250 ms/op 1.9902 ms/op 1.07
Array.set len 300000 - object 6.3330 ms/op 6.1052 ms/op 1.04
cachePermanentRootStruct no cache 3.3480 us/op 3.2060 us/op 1.04
cachePermanentRootStruct with cache 187.00 ns/op 165.00 ns/op 1.13
epochParticipation len 250000 rws 7813 2.4456 ms/op 2.3042 ms/op 1.06
Deneb BeaconBlock.hashTreeRoot(), numTransaction=200 4.7372 ms/op 4.6776 ms/op 1.01
BeaconState ViewDU batchHashTreeRoot vc=200000 mod=100000 208.18 ms/op 210.61 ms/op 0.99
BeaconState ViewDU batchHashTreeRoot - commit step vc=200000 mod=100000 181.34 ms/op 179.23 ms/op 1.01
BeaconState ViewDU batchHashTreeRoot - hash step vc=200000 mod=100000 48.897 ms/op 47.216 ms/op 1.04
BeaconState ViewDU hashTreeRoot() vc=200000 mod=100000 699.63 ms/op 688.05 ms/op 1.02
BeaconState ViewDU hashTreeRoot - commit step vc=200000 mod=100000 61.758 ms/op 67.059 ms/op 0.92
BeaconState ViewDU hashTreeRoot - validator tree creation vc=100000 mod=100000 266.94 ms/op 267.64 ms/op 1.00
deserialize Attestation - tree 3.6480 us/op 3.5510 us/op 1.03
deserialize Attestation - struct 1.9240 us/op 1.9200 us/op 1.00
deserialize Attestation - struct (reuse bytes) 1.4560 us/op 1.4520 us/op 1.00
deserialize SignedAggregateAndProof - tree 4.8330 us/op 4.7650 us/op 1.01
deserialize SignedAggregateAndProof - struct 3.0390 us/op 2.9460 us/op 1.03
deserialize SignedAggregateAndProof - struct (reuse bytes) 1.8960 us/op 1.9170 us/op 0.99
deserialize SyncCommitteeMessage - tree 1.4350 us/op 1.4250 us/op 1.01
deserialize SyncCommitteeMessage - struct 1.0990 us/op 1.0910 us/op 1.01
deserialize SyncCommitteeMessage - struct (reuse bytes) 759.00 ns/op 730.00 ns/op 1.04
deserialize SignedContributionAndProof - tree 2.7910 us/op 2.8150 us/op 0.99
deserialize SignedContributionAndProof - struct 2.6140 us/op 2.3120 us/op 1.13
deserialize SignedContributionAndProof - struct (reuse bytes) 1.1950 us/op 1.2370 us/op 0.97
deserialize SignedBeaconBlock - tree 264.58 us/op 272.31 us/op 0.97
deserialize SignedBeaconBlock - struct 114.81 us/op 121.76 us/op 0.94
deserialize SignedBeaconBlock - struct (reuse bytes) 76.288 us/op 77.946 us/op 0.98
BeaconState vc 300000 - deserialize tree 651.00 ms/op 650.50 ms/op 1.00
BeaconState vc 300000 - serialize tree 85.126 ms/op 114.12 ms/op 0.75
BeaconState.historicalRoots vc 300000 - deserialize tree 1.0020 us/op 936.00 ns/op 1.07
BeaconState.historicalRoots vc 300000 - serialize tree 675.00 ns/op 670.00 ns/op 1.01
BeaconState.validators vc 300000 - deserialize tree 615.55 ms/op 633.74 ms/op 0.97
BeaconState.validators vc 300000 - serialize tree 38.404 ms/op 32.565 ms/op 1.18
BeaconState.balances vc 300000 - deserialize tree 30.879 ms/op 28.261 ms/op 1.09
BeaconState.balances vc 300000 - serialize tree 5.4507 ms/op 4.9729 ms/op 1.10
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 1.1222 ms/op 1.0966 ms/op 1.02
BeaconState.previousEpochParticipation vc 300000 - serialize tree 335.14 us/op 330.31 us/op 1.01
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 1.1415 ms/op 1.0838 ms/op 1.05
BeaconState.currentEpochParticipation vc 300000 - serialize tree 335.37 us/op 325.34 us/op 1.03
BeaconState.inactivityScores vc 300000 - deserialize tree 29.845 ms/op 28.718 ms/op 1.04
BeaconState.inactivityScores vc 300000 - serialize tree 5.1281 ms/op 4.1487 ms/op 1.24
hashTreeRoot Attestation - struct 11.900 us/op 10.534 us/op 1.13
hashTreeRoot Attestation - tree 7.8710 us/op 7.7910 us/op 1.01
hashTreeRoot SignedAggregateAndProof - struct 14.037 us/op 13.042 us/op 1.08
hashTreeRoot SignedAggregateAndProof - tree 11.205 us/op 11.025 us/op 1.02
hashTreeRoot SyncCommitteeMessage - struct 3.3790 us/op 3.2990 us/op 1.02
hashTreeRoot SyncCommitteeMessage - tree 2.9510 us/op 2.9610 us/op 1.00
hashTreeRoot SignedContributionAndProof - struct 8.2920 us/op 8.4060 us/op 0.99
hashTreeRoot SignedContributionAndProof - tree 8.1070 us/op 7.8140 us/op 1.04
hashTreeRoot SignedBeaconBlock - struct 732.53 us/op 806.95 us/op 0.91
hashTreeRoot SignedBeaconBlock - tree 686.83 us/op 688.19 us/op 1.00
hashTreeRoot Validator - struct 4.7260 us/op 4.6500 us/op 1.02
hashTreeRoot Validator - tree 6.2430 us/op 5.9520 us/op 1.05
BeaconState vc 300000 - hashTreeRoot tree 2.0838 s/op 1.9777 s/op 1.05
BeaconState vc 300000 - batchHashTreeRoot tree 4.1655 s/op 4.1530 s/op 1.00
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 852.00 ns/op 871.00 ns/op 0.98
BeaconState.validators vc 300000 - hashTreeRoot tree 2.2647 s/op 2.2976 s/op 0.99
BeaconState.balances vc 300000 - hashTreeRoot tree 28.687 ms/op 32.457 ms/op 0.88
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 3.5565 ms/op 3.4675 ms/op 1.03
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 3.5555 ms/op 3.4724 ms/op 1.02
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 34.342 ms/op 33.054 ms/op 1.04
hash64 x18 8.3500 us/op 7.8120 us/op 1.07
hashTwoObjects x18 6.8530 us/op 6.5520 us/op 1.05
hash64 x1740 752.54 us/op 729.14 us/op 1.03
hashTwoObjects x1740 618.34 us/op 587.40 us/op 1.05
hash64 x2700000 1.1710 s/op 1.1156 s/op 1.05
hashTwoObjects x2700000 959.38 ms/op 918.11 ms/op 1.04
get_exitEpoch - ContainerType 287.00 ns/op 304.00 ns/op 0.94
get_exitEpoch - ContainerNodeStructType 311.00 ns/op 312.00 ns/op 1.00
set_exitEpoch - ContainerType 324.00 ns/op 272.00 ns/op 1.19
set_exitEpoch - ContainerNodeStructType 302.00 ns/op 302.00 ns/op 1.00
get_pubkey - ContainerType 1.3160 us/op 1.2460 us/op 1.06
get_pubkey - ContainerNodeStructType 329.00 ns/op 287.00 ns/op 1.15
hashTreeRoot - ContainerType 692.00 ns/op 622.00 ns/op 1.11
hashTreeRoot - ContainerNodeStructType 728.00 ns/op 647.00 ns/op 1.13
createProof - ContainerType 5.5080 us/op 4.8110 us/op 1.14
createProof - ContainerNodeStructType 26.014 us/op 22.407 us/op 1.16
serialize - ContainerType 2.0430 us/op 1.7910 us/op 1.14
serialize - ContainerNodeStructType 1.6310 us/op 1.2940 us/op 1.26
set_exitEpoch_and_hashTreeRoot - ContainerType 3.0680 us/op 2.9530 us/op 1.04
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 7.3970 us/op 6.9060 us/op 1.07
doBatchHashTreeRootValidators 3.7330 us/op 3.5990 us/op 1.04
ContainerNodeStructViewDU hashTreeRoot 24.299 us/op 23.841 us/op 1.02
Array - for of 9.2110 us/op 5.6340 us/op 1.63
Array - for(;;) 9.1110 us/op 5.7070 us/op 1.60
basicListValue.readonlyValuesArray() 4.5135 ms/op 5.0643 ms/op 0.89
basicListValue.readonlyValuesArray() + loop all 4.9120 ms/op 5.1223 ms/op 0.96
compositeListValue.readonlyValuesArray() 31.421 ms/op 27.771 ms/op 1.13
compositeListValue.readonlyValuesArray() + loop all 31.564 ms/op 32.051 ms/op 0.98
Number64UintType - get balances list 4.7286 ms/op 5.1526 ms/op 0.92
Number64UintType - set balances list 10.139 ms/op 10.001 ms/op 1.01
Number64UintType - get and increase 10 then set 40.750 ms/op 42.885 ms/op 0.95
Number64UintType - increase 10 using applyDelta 15.948 ms/op 16.859 ms/op 0.95
Number64UintType - increase 10 using applyDeltaInBatch 16.811 ms/op 16.227 ms/op 1.04
tree_newTreeFromUint64Deltas 24.336 ms/op 21.044 ms/op 1.16
unsafeUint8ArrayToTree 32.956 ms/op 41.440 ms/op 0.80
bitLength(50) 250.00 ns/op 254.00 ns/op 0.98
bitLengthStr(50) 218.00 ns/op 240.00 ns/op 0.91
bitLength(8000) 247.00 ns/op 240.00 ns/op 1.03
bitLengthStr(8000) 293.00 ns/op 288.00 ns/op 1.02
bitLength(250000) 259.00 ns/op 289.00 ns/op 0.90
bitLengthStr(250000) 321.00 ns/op 321.00 ns/op 1.00
merkleize 32 chunks 13.283 us/op 14.782 us/op 0.90
merkleizeBlocksBytes 32 chunks 3.2650 us/op 3.2280 us/op 1.01
merkleizeBlockArray 32 chunks 6.6640 us/op 6.2000 us/op 1.07
merkleize 128 chunks 53.075 us/op 49.674 us/op 1.07
merkleizeBlocksBytes 128 chunks 7.4830 us/op 7.4340 us/op 1.01
merkleizeBlockArray 128 chunks 18.906 us/op 17.947 us/op 1.05
merkleize 512 chunks 211.72 us/op 208.76 us/op 1.01
merkleizeBlocksBytes 512 chunks 23.265 us/op 22.399 us/op 1.04
merkleizeBlockArray 512 chunks 64.951 us/op 62.300 us/op 1.04
merkleize 1024 chunks 422.73 us/op 419.20 us/op 1.01
merkleizeBlocksBytes 1024 chunks 43.044 us/op 42.280 us/op 1.02
merkleizeBlockArray 1024 chunks 125.41 us/op 118.70 us/op 1.06
floor - Math.floor (53) 1.2438 ns/op 1.2441 ns/op 1.00
floor - << 0 (53) 1.2438 ns/op 1.2438 ns/op 1.00
floor - Math.floor (512) 1.2428 ns/op 1.2439 ns/op 1.00
floor - << 0 (512) 1.2433 ns/op 1.2459 ns/op 1.00
fnIf(0) 1.5544 ns/op 1.5538 ns/op 1.00
fnSwitch(0) 2.1761 ns/op 2.1754 ns/op 1.00
fnObj(0) 1.5535 ns/op 1.5640 ns/op 0.99
fnArr(0) 1.5544 ns/op 1.5565 ns/op 1.00
fnIf(4) 2.1778 ns/op 2.1744 ns/op 1.00
fnSwitch(4) 2.1883 ns/op 2.1771 ns/op 1.01
fnObj(4) 1.5652 ns/op 1.5697 ns/op 1.00
fnArr(4) 1.5543 ns/op 1.5540 ns/op 1.00
fnIf(9) 3.1082 ns/op 3.1093 ns/op 1.00
fnSwitch(9) 2.1752 ns/op 2.1765 ns/op 1.00
fnObj(9) 1.5543 ns/op 1.5611 ns/op 1.00
fnArr(9) 1.5541 ns/op 1.5550 ns/op 1.00
Container {a,b,vec} - as struct x100000 124.52 us/op 124.66 us/op 1.00
Container {a,b,vec} - as tree x100000 559.64 us/op 560.20 us/op 1.00
Container {a,vec,b} - as struct x100000 156.07 us/op 155.73 us/op 1.00
Container {a,vec,b} - as tree x100000 559.59 us/op 560.14 us/op 1.00
get 2 props x1000000 - rawObject 310.97 us/op 311.11 us/op 1.00
get 2 props x1000000 - proxy 73.048 ms/op 73.136 ms/op 1.00
get 2 props x1000000 - customObj 311.10 us/op 311.05 us/op 1.00
Simple object binary -> struct 680.00 ns/op 607.00 ns/op 1.12
Simple object binary -> tree_backed 1.9020 us/op 1.7280 us/op 1.10
Simple object struct -> tree_backed 2.5760 us/op 2.4390 us/op 1.06
Simple object tree_backed -> struct 1.7610 us/op 1.6600 us/op 1.06
Simple object struct -> binary 1.0150 us/op 940.00 ns/op 1.08
Simple object tree_backed -> binary 1.3950 us/op 1.2290 us/op 1.14
aggregationBits binary -> struct 669.00 ns/op 519.00 ns/op 1.29
aggregationBits binary -> tree_backed 2.3170 us/op 2.2580 us/op 1.03
aggregationBits struct -> tree_backed 2.9200 us/op 2.9820 us/op 0.98
aggregationBits tree_backed -> struct 1.0950 us/op 1.1320 us/op 0.97
aggregationBits struct -> binary 785.00 ns/op 769.00 ns/op 1.02
aggregationBits tree_backed -> binary 979.00 ns/op 976.00 ns/op 1.00
List(uint8) 100000 binary -> struct 1.0896 ms/op 934.12 us/op 1.17
List(uint8) 100000 binary -> tree_backed 312.30 us/op 291.81 us/op 1.07
List(uint8) 100000 struct -> tree_backed 1.3990 ms/op 1.3279 ms/op 1.05
List(uint8) 100000 tree_backed -> struct 1.0720 ms/op 982.59 us/op 1.09
List(uint8) 100000 struct -> binary 1.0436 ms/op 1.0685 ms/op 0.98
List(uint8) 100000 tree_backed -> binary 111.99 us/op 109.07 us/op 1.03
List(uint64Number) 100000 binary -> struct 1.4653 ms/op 1.5324 ms/op 0.96
List(uint64Number) 100000 binary -> tree_backed 5.3150 ms/op 4.5684 ms/op 1.16
List(uint64Number) 100000 struct -> tree_backed 7.0646 ms/op 6.9803 ms/op 1.01
List(uint64Number) 100000 tree_backed -> struct 2.7946 ms/op 2.5484 ms/op 1.10
List(uint64Number) 100000 struct -> binary 1.4952 ms/op 1.5443 ms/op 0.97
List(uint64Number) 100000 tree_backed -> binary 1.5814 ms/op 1.3511 ms/op 1.17
List(Uint64Bigint) 100000 binary -> struct 4.2660 ms/op 4.0221 ms/op 1.06
List(Uint64Bigint) 100000 binary -> tree_backed 5.3434 ms/op 5.4879 ms/op 0.97
List(Uint64Bigint) 100000 struct -> tree_backed 7.2240 ms/op 7.7246 ms/op 0.94
List(Uint64Bigint) 100000 tree_backed -> struct 5.6581 ms/op 5.6862 ms/op 1.00
List(Uint64Bigint) 100000 struct -> binary 2.1570 ms/op 2.1153 ms/op 1.02
List(Uint64Bigint) 100000 tree_backed -> binary 1.5883 ms/op 1.6348 ms/op 0.97
Vector(Root) 100000 binary -> struct 37.298 ms/op 37.936 ms/op 0.98
Vector(Root) 100000 binary -> tree_backed 42.911 ms/op 36.444 ms/op 1.18
Vector(Root) 100000 struct -> tree_backed 53.855 ms/op 51.783 ms/op 1.04
Vector(Root) 100000 tree_backed -> struct 54.176 ms/op 53.377 ms/op 1.01
Vector(Root) 100000 struct -> binary 3.1858 ms/op 3.0990 ms/op 1.03
Vector(Root) 100000 tree_backed -> binary 8.4850 ms/op 7.5930 ms/op 1.12
List(Validator) 100000 binary -> struct 123.75 ms/op 120.97 ms/op 1.02
List(Validator) 100000 binary -> tree_backed 375.90 ms/op 373.62 ms/op 1.01
List(Validator) 100000 struct -> tree_backed 395.31 ms/op 391.47 ms/op 1.01
List(Validator) 100000 tree_backed -> struct 228.43 ms/op 215.64 ms/op 1.06
List(Validator) 100000 struct -> binary 29.593 ms/op 29.078 ms/op 1.02
List(Validator) 100000 tree_backed -> binary 118.08 ms/op 111.95 ms/op 1.05
List(Validator-NS) 100000 binary -> struct 113.17 ms/op 116.47 ms/op 0.97
List(Validator-NS) 100000 binary -> tree_backed 174.50 ms/op 166.22 ms/op 1.05
List(Validator-NS) 100000 struct -> tree_backed 198.23 ms/op 192.00 ms/op 1.03
List(Validator-NS) 100000 tree_backed -> struct 157.06 ms/op 154.53 ms/op 1.02
List(Validator-NS) 100000 struct -> binary 8.5540 ms/op 7.7079 ms/op 1.11
List(Validator-NS) 100000 tree_backed -> binary 15.877 ms/op 14.942 ms/op 1.06
get epochStatuses - MutableVector 86.555 us/op 87.802 us/op 0.99
get epochStatuses - ViewDU 209.86 us/op 212.45 us/op 0.99
set epochStatuses - ListTreeView 2.3573 ms/op 2.1732 ms/op 1.08
set epochStatuses - ListTreeView - set() 448.39 us/op 447.57 us/op 1.00
set epochStatuses - ListTreeView - commit() 881.85 us/op 774.16 us/op 1.14
bitstring 519.66 ns/op 517.86 ns/op 1.00
bit mask 14.101 ns/op 13.580 ns/op 1.04
struct - increase slot to 1000000 933.57 us/op 937.81 us/op 1.00
UintNumberType - increase slot to 1000000 27.716 ms/op 27.703 ms/op 1.00
UintBigintType - increase slot to 1000000 195.19 ms/op 192.57 ms/op 1.01
UintBigint8 x 100000 tree_deserialize 5.7645 ms/op 6.0480 ms/op 0.95
UintBigint8 x 100000 tree_serialize 1.1603 ms/op 1.1286 ms/op 1.03
UintBigint16 x 100000 tree_deserialize 5.9160 ms/op 5.8244 ms/op 1.02
UintBigint16 x 100000 tree_serialize 1.4420 ms/op 1.5658 ms/op 0.92
UintBigint32 x 100000 tree_deserialize 5.6848 ms/op 6.0691 ms/op 0.94
UintBigint32 x 100000 tree_serialize 1.8924 ms/op 2.1187 ms/op 0.89
UintBigint64 x 100000 tree_deserialize 6.2634 ms/op 7.4823 ms/op 0.84
UintBigint64 x 100000 tree_serialize 2.5950 ms/op 2.8691 ms/op 0.90
UintBigint8 x 100000 value_deserialize 406.39 us/op 406.98 us/op 1.00
UintBigint8 x 100000 value_serialize 792.35 us/op 790.24 us/op 1.00
UintBigint16 x 100000 value_deserialize 467.70 us/op 469.83 us/op 1.00
UintBigint16 x 100000 value_serialize 829.84 us/op 854.16 us/op 0.97
UintBigint32 x 100000 value_deserialize 500.70 us/op 497.85 us/op 1.01
UintBigint32 x 100000 value_serialize 872.83 us/op 901.52 us/op 0.97
UintBigint64 x 100000 value_deserialize 533.56 us/op 530.86 us/op 1.01
UintBigint64 x 100000 value_serialize 1.0277 ms/op 1.0712 ms/op 0.96
UintBigint8 x 100000 deserialize 3.8853 ms/op 3.6939 ms/op 1.05
UintBigint8 x 100000 serialize 1.5547 ms/op 1.5592 ms/op 1.00
UintBigint16 x 100000 deserialize 3.6163 ms/op 3.7025 ms/op 0.98
UintBigint16 x 100000 serialize 1.6124 ms/op 1.6421 ms/op 0.98
UintBigint32 x 100000 deserialize 3.7778 ms/op 3.8659 ms/op 0.98
UintBigint32 x 100000 serialize 2.8802 ms/op 3.0409 ms/op 0.95
UintBigint64 x 100000 deserialize 4.4568 ms/op 4.5206 ms/op 0.99
UintBigint64 x 100000 serialize 1.6393 ms/op 1.6712 ms/op 0.98
UintBigint128 x 100000 deserialize 6.1325 ms/op 6.3940 ms/op 0.96
UintBigint128 x 100000 serialize 15.635 ms/op 16.678 ms/op 0.94
UintBigint256 x 100000 deserialize 8.9698 ms/op 9.7739 ms/op 0.92
UintBigint256 x 100000 serialize 44.594 ms/op 47.172 ms/op 0.95
Slice from Uint8Array x25000 1.3194 ms/op 1.4065 ms/op 0.94
Slice from ArrayBuffer x25000 16.491 ms/op 16.580 ms/op 0.99
Slice from ArrayBuffer x25000 + new Uint8Array 18.411 ms/op 18.752 ms/op 0.98
Copy Uint8Array 100000 iterate 1.7091 ms/op 1.6920 ms/op 1.01
Copy Uint8Array 100000 slice 129.04 us/op 118.91 us/op 1.09
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 124.40 us/op 120.61 us/op 1.03
Copy Buffer 100000 Uint8Array.prototype.slice.call 125.63 us/op 120.97 us/op 1.04
Copy Uint8Array 100000 slice + set 252.47 us/op 241.84 us/op 1.04
Copy Uint8Array 100000 subarray + set 121.06 us/op 119.53 us/op 1.01
Copy Uint8Array 100000 slice arrayBuffer 124.30 us/op 120.20 us/op 1.03
Uint64 deserialize 100000 - iterate Uint8Array 2.2338 ms/op 2.0981 ms/op 1.06
Uint64 deserialize 100000 - by Uint32A 2.0760 ms/op 2.0680 ms/op 1.00
Uint64 deserialize 100000 - by DataView.getUint32 x2 2.1419 ms/op 2.1428 ms/op 1.00
Uint64 deserialize 100000 - by DataView.getBigUint64 5.4334 ms/op 5.2279 ms/op 1.04
Uint64 deserialize 100000 - by byte 40.550 ms/op 40.476 ms/op 1.00

by benchmarkbot/action

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.

3 participants