Relax performance test (Python3 does not perform the same as Python2)
@@ -78,10 +78,10 @@ class PerformanceTestCases(unittest.TestCase):
number=100000)
#print("\na %s, b %s, c %s | %s %s" % (a, b, c, c, a/c))
# Calling a function or member is significantly slower than direct access.
- self.assertGreater(b, a * 1.7) # b is much slower.
+ self.assertGreater(b, a * 1.2) # b is much slower.
self.assertGreater(b, c * 1.9) # b is much slower.
self.assertGreater(a, c * 0.7) # a and c are similar.
- self.assertGreater(c, a * 0.5) # a and c are similar.
+ self.assertGreater(c, a * 0.4) # a and c are similar.
def test_default_parameter(self):
setup = '''def withDefault(a, b=None):\n'''
