-
-
Notifications
You must be signed in to change notification settings - Fork 21
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: Remove replaceAll with replace(/.../g,... for ES2019 compatibility #309
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g11tech
changed the title
fix: Remove replaceAll with replace(/.../g,... for ES2019 comptatibility
fix: Remove replaceAll with replace(/.../g,... for ES2019 compatability
Feb 27, 2023
g11tech
force-pushed
the
g11tech/replace-all
branch
from
February 27, 2023 13:19
bb422b5
to
d9ce852
Compare
g11tech
changed the title
fix: Remove replaceAll with replace(/.../g,... for ES2019 compatability
fix: Remove replaceAll with replace(/.../g,... for ES2019 compatibility
Feb 27, 2023
|
Benchmark suite | Current: 58f2c3d | Previous: 18baeaa | Ratio |
---|---|---|---|
Container({a: uint8, b: uint8}) getViewDU x300000 | 93.926 ms/op | 29.645 ms/op | 3.17 |
Number64UintType - get balances list | 5.7377 ms/op | 1.5355 ms/op | 3.74 |
Full benchmark results
Benchmark suite | Current: 58f2c3d | Previous: 18baeaa | Ratio |
---|---|---|---|
digestTwoHashObjects 50023 times | 68.896 ms/op | 69.159 ms/op | 1.00 |
digest64 50023 times | 70.853 ms/op | 70.861 ms/op | 1.00 |
digest 50023 times | 70.829 ms/op | 70.915 ms/op | 1.00 |
input length 32 | 1.7280 us/op | 1.7240 us/op | 1.00 |
input length 64 | 1.9340 us/op | 1.9080 us/op | 1.01 |
input length 128 | 3.2470 us/op | 3.2400 us/op | 1.00 |
input length 256 | 4.8570 us/op | 4.8740 us/op | 1.00 |
input length 512 | 8.1250 us/op | 8.0960 us/op | 1.00 |
input length 1024 | 15.781 us/op | 15.613 us/op | 1.01 |
digest 1000000 times | 1.1424 s/op | 1.1512 s/op | 0.99 |
hashObjectToByteArray 50023 times | 1.9072 ms/op | 1.9272 ms/op | 0.99 |
byteArrayToHashObject 50023 times | 2.2627 ms/op | 2.0760 ms/op | 1.09 |
getGindicesAtDepth | 5.4830 us/op | 5.3150 us/op | 1.03 |
iterateAtDepth | 11.733 us/op | 11.012 us/op | 1.07 |
getGindexBits | 610.00 ns/op | 648.00 ns/op | 0.94 |
gindexIterator | 1.3740 us/op | 1.3430 us/op | 1.02 |
hash 2 Uint8Array 2250026 times | 3.2722 s/op | 3.2557 s/op | 1.01 |
hashTwoObjects 2250026 times | 3.1319 s/op | 3.1135 s/op | 1.01 |
getNodeH() x7812.5 avg hindex | 20.806 us/op | 20.677 us/op | 1.01 |
getNodeH() x7812.5 index 0 | 6.7830 us/op | 6.7180 us/op | 1.01 |
getNodeH() x7812.5 index 7 | 6.7820 us/op | 6.7140 us/op | 1.01 |
getNodeH() x7812.5 index 7 with key array | 6.7150 us/op | 6.7380 us/op | 1.00 |
new LeafNode() x7812.5 | 291.02 us/op | 306.89 us/op | 0.95 |
multiproof - depth 15, 1 requested leaves | 13.588 us/op | 13.837 us/op | 0.98 |
tree offset multiproof - depth 15, 1 requested leaves | 31.210 us/op | 31.307 us/op | 1.00 |
compact multiproof - depth 15, 1 requested leaves | 6.6430 us/op | 6.7590 us/op | 0.98 |
multiproof - depth 15, 2 requested leaves | 17.865 us/op | 17.805 us/op | 1.00 |
tree offset multiproof - depth 15, 2 requested leaves | 32.778 us/op | 32.826 us/op | 1.00 |
compact multiproof - depth 15, 2 requested leaves | 3.4110 us/op | 3.4200 us/op | 1.00 |
multiproof - depth 15, 3 requested leaves | 25.019 us/op | 24.805 us/op | 1.01 |
tree offset multiproof - depth 15, 3 requested leaves | 43.617 us/op | 46.639 us/op | 0.94 |
compact multiproof - depth 15, 3 requested leaves | 6.8170 us/op | 7.0820 us/op | 0.96 |
multiproof - depth 15, 4 requested leaves | 33.089 us/op | 32.319 us/op | 1.02 |
tree offset multiproof - depth 15, 4 requested leaves | 53.512 us/op | 54.717 us/op | 0.98 |
compact multiproof - depth 15, 4 requested leaves | 6.4010 us/op | 6.2350 us/op | 1.03 |
packedRootsBytesToLeafNodes bytes 4000 offset 0 | 2.8330 us/op | 2.8780 us/op | 0.98 |
packedRootsBytesToLeafNodes bytes 4000 offset 1 | 2.7680 us/op | 2.8780 us/op | 0.96 |
packedRootsBytesToLeafNodes bytes 4000 offset 2 | 2.7590 us/op | 2.8570 us/op | 0.97 |
packedRootsBytesToLeafNodes bytes 4000 offset 3 | 2.8300 us/op | 2.8420 us/op | 1.00 |
subtreeFillToContents depth 40 count 250000 | 72.646 ms/op | 60.764 ms/op | 1.20 |
setRoot - gindexBitstring | 11.996 ms/op | 13.625 ms/op | 0.88 |
setRoot - gindex | 12.959 ms/op | 15.119 ms/op | 0.86 |
getRoot - gindexBitstring | 2.4891 ms/op | 2.6235 ms/op | 0.95 |
getRoot - gindex | 3.6897 ms/op | 3.9678 ms/op | 0.93 |
getHashObject then setHashObject | 15.445 ms/op | 16.706 ms/op | 0.92 |
setNodeWithFn | 14.194 ms/op | 15.243 ms/op | 0.93 |
getNodeAtDepth depth 0 x100000 | 1.6316 ms/op | 1.6045 ms/op | 1.02 |
setNodeAtDepth depth 0 x100000 | 3.6584 ms/op | 3.9992 ms/op | 0.91 |
getNodesAtDepth depth 0 x100000 | 1.4095 ms/op | 1.4047 ms/op | 1.00 |
setNodesAtDepth depth 0 x100000 | 1.9857 ms/op | 1.9755 ms/op | 1.01 |
getNodeAtDepth depth 1 x100000 | 1.7306 ms/op | 1.7335 ms/op | 1.00 |
setNodeAtDepth depth 1 x100000 | 7.8176 ms/op | 12.090 ms/op | 0.65 |
getNodesAtDepth depth 1 x100000 | 1.6066 ms/op | 1.5817 ms/op | 1.02 |
setNodesAtDepth depth 1 x100000 | 6.5736 ms/op | 8.7325 ms/op | 0.75 |
getNodeAtDepth depth 2 x100000 | 2.1803 ms/op | 2.1980 ms/op | 0.99 |
setNodeAtDepth depth 2 x100000 | 13.344 ms/op | 18.468 ms/op | 0.72 |
getNodesAtDepth depth 2 x100000 | 26.660 ms/op | 28.452 ms/op | 0.94 |
setNodesAtDepth depth 2 x100000 | 18.109 ms/op | 26.091 ms/op | 0.69 |
tree.getNodesAtDepth - gindexes | 7.3550 ms/op | 9.9726 ms/op | 0.74 |
tree.getNodesAtDepth - push all nodes | 2.5176 ms/op | 4.1589 ms/op | 0.61 |
tree.getNodesAtDepth - navigation | 201.34 us/op | 201.48 us/op | 1.00 |
tree.setNodesAtDepth - indexes | 562.63 us/op | 703.29 us/op | 0.80 |
set at depth 8 | 719.00 ns/op | 1.0170 us/op | 0.71 |
set at depth 16 | 974.00 ns/op | 1.3620 us/op | 0.72 |
set at depth 32 | 1.5060 us/op | 2.1970 us/op | 0.69 |
iterateNodesAtDepth 8 256 | 18.888 us/op | 20.712 us/op | 0.91 |
getNodesAtDepth 8 256 | 4.5150 us/op | 4.8870 us/op | 0.92 |
iterateNodesAtDepth 16 65536 | 5.4549 ms/op | 5.6495 ms/op | 0.97 |
getNodesAtDepth 16 65536 | 2.2680 ms/op | 2.9089 ms/op | 0.78 |
iterateNodesAtDepth 32 250000 | 20.361 ms/op | 22.730 ms/op | 0.90 |
getNodesAtDepth 32 250000 | 5.9609 ms/op | 5.7671 ms/op | 1.03 |
iterateNodesAtDepth 40 250000 | 20.459 ms/op | 20.169 ms/op | 1.01 |
getNodesAtDepth 40 250000 | 5.7391 ms/op | 6.0113 ms/op | 0.95 |
250k validators | 3.5519 s/op | 3.4289 s/op | 1.04 |
bitlist bytes to struct (120,90) | 1.4370 us/op | 1.2490 us/op | 1.15 |
bitlist bytes to tree (120,90) | 5.3820 us/op | 4.7610 us/op | 1.13 |
bitlist bytes to struct (2048,2048) | 2.0990 us/op | 1.9500 us/op | 1.08 |
bitlist bytes to tree (2048,2048) | 8.3610 us/op | 7.9120 us/op | 1.06 |
ByteListType - deserialize | 17.218 ms/op | 16.771 ms/op | 1.03 |
BasicListType - deserialize | 17.530 ms/op | 43.256 ms/op | 0.41 |
ByteListType - serialize | 16.734 ms/op | 16.001 ms/op | 1.05 |
BasicListType - serialize | 16.145 ms/op | 16.897 ms/op | 0.96 |
BasicListType - tree_convertToStruct | 41.986 ms/op | 37.189 ms/op | 1.13 |
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate | 5.1279 ms/op | 4.6815 ms/op | 1.10 |
List[uint8, 68719476736] len 300000 ViewDU.get(i) | 4.4952 ms/op | 4.4940 ms/op | 1.00 |
Array.push len 300000 empty Array - number | 7.5818 ms/op | 7.4778 ms/op | 1.01 |
Array.set len 300000 from new Array - number | 2.5697 ms/op | 2.2798 ms/op | 1.13 |
Array.set len 300000 - number | 7.3687 ms/op | 7.4169 ms/op | 0.99 |
Uint8Array.set len 300000 | 248.93 us/op | 239.83 us/op | 1.04 |
Uint32Array.set len 300000 | 323.26 us/op | 314.31 us/op | 1.03 |
Container({a: uint8, b: uint8}) getViewDU x300000 | 93.926 ms/op | 29.645 ms/op | 3.17 |
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 | 18.856 ms/op | 12.265 ms/op | 1.54 |
List(Container) len 300000 ViewDU.getAllReadonly() + iterate | 324.22 ms/op | 335.12 ms/op | 0.97 |
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate | 419.21 ms/op | 405.25 ms/op | 1.03 |
List(Container) len 300000 ViewDU.get(i) | 9.0224 ms/op | 9.9842 ms/op | 0.90 |
List(Container) len 300000 ViewDU.getReadonly(i) | 8.6846 ms/op | 8.7569 ms/op | 0.99 |
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate | 49.562 ms/op | 39.963 ms/op | 1.24 |
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate | 7.0803 ms/op | 7.8769 ms/op | 0.90 |
List(ContainerNodeStruct) len 300000 ViewDU.get(i) | 8.3076 ms/op | 8.7347 ms/op | 0.95 |
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) | 8.1565 ms/op | 8.7362 ms/op | 0.93 |
Array.push len 300000 empty Array - object | 7.3664 ms/op | 7.8738 ms/op | 0.94 |
Array.set len 300000 from new Array - object | 2.3150 ms/op | 2.6984 ms/op | 0.86 |
Array.set len 300000 - object | 7.2055 ms/op | 7.9068 ms/op | 0.91 |
cachePermanentRootStruct no cache | 13.447 us/op | 13.495 us/op | 1.00 |
cachePermanentRootStruct with cache | 302.00 ns/op | 389.00 ns/op | 0.78 |
epochParticipation len 250000 rws 7813 | 3.0685 ms/op | 3.1187 ms/op | 0.98 |
deserialize Attestation - tree | 4.2060 us/op | 4.4560 us/op | 0.94 |
deserialize Attestation - struct | 2.8780 us/op | 3.1310 us/op | 0.92 |
deserialize SignedAggregateAndProof - tree | 5.2360 us/op | 5.6360 us/op | 0.93 |
deserialize SignedAggregateAndProof - struct | 4.4530 us/op | 4.7410 us/op | 0.94 |
deserialize SyncCommitteeMessage - tree | 1.6580 us/op | 1.6940 us/op | 0.98 |
deserialize SyncCommitteeMessage - struct | 1.8520 us/op | 1.9630 us/op | 0.94 |
deserialize SignedContributionAndProof - tree | 2.8010 us/op | 2.8260 us/op | 0.99 |
deserialize SignedContributionAndProof - struct | 3.6670 us/op | 4.1570 us/op | 0.88 |
deserialize SignedBeaconBlock - tree | 315.98 us/op | 319.51 us/op | 0.99 |
deserialize SignedBeaconBlock - struct | 197.47 us/op | 211.02 us/op | 0.94 |
BeaconState vc 300000 - deserialize tree | 861.62 ms/op | 815.86 ms/op | 1.06 |
BeaconState vc 300000 - serialize tree | 282.50 ms/op | 255.62 ms/op | 1.11 |
BeaconState.historicalRoots vc 300000 - deserialize tree | 1.2860 us/op | 1.2410 us/op | 1.04 |
BeaconState.historicalRoots vc 300000 - serialize tree | 1.2890 us/op | 1.3990 us/op | 0.92 |
BeaconState.validators vc 300000 - deserialize tree | 837.52 ms/op | 849.16 ms/op | 0.99 |
BeaconState.validators vc 300000 - serialize tree | 201.37 ms/op | 189.61 ms/op | 1.06 |
BeaconState.balances vc 300000 - deserialize tree | 32.633 ms/op | 35.097 ms/op | 0.93 |
BeaconState.balances vc 300000 - serialize tree | 5.1977 ms/op | 3.4499 ms/op | 1.51 |
BeaconState.previousEpochParticipation vc 300000 - deserialize tree | 588.77 us/op | 487.44 us/op | 1.21 |
BeaconState.previousEpochParticipation vc 300000 - serialize tree | 322.57 us/op | 342.15 us/op | 0.94 |
BeaconState.currentEpochParticipation vc 300000 - deserialize tree | 609.31 us/op | 488.96 us/op | 1.25 |
BeaconState.currentEpochParticipation vc 300000 - serialize tree | 351.46 us/op | 337.85 us/op | 1.04 |
BeaconState.inactivityScores vc 300000 - deserialize tree | 33.883 ms/op | 30.894 ms/op | 1.10 |
BeaconState.inactivityScores vc 300000 - serialize tree | 3.7922 ms/op | 4.1034 ms/op | 0.92 |
hashTreeRoot Attestation - struct | 39.987 us/op | 45.810 us/op | 0.87 |
hashTreeRoot Attestation - tree | 27.819 us/op | 31.807 us/op | 0.87 |
hashTreeRoot SignedAggregateAndProof - struct | 56.185 us/op | 73.119 us/op | 0.77 |
hashTreeRoot SignedAggregateAndProof - tree | 42.668 us/op | 43.775 us/op | 0.97 |
hashTreeRoot SyncCommitteeMessage - struct | 13.729 us/op | 15.075 us/op | 0.91 |
hashTreeRoot SyncCommitteeMessage - tree | 9.6230 us/op | 9.5080 us/op | 1.01 |
hashTreeRoot SignedContributionAndProof - struct | 38.650 us/op | 41.857 us/op | 0.92 |
hashTreeRoot SignedContributionAndProof - tree | 30.682 us/op | 31.337 us/op | 0.98 |
hashTreeRoot SignedBeaconBlock - struct | 3.4624 ms/op | 3.6396 ms/op | 0.95 |
hashTreeRoot SignedBeaconBlock - tree | 2.5722 ms/op | 2.5729 ms/op | 1.00 |
hashTreeRoot Validator - struct | 19.253 us/op | 18.882 us/op | 1.02 |
hashTreeRoot Validator - tree | 16.352 us/op | 16.425 us/op | 1.00 |
BeaconState vc 300000 - hashTreeRoot tree | 5.3596 s/op | 5.3147 s/op | 1.01 |
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree | 2.3390 us/op | 2.2040 us/op | 1.06 |
BeaconState.validators vc 300000 - hashTreeRoot tree | 5.0942 s/op | 5.0961 s/op | 1.00 |
BeaconState.balances vc 300000 - hashTreeRoot tree | 130.90 ms/op | 130.00 ms/op | 1.01 |
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree | 13.941 ms/op | 13.816 ms/op | 1.01 |
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree | 13.914 ms/op | 13.819 ms/op | 1.01 |
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree | 148.25 ms/op | 137.91 ms/op | 1.07 |
hash64 x18 | 27.869 us/op | 28.250 us/op | 0.99 |
hashTwoObjects x18 | 27.407 us/op | 27.629 us/op | 0.99 |
hash64 x1740 | 2.6220 ms/op | 2.6602 ms/op | 0.99 |
hashTwoObjects x1740 | 2.5994 ms/op | 2.5802 ms/op | 1.01 |
hash64 x2700000 | 4.0585 s/op | 4.1103 s/op | 0.99 |
hashTwoObjects x2700000 | 4.0271 s/op | 4.0532 s/op | 0.99 |
get_exitEpoch - ContainerType | 464.00 ns/op | 563.00 ns/op | 0.82 |
get_exitEpoch - ContainerNodeStructType | 403.00 ns/op | 503.00 ns/op | 0.80 |
set_exitEpoch - ContainerType | 448.00 ns/op | 533.00 ns/op | 0.84 |
set_exitEpoch - ContainerNodeStructType | 416.00 ns/op | 490.00 ns/op | 0.85 |
get_pubkey - ContainerType | 1.8990 us/op | 1.7190 us/op | 1.10 |
get_pubkey - ContainerNodeStructType | 310.00 ns/op | 380.00 ns/op | 0.82 |
hashTreeRoot - ContainerType | 514.00 ns/op | 562.00 ns/op | 0.91 |
hashTreeRoot - ContainerNodeStructType | 635.00 ns/op | 652.00 ns/op | 0.97 |
createProof - ContainerType | 6.7410 us/op | 6.7860 us/op | 0.99 |
createProof - ContainerNodeStructType | 33.661 us/op | 33.722 us/op | 1.00 |
serialize - ContainerType | 2.9330 us/op | 3.0980 us/op | 0.95 |
serialize - ContainerNodeStructType | 2.3640 us/op | 2.4220 us/op | 0.98 |
set_exitEpoch_and_hashTreeRoot - ContainerType | 6.4050 us/op | 6.3750 us/op | 1.00 |
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType | 17.638 us/op | 17.293 us/op | 1.02 |
Array - for of | 7.7630 us/op | 6.7540 us/op | 1.15 |
Array - for(;;) | 7.4910 us/op | 6.6290 us/op | 1.13 |
basicListValue.readonlyValuesArray() | 4.2385 ms/op | 4.2756 ms/op | 0.99 |
basicListValue.readonlyValuesArray() + loop all | 4.3411 ms/op | 4.4082 ms/op | 0.98 |
compositeListValue.readonlyValuesArray() | 32.660 ms/op | 33.938 ms/op | 0.96 |
compositeListValue.readonlyValuesArray() + loop all | 32.640 ms/op | 32.080 ms/op | 1.02 |
Number64UintType - get balances list | 5.7377 ms/op | 1.5355 ms/op | 3.74 |
Number64UintType - set balances list | 14.476 ms/op | 14.124 ms/op | 1.02 |
Number64UintType - get and increase 10 then set | 53.681 ms/op | 45.445 ms/op | 1.18 |
Number64UintType - increase 10 using applyDelta | 22.813 ms/op | 17.594 ms/op | 1.30 |
Number64UintType - increase 10 using applyDeltaInBatch | 22.610 ms/op | 17.427 ms/op | 1.30 |
tree_newTreeFromUint64Deltas | 22.833 ms/op | 22.914 ms/op | 1.00 |
unsafeUint8ArrayToTree | 41.195 ms/op | 39.998 ms/op | 1.03 |
bitLength(50) | 317.00 ns/op | 338.00 ns/op | 0.94 |
bitLengthStr(50) | 334.00 ns/op | 373.00 ns/op | 0.90 |
bitLength(8000) | 300.00 ns/op | 328.00 ns/op | 0.91 |
bitLengthStr(8000) | 396.00 ns/op | 418.00 ns/op | 0.95 |
bitLength(250000) | 303.00 ns/op | 331.00 ns/op | 0.92 |
bitLengthStr(250000) | 458.00 ns/op | 487.00 ns/op | 0.94 |
floor - Math.floor (53) | 0.60283 ns/op | 0.60275 ns/op | 1.00 |
floor - << 0 (53) | 0.60259 ns/op | 0.60274 ns/op | 1.00 |
floor - Math.floor (512) | 0.60268 ns/op | 0.60294 ns/op | 1.00 |
floor - << 0 (512) | 0.60693 ns/op | 0.60265 ns/op | 1.01 |
fnIf(0) | 2.0137 ns/op | 2.0082 ns/op | 1.00 |
fnSwitch(0) | 3.3450 ns/op | 3.3171 ns/op | 1.01 |
fnObj(0) | 0.60264 ns/op | 0.60278 ns/op | 1.00 |
fnArr(0) | 0.60254 ns/op | 0.60272 ns/op | 1.00 |
fnIf(4) | 3.1452 ns/op | 3.1969 ns/op | 0.98 |
fnSwitch(4) | 3.3274 ns/op | 3.2873 ns/op | 1.01 |
fnObj(4) | 0.60264 ns/op | 0.60263 ns/op | 1.00 |
fnArr(4) | 0.60272 ns/op | 0.60281 ns/op | 1.00 |
fnIf(9) | 5.2286 ns/op | 5.2272 ns/op | 1.00 |
fnSwitch(9) | 3.3198 ns/op | 3.2847 ns/op | 1.01 |
fnObj(9) | 0.60282 ns/op | 0.60266 ns/op | 1.00 |
fnArr(9) | 0.60274 ns/op | 0.60273 ns/op | 1.00 |
Container {a,b,vec} - as struct x100000 | 60.506 us/op | 60.533 us/op | 1.00 |
Container {a,b,vec} - as tree x100000 | 508.86 us/op | 522.38 us/op | 0.97 |
Container {a,vec,b} - as struct x100000 | 120.76 us/op | 120.76 us/op | 1.00 |
Container {a,vec,b} - as tree x100000 | 555.47 us/op | 550.00 us/op | 1.01 |
get 2 props x1000000 - rawObject | 401.86 us/op | 401.90 us/op | 1.00 |
get 2 props x1000000 - proxy | 90.727 ms/op | 90.592 ms/op | 1.00 |
get 2 props x1000000 - customObj | 401.95 us/op | 401.95 us/op | 1.00 |
Simple object binary -> struct | 1.3300 us/op | 952.00 ns/op | 1.40 |
Simple object binary -> tree_backed | 3.7720 us/op | 2.5330 us/op | 1.49 |
Simple object struct -> tree_backed | 4.7800 us/op | 3.2020 us/op | 1.49 |
Simple object tree_backed -> struct | 3.7500 us/op | 2.7880 us/op | 1.35 |
Simple object struct -> binary | 1.9530 us/op | 1.3950 us/op | 1.40 |
Simple object tree_backed -> binary | 3.3950 us/op | 2.4110 us/op | 1.41 |
aggregationBits binary -> struct | 1.2700 us/op | 810.00 ns/op | 1.57 |
aggregationBits binary -> tree_backed | 4.0080 us/op | 3.1770 us/op | 1.26 |
aggregationBits struct -> tree_backed | 4.7200 us/op | 3.8750 us/op | 1.22 |
aggregationBits tree_backed -> struct | 1.9630 us/op | 1.6540 us/op | 1.19 |
aggregationBits struct -> binary | 1.4370 us/op | 1.1730 us/op | 1.23 |
aggregationBits tree_backed -> binary | 1.7610 us/op | 1.6490 us/op | 1.07 |
List(uint8) 100000 binary -> struct | 1.7634 ms/op | 1.8344 ms/op | 0.96 |
List(uint8) 100000 binary -> tree_backed | 133.54 us/op | 158.44 us/op | 0.84 |
List(uint8) 100000 struct -> tree_backed | 1.6706 ms/op | 1.8430 ms/op | 0.91 |
List(uint8) 100000 tree_backed -> struct | 1.2040 ms/op | 1.2437 ms/op | 0.97 |
List(uint8) 100000 struct -> binary | 1.5956 ms/op | 1.6188 ms/op | 0.99 |
List(uint8) 100000 tree_backed -> binary | 92.280 us/op | 96.113 us/op | 0.96 |
List(uint64Number) 100000 binary -> struct | 1.4678 ms/op | 1.5824 ms/op | 0.93 |
List(uint64Number) 100000 binary -> tree_backed | 4.1269 ms/op | 5.2410 ms/op | 0.79 |
List(uint64Number) 100000 struct -> tree_backed | 6.2444 ms/op | 7.1244 ms/op | 0.88 |
List(uint64Number) 100000 tree_backed -> struct | 2.5668 ms/op | 2.7433 ms/op | 0.94 |
List(uint64Number) 100000 struct -> binary | 2.0139 ms/op | 1.9942 ms/op | 1.01 |
List(uint64Number) 100000 tree_backed -> binary | 1.0124 ms/op | 1.1694 ms/op | 0.87 |
List(Uint64Bigint) 100000 binary -> struct | 4.5068 ms/op | 4.3238 ms/op | 1.04 |
List(Uint64Bigint) 100000 binary -> tree_backed | 4.8716 ms/op | 4.9340 ms/op | 0.99 |
List(Uint64Bigint) 100000 struct -> tree_backed | 8.2477 ms/op | 7.3971 ms/op | 1.11 |
List(Uint64Bigint) 100000 tree_backed -> struct | 5.3627 ms/op | 5.9088 ms/op | 0.91 |
List(Uint64Bigint) 100000 struct -> binary | 2.6094 ms/op | 2.6222 ms/op | 1.00 |
List(Uint64Bigint) 100000 tree_backed -> binary | 1.0724 ms/op | 1.1397 ms/op | 0.94 |
Vector(Root) 100000 binary -> struct | 41.065 ms/op | 39.335 ms/op | 1.04 |
Vector(Root) 100000 binary -> tree_backed | 45.036 ms/op | 47.326 ms/op | 0.95 |
Vector(Root) 100000 struct -> tree_backed | 55.885 ms/op | 53.988 ms/op | 1.04 |
Vector(Root) 100000 tree_backed -> struct | 63.342 ms/op | 62.382 ms/op | 1.02 |
Vector(Root) 100000 struct -> binary | 2.5673 ms/op | 2.5898 ms/op | 0.99 |
Vector(Root) 100000 tree_backed -> binary | 10.936 ms/op | 11.642 ms/op | 0.94 |
List(Validator) 100000 binary -> struct | 158.77 ms/op | 171.72 ms/op | 0.92 |
List(Validator) 100000 binary -> tree_backed | 443.48 ms/op | 435.20 ms/op | 1.02 |
List(Validator) 100000 struct -> tree_backed | 494.45 ms/op | 469.47 ms/op | 1.05 |
List(Validator) 100000 tree_backed -> struct | 268.55 ms/op | 251.51 ms/op | 1.07 |
List(Validator) 100000 struct -> binary | 40.317 ms/op | 40.779 ms/op | 0.99 |
List(Validator) 100000 tree_backed -> binary | 106.67 ms/op | 110.01 ms/op | 0.97 |
List(Validator-NS) 100000 binary -> struct | 173.33 ms/op | 168.66 ms/op | 1.03 |
List(Validator-NS) 100000 binary -> tree_backed | 235.82 ms/op | 233.00 ms/op | 1.01 |
List(Validator-NS) 100000 struct -> tree_backed | 288.85 ms/op | 283.80 ms/op | 1.02 |
List(Validator-NS) 100000 tree_backed -> struct | 233.24 ms/op | 235.73 ms/op | 0.99 |
List(Validator-NS) 100000 struct -> binary | 40.253 ms/op | 41.290 ms/op | 0.97 |
List(Validator-NS) 100000 tree_backed -> binary | 46.873 ms/op | 47.611 ms/op | 0.98 |
get epochStatuses - MutableVector | 100.30 us/op | 104.06 us/op | 0.96 |
get epochStatuses - ViewDU | 287.80 us/op | 239.41 us/op | 1.20 |
set epochStatuses - ListTreeView | 1.9301 ms/op | 1.8985 ms/op | 1.02 |
set epochStatuses - ListTreeView - set() | 604.26 us/op | 625.68 us/op | 0.97 |
set epochStatuses - ListTreeView - commit() | 537.99 us/op | 553.59 us/op | 0.97 |
bitstring | 922.81 ns/op | 927.91 ns/op | 0.99 |
bit mask | 15.543 ns/op | 14.496 ns/op | 1.07 |
struct - increase slot to 1000000 | 1.8855 ms/op | 1.8106 ms/op | 1.04 |
UintNumberType - increase slot to 1000000 | 36.995 ms/op | 36.945 ms/op | 1.00 |
UintBigintType - increase slot to 1000000 | 565.10 ms/op | 566.47 ms/op | 1.00 |
UintBigint8 x 100000 tree_deserialize | 5.2612 ms/op | 5.1494 ms/op | 1.02 |
UintBigint8 x 100000 tree_serialize | 1.4529 ms/op | 735.62 us/op | 1.98 |
UintBigint16 x 100000 tree_deserialize | 4.8710 ms/op | 4.8182 ms/op | 1.01 |
UintBigint16 x 100000 tree_serialize | 1.5001 ms/op | 1.5756 ms/op | 0.95 |
UintBigint32 x 100000 tree_deserialize | 6.2637 ms/op | 6.6967 ms/op | 0.94 |
UintBigint32 x 100000 tree_serialize | 1.5273 ms/op | 1.7506 ms/op | 0.87 |
UintBigint64 x 100000 tree_deserialize | 6.5159 ms/op | 7.0975 ms/op | 0.92 |
UintBigint64 x 100000 tree_serialize | 1.9541 ms/op | 2.2681 ms/op | 0.86 |
UintBigint8 x 100000 value_deserialize | 532.33 us/op | 544.53 us/op | 0.98 |
UintBigint8 x 100000 value_serialize | 810.54 us/op | 925.52 us/op | 0.88 |
UintBigint16 x 100000 value_deserialize | 580.91 us/op | 576.93 us/op | 1.01 |
UintBigint16 x 100000 value_serialize | 867.17 us/op | 1.0064 ms/op | 0.86 |
UintBigint32 x 100000 value_deserialize | 545.66 us/op | 546.45 us/op | 1.00 |
UintBigint32 x 100000 value_serialize | 856.96 us/op | 993.07 us/op | 0.86 |
UintBigint64 x 100000 value_deserialize | 606.80 us/op | 630.89 us/op | 0.96 |
UintBigint64 x 100000 value_serialize | 1.1126 ms/op | 1.2442 ms/op | 0.89 |
UintBigint8 x 100000 deserialize | 5.7595 ms/op | 6.2300 ms/op | 0.92 |
UintBigint8 x 100000 serialize | 1.8732 ms/op | 1.9317 ms/op | 0.97 |
UintBigint16 x 100000 deserialize | 5.9571 ms/op | 5.8656 ms/op | 1.02 |
UintBigint16 x 100000 serialize | 1.9827 ms/op | 2.0571 ms/op | 0.96 |
UintBigint32 x 100000 deserialize | 7.2856 ms/op | 7.1049 ms/op | 1.03 |
UintBigint32 x 100000 serialize | 3.6729 ms/op | 3.6221 ms/op | 1.01 |
UintBigint64 x 100000 deserialize | 4.3989 ms/op | 4.4801 ms/op | 0.98 |
UintBigint64 x 100000 serialize | 1.8908 ms/op | 1.9085 ms/op | 0.99 |
UintBigint128 x 100000 deserialize | 7.1390 ms/op | 7.0560 ms/op | 1.01 |
UintBigint128 x 100000 serialize | 21.620 ms/op | 21.695 ms/op | 1.00 |
UintBigint256 x 100000 deserialize | 13.412 ms/op | 13.118 ms/op | 1.02 |
UintBigint256 x 100000 serialize | 63.898 ms/op | 63.952 ms/op | 1.00 |
Slice from Uint8Array x25000 | 1.3078 ms/op | 1.3232 ms/op | 0.99 |
Slice from ArrayBuffer x25000 | 25.256 ms/op | 25.687 ms/op | 0.98 |
Slice from ArrayBuffer x25000 + new Uint8Array | 26.485 ms/op | 27.199 ms/op | 0.97 |
Copy Uint8Array 100000 iterate | 1.0500 ms/op | 1.0536 ms/op | 1.00 |
Copy Uint8Array 100000 slice | 90.342 us/op | 96.837 us/op | 0.93 |
Copy Uint8Array 100000 Uint8Array.prototype.slice.call | 90.212 us/op | 99.809 us/op | 0.90 |
Copy Buffer 100000 Uint8Array.prototype.slice.call | 91.848 us/op | 102.07 us/op | 0.90 |
Copy Uint8Array 100000 slice + set | 417.19 us/op | 213.85 us/op | 1.95 |
Copy Uint8Array 100000 subarray + set | 224.80 us/op | 98.881 us/op | 2.27 |
Copy Uint8Array 100000 slice arrayBuffer | 231.33 us/op | 97.027 us/op | 2.38 |
Uint64 deserialize 100000 - iterate Uint8Array | 2.0130 ms/op | 2.0892 ms/op | 0.96 |
Uint64 deserialize 100000 - by Uint32A | 2.0134 ms/op | 1.9825 ms/op | 1.02 |
Uint64 deserialize 100000 - by DataView.getUint32 x2 | 1.9623 ms/op | 2.0265 ms/op | 0.97 |
Uint64 deserialize 100000 - by DataView.getBigUint64 | 5.8030 ms/op | 5.8826 ms/op | 0.99 |
Uint64 deserialize 100000 - by byte | 72.326 ms/op | 72.216 ms/op | 1.00 |
by benchmarkbot/action
dapplion
approved these changes
Feb 28, 2023
Merged
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix: Remove replaceAll with replace(/.../g,... for ES2019 comptatibility
see: