forked from ParinazAmeri/NoWog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini
137 lines (86 loc) · 3.73 KB
/
config.ini
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Configuration file for NoWog
[inputs]
# A list of input BNF files, separated by comma ","
input_files = inputs/all_cases.txt
[outputs]
# Output file name. All output is json file.
# Not required. And if not specified, program will proceed without writing file.
parser_result_path = outputs/parser_result.json
sessions_file_path = outputs/sessions.json
[connection]
# All operation will be executed only in one collection.
# Specify the database name and collection name here. Other
# connection information can be added in MongoDB URL.
db_name = NoWog_test
coll_name = all_cases_test
URL = mongodb://localhost
[seed]
# seed for BOTH numpy.random.seed() in distribution and random.seed()
# in Values. Affect BOTH distribution shape and generated random values
# in all operations. Not required, by default is None, i.e. system time.
seed = 777
[scale_factor]
# ----------------------------------------
# Total amount of operation is: distribution['total']*size_scale_factor
# Default is 1.0
size_scale_factor = 1.0
# ----------------------------------------
# the scale factor of all execution time:
# Actual execution time period: [start*time_scale (sec), end*time_scale (sec)]. Default is 1.0
# e.g. if the number in time period represent minute, edit time_scale into 60
time_scale_factor = 1.0
[optional_value_setting]
# ----------------------------------------
# Range of all random values in all database operations,
# including in num_match and in array operators.
# If num_min > num_max, program will exit with error.
# Default is [-1000, 1000]
# num_min = 1
# num_max = 7
# ----------------------------------------
# Range of length of random string in all database operations,
# including in text_read, text_write and in array operators.
# If str_len_min > str_len_max, program will exit with error.
# If str_len_min < 1, str_len_min will be set to 1 automatically.
# Default is [1, 10]
# str_len_min = 1
# str_len_max = 7
# ----------------------------------------
# Range of length of array in all database operations,
# including Array.Bool, Array.Num and Array.Text; also arr_remove_op in update
# If array_len_min > array_len_max, program will exit with error.
# If array_len_min < 1, str_len_min will be set to 1 automatically.
# Default is [1, 10]
# array_len_min = 2
# array_len_max = 7
# ----------------------------------------
# Candidate characters used for generate random string.
# Default is string.ascii_uppercase + string.ascii_lowercase + string.digits + "_"
# char = The_quick_brown_fox_jumps_over_the_lazy_dog
[optional_execution_setting]
# ----------------------------------------
# If true, create collection before execution (try and run) only if the collection
# doesn't exist. Default is true.
# create_collection = true
# ----------------------------------------
# clean all data in designate collection before execution (try and run).
# If create_collection is false and drop_collection is true,
# then all operations will be executed in a non-exist collection (unless there are insert operations).
# Default is false
# drop_collection = false
# ----------------------------------------
# If True, disable, drop, recreate and enable system.profile before try_run() and run().
# Use for profiling all operations
# default is false
# reset_profiling = false
# ----------------------------------------
# size of recreated system.profile, in MB. Valid only when reset_profiling == true
# Default is 1 (MB)
# profile_size = 10
# ----------------------------------------
# bins for EACH session in displaying histogram. Default is 20.
# total_bins = bins * total_amount_of_session
# bins = 50
# ----------------------------------------
# histogram type: {'bar', 'barstacked', 'step', 'stepfilled'}, default is 'step'
histtype = step