Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Graydon
erp5
Commits
2b1881fd
Commit
2b1881fd
authored
Dec 08, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert use case elapsed time to hours rather than minutes for creating its plots.
parent
0306787c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
erp5/util/benchmark/report.py
erp5/util/benchmark/report.py
+7
-7
No files found.
erp5/util/benchmark/report.py
View file @
2b1881fd
...
@@ -168,12 +168,12 @@ def computeStatisticFromFilenameList(argument_namespace, filename_list,
...
@@ -168,12 +168,12 @@ def computeStatisticFromFilenameList(argument_namespace, filename_list,
use_case_suite
=
row_use_case_mapping_dict
.
get
(
idx
,
None
)
use_case_suite
=
row_use_case_mapping_dict
.
get
(
idx
,
None
)
if
use_case_suite
:
if
use_case_suite
:
current_count
=
int
(
row
)
current_count
=
int
(
row
)
current_duration
=
int
(
row_iter
.
next
()[
1
])
/
6
0.0
current_duration
=
int
(
row_iter
.
next
()[
1
])
/
360
0.0
if
not
current_count
:
if
not
current_count
:
continue
continue
# For stats by iteration, used later on to generate cases per
# For stats by iteration, used later on to generate cases per
#
minute
s plot for a given number of users
#
hour
s plot for a given number of users
by_iteration_dict
=
use_case_suite_dict
[
use_case_suite
]
by_iteration_dict
=
use_case_suite_dict
[
use_case_suite
]
count_stat_list
=
by_iteration_dict
[
'count_stats'
]
count_stat_list
=
by_iteration_dict
[
'count_stats'
]
duration_stat_list
=
by_iteration_dict
[
'duration_stats'
]
duration_stat_list
=
by_iteration_dict
[
'duration_stats'
]
...
@@ -322,7 +322,7 @@ def drawPlotDecorator(xlabel, ylabel):
...
@@ -322,7 +322,7 @@ def drawPlotDecorator(xlabel, ylabel):
return
inner
return
inner
@
drawPlotDecorator
(
xlabel
=
'Time
elapsed (in minute
s)'
,
@
drawPlotDecorator
(
xlabel
=
'Time
(in hour
s)'
,
ylabel
=
'Use cases'
)
ylabel
=
'Use cases'
)
def
drawUseCasePerNumberOfUserPlot
(
axes
,
def
drawUseCasePerNumberOfUserPlot
(
axes
,
use_case_count_list
,
use_case_count_list
,
...
@@ -406,10 +406,10 @@ def drawConcurrentUsersUseCasePlot(axes,
...
@@ -406,10 +406,10 @@ def drawConcurrentUsersUseCasePlot(axes,
minimum_sum
=
0
minimum_sum
=
0
stddev
=
0
stddev
=
0
for
stat
in
use_case_stat
[
'duration_stats'
]:
for
stat
in
use_case_stat
[
'duration_stats'
]:
minimum_sum
+=
stat
.
minimum
/
60.0
minimum_sum
+=
stat
.
minimum
mean_sum
+=
stat
.
mean
/
60.0
mean_sum
+=
stat
.
mean
maximum_sum
+=
stat
.
maximum
/
60.0
maximum_sum
+=
stat
.
maximum
stddev
=
max
(
stddev
,
stat
.
standard_deviation
/
60.0
)
stddev
=
max
(
stddev
,
stat
.
standard_deviation
)
use_case_per_hour_min
=
count
/
maximum_sum
use_case_per_hour_min
=
count
/
maximum_sum
use_case_per_hour_min_list
.
append
(
use_case_per_hour_min
)
use_case_per_hour_min_list
.
append
(
use_case_per_hour_min
)
...
...
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