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
preetwinder
erp5
Commits
85783ee8
Commit
85783ee8
authored
Dec 09, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_performance_test: add pystone to testWorkflowPerformance
parent
d9be3480
Changes
1
Hide 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 @
85783ee8
...
...
@@ -25,8 +25,9 @@
#
##############################################################################
from
test
import
pystone
from
time
import
time
pystone
.
clock
=
time
from
Products.ERP5Type.tests.testPerformance
import
TestPerformanceMixin
from
Products.DCWorkflow.DCWorkflow
import
ValidationFailed
from
Testing
import
ZopeTestCase
...
...
@@ -71,6 +72,7 @@ class TestWorkflowPerformance(TestPerformanceMixin):
end
=
time
()
print
"
\
n
%s pystones/second"
%
pystone
.
pystones
()[
1
]
message
=
"
\
n
%s took %.4gs (%s foo(s))"
%
(
self
.
_testMethodName
,
end
-
start
,
foo_count
)
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