From a79df278b5ec95eadf8680a3ff3e435cd80afc5a Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Wed, 23 Nov 2016 23:07:14 +0200 Subject: [PATCH] Modify performance test --- tests/performance/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/performance/test.py b/tests/performance/test.py index 8511779f..59464a9c 100644 --- a/tests/performance/test.py +++ b/tests/performance/test.py @@ -74,7 +74,7 @@ class Tester(object): # for x in xrange(int(5000000 * self.duration_factor)): # test_factory(1, 2, 3) - def test_3_kw_injections(self, providers): + def test_instance_3_kw_injections(self, providers): """Test 3 keyword argument injections.""" class A(object): pass @@ -92,7 +92,7 @@ class Tester(object): for x in xrange(int(5000000 * self.duration_factor)): Test(a=A(), b=B(), c=C()) - def test_factory_3_factory_kw_injections(self, providers): + def test_instance_factory_3_factory_kw_injections(self, providers): """Test factory with 3 keyword argument injections via factories.""" class A(object): pass @@ -173,5 +173,5 @@ if __name__ == '__main__': provider_modules=[ dependency_injector.providers, ], - duration_factor=1) + duration_factor=0.5) tester.run()