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
Aurélien Vermylen
erp5
Commits
6ab5a6b2
Commit
6ab5a6b2
authored
Sep 30, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set results flushing frequency to a more sensible value and fix misleading naming.
parent
d37dcb91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
erp5/util/benchmark/process.py
erp5/util/benchmark/process.py
+2
-2
No files found.
erp5/util/benchmark/process.py
View file @
6ab5a6b2
...
@@ -35,7 +35,7 @@ import socket
...
@@ -35,7 +35,7 @@ import socket
from
..testbrowser.browser
import
Browser
from
..testbrowser.browser
import
Browser
from
.result
import
NothingFlushedException
from
.result
import
NothingFlushedException
RE
SULT_NUMBER_BEFORE_FLUSHING
=
10
0
RE
PEAT_NUMBER_BEFORE_FLUSHING
=
1
0
class
BenchmarkProcess
(
multiprocessing
.
Process
):
class
BenchmarkProcess
(
multiprocessing
.
Process
):
def
__init__
(
self
,
exit_msg_queue
,
result_klass
,
argument_namespace
,
def
__init__
(
self
,
exit_msg_queue
,
result_klass
,
argument_namespace
,
...
@@ -168,7 +168,7 @@ class BenchmarkProcess(multiprocessing.Process):
...
@@ -168,7 +168,7 @@ class BenchmarkProcess(multiprocessing.Process):
self
.
_logger
.
info
(
"Iteration: %d"
%
self
.
_current_repeat
)
self
.
_logger
.
info
(
"Iteration: %d"
%
self
.
_current_repeat
)
self
.
runBenchmarkSuiteList
(
result
)
self
.
runBenchmarkSuiteList
(
result
)
if
not
self
.
_current_repeat
%
RE
SUL
T_NUMBER_BEFORE_FLUSHING
:
if
not
self
.
_current_repeat
%
RE
PEA
T_NUMBER_BEFORE_FLUSHING
:
try
:
try
:
result
.
flush
()
result
.
flush
()
except
NothingFlushedException
:
except
NothingFlushedException
:
...
...
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