File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 27
27
from performance .reference .util import get_new_indexers_and_screen_ref
28
28
from performance .reference .util import split_after_count as split_after_count_ref
29
29
from performance .reference .util import count_iteration as count_iteration_ref
30
+ from performance .reference .util import slice_to_ascending_slice as slice_to_ascending_slice_ref
30
31
31
32
from performance .reference .array_go import ArrayGO as ArrayGOREF
32
33
45
46
from arraykit import isna_element as isna_element_ak
46
47
from arraykit import split_after_count as split_after_count_ak
47
48
from arraykit import count_iteration as count_iteration_ak
49
+ from arraykit import slice_to_ascending_slice as slice_to_ascending_slice_ak
48
50
49
51
from arraykit import ArrayGO as ArrayGOAK
50
52
@@ -735,6 +737,22 @@ class CountIterationsREF(CountIterations):
735
737
entry = staticmethod (count_iteration_ref )
736
738
737
739
740
+ #-------------------------------------------------------------------------------
741
+ class SliceToAscending (Perf ):
742
+ NUMBER = 1_000_000
743
+
744
+ def __init__ (self ):
745
+ self .slc = slice (100 , 1 , - 3 )
746
+
747
+ def main (self ):
748
+ _ = self .entry (self .slc , 101 )
749
+
750
+ class SliceToAscendingAK (SliceToAscending ):
751
+ entry = staticmethod (slice_to_ascending_slice_ak )
752
+
753
+ class SliceToAscendingREF (SliceToAscending ):
754
+ entry = staticmethod (slice_to_ascending_slice_ref )
755
+
738
756
#-------------------------------------------------------------------------------
739
757
740
758
def get_arg_parser ():
You can’t perform that action at this time.
0 commit comments