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: deprecate node-sass and use dart-sass #363

Closed
wants to merge 0 commits into from

Conversation

ensi321
Copy link
Contributor

@ensi321 ensi321 commented Mar 29, 2024

Motivation

node-sass is already deprecated. It also doesn't support arm64 architecture.

Description

Official recommendation is to replace node-sass with dart-sass. No code change is required as both packages use the same Javascript API.

Closes #issue_number

Steps to test or reproduce

@ensi321 ensi321 requested a review from a team as a code owner March 29, 2024 07:39
@ensi321 ensi321 force-pushed the nc/deprecate-node-sass branch from e6dec59 to c2f92e6 Compare March 29, 2024 07:41
@ensi321 ensi321 closed this Mar 29, 2024
@ensi321 ensi321 force-pushed the nc/deprecate-node-sass branch from c2f92e6 to 9cf6991 Compare March 29, 2024 07:42
Copy link

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 2ffd034 Previous: 9cf6991 Ratio
digestTwoHashObjects 50023 times 47.866 ms/op 48.285 ms/op 0.99
digest64 50023 times 49.801 ms/op 49.639 ms/op 1.00
digest 50023 times 54.221 ms/op 53.716 ms/op 1.01
input length 32 1.4340 us/op 1.4220 us/op 1.01
input length 64 1.5470 us/op 1.5230 us/op 1.02
input length 128 2.5510 us/op 2.5340 us/op 1.01
input length 256 3.7170 us/op 3.6590 us/op 1.02
input length 512 5.9650 us/op 5.9160 us/op 1.01
input length 1024 11.424 us/op 11.307 us/op 1.01
digest 1000000 times 882.80 ms/op 873.45 ms/op 1.01
hashObjectToByteArray 50023 times 1.4298 ms/op 1.4264 ms/op 1.00
byteArrayToHashObject 50023 times 2.6906 ms/op 3.7377 ms/op 0.72
getGindicesAtDepth 5.0070 us/op 5.0600 us/op 0.99
iterateAtDepth 10.379 us/op 10.233 us/op 1.01
getGindexBits 565.00 ns/op 562.00 ns/op 1.01
gindexIterator 1.2530 us/op 1.2280 us/op 1.02
hash 2 Uint8Array 2250026 times - as-sha256 2.3796 s/op 2.3065 s/op 1.03
hashTwoObjects 2250026 times - as-sha256 2.3049 s/op 2.2279 s/op 1.03
hash 2 Uint8Array 2250026 times - noble 6.1279 s/op 6.0080 s/op 1.02
hashTwoObjects 2250026 times - noble 7.1720 s/op 7.0158 s/op 1.02
getNodeH() x7812.5 avg hindex 15.237 us/op 15.272 us/op 1.00
getNodeH() x7812.5 index 0 5.1960 us/op 5.1960 us/op 1.00
getNodeH() x7812.5 index 7 5.2400 us/op 5.0980 us/op 1.03
getNodeH() x7812.5 index 7 with key array 5.2340 us/op 5.1600 us/op 1.01
new LeafNode() x7812.5 210.72 us/op 207.11 us/op 1.02
multiproof - depth 15, 1 requested leaves 10.850 us/op 10.608 us/op 1.02
tree offset multiproof - depth 15, 1 requested leaves 21.737 us/op 21.220 us/op 1.02
compact multiproof - depth 15, 1 requested leaves 5.8470 us/op 5.4640 us/op 1.07
multiproof - depth 15, 2 requested leaves 13.917 us/op 13.836 us/op 1.01
tree offset multiproof - depth 15, 2 requested leaves 25.121 us/op 24.816 us/op 1.01
compact multiproof - depth 15, 2 requested leaves 3.4300 us/op 3.1640 us/op 1.08
multiproof - depth 15, 3 requested leaves 19.338 us/op 18.999 us/op 1.02
tree offset multiproof - depth 15, 3 requested leaves 32.855 us/op 32.057 us/op 1.02
compact multiproof - depth 15, 3 requested leaves 5.3670 us/op 5.5440 us/op 0.97
multiproof - depth 15, 4 requested leaves 25.698 us/op 24.858 us/op 1.03
tree offset multiproof - depth 15, 4 requested leaves 38.645 us/op 39.442 us/op 0.98
compact multiproof - depth 15, 4 requested leaves 5.9090 us/op 5.4290 us/op 1.09
packedRootsBytesToLeafNodes bytes 4000 offset 0 2.0750 us/op 2.0330 us/op 1.02
packedRootsBytesToLeafNodes bytes 4000 offset 1 2.0520 us/op 2.0190 us/op 1.02
packedRootsBytesToLeafNodes bytes 4000 offset 2 2.0680 us/op 2.0120 us/op 1.03
packedRootsBytesToLeafNodes bytes 4000 offset 3 2.0430 us/op 2.0140 us/op 1.01
subtreeFillToContents depth 40 count 250000 47.338 ms/op 46.683 ms/op 1.01
setRoot - gindexBitstring 9.4113 ms/op 8.8775 ms/op 1.06
setRoot - gindex 10.387 ms/op 9.5630 ms/op 1.09
getRoot - gindexBitstring 2.7710 ms/op 2.3965 ms/op 1.16
getRoot - gindex 3.4156 ms/op 3.0536 ms/op 1.12
getHashObject then setHashObject 11.490 ms/op 10.551 ms/op 1.09
setNodeWithFn 9.6449 ms/op 9.4797 ms/op 1.02
getNodeAtDepth depth 0 x100000 1.1413 ms/op 1.1445 ms/op 1.00
setNodeAtDepth depth 0 x100000 2.7736 ms/op 2.7071 ms/op 1.02
getNodesAtDepth depth 0 x100000 1.0840 ms/op 1.0835 ms/op 1.00
setNodesAtDepth depth 0 x100000 1.5174 ms/op 1.4853 ms/op 1.02
getNodeAtDepth depth 1 x100000 1.2069 ms/op 1.2076 ms/op 1.00
setNodeAtDepth depth 1 x100000 6.3561 ms/op 5.9761 ms/op 1.06
getNodesAtDepth depth 1 x100000 1.2085 ms/op 1.2101 ms/op 1.00
setNodesAtDepth depth 1 x100000 5.1613 ms/op 4.7749 ms/op 1.08
getNodeAtDepth depth 2 x100000 1.4868 ms/op 1.4843 ms/op 1.00
setNodeAtDepth depth 2 x100000 10.965 ms/op 10.028 ms/op 1.09
getNodesAtDepth depth 2 x100000 20.281 ms/op 18.907 ms/op 1.07
setNodesAtDepth depth 2 x100000 14.889 ms/op 15.627 ms/op 0.95
tree.getNodesAtDepth - gindexes 7.7213 ms/op 6.3417 ms/op 1.22
tree.getNodesAtDepth - push all nodes 2.2903 ms/op 2.1973 ms/op 1.04
tree.getNodesAtDepth - navigation 155.32 us/op 157.13 us/op 0.99
tree.setNodesAtDepth - indexes 417.29 us/op 382.17 us/op 1.09
set at depth 8 609.00 ns/op 521.00 ns/op 1.17
set at depth 16 805.00 ns/op 679.00 ns/op 1.19
set at depth 32 1.1870 us/op 1.0670 us/op 1.11
iterateNodesAtDepth 8 256 15.632 us/op 14.517 us/op 1.08
getNodesAtDepth 8 256 3.7580 us/op 3.6240 us/op 1.04
iterateNodesAtDepth 16 65536 4.7592 ms/op 4.6303 ms/op 1.03
getNodesAtDepth 16 65536 2.0934 ms/op 2.0332 ms/op 1.03
iterateNodesAtDepth 32 250000 17.696 ms/op 16.556 ms/op 1.07
getNodesAtDepth 32 250000 4.9822 ms/op 4.7274 ms/op 1.05
iterateNodesAtDepth 40 250000 17.207 ms/op 16.251 ms/op 1.06
getNodesAtDepth 40 250000 5.0801 ms/op 4.7072 ms/op 1.08
250k validators 8.5068 s/op 7.7540 s/op 1.10
bitlist bytes to struct (120,90) 764.00 ns/op 646.00 ns/op 1.18
bitlist bytes to tree (120,90) 2.7680 us/op 2.6890 us/op 1.03
bitlist bytes to struct (2048,2048) 1.2820 us/op 1.1300 us/op 1.13
bitlist bytes to tree (2048,2048) 4.4570 us/op 3.9720 us/op 1.12
ByteListType - deserialize 10.472 ms/op 9.0002 ms/op 1.16
BasicListType - deserialize 10.237 ms/op 9.6526 ms/op 1.06
ByteListType - serialize 10.687 ms/op 8.1813 ms/op 1.31
BasicListType - serialize 11.491 ms/op 11.206 ms/op 1.03
BasicListType - tree_convertToStruct 29.855 ms/op 29.835 ms/op 1.00
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 4.1321 ms/op 4.0826 ms/op 1.01
List[uint8, 68719476736] len 300000 ViewDU.get(i) 4.1373 ms/op 4.1427 ms/op 1.00
Array.push len 300000 empty Array - number 6.6325 ms/op 6.1768 ms/op 1.07
Array.set len 300000 from new Array - number 1.6544 ms/op 1.6200 ms/op 1.02
Array.set len 300000 - number 5.6244 ms/op 5.3222 ms/op 1.06
Uint8Array.set len 300000 218.41 us/op 211.16 us/op 1.03
Uint32Array.set len 300000 298.30 us/op 282.88 us/op 1.05
Container({a: uint8, b: uint8}) getViewDU x300000 20.497 ms/op 20.067 ms/op 1.02
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 9.6456 ms/op 9.4835 ms/op 1.02
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 218.86 ms/op 206.96 ms/op 1.06
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 310.02 ms/op 288.70 ms/op 1.07
List(Container) len 300000 ViewDU.get(i) 6.7006 ms/op 6.8438 ms/op 0.98
List(Container) len 300000 ViewDU.getReadonly(i) 6.6945 ms/op 6.3335 ms/op 1.06
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 37.273 ms/op 37.459 ms/op 1.00
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 6.3478 ms/op 5.2030 ms/op 1.22
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 6.5381 ms/op 6.1396 ms/op 1.06
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 6.4654 ms/op 5.9703 ms/op 1.08
Array.push len 300000 empty Array - object 6.6188 ms/op 6.0965 ms/op 1.09
Array.set len 300000 from new Array - object 2.0294 ms/op 1.9658 ms/op 1.03
Array.set len 300000 - object 6.3519 ms/op 5.4572 ms/op 1.16
cachePermanentRootStruct no cache 9.4620 us/op 8.8750 us/op 1.07
cachePermanentRootStruct with cache 239.00 ns/op 219.00 ns/op 1.09
epochParticipation len 250000 rws 7813 2.3662 ms/op 2.2825 ms/op 1.04
deserialize Attestation - tree 3.2680 us/op 2.9240 us/op 1.12
deserialize Attestation - struct 2.2810 us/op 2.0100 us/op 1.13
deserialize SignedAggregateAndProof - tree 4.0870 us/op 3.7010 us/op 1.10
deserialize SignedAggregateAndProof - struct 3.2530 us/op 3.0820 us/op 1.06
deserialize SyncCommitteeMessage - tree 1.1360 us/op 1.1560 us/op 0.98
deserialize SyncCommitteeMessage - struct 1.3340 us/op 1.1800 us/op 1.13
deserialize SignedContributionAndProof - tree 2.0300 us/op 1.9350 us/op 1.05
deserialize SignedContributionAndProof - struct 2.8340 us/op 2.4940 us/op 1.14
deserialize SignedBeaconBlock - tree 236.50 us/op 214.98 us/op 1.10
deserialize SignedBeaconBlock - struct 144.96 us/op 125.93 us/op 1.15
BeaconState vc 300000 - deserialize tree 577.13 ms/op 565.72 ms/op 1.02
BeaconState vc 300000 - serialize tree 135.84 ms/op 127.05 ms/op 1.07
BeaconState.historicalRoots vc 300000 - deserialize tree 855.00 ns/op 853.00 ns/op 1.00
BeaconState.historicalRoots vc 300000 - serialize tree 748.00 ns/op 681.00 ns/op 1.10
BeaconState.validators vc 300000 - deserialize tree 575.83 ms/op 547.79 ms/op 1.05
BeaconState.validators vc 300000 - serialize tree 102.98 ms/op 98.385 ms/op 1.05
BeaconState.balances vc 300000 - deserialize tree 18.300 ms/op 23.017 ms/op 0.80
BeaconState.balances vc 300000 - serialize tree 4.4999 ms/op 2.8993 ms/op 1.55
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 634.01 us/op 330.08 us/op 1.92
BeaconState.previousEpochParticipation vc 300000 - serialize tree 285.30 us/op 269.52 us/op 1.06
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 588.64 us/op 333.11 us/op 1.77
BeaconState.currentEpochParticipation vc 300000 - serialize tree 282.38 us/op 264.88 us/op 1.07
BeaconState.inactivityScores vc 300000 - deserialize tree 21.774 ms/op 16.154 ms/op 1.35
BeaconState.inactivityScores vc 300000 - serialize tree 4.7833 ms/op 3.4338 ms/op 1.39
hashTreeRoot Attestation - struct 34.127 us/op 30.822 us/op 1.11
hashTreeRoot Attestation - tree 18.500 us/op 18.097 us/op 1.02
hashTreeRoot SignedAggregateAndProof - struct 46.521 us/op 42.596 us/op 1.09
hashTreeRoot SignedAggregateAndProof - tree 28.928 us/op 28.453 us/op 1.02
hashTreeRoot SyncCommitteeMessage - struct 11.320 us/op 10.025 us/op 1.13
hashTreeRoot SyncCommitteeMessage - tree 6.3690 us/op 6.2560 us/op 1.02
hashTreeRoot SignedContributionAndProof - struct 31.452 us/op 28.525 us/op 1.10
hashTreeRoot SignedContributionAndProof - tree 22.687 us/op 20.204 us/op 1.12
hashTreeRoot SignedBeaconBlock - struct 2.7204 ms/op 2.3373 ms/op 1.16
hashTreeRoot SignedBeaconBlock - tree 1.7164 ms/op 1.6751 ms/op 1.02
hashTreeRoot Validator - struct 14.332 us/op 12.879 us/op 1.11
hashTreeRoot Validator - tree 12.096 us/op 11.140 us/op 1.09
BeaconState vc 300000 - hashTreeRoot tree 3.7608 s/op 3.6818 s/op 1.02
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 1.5170 us/op 1.4570 us/op 1.04
BeaconState.validators vc 300000 - hashTreeRoot tree 3.6072 s/op 3.4889 s/op 1.03
BeaconState.balances vc 300000 - hashTreeRoot tree 90.214 ms/op 88.129 ms/op 1.02
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 9.0710 ms/op 9.0431 ms/op 1.00
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 9.0469 ms/op 9.1932 ms/op 0.98
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 83.614 ms/op 82.965 ms/op 1.01
hash64 x18 20.091 us/op 19.748 us/op 1.02
hashTwoObjects x18 18.008 us/op 18.014 us/op 1.00
hash64 x1740 1.8766 ms/op 1.8368 ms/op 1.02
hashTwoObjects x1740 1.7123 ms/op 1.7150 ms/op 1.00
hash64 x2700000 2.9179 s/op 2.8577 s/op 1.02
hashTwoObjects x2700000 2.6733 s/op 2.6681 s/op 1.00
get_exitEpoch - ContainerType 229.00 ns/op 216.00 ns/op 1.06
get_exitEpoch - ContainerNodeStructType 228.00 ns/op 217.00 ns/op 1.05
set_exitEpoch - ContainerType 263.00 ns/op 241.00 ns/op 1.09
set_exitEpoch - ContainerNodeStructType 232.00 ns/op 209.00 ns/op 1.11
get_pubkey - ContainerType 1.2210 us/op 1.0260 us/op 1.19
get_pubkey - ContainerNodeStructType 231.00 ns/op 205.00 ns/op 1.13
hashTreeRoot - ContainerType 426.00 ns/op 402.00 ns/op 1.06
hashTreeRoot - ContainerNodeStructType 486.00 ns/op 447.00 ns/op 1.09
createProof - ContainerType 4.3270 us/op 4.0010 us/op 1.08
createProof - ContainerNodeStructType 22.519 us/op 21.490 us/op 1.05
serialize - ContainerType 1.9030 us/op 1.7770 us/op 1.07
serialize - ContainerNodeStructType 1.6330 us/op 1.5060 us/op 1.08
set_exitEpoch_and_hashTreeRoot - ContainerType 4.2070 us/op 4.0980 us/op 1.03
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 11.919 us/op 11.258 us/op 1.06
Array - for of 5.1290 us/op 4.8960 us/op 1.05
Array - for(;;) 4.2920 us/op 4.3240 us/op 0.99
basicListValue.readonlyValuesArray() 4.7893 ms/op 3.9963 ms/op 1.20
basicListValue.readonlyValuesArray() + loop all 4.8661 ms/op 4.0088 ms/op 1.21
compositeListValue.readonlyValuesArray() 30.066 ms/op 29.343 ms/op 1.02
compositeListValue.readonlyValuesArray() + loop all 24.968 ms/op 25.721 ms/op 0.97
Number64UintType - get balances list 4.6427 ms/op 4.1484 ms/op 1.12
Number64UintType - set balances list 10.063 ms/op 10.053 ms/op 1.00
Number64UintType - get and increase 10 then set 40.507 ms/op 39.758 ms/op 1.02
Number64UintType - increase 10 using applyDelta 16.428 ms/op 15.934 ms/op 1.03
Number64UintType - increase 10 using applyDeltaInBatch 16.556 ms/op 16.722 ms/op 0.99
tree_newTreeFromUint64Deltas 15.101 ms/op 15.668 ms/op 0.96
unsafeUint8ArrayToTree 29.620 ms/op 29.900 ms/op 0.99
bitLength(50) 240.00 ns/op 235.00 ns/op 1.02
bitLengthStr(50) 264.00 ns/op 250.00 ns/op 1.06
bitLength(8000) 235.00 ns/op 227.00 ns/op 1.04
bitLengthStr(8000) 311.00 ns/op 285.00 ns/op 1.09
bitLength(250000) 240.00 ns/op 225.00 ns/op 1.07
bitLengthStr(250000) 341.00 ns/op 326.00 ns/op 1.05
floor - Math.floor (53) 0.46564 ns/op 0.46587 ns/op 1.00
floor - << 0 (53) 0.46461 ns/op 0.46457 ns/op 1.00
floor - Math.floor (512) 0.46413 ns/op 0.46432 ns/op 1.00
floor - << 0 (512) 0.46443 ns/op 0.47131 ns/op 0.99
fnIf(0) 1.5480 ns/op 1.5465 ns/op 1.00
fnSwitch(0) 2.4810 ns/op 2.5243 ns/op 0.98
fnObj(0) 0.46465 ns/op 0.46395 ns/op 1.00
fnArr(0) 0.46637 ns/op 0.46537 ns/op 1.00
fnIf(4) 2.1656 ns/op 2.1709 ns/op 1.00
fnSwitch(4) 2.4762 ns/op 2.4745 ns/op 1.00
fnObj(4) 0.46454 ns/op 0.46438 ns/op 1.00
fnArr(4) 0.46411 ns/op 0.46647 ns/op 0.99
fnIf(9) 3.1013 ns/op 3.0910 ns/op 1.00
fnSwitch(9) 2.4741 ns/op 2.4859 ns/op 1.00
fnObj(9) 0.46383 ns/op 0.46528 ns/op 1.00
fnArr(9) 0.46391 ns/op 0.47203 ns/op 0.98
Container {a,b,vec} - as struct x100000 46.600 us/op 46.695 us/op 1.00
Container {a,b,vec} - as tree x100000 374.10 us/op 371.38 us/op 1.01
Container {a,vec,b} - as struct x100000 77.501 us/op 78.555 us/op 0.99
Container {a,vec,b} - as tree x100000 402.54 us/op 402.19 us/op 1.00
get 2 props x1000000 - rawObject 310.51 us/op 309.29 us/op 1.00
get 2 props x1000000 - proxy 71.376 ms/op 72.221 ms/op 0.99
get 2 props x1000000 - customObj 315.25 us/op 310.22 us/op 1.02
Simple object binary -> struct 664.00 ns/op 642.00 ns/op 1.03
Simple object binary -> tree_backed 1.7580 us/op 1.6770 us/op 1.05
Simple object struct -> tree_backed 2.2850 us/op 2.1900 us/op 1.04
Simple object tree_backed -> struct 1.9810 us/op 1.9030 us/op 1.04
Simple object struct -> binary 1.0070 us/op 896.00 ns/op 1.12
Simple object tree_backed -> binary 1.6770 us/op 1.4930 us/op 1.12
aggregationBits binary -> struct 609.00 ns/op 559.00 ns/op 1.09
aggregationBits binary -> tree_backed 2.2840 us/op 2.1680 us/op 1.05
aggregationBits struct -> tree_backed 2.8160 us/op 2.5820 us/op 1.09
aggregationBits tree_backed -> struct 1.1790 us/op 1.0620 us/op 1.11
aggregationBits struct -> binary 841.00 ns/op 765.00 ns/op 1.10
aggregationBits tree_backed -> binary 1.0280 us/op 912.00 ns/op 1.13
List(uint8) 100000 binary -> struct 1.3869 ms/op 1.4138 ms/op 0.98
List(uint8) 100000 binary -> tree_backed 90.849 us/op 92.033 us/op 0.99
List(uint8) 100000 struct -> tree_backed 1.4144 ms/op 1.3474 ms/op 1.05
List(uint8) 100000 tree_backed -> struct 1.0230 ms/op 935.05 us/op 1.09
List(uint8) 100000 struct -> binary 1.3475 ms/op 1.2047 ms/op 1.12
List(uint8) 100000 tree_backed -> binary 83.139 us/op 85.075 us/op 0.98
List(uint64Number) 100000 binary -> struct 1.2377 ms/op 1.1630 ms/op 1.06
List(uint64Number) 100000 binary -> tree_backed 3.2184 ms/op 3.0756 ms/op 1.05
List(uint64Number) 100000 struct -> tree_backed 4.8047 ms/op 4.6349 ms/op 1.04
List(uint64Number) 100000 tree_backed -> struct 2.1626 ms/op 2.1046 ms/op 1.03
List(uint64Number) 100000 struct -> binary 1.6547 ms/op 1.4424 ms/op 1.15
List(uint64Number) 100000 tree_backed -> binary 806.03 us/op 821.54 us/op 0.98
List(Uint64Bigint) 100000 binary -> struct 3.6198 ms/op 3.4725 ms/op 1.04
List(Uint64Bigint) 100000 binary -> tree_backed 3.0318 ms/op 3.0211 ms/op 1.00
List(Uint64Bigint) 100000 struct -> tree_backed 5.4029 ms/op 5.1078 ms/op 1.06
List(Uint64Bigint) 100000 tree_backed -> struct 4.5013 ms/op 4.3443 ms/op 1.04
List(Uint64Bigint) 100000 struct -> binary 2.0781 ms/op 2.0732 ms/op 1.00
List(Uint64Bigint) 100000 tree_backed -> binary 967.91 us/op 937.51 us/op 1.03
Vector(Root) 100000 binary -> struct 28.863 ms/op 27.678 ms/op 1.04
Vector(Root) 100000 binary -> tree_backed 28.997 ms/op 29.364 ms/op 0.99
Vector(Root) 100000 struct -> tree_backed 35.394 ms/op 33.369 ms/op 1.06
Vector(Root) 100000 tree_backed -> struct 43.595 ms/op 43.151 ms/op 1.01
Vector(Root) 100000 struct -> binary 1.9100 ms/op 1.8679 ms/op 1.02
Vector(Root) 100000 tree_backed -> binary 9.1615 ms/op 8.5358 ms/op 1.07
List(Validator) 100000 binary -> struct 99.158 ms/op 104.69 ms/op 0.95
List(Validator) 100000 binary -> tree_backed 268.14 ms/op 273.37 ms/op 0.98
List(Validator) 100000 struct -> tree_backed 306.95 ms/op 295.71 ms/op 1.04
List(Validator) 100000 tree_backed -> struct 197.81 ms/op 191.71 ms/op 1.03
List(Validator) 100000 struct -> binary 31.466 ms/op 31.039 ms/op 1.01
List(Validator) 100000 tree_backed -> binary 100.25 ms/op 95.991 ms/op 1.04
List(Validator-NS) 100000 binary -> struct 98.564 ms/op 96.884 ms/op 1.02
List(Validator-NS) 100000 binary -> tree_backed 155.88 ms/op 153.07 ms/op 1.02
List(Validator-NS) 100000 struct -> tree_backed 192.24 ms/op 190.48 ms/op 1.01
List(Validator-NS) 100000 tree_backed -> struct 149.37 ms/op 151.71 ms/op 0.98
List(Validator-NS) 100000 struct -> binary 31.391 ms/op 31.352 ms/op 1.00
List(Validator-NS) 100000 tree_backed -> binary 33.853 ms/op 36.683 ms/op 0.92
get epochStatuses - MutableVector 87.883 us/op 89.932 us/op 0.98
get epochStatuses - ViewDU 202.48 us/op 206.80 us/op 0.98
set epochStatuses - ListTreeView 1.4557 ms/op 1.4231 ms/op 1.02
set epochStatuses - ListTreeView - set() 432.40 us/op 436.29 us/op 0.99
set epochStatuses - ListTreeView - commit() 500.45 us/op 445.32 us/op 1.12
bitstring 640.98 ns/op 642.41 ns/op 1.00
bit mask 14.175 ns/op 13.538 ns/op 1.05
struct - increase slot to 1000000 928.05 us/op 928.07 us/op 1.00
UintNumberType - increase slot to 1000000 28.499 ms/op 28.481 ms/op 1.00
UintBigintType - increase slot to 1000000 426.95 ms/op 430.69 ms/op 0.99
UintBigint8 x 100000 tree_deserialize 3.7362 ms/op 5.4886 ms/op 0.68
UintBigint8 x 100000 tree_serialize 1.1989 ms/op 1.1857 ms/op 1.01
UintBigint16 x 100000 tree_deserialize 3.5405 ms/op 4.6997 ms/op 0.75
UintBigint16 x 100000 tree_serialize 1.1551 ms/op 1.1887 ms/op 0.97
UintBigint32 x 100000 tree_deserialize 4.8132 ms/op 5.7579 ms/op 0.84
UintBigint32 x 100000 tree_serialize 1.2133 ms/op 1.2441 ms/op 0.98
UintBigint64 x 100000 tree_deserialize 5.1928 ms/op 6.2432 ms/op 0.83
UintBigint64 x 100000 tree_serialize 1.6024 ms/op 1.6056 ms/op 1.00
UintBigint8 x 100000 value_deserialize 433.95 us/op 433.18 us/op 1.00
UintBigint8 x 100000 value_serialize 582.94 us/op 613.44 us/op 0.95
UintBigint16 x 100000 value_deserialize 463.85 us/op 464.43 us/op 1.00
UintBigint16 x 100000 value_serialize 625.22 us/op 653.41 us/op 0.96
UintBigint32 x 100000 value_deserialize 433.16 us/op 433.40 us/op 1.00
UintBigint32 x 100000 value_serialize 625.36 us/op 651.03 us/op 0.96
UintBigint64 x 100000 value_deserialize 465.14 us/op 465.83 us/op 1.00
UintBigint64 x 100000 value_serialize 798.80 us/op 825.39 us/op 0.97
UintBigint8 x 100000 deserialize 4.6890 ms/op 4.6694 ms/op 1.00
UintBigint8 x 100000 serialize 1.4346 ms/op 1.4428 ms/op 0.99
UintBigint16 x 100000 deserialize 4.6451 ms/op 4.5884 ms/op 1.01
UintBigint16 x 100000 serialize 1.4848 ms/op 1.5044 ms/op 0.99
UintBigint32 x 100000 deserialize 5.5509 ms/op 5.3718 ms/op 1.03
UintBigint32 x 100000 serialize 2.8776 ms/op 2.7840 ms/op 1.03
UintBigint64 x 100000 deserialize 3.9960 ms/op 3.6328 ms/op 1.10
UintBigint64 x 100000 serialize 1.4833 ms/op 1.4816 ms/op 1.00
UintBigint128 x 100000 deserialize 5.8859 ms/op 5.7264 ms/op 1.03
UintBigint128 x 100000 serialize 16.816 ms/op 17.443 ms/op 0.96
UintBigint256 x 100000 deserialize 10.896 ms/op 10.643 ms/op 1.02
UintBigint256 x 100000 serialize 50.076 ms/op 51.289 ms/op 0.98
Slice from Uint8Array x25000 1.0116 ms/op 997.24 us/op 1.01
Slice from ArrayBuffer x25000 17.949 ms/op 17.436 ms/op 1.03
Slice from ArrayBuffer x25000 + new Uint8Array 19.220 ms/op 18.399 ms/op 1.04
Copy Uint8Array 100000 iterate 813.27 us/op 806.68 us/op 1.01
Copy Uint8Array 100000 slice 86.997 us/op 91.493 us/op 0.95
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 87.058 us/op 91.705 us/op 0.95
Copy Buffer 100000 Uint8Array.prototype.slice.call 87.450 us/op 91.953 us/op 0.95
Copy Uint8Array 100000 slice + set 156.61 us/op 151.79 us/op 1.03
Copy Uint8Array 100000 subarray + set 87.148 us/op 91.115 us/op 0.96
Copy Uint8Array 100000 slice arrayBuffer 87.920 us/op 92.415 us/op 0.95
Uint64 deserialize 100000 - iterate Uint8Array 1.7644 ms/op 1.7589 ms/op 1.00
Uint64 deserialize 100000 - by Uint32A 1.8073 ms/op 1.7543 ms/op 1.03
Uint64 deserialize 100000 - by DataView.getUint32 x2 1.7781 ms/op 1.7946 ms/op 0.99
Uint64 deserialize 100000 - by DataView.getBigUint64 4.9265 ms/op 4.8848 ms/op 1.01
Uint64 deserialize 100000 - by byte 65.215 ms/op 65.296 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant