Commit 85783ee8 authored by iv's avatar iv

erp5_performance_test: add pystone to testWorkflowPerformance

parent d9be3480
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment