Пример #1
0
"""
This runs some benchmark tests, using the data here as input.

The output is a txt file with timings and memory use info.

Check pyvolution.run_profile for an example of how to use the python profile
module.

"""
from benchmark_least_squares import BenchmarkLeastSquares

ben = BenchmarkLeastSquares()

ofile = 'lbm_resultsII.csv'
delimiter = ','
run_profile = False  #True
is_fit_list = [True, False]
num_of_points_list = [3, 200, 600, 2000, 6000, 10000, 20000]
#maxArea_list = [ 0.008, 0.0016, 0.0008]
max_points_per_cell_list = [2, 4, 8, 16, 30, 64]
use_file_type_list = ['pts']  #'pts'
#num_of_points_list = [10]
maxArea_list = [0.008, 0.0016]
max_points_per_cell_list = [4]

fd = open(ofile, 'a')
# write the title line

fd.write("use_file_type" + delimiter + "num_of_points" + delimiter +
         "maxArea" + delimiter + "num_of_triangles" + delimiter +
         "max_points_per_cell" + delimiter + "is_fit" + delimiter +