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

chore: revert "chore: use workspace version (#307)" #316

Closed
wants to merge 1 commit into from

Conversation

wemeetagain
Copy link
Member

This reverts commit a1f53c6.

Motivation

release-please #315 is showing conflicts with #307 included

Description

This reverts commit a1f53c6.

@wemeetagain wemeetagain requested a review from a team as a code owner April 5, 2023 14:40
@wemeetagain wemeetagain changed the title Revert "chore: use workspace version (#307)" chore: revert "chore: use workspace version (#307)" Apr 5, 2023
@github-actions
Copy link

github-actions bot commented Apr 5, 2023

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 07946f9 Previous: 4b44614 Ratio
Number64UintType - get balances list 1.6812 ms/op 7.0314 ms/op 0.24
Full benchmark results
Benchmark suite Current: 07946f9 Previous: 4b44614 Ratio
digestTwoHashObjects 50023 times 58.084 ms/op 69.933 ms/op 0.83
digest64 50023 times 60.825 ms/op 71.173 ms/op 0.85
digest 50023 times 60.655 ms/op 71.470 ms/op 0.85
input length 32 1.5540 us/op 1.5990 us/op 0.97
input length 64 1.6640 us/op 1.8230 us/op 0.91
input length 128 2.8460 us/op 3.1980 us/op 0.89
input length 256 4.2340 us/op 4.9550 us/op 0.85
input length 512 6.8590 us/op 7.9800 us/op 0.86
input length 1024 13.598 us/op 15.423 us/op 0.88
digest 1000000 times 1.0464 s/op 1.1677 s/op 0.90
hashObjectToByteArray 50023 times 2.3798 ms/op 2.4026 ms/op 0.99
byteArrayToHashObject 50023 times 2.8575 ms/op 2.8969 ms/op 0.99
getGindicesAtDepth 6.3020 us/op 6.0970 us/op 1.03
iterateAtDepth 12.765 us/op 12.503 us/op 1.02
getGindexBits 590.00 ns/op 620.00 ns/op 0.95
gindexIterator 1.2830 us/op 1.4250 us/op 0.90
hash 2 Uint8Array 2250026 times - as-sha256 2.7380 s/op 3.2843 s/op 0.83
hashTwoObjects 2250026 times - as-sha256 2.6217 s/op 3.3155 s/op 0.79
hash 2 Uint8Array 2250026 times - noble 7.0754 s/op 8.4476 s/op 0.84
hashTwoObjects 2250026 times - noble 11.488 s/op 10.323 s/op 1.11
getNodeH() x7812.5 avg hindex 20.809 us/op 23.968 us/op 0.87
getNodeH() x7812.5 index 0 8.2490 us/op 6.6940 us/op 1.23
getNodeH() x7812.5 index 7 8.2600 us/op 6.5350 us/op 1.26
getNodeH() x7812.5 index 7 with key array 8.2490 us/op 6.5870 us/op 1.25
new LeafNode() x7812.5 213.42 us/op 335.54 us/op 0.64
multiproof - depth 15, 1 requested leaves 13.598 us/op 15.565 us/op 0.87
tree offset multiproof - depth 15, 1 requested leaves 29.589 us/op 33.666 us/op 0.88
compact multiproof - depth 15, 1 requested leaves 8.8610 us/op 8.6930 us/op 1.02
multiproof - depth 15, 2 requested leaves 20.573 us/op 21.204 us/op 0.97
tree offset multiproof - depth 15, 2 requested leaves 35.759 us/op 36.943 us/op 0.97
compact multiproof - depth 15, 2 requested leaves 4.8860 us/op 5.4030 us/op 0.90
multiproof - depth 15, 3 requested leaves 28.428 us/op 29.476 us/op 0.96
tree offset multiproof - depth 15, 3 requested leaves 46.751 us/op 47.417 us/op 0.99
compact multiproof - depth 15, 3 requested leaves 8.7270 us/op 9.1590 us/op 0.95
multiproof - depth 15, 4 requested leaves 37.026 us/op 38.867 us/op 0.95
tree offset multiproof - depth 15, 4 requested leaves 60.530 us/op 58.327 us/op 1.04
compact multiproof - depth 15, 4 requested leaves 8.7210 us/op 9.6460 us/op 0.90
packedRootsBytesToLeafNodes bytes 4000 offset 0 3.6160 us/op 3.7880 us/op 0.95
packedRootsBytesToLeafNodes bytes 4000 offset 1 3.6010 us/op 3.5980 us/op 1.00
packedRootsBytesToLeafNodes bytes 4000 offset 2 3.6040 us/op 3.6440 us/op 0.99
packedRootsBytesToLeafNodes bytes 4000 offset 3 3.5840 us/op 3.5440 us/op 1.01
subtreeFillToContents depth 40 count 250000 72.567 ms/op 87.426 ms/op 0.83
setRoot - gindexBitstring 14.440 ms/op 15.594 ms/op 0.93
setRoot - gindex 13.669 ms/op 16.747 ms/op 0.82
getRoot - gindexBitstring 3.5916 ms/op 3.5733 ms/op 1.01
getRoot - gindex 4.2473 ms/op 4.6795 ms/op 0.91
getHashObject then setHashObject 15.585 ms/op 18.220 ms/op 0.86
setNodeWithFn 13.822 ms/op 17.046 ms/op 0.81
getNodeAtDepth depth 0 x100000 2.1729 ms/op 1.6888 ms/op 1.29
setNodeAtDepth depth 0 x100000 4.5327 ms/op 4.3003 ms/op 1.05
getNodesAtDepth depth 0 x100000 1.9032 ms/op 1.4874 ms/op 1.28
setNodesAtDepth depth 0 x100000 2.4286 ms/op 2.0892 ms/op 1.16
getNodeAtDepth depth 1 x100000 2.2025 ms/op 1.8049 ms/op 1.22
setNodeAtDepth depth 1 x100000 9.3195 ms/op 9.8646 ms/op 0.94
getNodesAtDepth depth 1 x100000 2.0084 ms/op 1.7004 ms/op 1.18
setNodesAtDepth depth 1 x100000 7.5972 ms/op 7.1351 ms/op 1.06
getNodeAtDepth depth 2 x100000 2.8650 ms/op 2.3369 ms/op 1.23
setNodeAtDepth depth 2 x100000 15.113 ms/op 16.499 ms/op 0.92
getNodesAtDepth depth 2 x100000 27.636 ms/op 29.533 ms/op 0.94
setNodesAtDepth depth 2 x100000 20.101 ms/op 21.585 ms/op 0.93
tree.getNodesAtDepth - gindexes 10.424 ms/op 7.7830 ms/op 1.34
tree.getNodesAtDepth - push all nodes 2.6741 ms/op 2.7079 ms/op 0.99
tree.getNodesAtDepth - navigation 168.99 us/op 177.70 us/op 0.95
tree.setNodesAtDepth - indexes 556.87 us/op 643.49 us/op 0.87
set at depth 8 686.00 ns/op 889.00 ns/op 0.77
set at depth 16 915.00 ns/op 1.1460 us/op 0.80
set at depth 32 1.5170 us/op 1.8670 us/op 0.81
iterateNodesAtDepth 8 256 22.994 us/op 22.576 us/op 1.02
getNodesAtDepth 8 256 5.7990 us/op 5.3340 us/op 1.09
iterateNodesAtDepth 16 65536 6.6605 ms/op 6.7779 ms/op 0.98
getNodesAtDepth 16 65536 2.4343 ms/op 2.4422 ms/op 1.00
iterateNodesAtDepth 32 250000 24.766 ms/op 23.904 ms/op 1.04
getNodesAtDepth 32 250000 7.2474 ms/op 6.3663 ms/op 1.14
iterateNodesAtDepth 40 250000 24.658 ms/op 24.866 ms/op 0.99
getNodesAtDepth 40 250000 7.0885 ms/op 6.4346 ms/op 1.10
250k validators 11.836 s/op 10.903 s/op 1.09
bitlist bytes to struct (120,90) 885.00 ns/op 1.0800 us/op 0.82
bitlist bytes to tree (120,90) 4.0070 us/op 3.5590 us/op 1.13
bitlist bytes to struct (2048,2048) 1.9430 us/op 1.6160 us/op 1.20
bitlist bytes to tree (2048,2048) 6.9890 us/op 6.0870 us/op 1.15
ByteListType - deserialize 17.955 ms/op 15.557 ms/op 1.15
BasicListType - deserialize 14.369 ms/op 12.151 ms/op 1.18
ByteListType - serialize 17.901 ms/op 15.684 ms/op 1.14
BasicListType - serialize 21.468 ms/op 17.371 ms/op 1.24
BasicListType - tree_convertToStruct 49.004 ms/op 32.720 ms/op 1.50
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 5.4889 ms/op 6.1717 ms/op 0.89
List[uint8, 68719476736] len 300000 ViewDU.get(i) 6.4081 ms/op 6.0676 ms/op 1.06
Array.push len 300000 empty Array - number 9.0133 ms/op 7.5280 ms/op 1.20
Array.set len 300000 from new Array - number 2.3168 ms/op 2.2701 ms/op 1.02
Array.set len 300000 - number 8.0189 ms/op 8.2105 ms/op 0.98
Uint8Array.set len 300000 263.55 us/op 270.87 us/op 0.97
Uint32Array.set len 300000 422.28 us/op 382.36 us/op 1.10
Container({a: uint8, b: uint8}) getViewDU x300000 37.395 ms/op 41.393 ms/op 0.90
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 13.170 ms/op 13.708 ms/op 0.96
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 394.81 ms/op 573.05 ms/op 0.69
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 481.07 ms/op 466.43 ms/op 1.03
List(Container) len 300000 ViewDU.get(i) 12.266 ms/op 10.151 ms/op 1.21
List(Container) len 300000 ViewDU.getReadonly(i) 11.180 ms/op 9.8093 ms/op 1.14
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 52.923 ms/op 60.662 ms/op 0.87
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 8.7693 ms/op 8.2013 ms/op 1.07
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 11.134 ms/op 8.2293 ms/op 1.35
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 10.608 ms/op 8.0730 ms/op 1.31
Array.push len 300000 empty Array - object 8.5160 ms/op 8.2148 ms/op 1.04
Array.set len 300000 from new Array - object 2.8734 ms/op 2.6622 ms/op 1.08
Array.set len 300000 - object 8.5739 ms/op 7.8095 ms/op 1.10
cachePermanentRootStruct no cache 12.227 us/op 13.421 us/op 0.91
cachePermanentRootStruct with cache 303.00 ns/op 300.00 ns/op 1.01
epochParticipation len 250000 rws 7813 3.2594 ms/op 3.5317 ms/op 0.92
deserialize Attestation - tree 4.6140 us/op 5.4550 us/op 0.85
deserialize Attestation - struct 3.1260 us/op 3.1070 us/op 1.01
deserialize SignedAggregateAndProof - tree 5.8640 us/op 7.3620 us/op 0.80
deserialize SignedAggregateAndProof - struct 4.8730 us/op 5.1550 us/op 0.95
deserialize SyncCommitteeMessage - tree 1.5620 us/op 1.6700 us/op 0.94
deserialize SyncCommitteeMessage - struct 1.8320 us/op 1.8060 us/op 1.01
deserialize SignedContributionAndProof - tree 2.9450 us/op 3.2640 us/op 0.90
deserialize SignedContributionAndProof - struct 4.3500 us/op 4.1260 us/op 1.05
deserialize SignedBeaconBlock - tree 331.31 us/op 420.57 us/op 0.79
deserialize SignedBeaconBlock - struct 225.41 us/op 219.90 us/op 1.03
BeaconState vc 300000 - deserialize tree 1.0014 s/op 1.0357 s/op 0.97
BeaconState vc 300000 - serialize tree 305.46 ms/op 293.32 ms/op 1.04
BeaconState.historicalRoots vc 300000 - deserialize tree 1.1210 us/op 1.1150 us/op 1.01
BeaconState.historicalRoots vc 300000 - serialize tree 1.2850 us/op 1.3120 us/op 0.98
BeaconState.validators vc 300000 - deserialize tree 979.92 ms/op 1.0136 s/op 0.97
BeaconState.validators vc 300000 - serialize tree 260.71 ms/op 232.73 ms/op 1.12
BeaconState.balances vc 300000 - deserialize tree 37.358 ms/op 38.922 ms/op 0.96
BeaconState.balances vc 300000 - serialize tree 6.3611 ms/op 5.4593 ms/op 1.17
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 831.50 us/op 914.32 us/op 0.91
BeaconState.previousEpochParticipation vc 300000 - serialize tree 458.24 us/op 370.17 us/op 1.24
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 796.62 us/op 956.53 us/op 0.83
BeaconState.currentEpochParticipation vc 300000 - serialize tree 473.05 us/op 374.90 us/op 1.26
BeaconState.inactivityScores vc 300000 - deserialize tree 39.902 ms/op 40.434 ms/op 0.99
BeaconState.inactivityScores vc 300000 - serialize tree 6.7129 ms/op 4.9872 ms/op 1.35
hashTreeRoot Attestation - struct 45.816 us/op 52.484 us/op 0.87
hashTreeRoot Attestation - tree 28.840 us/op 29.694 us/op 0.97
hashTreeRoot SignedAggregateAndProof - struct 74.673 us/op 72.017 us/op 1.04
hashTreeRoot SignedAggregateAndProof - tree 36.226 us/op 44.724 us/op 0.81
hashTreeRoot SyncCommitteeMessage - struct 16.735 us/op 16.596 us/op 1.01
hashTreeRoot SyncCommitteeMessage - tree 7.7690 us/op 11.272 us/op 0.69
hashTreeRoot SignedContributionAndProof - struct 48.420 us/op 45.912 us/op 1.05
hashTreeRoot SignedContributionAndProof - tree 29.249 us/op 29.890 us/op 0.98
hashTreeRoot SignedBeaconBlock - struct 3.8230 ms/op 4.2117 ms/op 0.91
hashTreeRoot SignedBeaconBlock - tree 2.0368 ms/op 2.5416 ms/op 0.80
hashTreeRoot Validator - struct 18.655 us/op 19.510 us/op 0.96
hashTreeRoot Validator - tree 14.970 us/op 16.937 us/op 0.88
BeaconState vc 300000 - hashTreeRoot tree 4.6565 s/op 5.2660 s/op 0.88
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 1.9170 us/op 2.1580 us/op 0.89
BeaconState.validators vc 300000 - hashTreeRoot tree 4.3506 s/op 5.0837 s/op 0.86
BeaconState.balances vc 300000 - hashTreeRoot tree 104.59 ms/op 129.68 ms/op 0.81
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 11.075 ms/op 13.175 ms/op 0.84
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 11.054 ms/op 13.183 ms/op 0.84
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 104.06 ms/op 127.72 ms/op 0.81
hash64 x18 24.283 us/op 28.269 us/op 0.86
hashTwoObjects x18 21.918 us/op 26.070 us/op 0.84
hash64 x1740 2.2876 ms/op 2.7332 ms/op 0.84
hashTwoObjects x1740 2.0671 ms/op 2.5575 ms/op 0.81
hash64 x2700000 3.5325 s/op 4.3227 s/op 0.82
hashTwoObjects x2700000 3.2179 s/op 3.8582 s/op 0.83
get_exitEpoch - ContainerType 537.00 ns/op 480.00 ns/op 1.12
get_exitEpoch - ContainerNodeStructType 447.00 ns/op 394.00 ns/op 1.13
set_exitEpoch - ContainerType 479.00 ns/op 333.00 ns/op 1.44
set_exitEpoch - ContainerNodeStructType 360.00 ns/op 303.00 ns/op 1.19
get_pubkey - ContainerType 1.9940 us/op 1.5410 us/op 1.29
get_pubkey - ContainerNodeStructType 314.00 ns/op 297.00 ns/op 1.06
hashTreeRoot - ContainerType 575.00 ns/op 508.00 ns/op 1.13
hashTreeRoot - ContainerNodeStructType 593.00 ns/op 586.00 ns/op 1.01
createProof - ContainerType 6.3440 us/op 6.4860 us/op 0.98
createProof - ContainerNodeStructType 33.820 us/op 37.571 us/op 0.90
serialize - ContainerType 2.9660 us/op 2.9010 us/op 1.02
serialize - ContainerNodeStructType 2.3250 us/op 2.2590 us/op 1.03
set_exitEpoch_and_hashTreeRoot - ContainerType 5.1900 us/op 6.0590 us/op 0.86
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 16.053 us/op 17.011 us/op 0.94
Array - for of 12.260 us/op 6.6730 us/op 1.84
Array - for(;;) 9.8260 us/op 6.5120 us/op 1.51
basicListValue.readonlyValuesArray() 5.3694 ms/op 4.8873 ms/op 1.10
basicListValue.readonlyValuesArray() + loop all 5.4371 ms/op 5.1665 ms/op 1.05
compositeListValue.readonlyValuesArray() 55.627 ms/op 39.627 ms/op 1.40
compositeListValue.readonlyValuesArray() + loop all 39.935 ms/op 40.186 ms/op 0.99
Number64UintType - get balances list 1.6812 ms/op 7.0314 ms/op 0.24
Number64UintType - set balances list 16.394 ms/op 16.642 ms/op 0.99
Number64UintType - get and increase 10 then set 54.493 ms/op 62.392 ms/op 0.87
Number64UintType - increase 10 using applyDelta 20.402 ms/op 25.709 ms/op 0.79
Number64UintType - increase 10 using applyDeltaInBatch 20.374 ms/op 25.393 ms/op 0.80
tree_newTreeFromUint64Deltas 26.842 ms/op 26.069 ms/op 1.03
unsafeUint8ArrayToTree 46.277 ms/op 54.960 ms/op 0.84
bitLength(50) 289.00 ns/op 325.00 ns/op 0.89
bitLengthStr(50) 356.00 ns/op 394.00 ns/op 0.90
bitLength(8000) 296.00 ns/op 313.00 ns/op 0.95
bitLengthStr(8000) 495.00 ns/op 527.00 ns/op 0.94
bitLength(250000) 300.00 ns/op 317.00 ns/op 0.95
bitLengthStr(250000) 593.00 ns/op 630.00 ns/op 0.94
floor - Math.floor (53) 0.67022 ns/op 0.59840 ns/op 1.12
floor - << 0 (53) 0.67020 ns/op 0.59584 ns/op 1.12
floor - Math.floor (512) 0.67008 ns/op 0.60160 ns/op 1.11
floor - << 0 (512) 0.67102 ns/op 0.59315 ns/op 1.13
fnIf(0) 2.6793 ns/op 1.8907 ns/op 1.42
fnSwitch(0) 5.0267 ns/op 2.9023 ns/op 1.73
fnObj(0) 0.67015 ns/op 0.60201 ns/op 1.11
fnArr(0) 0.66999 ns/op 0.58530 ns/op 1.14
fnIf(4) 4.3549 ns/op 2.7319 ns/op 1.59
fnSwitch(4) 5.0267 ns/op 2.8293 ns/op 1.78
fnObj(4) 0.66992 ns/op 0.58678 ns/op 1.14
fnArr(4) 0.67002 ns/op 0.59020 ns/op 1.14
fnIf(9) 6.7057 ns/op 3.7956 ns/op 1.77
fnSwitch(9) 5.0233 ns/op 2.8750 ns/op 1.75
fnObj(9) 0.67021 ns/op 0.58837 ns/op 1.14
fnArr(9) 0.67030 ns/op 0.59365 ns/op 1.13
Container {a,b,vec} - as struct x100000 67.359 us/op 59.293 us/op 1.14
Container {a,b,vec} - as tree x100000 839.18 us/op 573.98 us/op 1.46
Container {a,vec,b} - as struct x100000 100.85 us/op 91.352 us/op 1.10
Container {a,vec,b} - as tree x100000 904.48 us/op 646.76 us/op 1.40
get 2 props x1000000 - rawObject 335.31 us/op 339.72 us/op 0.99
get 2 props x1000000 - proxy 133.43 ms/op 108.31 ms/op 1.23
get 2 props x1000000 - customObj 335.19 us/op 336.58 us/op 1.00
Simple object binary -> struct 1.0090 us/op 1.1670 us/op 0.86
Simple object binary -> tree_backed 2.7720 us/op 3.2290 us/op 0.86
Simple object struct -> tree_backed 3.6100 us/op 4.2320 us/op 0.85
Simple object tree_backed -> struct 3.1700 us/op 3.4310 us/op 0.92
Simple object struct -> binary 1.5210 us/op 1.7340 us/op 0.88
Simple object tree_backed -> binary 2.6110 us/op 2.9450 us/op 0.89
aggregationBits binary -> struct 880.00 ns/op 1.0870 us/op 0.81
aggregationBits binary -> tree_backed 3.7280 us/op 4.0380 us/op 0.92
aggregationBits struct -> tree_backed 4.4930 us/op 4.7830 us/op 0.94
aggregationBits tree_backed -> struct 1.8440 us/op 1.8040 us/op 1.02
aggregationBits struct -> binary 1.3580 us/op 1.2340 us/op 1.10
aggregationBits tree_backed -> binary 1.6420 us/op 1.5450 us/op 1.06
List(uint8) 100000 binary -> struct 1.9277 ms/op 1.6518 ms/op 1.17
List(uint8) 100000 binary -> tree_backed 156.93 us/op 216.07 us/op 0.73
List(uint8) 100000 struct -> tree_backed 2.0995 ms/op 1.9918 ms/op 1.05
List(uint8) 100000 tree_backed -> struct 1.4924 ms/op 1.2284 ms/op 1.21
List(uint8) 100000 struct -> binary 1.9251 ms/op 1.7259 ms/op 1.12
List(uint8) 100000 tree_backed -> binary 144.54 us/op 126.04 us/op 1.15
List(uint64Number) 100000 binary -> struct 1.7006 ms/op 1.7620 ms/op 0.97
List(uint64Number) 100000 binary -> tree_backed 5.4848 ms/op 5.8711 ms/op 0.93
List(uint64Number) 100000 struct -> tree_backed 8.1852 ms/op 8.6116 ms/op 0.95
List(uint64Number) 100000 tree_backed -> struct 3.0198 ms/op 2.6378 ms/op 1.14
List(uint64Number) 100000 struct -> binary 2.2448 ms/op 2.1678 ms/op 1.04
List(uint64Number) 100000 tree_backed -> binary 1.5557 ms/op 1.1456 ms/op 1.36
List(Uint64Bigint) 100000 binary -> struct 5.2767 ms/op 5.0695 ms/op 1.04
List(Uint64Bigint) 100000 binary -> tree_backed 5.6400 ms/op 5.7363 ms/op 0.98
List(Uint64Bigint) 100000 struct -> tree_backed 8.8521 ms/op 9.3144 ms/op 0.95
List(Uint64Bigint) 100000 tree_backed -> struct 6.5309 ms/op 5.9485 ms/op 1.10
List(Uint64Bigint) 100000 struct -> binary 2.9905 ms/op 2.9031 ms/op 1.03
List(Uint64Bigint) 100000 tree_backed -> binary 1.7540 ms/op 1.1814 ms/op 1.48
Vector(Root) 100000 binary -> struct 51.260 ms/op 56.037 ms/op 0.91
Vector(Root) 100000 binary -> tree_backed 56.100 ms/op 55.085 ms/op 1.02
Vector(Root) 100000 struct -> tree_backed 66.900 ms/op 65.781 ms/op 1.02
Vector(Root) 100000 tree_backed -> struct 75.777 ms/op 77.973 ms/op 0.97
Vector(Root) 100000 struct -> binary 3.2129 ms/op 3.3147 ms/op 0.97
Vector(Root) 100000 tree_backed -> binary 14.615 ms/op 14.349 ms/op 1.02
List(Validator) 100000 binary -> struct 200.53 ms/op 187.95 ms/op 1.07
List(Validator) 100000 binary -> tree_backed 510.91 ms/op 495.13 ms/op 1.03
List(Validator) 100000 struct -> tree_backed 534.24 ms/op 560.71 ms/op 0.95
List(Validator) 100000 tree_backed -> struct 300.97 ms/op 314.66 ms/op 0.96
List(Validator) 100000 struct -> binary 46.707 ms/op 49.334 ms/op 0.95
List(Validator) 100000 tree_backed -> binary 131.72 ms/op 142.66 ms/op 0.92
List(Validator-NS) 100000 binary -> struct 200.77 ms/op 181.03 ms/op 1.11
List(Validator-NS) 100000 binary -> tree_backed 274.80 ms/op 278.90 ms/op 0.99
List(Validator-NS) 100000 struct -> tree_backed 344.99 ms/op 333.80 ms/op 1.03
List(Validator-NS) 100000 tree_backed -> struct 283.82 ms/op 282.38 ms/op 1.01
List(Validator-NS) 100000 struct -> binary 47.869 ms/op 47.914 ms/op 1.00
List(Validator-NS) 100000 tree_backed -> binary 59.561 ms/op 62.660 ms/op 0.95
get epochStatuses - MutableVector 121.73 us/op 134.88 us/op 0.90
get epochStatuses - ViewDU 236.76 us/op 254.98 us/op 0.93
set epochStatuses - ListTreeView 1.9767 ms/op 1.9199 ms/op 1.03
set epochStatuses - ListTreeView - set() 602.44 us/op 583.18 us/op 1.03
set epochStatuses - ListTreeView - commit() 648.34 us/op 603.24 us/op 1.07
bitstring 745.20 ns/op 765.30 ns/op 0.97
bit mask 12.762 ns/op 15.135 ns/op 0.84
struct - increase slot to 1000000 2.1854 ms/op 2.7919 ms/op 0.78
UintNumberType - increase slot to 1000000 49.009 ms/op 44.252 ms/op 1.11
UintBigintType - increase slot to 1000000 613.36 ms/op 634.92 ms/op 0.97
UintBigint8 x 100000 tree_deserialize 6.0690 ms/op 6.5451 ms/op 0.93
UintBigint8 x 100000 tree_serialize 1.5296 ms/op 1.9569 ms/op 0.78
UintBigint16 x 100000 tree_deserialize 5.9982 ms/op 5.8352 ms/op 1.03
UintBigint16 x 100000 tree_serialize 2.1973 ms/op 1.9563 ms/op 1.12
UintBigint32 x 100000 tree_deserialize 7.5971 ms/op 7.1316 ms/op 1.07
UintBigint32 x 100000 tree_serialize 2.0106 ms/op 1.7435 ms/op 1.15
UintBigint64 x 100000 tree_deserialize 8.9659 ms/op 8.4491 ms/op 1.06
UintBigint64 x 100000 tree_serialize 2.6967 ms/op 1.8098 ms/op 1.49
UintBigint8 x 100000 value_deserialize 871.16 us/op 626.38 us/op 1.39
UintBigint8 x 100000 value_serialize 1.2282 ms/op 1.0102 ms/op 1.22
UintBigint16 x 100000 value_deserialize 934.74 us/op 607.93 us/op 1.54
UintBigint16 x 100000 value_serialize 1.3145 ms/op 995.19 us/op 1.32
UintBigint32 x 100000 value_deserialize 839.70 us/op 617.42 us/op 1.36
UintBigint32 x 100000 value_serialize 1.3928 ms/op 1.0229 ms/op 1.36
UintBigint64 x 100000 value_deserialize 881.35 us/op 670.71 us/op 1.31
UintBigint64 x 100000 value_serialize 1.5964 ms/op 1.2359 ms/op 1.29
UintBigint8 x 100000 deserialize 6.6634 ms/op 6.7273 ms/op 0.99
UintBigint8 x 100000 serialize 2.5335 ms/op 2.2312 ms/op 1.14
UintBigint16 x 100000 deserialize 6.8075 ms/op 6.5111 ms/op 1.05
UintBigint16 x 100000 serialize 2.8272 ms/op 2.2493 ms/op 1.26
UintBigint32 x 100000 deserialize 7.9738 ms/op 8.5282 ms/op 0.93
UintBigint32 x 100000 serialize 4.3451 ms/op 4.4222 ms/op 0.98
UintBigint64 x 100000 deserialize 5.1971 ms/op 5.3191 ms/op 0.98
UintBigint64 x 100000 serialize 2.4409 ms/op 2.1783 ms/op 1.12
UintBigint128 x 100000 deserialize 8.1395 ms/op 8.1092 ms/op 1.00
UintBigint128 x 100000 serialize 27.085 ms/op 29.001 ms/op 0.93
UintBigint256 x 100000 deserialize 15.502 ms/op 16.086 ms/op 0.96
UintBigint256 x 100000 serialize 81.845 ms/op 88.416 ms/op 0.93
Slice from Uint8Array x25000 1.5667 ms/op 1.6285 ms/op 0.96
Slice from ArrayBuffer x25000 29.678 ms/op 27.491 ms/op 1.08
Slice from ArrayBuffer x25000 + new Uint8Array 32.064 ms/op 28.967 ms/op 1.11
Copy Uint8Array 100000 iterate 1.4765 ms/op 927.77 us/op 1.59
Copy Uint8Array 100000 slice 328.04 us/op 143.70 us/op 2.28
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 321.66 us/op 136.94 us/op 2.35
Copy Buffer 100000 Uint8Array.prototype.slice.call 307.96 us/op 136.45 us/op 2.26
Copy Uint8Array 100000 slice + set 648.22 us/op 278.69 us/op 2.33
Copy Uint8Array 100000 subarray + set 331.32 us/op 143.42 us/op 2.31
Copy Uint8Array 100000 slice arrayBuffer 334.90 us/op 137.25 us/op 2.44
Uint64 deserialize 100000 - iterate Uint8Array 2.2553 ms/op 2.1922 ms/op 1.03
Uint64 deserialize 100000 - by Uint32A 2.1029 ms/op 1.9745 ms/op 1.07
Uint64 deserialize 100000 - by DataView.getUint32 x2 2.1540 ms/op 1.9635 ms/op 1.10
Uint64 deserialize 100000 - by DataView.getBigUint64 6.7240 ms/op 6.6633 ms/op 1.01
Uint64 deserialize 100000 - by byte 68.463 ms/op 65.352 ms/op 1.05

by benchmarkbot/action

@wemeetagain wemeetagain deleted the cayman/revert-workspace-version branch April 10, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant