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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian
erp5
Commits
fbd996d9
Commit
fbd996d9
authored
Jun 02, 2014
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmarks: Even if it's unusual, some use cases may take less than 1 seconds to run.
parent
604d5db4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
erp5/util/benchmark/report.py
erp5/util/benchmark/report.py
+1
-1
erp5/util/benchmark/result.py
erp5/util/benchmark/result.py
+1
-1
No files found.
erp5/util/benchmark/report.py
View file @
fbd996d9
...
@@ -168,7 +168,7 @@ def computeStatisticFromFilenameList(argument_namespace, filename_list,
...
@@ -168,7 +168,7 @@ 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
=
in
t
(
row_iter
.
next
()[
1
])
/
3600.0
current_duration
=
floa
t
(
row_iter
.
next
()[
1
])
/
3600.0
if
not
current_count
:
if
not
current_count
:
continue
continue
...
...
erp5/util/benchmark/result.py
View file @
fbd996d9
...
@@ -217,7 +217,7 @@ class BenchmarkResult(object):
...
@@ -217,7 +217,7 @@ class BenchmarkResult(object):
self
.
_current_suite_dict
[
'expected'
])
self
.
_current_suite_dict
[
'expected'
])
self
.
_current_suite_dict
[
'all_use_case_result_list'
].
append
(
self
.
_current_suite_dict
[
'all_use_case_result_list'
].
append
(
(
self
.
_current_use_case_counter
,
int
(
elapsed_time
)
))
(
self
.
_current_use_case_counter
,
elapsed_time
))
if
self
.
_current_use_case_counter
!=
0
:
if
self
.
_current_use_case_counter
!=
0
:
self
.
_current_suite_dict
[
'use_case_stat'
].
add
(
self
.
_current_suite_dict
[
'use_case_stat'
].
add
(
...
...
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