from bg.sim import process import timeit s = 10000 grid = [(s, 'complete', a, 1000, .001, None) for a in range(3, 11)] grid += [(s, 'cycle', a, 1000, .001, None) for a in range(4, 11)] grid += [(s, 'wheel', a, 1000, .001, None) for a in range(5, 11)] tic = timeit.default_timer() process(grid, 'results/zollman.csv') toc = timeit.default_timer() print("Time: " + str(round(toc - tic, 1)))
from bg.sim import process import timeit s = 10000 grid = [(s, 'complete', a, 50, .2, m) for a in [2, 6, 10, 20] for m in [1, 1.1, 1.5, 2, 2.5]] tic = timeit.default_timer() process(grid, 'results/ow.csv') toc = timeit.default_timer() print("Time: " + str(round(toc - tic, 1)))
from bg.sim import process import timeit s = 20000 grid = [(s, g, a, 1000, .001, None) for g in ['complete', 'cycle'] for a in range(4, 20, 2)] grid += [(s, g, a, 1000, .001, None) for g in ['complete', 'cycle'] for a in range(20, 101, 5)] tic = timeit.default_timer() process(grid, 'results/rbo-fig-4.csv') toc = timeit.default_timer() print("Time: " + str(round(toc - tic, 1)))