示例#1
0
文件: countsort.py 项目: reem/sorts
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)
示例#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)
示例#3
0
def main():
    compSortTest([countsort, np_sort], max_size_order=8)
示例#4
0
def main():
    compSortTest([countsort, np_sort], max_size_order=8)
示例#5
0
文件: quicksorts.py 项目: reem/sorts
def main():
    compSortTest([singleQuicksort, singlePureQuicksort], max_size_order=5) # Sorts are too slow for higher orders with profiling.