import modules.runner as runner

base_config = {
    'n': 6,
    'e': 10000,
    'c': 100000,
    'p': 100,
    'f': 3,
    'q': 3,
    'i': 1000
}

result = runner.test_repeat(base_config, runner.merge_dicts({'o': None}, base_config), 10)
print(result)
import modules.runner as runner

results = []
params = [1, 2, 3, 4, 5, 6, 7, 8]
base_config = {
    'n': 6,
    'e': 10000,
    'o': None,
    'c': 10000,
    'i': 1000,
    'p': 1000
}

for q in params:
    myRunner = runner.AggregatedDurationTester(runner.merge_dicts(base_config, {'q': q}))
    for i in range(0, 10):
        myRunner.run()
    results.append(myRunner.get_average())

print(results)
import modules.runner as runner

results = []
params = [1, 10, 100, 1000, 10000, 100000, 1000000]
params.reverse()
base_config = {
    'n': 6,
    'e': 1000,
    'o': None,
    'c': 10000
}

for initialQueueSize in params:
    myRunner = runner.AggregatedDurationTester(runner.merge_dicts(base_config, {'i': initialQueueSize}))
    for i in range(0, 10):
        myRunner.run()
    results.append(myRunner.get_average())

print(results)