Example #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)
Example #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)
Example #3
0
def main():
    compSortTest([countsort, np_sort], max_size_order=8)
Example #4
0
def main():
    compSortTest([countsort, np_sort], max_size_order=8)
Example #5
0
def main():
    compSortTest([singleQuicksort, singlePureQuicksort], max_size_order=5) # Sorts are too slow for higher orders with profiling.