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(as-sha256, persistent-ts): update workflow to revise publish process #455

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

matthewkeil
Copy link
Member

Use npm config set command to add creds using command to it resolves correctly and then ditch yarn calling lerna and call lerna directly.

@matthewkeil matthewkeil requested a review from a team as a code owner January 20, 2025 15:27
@github-actions github-actions bot added the CI label Jan 20, 2025
@matthewkeil matthewkeil changed the title chore: update workflow to revise publish process (i hope it works thi… fix(as-sha256): update workflow to revise publish process (i hope it works thi… Jan 20, 2025
@matthewkeil matthewkeil changed the title fix(as-sha256): update workflow to revise publish process (i hope it works thi… fix(as-sha256, persistent-ts): update workflow to revise publish process Jan 20, 2025
Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

LGTM

@matthewkeil matthewkeil merged commit 844dcbe into master Jan 20, 2025
10 checks passed
@matthewkeil matthewkeil deleted the mkeil/fix-cd-publish-again branch January 20, 2025 15:35
Copy link

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 93cee7b Previous: c901b17 Ratio
digestTwoHashObjects 50023 times 48.311 ms/op 48.299 ms/op 1.00
digest2Bytes32 50023 times 55.506 ms/op 54.869 ms/op 1.01
digest 50023 times 53.675 ms/op 53.927 ms/op 1.00
input length 32 1.2110 us/op 1.1730 us/op 1.03
input length 64 1.3640 us/op 1.3080 us/op 1.04
input length 128 2.3180 us/op 2.2300 us/op 1.04
input length 256 3.4450 us/op 3.3450 us/op 1.03
input length 512 5.6260 us/op 5.6080 us/op 1.00
input length 1024 10.741 us/op 10.871 us/op 0.99
digest 1000000 times 857.21 ms/op 891.38 ms/op 0.96
hashObjectToByteArray 50023 times 1.2324 ms/op 1.2292 ms/op 1.00
byteArrayToHashObject 50023 times 1.6168 ms/op 1.5481 ms/op 1.04
digest64 200092 times 215.18 ms/op 216.98 ms/op 0.99
hash 200092 times using batchHash4UintArray64s 242.08 ms/op 237.91 ms/op 1.02
digest64HashObjects 200092 times 194.34 ms/op 191.55 ms/op 1.01
hash 200092 times using batchHash4HashObjectInputs 212.07 ms/op 215.62 ms/op 0.98
getGindicesAtDepth 3.6420 us/op 3.4990 us/op 1.04
iterateAtDepth 6.8450 us/op 6.3080 us/op 1.09
getGindexBits 416.00 ns/op 381.00 ns/op 1.09
gindexIterator 915.00 ns/op 861.00 ns/op 1.06
HashComputationLevel.push then loop 29.987 ms/op 27.283 ms/op 1.10
HashComputation[] push then loop 50.254 ms/op 48.474 ms/op 1.04
hash 2 Uint8Array 500000 times - hashtree 225.31 ms/op 214.31 ms/op 1.05
hashTwoObjects 500000 times - hashtree 216.12 ms/op 208.88 ms/op 1.03
executeHashComputations - hashtree 10.890 ms/op 9.6010 ms/op 1.13
hash 2 Uint8Array 500000 times - as-sha256 569.58 ms/op 560.13 ms/op 1.02
hashTwoObjects 500000 times - as-sha256 515.32 ms/op 510.84 ms/op 1.01
executeHashComputations - as-sha256 46.826 ms/op 45.401 ms/op 1.03
hash 2 Uint8Array 500000 times - noble 1.3326 s/op 1.2110 s/op 1.10
hashTwoObjects 500000 times - noble 1.8320 s/op 1.6332 s/op 1.12
executeHashComputations - noble 38.560 ms/op 36.826 ms/op 1.05
getHashComputations 2.7118 ms/op 2.1167 ms/op 1.28
executeHashComputations 11.145 ms/op 10.339 ms/op 1.08
get root 15.922 ms/op 15.313 ms/op 1.04
getNodeH() x7812.5 avg hindex 12.255 us/op 12.200 us/op 1.00
getNodeH() x7812.5 index 0 7.5730 us/op 7.4820 us/op 1.01
getNodeH() x7812.5 index 7 7.6430 us/op 7.5290 us/op 1.02
getNodeH() x7812.5 index 7 with key array 6.3770 us/op 6.3650 us/op 1.00
new LeafNode() x7812.5 408.83 us/op 293.38 us/op 1.39
getHashComputations 250000 nodes 15.951 ms/op 14.927 ms/op 1.07
batchHash 250000 nodes 99.175 ms/op 85.181 ms/op 1.16
get root 250000 nodes 119.14 ms/op 115.95 ms/op 1.03
getHashComputations 500000 nodes 29.353 ms/op 29.379 ms/op 1.00
batchHash 500000 nodes 162.42 ms/op 155.33 ms/op 1.05
get root 500000 nodes 241.67 ms/op 234.13 ms/op 1.03
getHashComputations 1000000 nodes 57.430 ms/op 80.442 ms/op 0.71
batchHash 1000000 nodes 388.09 ms/op 375.98 ms/op 1.03
get root 1000000 nodes 471.91 ms/op 460.81 ms/op 1.02
multiproof - depth 15, 1 requested leaves 9.9880 us/op 8.0430 us/op 1.24
tree offset multiproof - depth 15, 1 requested leaves 21.486 us/op 17.547 us/op 1.22
compact multiproof - depth 15, 1 requested leaves 3.9760 us/op 2.9350 us/op 1.35
multiproof - depth 15, 2 requested leaves 14.606 us/op 11.710 us/op 1.25
tree offset multiproof - depth 15, 2 requested leaves 25.577 us/op 21.807 us/op 1.17
compact multiproof - depth 15, 2 requested leaves 4.2680 us/op 2.9720 us/op 1.44
multiproof - depth 15, 3 requested leaves 19.790 us/op 16.092 us/op 1.23
tree offset multiproof - depth 15, 3 requested leaves 33.360 us/op 27.436 us/op 1.22
compact multiproof - depth 15, 3 requested leaves 6.0190 us/op 3.5430 us/op 1.70
multiproof - depth 15, 4 requested leaves 25.790 us/op 21.355 us/op 1.21
tree offset multiproof - depth 15, 4 requested leaves 40.724 us/op 33.619 us/op 1.21
compact multiproof - depth 15, 4 requested leaves 7.3730 us/op 4.1560 us/op 1.77
packedRootsBytesToLeafNodes bytes 4000 offset 0 7.9090 us/op 5.4660 us/op 1.45
packedRootsBytesToLeafNodes bytes 4000 offset 1 8.4750 us/op 5.4800 us/op 1.55
packedRootsBytesToLeafNodes bytes 4000 offset 2 7.4100 us/op 5.5030 us/op 1.35
packedRootsBytesToLeafNodes bytes 4000 offset 3 7.8560 us/op 5.5320 us/op 1.42
subtreeFillToContents depth 40 count 250000 51.471 ms/op 51.000 ms/op 1.01
setRoot - gindexBitstring 25.758 ms/op 20.809 ms/op 1.24
setRoot - gindex 25.169 ms/op 21.548 ms/op 1.17
getRoot - gindexBitstring 2.9165 ms/op 2.5402 ms/op 1.15
getRoot - gindex 3.6486 ms/op 3.1384 ms/op 1.16
getHashObject then setHashObject 26.412 ms/op 21.589 ms/op 1.22
setNodeWithFn 23.933 ms/op 19.719 ms/op 1.21
getNodeAtDepth depth 0 x100000 280.72 us/op 280.10 us/op 1.00
setNodeAtDepth depth 0 x100000 3.2962 ms/op 2.5081 ms/op 1.31
getNodesAtDepth depth 0 x100000 312.46 us/op 315.23 us/op 0.99
setNodesAtDepth depth 0 x100000 763.33 us/op 811.09 us/op 0.94
getNodeAtDepth depth 1 x100000 342.22 us/op 345.00 us/op 0.99
setNodeAtDepth depth 1 x100000 10.914 ms/op 8.0717 ms/op 1.35
getNodesAtDepth depth 1 x100000 440.94 us/op 435.64 us/op 1.01
setNodesAtDepth depth 1 x100000 8.1010 ms/op 6.6212 ms/op 1.22
getNodeAtDepth depth 2 x100000 742.93 us/op 785.06 us/op 0.95
setNodeAtDepth depth 2 x100000 20.177 ms/op 15.843 ms/op 1.27
getNodesAtDepth depth 2 x100000 21.340 ms/op 18.547 ms/op 1.15
setNodesAtDepth depth 2 x100000 28.493 ms/op 23.686 ms/op 1.20
tree.getNodesAtDepth - gindexes 12.247 ms/op 8.5938 ms/op 1.43
tree.getNodesAtDepth - push all nodes 2.7300 ms/op 2.2546 ms/op 1.21
tree.getNodesAtDepth - navigation 311.72 us/op 311.58 us/op 1.00
tree.setNodesAtDepth - indexes 773.72 us/op 689.67 us/op 1.12
set at depth 8 941.00 ns/op 750.00 ns/op 1.25
set at depth 16 1.6280 us/op 1.1070 us/op 1.47
set at depth 32 2.5280 us/op 1.9350 us/op 1.31
iterateNodesAtDepth 8 256 16.503 us/op 13.633 us/op 1.21
getNodesAtDepth 8 256 4.0850 us/op 3.7240 us/op 1.10
iterateNodesAtDepth 16 65536 5.0907 ms/op 4.7778 ms/op 1.07
getNodesAtDepth 16 65536 2.2452 ms/op 1.9592 ms/op 1.15
iterateNodesAtDepth 32 250000 17.785 ms/op 16.519 ms/op 1.08
getNodesAtDepth 32 250000 6.5443 ms/op 4.8355 ms/op 1.35
iterateNodesAtDepth 40 250000 17.470 ms/op 17.388 ms/op 1.00
getNodesAtDepth 40 250000 5.8239 ms/op 5.0514 ms/op 1.15
250000 validators root getter 118.09 ms/op 115.40 ms/op 1.02
250000 validators batchHash() 94.944 ms/op 92.673 ms/op 1.02
250000 validators hashComputations 18.016 ms/op 17.799 ms/op 1.01
bitlist bytes to struct (120,90) 636.00 ns/op 586.00 ns/op 1.09
bitlist bytes to tree (120,90) 2.3780 us/op 2.3190 us/op 1.03
bitlist bytes to struct (2048,2048) 973.00 ns/op 956.00 ns/op 1.02
bitlist bytes to tree (2048,2048) 3.8230 us/op 3.9080 us/op 0.98
ByteListType - deserialize 8.4292 ms/op 7.2014 ms/op 1.17
BasicListType - deserialize 13.257 ms/op 12.980 ms/op 1.02
ByteListType - serialize 7.3614 ms/op 7.2823 ms/op 1.01
BasicListType - serialize 9.8267 ms/op 9.6589 ms/op 1.02
BasicListType - tree_convertToStruct 25.232 ms/op 24.357 ms/op 1.04
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 5.0441 ms/op 4.5350 ms/op 1.11
List[uint8, 68719476736] len 300000 ViewDU.get(i) 4.2942 ms/op 4.2551 ms/op 1.01
Array.push len 300000 empty Array - number 7.0112 ms/op 6.7250 ms/op 1.04
Array.set len 300000 from new Array - number 1.6880 ms/op 1.6890 ms/op 1.00
Array.set len 300000 - number 5.9697 ms/op 5.7481 ms/op 1.04
Uint8Array.set len 300000 493.38 us/op 484.49 us/op 1.02
Uint32Array.set len 300000 578.05 us/op 556.15 us/op 1.04
Container({a: uint8, b: uint8}) getViewDU x300000 26.637 ms/op 25.233 ms/op 1.06
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 11.206 ms/op 10.651 ms/op 1.05
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 233.06 ms/op 208.44 ms/op 1.12
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 278.74 ms/op 254.49 ms/op 1.10
List(Container) len 300000 ViewDU.get(i) 7.3149 ms/op 6.5708 ms/op 1.11
List(Container) len 300000 ViewDU.getReadonly(i) 7.0612 ms/op 6.2925 ms/op 1.12
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 40.382 ms/op 38.012 ms/op 1.06
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 5.6188 ms/op 5.3465 ms/op 1.05
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 7.0316 ms/op 6.0761 ms/op 1.16
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 6.6707 ms/op 5.9083 ms/op 1.13
Array.push len 300000 empty Array - object 7.0620 ms/op 6.7559 ms/op 1.05
Array.set len 300000 from new Array - object 2.1037 ms/op 2.0952 ms/op 1.00
Array.set len 300000 - object 6.6151 ms/op 6.5853 ms/op 1.00
cachePermanentRootStruct no cache 5.9050 us/op 5.3030 us/op 1.11
cachePermanentRootStruct with cache 242.00 ns/op 201.00 ns/op 1.20
epochParticipation len 250000 rws 7813 2.3382 ms/op 2.3300 ms/op 1.00
BeaconState ViewDU hashTreeRoot() vc=200000 118.66 ms/op 111.95 ms/op 1.06
BeaconState ViewDU recursive hash - commit step vc=200000 5.4096 ms/op 4.6878 ms/op 1.15
BeaconState ViewDU validator tree creation vc=10000 42.043 ms/op 40.058 ms/op 1.05
BeaconState ViewDU batchHashTreeRoot vc=200000 109.62 ms/op 105.71 ms/op 1.04
BeaconState ViewDU hashTreeRoot - commit step vc=200000 96.762 ms/op 92.792 ms/op 1.04
BeaconState ViewDU hashTreeRoot - hash step vc=200000 18.431 ms/op 17.589 ms/op 1.05
deserialize Attestation - tree 4.1960 us/op 3.8940 us/op 1.08
deserialize Attestation - struct 2.4250 us/op 2.0080 us/op 1.21
deserialize SignedAggregateAndProof - tree 5.7200 us/op 5.3430 us/op 1.07
deserialize SignedAggregateAndProof - struct 3.5940 us/op 3.1390 us/op 1.14
deserialize SyncCommitteeMessage - tree 1.5930 us/op 1.4570 us/op 1.09
deserialize SyncCommitteeMessage - struct 1.2880 us/op 1.0180 us/op 1.27
deserialize SignedContributionAndProof - tree 3.5560 us/op 3.1130 us/op 1.14
deserialize SignedContributionAndProof - struct 2.9350 us/op 2.3500 us/op 1.25
deserialize SignedBeaconBlock - tree 337.57 us/op 289.66 us/op 1.17
deserialize SignedBeaconBlock - struct 140.54 us/op 124.61 us/op 1.13
BeaconState vc 300000 - deserialize tree 687.01 ms/op 659.67 ms/op 1.04
BeaconState vc 300000 - serialize tree 120.66 ms/op 138.86 ms/op 0.87
BeaconState.historicalRoots vc 300000 - deserialize tree 920.00 ns/op 824.00 ns/op 1.12
BeaconState.historicalRoots vc 300000 - serialize tree 807.00 ns/op 646.00 ns/op 1.25
BeaconState.validators vc 300000 - deserialize tree 631.66 ms/op 603.25 ms/op 1.05
BeaconState.validators vc 300000 - serialize tree 114.09 ms/op 122.51 ms/op 0.93
BeaconState.balances vc 300000 - deserialize tree 29.247 ms/op 30.232 ms/op 0.97
BeaconState.balances vc 300000 - serialize tree 6.0750 ms/op 3.7548 ms/op 1.62
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 1.3752 ms/op 935.37 us/op 1.47
BeaconState.previousEpochParticipation vc 300000 - serialize tree 342.81 us/op 330.76 us/op 1.04
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 1.3090 ms/op 909.04 us/op 1.44
BeaconState.currentEpochParticipation vc 300000 - serialize tree 350.06 us/op 327.68 us/op 1.07
BeaconState.inactivityScores vc 300000 - deserialize tree 29.750 ms/op 27.396 ms/op 1.09
BeaconState.inactivityScores vc 300000 - serialize tree 5.2590 ms/op 4.1012 ms/op 1.28
hashTreeRoot Attestation - struct 21.637 us/op 21.111 us/op 1.02
hashTreeRoot Attestation - tree 9.7750 us/op 9.3070 us/op 1.05
hashTreeRoot SignedAggregateAndProof - struct 30.287 us/op 24.959 us/op 1.21
hashTreeRoot SignedAggregateAndProof - tree 14.352 us/op 13.742 us/op 1.04
hashTreeRoot SyncCommitteeMessage - struct 6.7610 us/op 6.3980 us/op 1.06
hashTreeRoot SyncCommitteeMessage - tree 3.5460 us/op 3.8800 us/op 0.91
hashTreeRoot SignedContributionAndProof - struct 21.319 us/op 17.147 us/op 1.24
hashTreeRoot SignedContributionAndProof - tree 9.8340 us/op 9.4600 us/op 1.04
hashTreeRoot SignedBeaconBlock - struct 1.4487 ms/op 1.2868 ms/op 1.13
hashTreeRoot SignedBeaconBlock - tree 853.60 us/op 817.87 us/op 1.04
hashTreeRoot Validator - struct 8.5080 us/op 8.1270 us/op 1.05
hashTreeRoot Validator - tree 7.3840 us/op 7.1600 us/op 1.03
BeaconState vc 300000 - hashTreeRoot tree 2.3902 s/op 2.2870 s/op 1.05
BeaconState vc 300000 - batchHashTreeRoot tree 4.4704 s/op 4.2261 s/op 1.06
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 1.1900 us/op 1.1140 us/op 1.07
BeaconState.validators vc 300000 - hashTreeRoot tree 2.6491 s/op 2.5026 s/op 1.06
BeaconState.balances vc 300000 - hashTreeRoot tree 40.767 ms/op 34.697 ms/op 1.17
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 4.6083 ms/op 4.3181 ms/op 1.07
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 4.5870 ms/op 4.3212 ms/op 1.06
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 38.615 ms/op 35.223 ms/op 1.10
hash64 x18 9.4910 us/op 8.9320 us/op 1.06
hashTwoObjects x18 8.6810 us/op 8.3340 us/op 1.04
hash64 x1740 878.38 us/op 838.21 us/op 1.05
hashTwoObjects x1740 803.51 us/op 765.57 us/op 1.05
hash64 x2700000 1.3638 s/op 1.2549 s/op 1.09
hashTwoObjects x2700000 1.2582 s/op 1.1829 s/op 1.06
get_exitEpoch - ContainerType 289.00 ns/op 245.00 ns/op 1.18
get_exitEpoch - ContainerNodeStructType 307.00 ns/op 273.00 ns/op 1.12
set_exitEpoch - ContainerType 326.00 ns/op 279.00 ns/op 1.17
set_exitEpoch - ContainerNodeStructType 295.00 ns/op 235.00 ns/op 1.26
get_pubkey - ContainerType 1.1660 us/op 983.00 ns/op 1.19
get_pubkey - ContainerNodeStructType 312.00 ns/op 247.00 ns/op 1.26
hashTreeRoot - ContainerType 577.00 ns/op 471.00 ns/op 1.23
hashTreeRoot - ContainerNodeStructType 514.00 ns/op 422.00 ns/op 1.22
createProof - ContainerType 5.3810 us/op 4.2230 us/op 1.27
createProof - ContainerNodeStructType 26.423 us/op 23.651 us/op 1.12
serialize - ContainerType 2.0890 us/op 1.7980 us/op 1.16
serialize - ContainerNodeStructType 1.6370 us/op 1.5250 us/op 1.07
set_exitEpoch_and_hashTreeRoot - ContainerType 3.4440 us/op 3.0840 us/op 1.12
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 8.6610 us/op 7.4240 us/op 1.17
Array - for of 10.850 us/op 5.9320 us/op 1.83
Array - for(;;) 10.504 us/op 5.7630 us/op 1.82
basicListValue.readonlyValuesArray() 7.1875 ms/op 4.0601 ms/op 1.77
basicListValue.readonlyValuesArray() + loop all 6.8742 ms/op 4.2338 ms/op 1.62
compositeListValue.readonlyValuesArray() 34.139 ms/op 31.138 ms/op 1.10
compositeListValue.readonlyValuesArray() + loop all 32.146 ms/op 31.665 ms/op 1.02
Number64UintType - get balances list 5.3304 ms/op 4.3504 ms/op 1.23
Number64UintType - set balances list 9.9744 ms/op 9.9311 ms/op 1.00
Number64UintType - get and increase 10 then set 41.672 ms/op 47.227 ms/op 0.88
Number64UintType - increase 10 using applyDelta 17.515 ms/op 16.436 ms/op 1.07
Number64UintType - increase 10 using applyDeltaInBatch 17.786 ms/op 16.479 ms/op 1.08
tree_newTreeFromUint64Deltas 21.114 ms/op 18.616 ms/op 1.13
unsafeUint8ArrayToTree 45.780 ms/op 38.636 ms/op 1.18
bitLength(50) 291.00 ns/op 242.00 ns/op 1.20
bitLengthStr(50) 259.00 ns/op 213.00 ns/op 1.22
bitLength(8000) 295.00 ns/op 231.00 ns/op 1.28
bitLengthStr(8000) 304.00 ns/op 263.00 ns/op 1.16
bitLength(250000) 283.00 ns/op 228.00 ns/op 1.24
bitLengthStr(250000) 348.00 ns/op 298.00 ns/op 1.17
floor - Math.floor (53) 1.2435 ns/op 1.2443 ns/op 1.00
floor - << 0 (53) 1.2450 ns/op 1.2456 ns/op 1.00
floor - Math.floor (512) 1.2469 ns/op 1.2431 ns/op 1.00
floor - << 0 (512) 1.2435 ns/op 1.2432 ns/op 1.00
fnIf(0) 1.5567 ns/op 1.5768 ns/op 0.99
fnSwitch(0) 2.1754 ns/op 2.1757 ns/op 1.00
fnObj(0) 1.5626 ns/op 1.5726 ns/op 0.99
fnArr(0) 1.5539 ns/op 1.5544 ns/op 1.00
fnIf(4) 2.1835 ns/op 2.1821 ns/op 1.00
fnSwitch(4) 2.1753 ns/op 2.1759 ns/op 1.00
fnObj(4) 1.6098 ns/op 1.5573 ns/op 1.03
fnArr(4) 1.5542 ns/op 1.5579 ns/op 1.00
fnIf(9) 3.1206 ns/op 3.1085 ns/op 1.00
fnSwitch(9) 2.1779 ns/op 2.1770 ns/op 1.00
fnObj(9) 1.5629 ns/op 1.5557 ns/op 1.00
fnArr(9) 1.5542 ns/op 1.5553 ns/op 1.00
Container {a,b,vec} - as struct x100000 124.56 us/op 124.57 us/op 1.00
Container {a,b,vec} - as tree x100000 528.90 us/op 531.12 us/op 1.00
Container {a,vec,b} - as struct x100000 155.62 us/op 155.63 us/op 1.00
Container {a,vec,b} - as tree x100000 498.01 us/op 506.16 us/op 0.98
get 2 props x1000000 - rawObject 313.19 us/op 311.05 us/op 1.01
get 2 props x1000000 - proxy 73.153 ms/op 74.367 ms/op 0.98
get 2 props x1000000 - customObj 316.51 us/op 312.80 us/op 1.01
Simple object binary -> struct 1.0850 us/op 948.00 ns/op 1.14
Simple object binary -> tree_backed 2.7080 us/op 2.5420 us/op 1.07
Simple object struct -> tree_backed 3.1160 us/op 2.8600 us/op 1.09
Simple object tree_backed -> struct 2.7700 us/op 2.5090 us/op 1.10
Simple object struct -> binary 1.6750 us/op 1.2200 us/op 1.37
Simple object tree_backed -> binary 2.1060 us/op 2.1380 us/op 0.99
aggregationBits binary -> struct 915.00 ns/op 906.00 ns/op 1.01
aggregationBits binary -> tree_backed 4.7820 us/op 2.6740 us/op 1.79
aggregationBits struct -> tree_backed 4.8750 us/op 3.0840 us/op 1.58
aggregationBits tree_backed -> struct 1.8850 us/op 1.3040 us/op 1.45
aggregationBits struct -> binary 1.1220 us/op 837.00 ns/op 1.34
aggregationBits tree_backed -> binary 1.6050 us/op 1.0910 us/op 1.47
List(uint8) 100000 binary -> struct 2.1145 ms/op 1.7288 ms/op 1.22
List(uint8) 100000 binary -> tree_backed 390.45 us/op 301.74 us/op 1.29
List(uint8) 100000 struct -> tree_backed 1.5020 ms/op 1.4688 ms/op 1.02
List(uint8) 100000 tree_backed -> struct 1.1659 ms/op 1.1925 ms/op 0.98
List(uint8) 100000 struct -> binary 1.1028 ms/op 1.1224 ms/op 0.98
List(uint8) 100000 tree_backed -> binary 115.06 us/op 107.16 us/op 1.07
List(uint64Number) 100000 binary -> struct 1.6557 ms/op 1.6120 ms/op 1.03
List(uint64Number) 100000 binary -> tree_backed 5.7399 ms/op 4.6403 ms/op 1.24
List(uint64Number) 100000 struct -> tree_backed 7.5251 ms/op 6.6239 ms/op 1.14
List(uint64Number) 100000 tree_backed -> struct 2.6776 ms/op 2.4353 ms/op 1.10
List(uint64Number) 100000 struct -> binary 1.7108 ms/op 1.5220 ms/op 1.12
List(uint64Number) 100000 tree_backed -> binary 1.0376 ms/op 1.0302 ms/op 1.01
List(Uint64Bigint) 100000 binary -> struct 4.0643 ms/op 4.0325 ms/op 1.01
List(Uint64Bigint) 100000 binary -> tree_backed 7.5874 ms/op 5.3669 ms/op 1.41
List(Uint64Bigint) 100000 struct -> tree_backed 6.4830 ms/op 7.8366 ms/op 0.83
List(Uint64Bigint) 100000 tree_backed -> struct 5.1979 ms/op 5.0958 ms/op 1.02
List(Uint64Bigint) 100000 struct -> binary 2.3265 ms/op 2.0964 ms/op 1.11
List(Uint64Bigint) 100000 tree_backed -> binary 1.4917 ms/op 1.1804 ms/op 1.26
Vector(Root) 100000 binary -> struct 38.540 ms/op 38.283 ms/op 1.01
Vector(Root) 100000 binary -> tree_backed 58.443 ms/op 38.264 ms/op 1.53
Vector(Root) 100000 struct -> tree_backed 53.010 ms/op 55.297 ms/op 0.96
Vector(Root) 100000 tree_backed -> struct 54.182 ms/op 53.399 ms/op 1.01
Vector(Root) 100000 struct -> binary 2.7830 ms/op 2.9017 ms/op 0.96
Vector(Root) 100000 tree_backed -> binary 7.4402 ms/op 6.0756 ms/op 1.22
List(Validator) 100000 binary -> struct 113.59 ms/op 101.76 ms/op 1.12
List(Validator) 100000 binary -> tree_backed 383.10 ms/op 376.56 ms/op 1.02
List(Validator) 100000 struct -> tree_backed 410.07 ms/op 404.06 ms/op 1.01
List(Validator) 100000 tree_backed -> struct 221.45 ms/op 218.82 ms/op 1.01
List(Validator) 100000 struct -> binary 29.744 ms/op 30.782 ms/op 0.97
List(Validator) 100000 tree_backed -> binary 119.13 ms/op 107.33 ms/op 1.11
List(Validator-NS) 100000 binary -> struct 125.34 ms/op 104.47 ms/op 1.20
List(Validator-NS) 100000 binary -> tree_backed 162.93 ms/op 166.16 ms/op 0.98
List(Validator-NS) 100000 struct -> tree_backed 220.16 ms/op 209.33 ms/op 1.05
List(Validator-NS) 100000 tree_backed -> struct 182.64 ms/op 173.00 ms/op 1.06
List(Validator-NS) 100000 struct -> binary 29.153 ms/op 30.690 ms/op 0.95
List(Validator-NS) 100000 tree_backed -> binary 35.897 ms/op 35.567 ms/op 1.01
get epochStatuses - MutableVector 93.174 us/op 100.92 us/op 0.92
get epochStatuses - ViewDU 205.67 us/op 188.02 us/op 1.09
set epochStatuses - ListTreeView 2.1586 ms/op 2.2309 ms/op 0.97
set epochStatuses - ListTreeView - set() 460.07 us/op 458.15 us/op 1.00
set epochStatuses - ListTreeView - commit() 787.65 us/op 838.44 us/op 0.94
bitstring 516.23 ns/op 518.25 ns/op 1.00
bit mask 13.340 ns/op 13.580 ns/op 0.98
struct - increase slot to 1000000 940.99 us/op 932.20 us/op 1.01
UintNumberType - increase slot to 1000000 27.742 ms/op 32.640 ms/op 0.85
UintBigintType - increase slot to 1000000 183.75 ms/op 175.92 ms/op 1.04
UintBigint8 x 100000 tree_deserialize 5.7444 ms/op 7.1501 ms/op 0.80
UintBigint8 x 100000 tree_serialize 1.1072 ms/op 617.47 us/op 1.79
UintBigint16 x 100000 tree_deserialize 6.0267 ms/op 5.3856 ms/op 1.12
UintBigint16 x 100000 tree_serialize 1.3670 ms/op 1.4015 ms/op 0.98
UintBigint32 x 100000 tree_deserialize 5.7172 ms/op 5.7316 ms/op 1.00
UintBigint32 x 100000 tree_serialize 2.0300 ms/op 1.7268 ms/op 1.18
UintBigint64 x 100000 tree_deserialize 6.6598 ms/op 6.0532 ms/op 1.10
UintBigint64 x 100000 tree_serialize 2.6965 ms/op 1.7689 ms/op 1.52
UintBigint8 x 100000 value_deserialize 435.48 us/op 435.55 us/op 1.00
UintBigint8 x 100000 value_serialize 783.48 us/op 803.12 us/op 0.98
UintBigint16 x 100000 value_deserialize 467.01 us/op 466.56 us/op 1.00
UintBigint16 x 100000 value_serialize 842.35 us/op 853.03 us/op 0.99
UintBigint32 x 100000 value_deserialize 497.38 us/op 497.31 us/op 1.00
UintBigint32 x 100000 value_serialize 892.90 us/op 886.76 us/op 1.01
UintBigint64 x 100000 value_deserialize 569.51 us/op 570.08 us/op 1.00
UintBigint64 x 100000 value_serialize 1.1183 ms/op 1.0905 ms/op 1.03
UintBigint8 x 100000 deserialize 3.6106 ms/op 3.5937 ms/op 1.00
UintBigint8 x 100000 serialize 1.5189 ms/op 1.5556 ms/op 0.98
UintBigint16 x 100000 deserialize 3.7104 ms/op 3.4932 ms/op 1.06
UintBigint16 x 100000 serialize 1.5458 ms/op 1.6171 ms/op 0.96
UintBigint32 x 100000 deserialize 3.7522 ms/op 4.0847 ms/op 0.92
UintBigint32 x 100000 serialize 3.1136 ms/op 2.8718 ms/op 1.08
UintBigint64 x 100000 deserialize 4.2648 ms/op 4.0767 ms/op 1.05
UintBigint64 x 100000 serialize 1.6505 ms/op 1.6356 ms/op 1.01
UintBigint128 x 100000 deserialize 6.0610 ms/op 5.9690 ms/op 1.02
UintBigint128 x 100000 serialize 15.394 ms/op 15.384 ms/op 1.00
UintBigint256 x 100000 deserialize 9.6070 ms/op 8.6014 ms/op 1.12
UintBigint256 x 100000 serialize 44.999 ms/op 44.619 ms/op 1.01
Slice from Uint8Array x25000 1.4821 ms/op 1.3211 ms/op 1.12
Slice from ArrayBuffer x25000 16.091 ms/op 16.733 ms/op 0.96
Slice from ArrayBuffer x25000 + new Uint8Array 17.535 ms/op 17.264 ms/op 1.02
Copy Uint8Array 100000 iterate 2.6424 ms/op 2.6541 ms/op 1.00
Copy Uint8Array 100000 slice 113.33 us/op 115.97 us/op 0.98
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 113.05 us/op 117.14 us/op 0.97
Copy Buffer 100000 Uint8Array.prototype.slice.call 117.18 us/op 112.55 us/op 1.04
Copy Uint8Array 100000 slice + set 220.75 us/op 218.73 us/op 1.01
Copy Uint8Array 100000 subarray + set 113.67 us/op 113.78 us/op 1.00
Copy Uint8Array 100000 slice arrayBuffer 115.14 us/op 113.05 us/op 1.02
Uint64 deserialize 100000 - iterate Uint8Array 2.0494 ms/op 2.0903 ms/op 0.98
Uint64 deserialize 100000 - by Uint32A 2.2354 ms/op 1.9638 ms/op 1.14
Uint64 deserialize 100000 - by DataView.getUint32 x2 2.1075 ms/op 2.0670 ms/op 1.02
Uint64 deserialize 100000 - by DataView.getBigUint64 5.3054 ms/op 5.0557 ms/op 1.05
Uint64 deserialize 100000 - by byte 40.773 ms/op 41.009 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