Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
energy
bmon
Commits
fa31c438
Commit
fa31c438
authored
Feb 06, 2015
by
Alan Mitchell
Browse files
Change Database Size
parent
206e98da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bmsapp/scripts/add_dummy_data.py
bmsapp/scripts/add_dummy_data.py
+2
-2
bmsapp/scripts/performance_testing.py
bmsapp/scripts/performance_testing.py
+1
-1
No files found.
bmsapp/scripts/add_dummy_data.py
View file @
fa31c438
...
...
@@ -7,8 +7,8 @@ import time
import
traceback
import
bmsapp.readingdb.bmsdata
BLDG_COUNT
=
20
SENSOR_COUNT
=
30
BLDG_COUNT
=
8
SENSOR_COUNT
=
9
YRS_OF_READINGS
=
2
READING_SPACING
=
10.0
# minutes
...
...
bmsapp/scripts/performance_testing.py
View file @
fa31c438
...
...
@@ -175,7 +175,7 @@ if __name__ == '__main__':
i
=
0
while
True
:
thread_count
,
rdg_delay
,
no_query
=
post_params
[
i
%
param_len
]
results
=
query_under_load
(
thread_count
,
rdg_delay
,
100
,
20
,
no_query
)
results
=
query_under_load
(
thread_count
,
rdg_delay
,
8
,
9
,
no_query
)
results
=
[
time
.
time
(),
thread_count
,
rdg_delay
]
+
results
res_str
=
'
\t
'
.
join
([
'%.2f'
%
val
for
val
in
results
])
open
(
'performance.txt'
,
'a'
).
write
(
res_str
+
'
\n
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment