-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
39 lines (35 loc) · 1.67 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from experiments.authorities_amount_experiment import AuthoritiesAmountExperiment
from experiments.base_experiment import BaseExperiment
from experiments.disjunctive_policy_size_experiment import DisjunctivePolicySizeExperiment
from experiments.file_size_experiment import FileSizeExperiment
from experiments.policy_size_experiment import PolicySizeExperiment
from experiments.runner.experiments_runner import ExperimentsRunner
from experiments.user_key_size_experiment import UserKeySizeExperiment
IS_MOBILE = False
if __name__ == '__main__':
runner = ExperimentsRunner()
base_experiment = BaseExperiment()
policy_size_experiment = PolicySizeExperiment()
disjunctive_policy_size_experiment = DisjunctivePolicySizeExperiment()
user_key_size_experiment = UserKeySizeExperiment()
authorities_amount_experiment = AuthoritiesAmountExperiment()
file_size_experiment = FileSizeExperiment()
if IS_MOBILE:
base_experiment.run_descriptions = {
'setup_authsetup': 'once',
'register_keygen': 'once',
'encrypt': 'always',
'update_keys': 'always',
'data_update': 'always',
'policy_update': 'always',
'decrypt': 'always'
}
# Storage and network are skipped, as they are just the same as on notebook
base_experiment.measurement_types_once = []
runner.run_experiment(base_experiment)
else:
runner.run_experiment(base_experiment)
runner.run_experiment(policy_size_experiment)
runner.run_experiment(disjunctive_policy_size_experiment)
runner.run_experiment(user_key_size_experiment)
runner.run_experiment(file_size_experiment)