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
from timeit import default_timer as timer | |
from copy import copy | |
import numpy as np | |
from quicksort import quicksort | |
from quicksort1 import quicksort as quicksort1 | |
# Test parameters | |
array_size = 10000 # size of test array | |
repeat = 5 # numbers of arrays to test | |
n_iter = 100 # number of tests for each array |
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
from timeit import default_timer as timer | |
from copy import copy | |
import numpy as np | |
# Test parameters | |
array_size = 10000 # size of test array | |
repeat = 5 # numbers of arrays to test | |
n_iter = 100 # number of tests for each array | |
functions = { |