Exemplo n.º 1
0
def main():
    """Runs compSortTest on the sorts in this module."""
    try:
        size = int(sys.argv[1])
    except IndexError:
        size = 6
    compSortTest([countsort, pure_countsort, sorted], max_size_order=size)
Exemplo n.º 2
0
def main():
    """Runs compSortTest on the sorts in this module."""
    try:
        size = int(sys.argv[1])
    except IndexError:
        size = 6
    compSortTest([countsort, pure_countsort, sorted], max_size_order=size)
Exemplo n.º 3
0
def main():
    compSortTest([countsort, np_sort], max_size_order=8)
Exemplo n.º 4
0
def main():
    compSortTest([countsort, np_sort], max_size_order=8)
Exemplo n.º 5
0
def main():
    compSortTest([singleQuicksort, singlePureQuicksort], max_size_order=5) # Sorts are too slow for higher orders with profiling.