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: update npm publish step #463

Merged
merged 1 commit into from
Jan 23, 2025
Merged

fix: update npm publish step #463

merged 1 commit into from
Jan 23, 2025

Conversation

wemeetagain
Copy link
Member

@wemeetagain wemeetagain requested a review from a team as a code owner January 23, 2025 20:52
@github-actions github-actions bot added the CI label Jan 23, 2025
@wemeetagain wemeetagain merged commit a07548a into master Jan 23, 2025
8 checks passed
@wemeetagain wemeetagain deleted the wemeetagain-patch-1 branch January 23, 2025 21:16
Copy link

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 481f405 Previous: 1eba2f9 Ratio
digestTwoHashObjects 50023 times 48.625 ms/op 48.615 ms/op 1.00
digest2Bytes32 50023 times 55.252 ms/op 55.446 ms/op 1.00
digest 50023 times 54.279 ms/op 54.025 ms/op 1.00
input length 32 1.2000 us/op 1.2120 us/op 0.99
input length 64 1.3470 us/op 1.3270 us/op 1.02
input length 128 2.3200 us/op 2.3080 us/op 1.01
input length 256 3.3790 us/op 3.3830 us/op 1.00
input length 512 5.6210 us/op 5.5510 us/op 1.01
input length 1024 10.744 us/op 10.738 us/op 1.00
digest 1000000 times 860.27 ms/op 890.13 ms/op 0.97
hashObjectToByteArray 50023 times 1.2298 ms/op 1.2413 ms/op 0.99
byteArrayToHashObject 50023 times 1.7589 ms/op 1.5641 ms/op 1.12
digest64 200092 times 214.35 ms/op 214.16 ms/op 1.00
hash 200092 times using batchHash4UintArray64s 240.73 ms/op 242.16 ms/op 0.99
digest64HashObjects 200092 times 194.64 ms/op 194.06 ms/op 1.00
hash 200092 times using batchHash4HashObjectInputs 199.95 ms/op 207.67 ms/op 0.96
getGindicesAtDepth 3.6910 us/op 3.5430 us/op 1.04
iterateAtDepth 6.7670 us/op 6.3970 us/op 1.06
getGindexBits 412.00 ns/op 402.00 ns/op 1.02
gindexIterator 904.00 ns/op 901.00 ns/op 1.00
HashComputationLevel.push then loop 30.626 ms/op 26.283 ms/op 1.17
HashComputation[] push then loop 41.326 ms/op 38.005 ms/op 1.09
hash 2 Uint8Array 500000 times - hashtree 219.44 ms/op 221.09 ms/op 0.99
hashTwoObjects 500000 times - hashtree 221.31 ms/op 218.93 ms/op 1.01
executeHashComputations - hashtree 10.420 ms/op 10.345 ms/op 1.01
hash 2 Uint8Array 500000 times - as-sha256 572.43 ms/op 565.24 ms/op 1.01
hashTwoObjects 500000 times - as-sha256 513.55 ms/op 507.74 ms/op 1.01
executeHashComputations - as-sha256 45.276 ms/op 46.315 ms/op 0.98
hash 2 Uint8Array 500000 times - noble 1.3154 s/op 1.2283 s/op 1.07
hashTwoObjects 500000 times - noble 1.9707 s/op 1.7568 s/op 1.12
executeHashComputations - noble 38.074 ms/op 36.984 ms/op 1.03
getHashComputations 2.5412 ms/op 2.7325 ms/op 0.93
executeHashComputations 11.591 ms/op 9.7131 ms/op 1.19
get root 16.327 ms/op 15.407 ms/op 1.06
getNodeH() x7812.5 avg hindex 12.575 us/op 12.263 us/op 1.03
getNodeH() x7812.5 index 0 7.5730 us/op 7.5650 us/op 1.00
getNodeH() x7812.5 index 7 7.4530 us/op 7.6170 us/op 0.98
getNodeH() x7812.5 index 7 with key array 6.3900 us/op 6.4120 us/op 1.00
new LeafNode() x7812.5 449.79 us/op 318.45 us/op 1.41
getHashComputations 250000 nodes 15.967 ms/op 15.373 ms/op 1.04
batchHash 250000 nodes 95.641 ms/op 87.811 ms/op 1.09
get root 250000 nodes 121.22 ms/op 116.03 ms/op 1.04
getHashComputations 500000 nodes 30.535 ms/op 32.085 ms/op 0.95
batchHash 500000 nodes 165.94 ms/op 159.81 ms/op 1.04
get root 500000 nodes 241.58 ms/op 231.70 ms/op 1.04
getHashComputations 1000000 nodes 84.863 ms/op 78.496 ms/op 1.08
batchHash 1000000 nodes 376.41 ms/op 345.49 ms/op 1.09
get root 1000000 nodes 482.45 ms/op 462.99 ms/op 1.04
multiproof - depth 15, 1 requested leaves 9.5060 us/op 8.2070 us/op 1.16
tree offset multiproof - depth 15, 1 requested leaves 20.783 us/op 18.175 us/op 1.14
compact multiproof - depth 15, 1 requested leaves 4.0820 us/op 3.2040 us/op 1.27
multiproof - depth 15, 2 requested leaves 14.139 us/op 11.683 us/op 1.21
tree offset multiproof - depth 15, 2 requested leaves 25.326 us/op 21.447 us/op 1.18
compact multiproof - depth 15, 2 requested leaves 4.1260 us/op 3.0510 us/op 1.35
multiproof - depth 15, 3 requested leaves 19.800 us/op 16.685 us/op 1.19
tree offset multiproof - depth 15, 3 requested leaves 32.561 us/op 28.522 us/op 1.14
compact multiproof - depth 15, 3 requested leaves 5.2940 us/op 4.2740 us/op 1.24
multiproof - depth 15, 4 requested leaves 25.062 us/op 22.831 us/op 1.10
tree offset multiproof - depth 15, 4 requested leaves 39.014 us/op 36.745 us/op 1.06
compact multiproof - depth 15, 4 requested leaves 6.4260 us/op 4.7150 us/op 1.36
packedRootsBytesToLeafNodes bytes 4000 offset 0 7.2360 us/op 5.8040 us/op 1.25
packedRootsBytesToLeafNodes bytes 4000 offset 1 7.0470 us/op 5.5730 us/op 1.26
packedRootsBytesToLeafNodes bytes 4000 offset 2 7.1200 us/op 5.7030 us/op 1.25
packedRootsBytesToLeafNodes bytes 4000 offset 3 7.1540 us/op 5.6560 us/op 1.26
subtreeFillToContents depth 40 count 250000 47.894 ms/op 48.969 ms/op 0.98
setRoot - gindexBitstring 30.177 ms/op 20.162 ms/op 1.50
setRoot - gindex 31.276 ms/op 20.148 ms/op 1.55
getRoot - gindexBitstring 3.0711 ms/op 2.4888 ms/op 1.23
getRoot - gindex 3.7289 ms/op 3.1215 ms/op 1.19
getHashObject then setHashObject 32.728 ms/op 21.721 ms/op 1.51
setNodeWithFn 29.658 ms/op 19.630 ms/op 1.51
getNodeAtDepth depth 0 x100000 280.81 us/op 281.89 us/op 1.00
setNodeAtDepth depth 0 x100000 4.7194 ms/op 2.2474 ms/op 2.10
getNodesAtDepth depth 0 x100000 312.00 us/op 317.38 us/op 0.98
setNodesAtDepth depth 0 x100000 788.61 us/op 776.82 us/op 1.02
getNodeAtDepth depth 1 x100000 344.87 us/op 342.05 us/op 1.01
setNodeAtDepth depth 1 x100000 13.212 ms/op 7.6789 ms/op 1.72
getNodesAtDepth depth 1 x100000 436.36 us/op 435.82 us/op 1.00
setNodesAtDepth depth 1 x100000 9.8720 ms/op 6.1969 ms/op 1.59
getNodeAtDepth depth 2 x100000 740.67 us/op 846.03 us/op 0.88
setNodeAtDepth depth 2 x100000 22.540 ms/op 14.235 ms/op 1.58
getNodesAtDepth depth 2 x100000 21.270 ms/op 19.050 ms/op 1.12
setNodesAtDepth depth 2 x100000 30.520 ms/op 21.287 ms/op 1.43
tree.getNodesAtDepth - gindexes 16.720 ms/op 9.2823 ms/op 1.80
tree.getNodesAtDepth - push all nodes 3.5732 ms/op 1.8401 ms/op 1.94
tree.getNodesAtDepth - navigation 312.13 us/op 311.24 us/op 1.00
tree.setNodesAtDepth - indexes 853.49 us/op 688.54 us/op 1.24
set at depth 8 1.1090 us/op 746.00 ns/op 1.49
set at depth 16 1.6010 us/op 1.0980 us/op 1.46
set at depth 32 2.7320 us/op 1.8570 us/op 1.47
iterateNodesAtDepth 8 256 17.565 us/op 13.324 us/op 1.32
getNodesAtDepth 8 256 4.2410 us/op 3.7020 us/op 1.15
iterateNodesAtDepth 16 65536 4.9263 ms/op 4.5181 ms/op 1.09
getNodesAtDepth 16 65536 3.1391 ms/op 1.5676 ms/op 2.00
iterateNodesAtDepth 32 250000 19.233 ms/op 16.103 ms/op 1.19
getNodesAtDepth 32 250000 6.3045 ms/op 4.5178 ms/op 1.40
iterateNodesAtDepth 40 250000 16.749 ms/op 16.095 ms/op 1.04
getNodesAtDepth 40 250000 5.7638 ms/op 4.6241 ms/op 1.25
250000 validators root getter 121.94 ms/op 116.93 ms/op 1.04
250000 validators batchHash() 112.12 ms/op 95.529 ms/op 1.17
250000 validators hashComputations 19.992 ms/op 20.007 ms/op 1.00
bitlist bytes to struct (120,90) 1.1270 us/op 859.00 ns/op 1.31
bitlist bytes to tree (120,90) 4.2470 us/op 2.7920 us/op 1.52
bitlist bytes to struct (2048,2048) 1.6460 us/op 1.0360 us/op 1.59
bitlist bytes to tree (2048,2048) 6.5270 us/op 4.2050 us/op 1.55
ByteListType - deserialize 12.608 ms/op 8.0644 ms/op 1.56
BasicListType - deserialize 23.016 ms/op 15.783 ms/op 1.46
ByteListType - serialize 13.576 ms/op 8.4047 ms/op 1.62
BasicListType - serialize 18.394 ms/op 10.554 ms/op 1.74
BasicListType - tree_convertToStruct 40.204 ms/op 27.920 ms/op 1.44
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 8.0101 ms/op 4.9550 ms/op 1.62
List[uint8, 68719476736] len 300000 ViewDU.get(i) 4.4102 ms/op 4.3919 ms/op 1.00
Array.push len 300000 empty Array - number 8.7243 ms/op 7.4506 ms/op 1.17
Array.set len 300000 from new Array - number 3.5105 ms/op 1.9690 ms/op 1.78
Array.set len 300000 - number 7.1656 ms/op 6.4705 ms/op 1.11
Uint8Array.set len 300000 496.99 us/op 495.73 us/op 1.00
Uint32Array.set len 300000 592.04 us/op 567.84 us/op 1.04
Container({a: uint8, b: uint8}) getViewDU x300000 30.406 ms/op 25.655 ms/op 1.19
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 11.984 ms/op 10.452 ms/op 1.15
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 231.46 ms/op 219.19 ms/op 1.06
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 300.26 ms/op 257.74 ms/op 1.16
List(Container) len 300000 ViewDU.get(i) 8.8219 ms/op 6.5752 ms/op 1.34
List(Container) len 300000 ViewDU.getReadonly(i) 8.8891 ms/op 6.6974 ms/op 1.33
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 39.328 ms/op 39.002 ms/op 1.01
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 6.1041 ms/op 5.3418 ms/op 1.14
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 8.6011 ms/op 6.1236 ms/op 1.40
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 9.4212 ms/op 6.1552 ms/op 1.53
Array.push len 300000 empty Array - object 7.1253 ms/op 6.6815 ms/op 1.07
Array.set len 300000 from new Array - object 2.0530 ms/op 2.0303 ms/op 1.01
Array.set len 300000 - object 6.8835 ms/op 6.6340 ms/op 1.04
cachePermanentRootStruct no cache 5.8620 us/op 5.3050 us/op 1.10
cachePermanentRootStruct with cache 262.00 ns/op 221.00 ns/op 1.19
epochParticipation len 250000 rws 7813 2.5131 ms/op 2.5031 ms/op 1.00
BeaconState ViewDU hashTreeRoot() vc=200000 117.57 ms/op 114.09 ms/op 1.03
BeaconState ViewDU recursive hash - commit step vc=200000 4.7739 ms/op 4.6407 ms/op 1.03
BeaconState ViewDU validator tree creation vc=10000 44.206 ms/op 39.084 ms/op 1.13
BeaconState ViewDU batchHashTreeRoot vc=200000 106.90 ms/op 107.41 ms/op 1.00
BeaconState ViewDU hashTreeRoot - commit step vc=200000 97.709 ms/op 93.087 ms/op 1.05
BeaconState ViewDU hashTreeRoot - hash step vc=200000 19.233 ms/op 17.120 ms/op 1.12
deserialize Attestation - tree 4.0940 us/op 3.8720 us/op 1.06
deserialize Attestation - struct 2.2610 us/op 2.1050 us/op 1.07
deserialize SignedAggregateAndProof - tree 5.5330 us/op 5.3410 us/op 1.04
deserialize SignedAggregateAndProof - struct 3.6700 us/op 3.0070 us/op 1.22
deserialize SyncCommitteeMessage - tree 1.5770 us/op 1.4420 us/op 1.09
deserialize SyncCommitteeMessage - struct 1.3490 us/op 1.2430 us/op 1.09
deserialize SignedContributionAndProof - tree 3.3140 us/op 3.2390 us/op 1.02
deserialize SignedContributionAndProof - struct 2.8260 us/op 2.4900 us/op 1.13
deserialize SignedBeaconBlock - tree 323.38 us/op 298.51 us/op 1.08
deserialize SignedBeaconBlock - struct 144.37 us/op 130.13 us/op 1.11
BeaconState vc 300000 - deserialize tree 709.10 ms/op 695.84 ms/op 1.02
BeaconState vc 300000 - serialize tree 156.64 ms/op 130.77 ms/op 1.20
BeaconState.historicalRoots vc 300000 - deserialize tree 1.0100 us/op 930.00 ns/op 1.09
BeaconState.historicalRoots vc 300000 - serialize tree 824.00 ns/op 750.00 ns/op 1.10
BeaconState.validators vc 300000 - deserialize tree 671.18 ms/op 638.96 ms/op 1.05
BeaconState.validators vc 300000 - serialize tree 106.76 ms/op 106.65 ms/op 1.00
BeaconState.balances vc 300000 - deserialize tree 29.633 ms/op 28.023 ms/op 1.06
BeaconState.balances vc 300000 - serialize tree 7.0790 ms/op 4.3240 ms/op 1.64
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 1.3745 ms/op 977.12 us/op 1.41
BeaconState.previousEpochParticipation vc 300000 - serialize tree 365.51 us/op 338.88 us/op 1.08
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 1.3638 ms/op 992.33 us/op 1.37
BeaconState.currentEpochParticipation vc 300000 - serialize tree 367.50 us/op 337.90 us/op 1.09
BeaconState.inactivityScores vc 300000 - deserialize tree 33.339 ms/op 27.877 ms/op 1.20
BeaconState.inactivityScores vc 300000 - serialize tree 5.0720 ms/op 4.0019 ms/op 1.27
hashTreeRoot Attestation - struct 19.785 us/op 17.115 us/op 1.16
hashTreeRoot Attestation - tree 9.6350 us/op 9.2860 us/op 1.04
hashTreeRoot SignedAggregateAndProof - struct 26.284 us/op 25.722 us/op 1.02
hashTreeRoot SignedAggregateAndProof - tree 14.637 us/op 13.959 us/op 1.05
hashTreeRoot SyncCommitteeMessage - struct 7.1950 us/op 6.5670 us/op 1.10
hashTreeRoot SyncCommitteeMessage - tree 4.2580 us/op 3.6490 us/op 1.17
hashTreeRoot SignedContributionAndProof - struct 15.669 us/op 15.576 us/op 1.01
hashTreeRoot SignedContributionAndProof - tree 9.8640 us/op 9.5580 us/op 1.03
hashTreeRoot SignedBeaconBlock - struct 1.5793 ms/op 1.3154 ms/op 1.20
hashTreeRoot SignedBeaconBlock - tree 859.40 us/op 840.06 us/op 1.02
hashTreeRoot Validator - struct 10.040 us/op 8.5770 us/op 1.17
hashTreeRoot Validator - tree 8.4660 us/op 7.3930 us/op 1.15
BeaconState vc 300000 - hashTreeRoot tree 2.4188 s/op 2.3092 s/op 1.05
BeaconState vc 300000 - batchHashTreeRoot tree 4.5806 s/op 4.2601 s/op 1.08
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 1.1420 us/op 1.0550 us/op 1.08
BeaconState.validators vc 300000 - hashTreeRoot tree 2.6671 s/op 2.5494 s/op 1.05
BeaconState.balances vc 300000 - hashTreeRoot tree 35.656 ms/op 36.086 ms/op 0.99
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 4.4437 ms/op 4.4418 ms/op 1.00
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 4.4175 ms/op 4.4218 ms/op 1.00
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 38.468 ms/op 36.192 ms/op 1.06
hash64 x18 9.6380 us/op 9.2840 us/op 1.04
hashTwoObjects x18 8.3950 us/op 8.0420 us/op 1.04
hash64 x1740 889.13 us/op 826.44 us/op 1.08
hashTwoObjects x1740 749.81 us/op 731.27 us/op 1.03
hash64 x2700000 1.3774 s/op 1.3185 s/op 1.04
hashTwoObjects x2700000 1.1816 s/op 1.1232 s/op 1.05
get_exitEpoch - ContainerType 338.00 ns/op 307.00 ns/op 1.10
get_exitEpoch - ContainerNodeStructType 338.00 ns/op 300.00 ns/op 1.13
set_exitEpoch - ContainerType 358.00 ns/op 336.00 ns/op 1.07
set_exitEpoch - ContainerNodeStructType 349.00 ns/op 334.00 ns/op 1.04
get_pubkey - ContainerType 1.3520 us/op 1.1980 us/op 1.13
get_pubkey - ContainerNodeStructType 340.00 ns/op 309.00 ns/op 1.10
hashTreeRoot - ContainerType 562.00 ns/op 511.00 ns/op 1.10
hashTreeRoot - ContainerNodeStructType 556.00 ns/op 479.00 ns/op 1.16
createProof - ContainerType 5.8740 us/op 5.0490 us/op 1.16
createProof - ContainerNodeStructType 29.481 us/op 26.253 us/op 1.12
serialize - ContainerType 2.2290 us/op 2.0070 us/op 1.11
serialize - ContainerNodeStructType 1.8820 us/op 1.7260 us/op 1.09
set_exitEpoch_and_hashTreeRoot - ContainerType 3.2720 us/op 3.0950 us/op 1.06
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 8.2530 us/op 7.9040 us/op 1.04
Array - for of 5.5660 us/op 5.6040 us/op 0.99
Array - for(;;) 5.6790 us/op 5.5160 us/op 1.03
basicListValue.readonlyValuesArray() 7.2187 ms/op 5.0422 ms/op 1.43
basicListValue.readonlyValuesArray() + loop all 7.2455 ms/op 5.1171 ms/op 1.42
compositeListValue.readonlyValuesArray() 32.604 ms/op 31.430 ms/op 1.04
compositeListValue.readonlyValuesArray() + loop all 34.520 ms/op 31.411 ms/op 1.10
Number64UintType - get balances list 5.2717 ms/op 4.7192 ms/op 1.12
Number64UintType - set balances list 10.600 ms/op 10.300 ms/op 1.03
Number64UintType - get and increase 10 then set 47.389 ms/op 45.606 ms/op 1.04
Number64UintType - increase 10 using applyDelta 19.058 ms/op 17.448 ms/op 1.09
Number64UintType - increase 10 using applyDeltaInBatch 18.700 ms/op 17.329 ms/op 1.08
tree_newTreeFromUint64Deltas 23.677 ms/op 22.608 ms/op 1.05
unsafeUint8ArrayToTree 42.611 ms/op 37.903 ms/op 1.12
bitLength(50) 303.00 ns/op 242.00 ns/op 1.25
bitLengthStr(50) 258.00 ns/op 225.00 ns/op 1.15
bitLength(8000) 291.00 ns/op 231.00 ns/op 1.26
bitLengthStr(8000) 294.00 ns/op 269.00 ns/op 1.09
bitLength(250000) 288.00 ns/op 222.00 ns/op 1.30
bitLengthStr(250000) 333.00 ns/op 309.00 ns/op 1.08
floor - Math.floor (53) 1.2426 ns/op 1.2436 ns/op 1.00
floor - << 0 (53) 1.2435 ns/op 1.2519 ns/op 0.99
floor - Math.floor (512) 1.2484 ns/op 1.2458 ns/op 1.00
floor - << 0 (512) 1.2442 ns/op 1.2431 ns/op 1.00
fnIf(0) 1.5557 ns/op 1.5543 ns/op 1.00
fnSwitch(0) 2.1765 ns/op 2.1754 ns/op 1.00
fnObj(0) 1.5720 ns/op 1.5613 ns/op 1.01
fnArr(0) 1.5548 ns/op 1.5556 ns/op 1.00
fnIf(4) 2.1753 ns/op 2.1753 ns/op 1.00
fnSwitch(4) 2.1753 ns/op 2.2338 ns/op 0.97
fnObj(4) 1.5624 ns/op 1.5562 ns/op 1.00
fnArr(4) 1.5557 ns/op 1.5574 ns/op 1.00
fnIf(9) 3.1074 ns/op 3.1351 ns/op 0.99
fnSwitch(9) 2.1965 ns/op 2.1750 ns/op 1.01
fnObj(9) 1.5584 ns/op 1.5766 ns/op 0.99
fnArr(9) 1.5549 ns/op 1.5614 ns/op 1.00
Container {a,b,vec} - as struct x100000 124.52 us/op 124.43 us/op 1.00
Container {a,b,vec} - as tree x100000 561.26 us/op 559.72 us/op 1.00
Container {a,vec,b} - as struct x100000 155.56 us/op 156.80 us/op 0.99
Container {a,vec,b} - as tree x100000 559.58 us/op 560.49 us/op 1.00
get 2 props x1000000 - rawObject 311.28 us/op 311.00 us/op 1.00
get 2 props x1000000 - proxy 73.762 ms/op 73.115 ms/op 1.01
get 2 props x1000000 - customObj 311.44 us/op 310.94 us/op 1.00
Simple object binary -> struct 1.0480 us/op 908.00 ns/op 1.15
Simple object binary -> tree_backed 2.6930 us/op 2.4990 us/op 1.08
Simple object struct -> tree_backed 3.0320 us/op 2.7810 us/op 1.09
Simple object tree_backed -> struct 2.9590 us/op 2.4330 us/op 1.22
Simple object struct -> binary 1.2820 us/op 1.1980 us/op 1.07
Simple object tree_backed -> binary 2.0640 us/op 2.1400 us/op 0.96
aggregationBits binary -> struct 734.00 ns/op 686.00 ns/op 1.07
aggregationBits binary -> tree_backed 3.4150 us/op 2.6350 us/op 1.30
aggregationBits struct -> tree_backed 3.4370 us/op 3.0630 us/op 1.12
aggregationBits tree_backed -> struct 1.4150 us/op 1.2380 us/op 1.14
aggregationBits struct -> binary 925.00 ns/op 819.00 ns/op 1.13
aggregationBits tree_backed -> binary 1.1920 us/op 1.0460 us/op 1.14
List(uint8) 100000 binary -> struct 2.0681 ms/op 1.6676 ms/op 1.24
List(uint8) 100000 binary -> tree_backed 367.80 us/op 276.74 us/op 1.33
List(uint8) 100000 struct -> tree_backed 1.4954 ms/op 1.4533 ms/op 1.03
List(uint8) 100000 tree_backed -> struct 1.1490 ms/op 1.2590 ms/op 0.91
List(uint8) 100000 struct -> binary 1.1152 ms/op 1.1267 ms/op 0.99
List(uint8) 100000 tree_backed -> binary 116.81 us/op 118.44 us/op 0.99
List(uint64Number) 100000 binary -> struct 1.5606 ms/op 1.4597 ms/op 1.07
List(uint64Number) 100000 binary -> tree_backed 4.9618 ms/op 4.7724 ms/op 1.04
List(uint64Number) 100000 struct -> tree_backed 6.9744 ms/op 7.1106 ms/op 0.98
List(uint64Number) 100000 tree_backed -> struct 2.8716 ms/op 2.3918 ms/op 1.20
List(uint64Number) 100000 struct -> binary 1.8180 ms/op 1.5765 ms/op 1.15
List(uint64Number) 100000 tree_backed -> binary 1.5851 ms/op 1.0079 ms/op 1.57
List(Uint64Bigint) 100000 binary -> struct 4.5946 ms/op 3.7833 ms/op 1.21
List(Uint64Bigint) 100000 binary -> tree_backed 5.1507 ms/op 4.7446 ms/op 1.09
List(Uint64Bigint) 100000 struct -> tree_backed 7.2840 ms/op 7.5035 ms/op 0.97
List(Uint64Bigint) 100000 tree_backed -> struct 5.8893 ms/op 5.1211 ms/op 1.15
List(Uint64Bigint) 100000 struct -> binary 2.1307 ms/op 2.0751 ms/op 1.03
List(Uint64Bigint) 100000 tree_backed -> binary 2.0193 ms/op 1.2719 ms/op 1.59
Vector(Root) 100000 binary -> struct 41.405 ms/op 38.436 ms/op 1.08
Vector(Root) 100000 binary -> tree_backed 47.653 ms/op 34.938 ms/op 1.36
Vector(Root) 100000 struct -> tree_backed 56.914 ms/op 52.405 ms/op 1.09
Vector(Root) 100000 tree_backed -> struct 59.919 ms/op 53.306 ms/op 1.12
Vector(Root) 100000 struct -> binary 2.8091 ms/op 2.9507 ms/op 0.95
Vector(Root) 100000 tree_backed -> binary 7.7349 ms/op 8.0569 ms/op 0.96
List(Validator) 100000 binary -> struct 115.63 ms/op 106.02 ms/op 1.09
List(Validator) 100000 binary -> tree_backed 384.76 ms/op 373.11 ms/op 1.03
List(Validator) 100000 struct -> tree_backed 412.21 ms/op 398.40 ms/op 1.03
List(Validator) 100000 tree_backed -> struct 235.82 ms/op 224.14 ms/op 1.05
List(Validator) 100000 struct -> binary 29.166 ms/op 29.468 ms/op 0.99
List(Validator) 100000 tree_backed -> binary 121.66 ms/op 110.37 ms/op 1.10
List(Validator-NS) 100000 binary -> struct 110.10 ms/op 106.11 ms/op 1.04
List(Validator-NS) 100000 binary -> tree_backed 181.70 ms/op 161.90 ms/op 1.12
List(Validator-NS) 100000 struct -> tree_backed 220.30 ms/op 208.89 ms/op 1.05
List(Validator-NS) 100000 tree_backed -> struct 177.66 ms/op 176.11 ms/op 1.01
List(Validator-NS) 100000 struct -> binary 29.197 ms/op 28.990 ms/op 1.01
List(Validator-NS) 100000 tree_backed -> binary 36.098 ms/op 34.984 ms/op 1.03
get epochStatuses - MutableVector 94.258 us/op 131.65 us/op 0.72
get epochStatuses - ViewDU 223.66 us/op 211.38 us/op 1.06
set epochStatuses - ListTreeView 2.3636 ms/op 2.1932 ms/op 1.08
set epochStatuses - ListTreeView - set() 488.79 us/op 480.24 us/op 1.02
set epochStatuses - ListTreeView - commit() 759.39 us/op 787.43 us/op 0.96
bitstring 521.39 ns/op 514.94 ns/op 1.01
bit mask 13.739 ns/op 13.612 ns/op 1.01
struct - increase slot to 1000000 932.01 us/op 935.63 us/op 1.00
UintNumberType - increase slot to 1000000 28.977 ms/op 28.324 ms/op 1.02
UintBigintType - increase slot to 1000000 206.09 ms/op 166.93 ms/op 1.23
UintBigint8 x 100000 tree_deserialize 7.3012 ms/op 5.5370 ms/op 1.32
UintBigint8 x 100000 tree_serialize 1.1540 ms/op 1.1275 ms/op 1.02
UintBigint16 x 100000 tree_deserialize 7.2479 ms/op 5.3266 ms/op 1.36
UintBigint16 x 100000 tree_serialize 1.8497 ms/op 1.3435 ms/op 1.38
UintBigint32 x 100000 tree_deserialize 7.5120 ms/op 5.5073 ms/op 1.36
UintBigint32 x 100000 tree_serialize 2.6207 ms/op 1.8348 ms/op 1.43
UintBigint64 x 100000 tree_deserialize 8.2756 ms/op 5.8647 ms/op 1.41
UintBigint64 x 100000 tree_serialize 3.3177 ms/op 2.5129 ms/op 1.32
UintBigint8 x 100000 value_deserialize 435.87 us/op 436.85 us/op 1.00
UintBigint8 x 100000 value_serialize 844.20 us/op 754.76 us/op 1.12
UintBigint16 x 100000 value_deserialize 467.44 us/op 467.68 us/op 1.00
UintBigint16 x 100000 value_serialize 961.89 us/op 798.91 us/op 1.20
UintBigint32 x 100000 value_deserialize 497.45 us/op 499.30 us/op 1.00
UintBigint32 x 100000 value_serialize 1.0679 ms/op 830.57 us/op 1.29
UintBigint64 x 100000 value_deserialize 568.40 us/op 564.76 us/op 1.01
UintBigint64 x 100000 value_serialize 1.2732 ms/op 1.0536 ms/op 1.21
UintBigint8 x 100000 deserialize 3.8325 ms/op 3.2629 ms/op 1.17
UintBigint8 x 100000 serialize 1.5779 ms/op 1.6009 ms/op 0.99
UintBigint16 x 100000 deserialize 4.1084 ms/op 3.5706 ms/op 1.15
UintBigint16 x 100000 serialize 1.6247 ms/op 1.5138 ms/op 1.07
UintBigint32 x 100000 deserialize 4.2291 ms/op 3.3797 ms/op 1.25
UintBigint32 x 100000 serialize 3.1591 ms/op 2.9921 ms/op 1.06
UintBigint64 x 100000 deserialize 4.8551 ms/op 4.4588 ms/op 1.09
UintBigint64 x 100000 serialize 1.7422 ms/op 1.6549 ms/op 1.05
UintBigint128 x 100000 deserialize 5.7234 ms/op 5.6559 ms/op 1.01
UintBigint128 x 100000 serialize 15.600 ms/op 15.244 ms/op 1.02
UintBigint256 x 100000 deserialize 8.7695 ms/op 9.1054 ms/op 0.96
UintBigint256 x 100000 serialize 44.605 ms/op 44.477 ms/op 1.00
Slice from Uint8Array x25000 1.3748 ms/op 1.4356 ms/op 0.96
Slice from ArrayBuffer x25000 17.386 ms/op 16.362 ms/op 1.06
Slice from ArrayBuffer x25000 + new Uint8Array 18.750 ms/op 18.122 ms/op 1.03
Copy Uint8Array 100000 iterate 2.6611 ms/op 2.7309 ms/op 0.97
Copy Uint8Array 100000 slice 132.97 us/op 95.366 us/op 1.39
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 131.63 us/op 93.778 us/op 1.40
Copy Buffer 100000 Uint8Array.prototype.slice.call 131.44 us/op 94.628 us/op 1.39
Copy Uint8Array 100000 slice + set 253.27 us/op 199.38 us/op 1.27
Copy Uint8Array 100000 subarray + set 133.18 us/op 95.416 us/op 1.40
Copy Uint8Array 100000 slice arrayBuffer 135.16 us/op 104.07 us/op 1.30
Uint64 deserialize 100000 - iterate Uint8Array 2.1151 ms/op 2.1429 ms/op 0.99
Uint64 deserialize 100000 - by Uint32A 2.0508 ms/op 1.9366 ms/op 1.06
Uint64 deserialize 100000 - by DataView.getUint32 x2 2.0278 ms/op 2.0178 ms/op 1.00
Uint64 deserialize 100000 - by DataView.getBigUint64 5.2810 ms/op 5.3908 ms/op 0.98
Uint64 deserialize 100000 - by byte 41.117 ms/op 41.459 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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants