From 85783ee872b67768301a28e5c07e4f1fa57dc5a0 Mon Sep 17 00:00:00 2001 From: iv <isabelle.vallet@nexedi.com> Date: Fri, 9 Dec 2016 09:32:22 +0000 Subject: [PATCH] erp5_performance_test: add pystone to testWorkflowPerformance --- .../portal_components/test.erp5.testWorkflowPerformance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_performance_test/TestTemplateItem/portal_components/test.erp5.testWorkflowPerformance.py b/bt5/erp5_performance_test/TestTemplateItem/portal_components/test.erp5.testWorkflowPerformance.py index dad92dd682..4ccd540927 100644 --- a/bt5/erp5_performance_test/TestTemplateItem/portal_components/test.erp5.testWorkflowPerformance.py +++ b/bt5/erp5_performance_test/TestTemplateItem/portal_components/test.erp5.testWorkflowPerformance.py @@ -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 -- 2.30.9