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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
2b58c8fb
Commit
2b58c8fb
authored
Dec 09, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: add pystone to testWorkflowPerformance
parent
00aa62f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
bt5/erp5_performance_test/TestTemplateItem/portal_components/test.erp5.testWorkflowPerformance.py
...em/portal_components/test.erp5.testWorkflowPerformance.py
+3
-1
No files found.
bt5/erp5_performance_test/TestTemplateItem/portal_components/test.erp5.testWorkflowPerformance.py
View file @
2b58c8fb
...
@@ -25,8 +25,9 @@
...
@@ -25,8 +25,9 @@
#
#
##############################################################################
##############################################################################
from
test
import
pystone
from
time
import
time
from
time
import
time
pystone
.
clock
=
time
from
Products.ERP5Type.tests.testPerformance
import
TestPerformanceMixin
from
Products.ERP5Type.tests.testPerformance
import
TestPerformanceMixin
from
Products.DCWorkflow.DCWorkflow
import
ValidationFailed
from
Products.DCWorkflow.DCWorkflow
import
ValidationFailed
from
Testing
import
ZopeTestCase
from
Testing
import
ZopeTestCase
...
@@ -71,6 +72,7 @@ class TestWorkflowPerformance(TestPerformanceMixin):
...
@@ -71,6 +72,7 @@ class TestWorkflowPerformance(TestPerformanceMixin):
end
=
time
()
end
=
time
()
print
"
\
n
%s pystones/second"
%
pystone
.
pystones
()[
1
]
message
=
"
\
n
%s took %.4gs (%s foo(s))"
%
(
self
.
_testMethodName
,
message
=
"
\
n
%s took %.4gs (%s foo(s))"
%
(
self
.
_testMethodName
,
end
-
start
,
foo_count
)
end
-
start
,
foo_count
)
print
message
print
message
...
...
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