https://bitbucket.org/NetaRS/sched_analytics
Tip revision: ed1f2acca39de9eb5f34a6cb5b0c8db1492f74f2 authored by NetaRS on 12 December 2020, 09:53:39 UTC
bounded traffic distributed
bounded traffic distributed
Tip revision: ed1f2ac
test_distributed_win.py
import unittest
from distributed_win import compute_dist_only_throughput_ex, compute_throughput_ex
import json
BASE_CONF_PATH = "conf.json"
class MyTestCase(unittest.TestCase):
def test_dist_ex(self):
conf = json.load(open(BASE_CONF_PATH))
conf["compute_epoch"] = 3
conf["agg_interval"] = 3
conf["agg_epoch_delay"] = 2
conf["threshold"] = 0.0
conf["window"] = 1
conf["iterations"] = 1
tps, total_tp = compute_throughput_ex(**conf)
def test_dist_only_ex(self):
conf = json.load(open(BASE_CONF_PATH))
conf["threshold"] = -1
conf["window"] = 1
conf["iterations"] = 1
tps, total_tp = compute_dist_only_throughput_ex(**conf)
if __name__ == '__main__':
unittest.main()
