]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
callcounts for 2.4, 2.5, 2.6
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 5 Dec 2010 21:39:15 +0000 (16:39 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 5 Dec 2010 21:39:15 +0000 (16:39 -0500)
test/aaa_profiling/test_orm.py
test/aaa_profiling/test_pool.py
test/aaa_profiling/test_resultset.py

index f2edebe0659ce4b485204b49305ac8581eb8bfcf..d82ac74364ed239d1046df3a3d3905827d7fd312 100644 (file)
@@ -54,7 +54,7 @@ class MergeTest(_base.MappedTest):
         # bigger operation so using a small variance
 
         @profiling.function_call_count(97, variance=0.001,
-                versions={'2.4': 67, '3': 96})
+                versions={'2.4': 73, '3': 96})
         def go():
             return sess2.merge(p1, load=False)
         p2 = go()
index ffe8dc63a4e5c0e4aa541190743b28c4cc9773c9..ea8d1f9cdd028de3263c667aba470ddf8ecb4641 100644 (file)
@@ -18,7 +18,7 @@ class QueuePoolTest(TestBase, AssertsExecutionResults):
                          use_threadlocal=True)
 
 
-    @profiling.function_call_count(72, {'2.4': 42, '2.7':67, 
+    @profiling.function_call_count(72, {'2.4': 63, '2.7':67, 
                                             '2.7+cextension':67,
                                             '3.0':65, '3.1':65},
                                             variance=.10)
index 74c0927c680bdf0c10a31bf38931531e7b86cc0c..b4ca27ef653beb3d652a9ee076fc11cb9d2ff0ec 100644 (file)
@@ -37,7 +37,8 @@ class ResultSetTest(TestBase, AssertsExecutionResults):
     # sqlite3 returns native unicode.  so shouldn't be an increase here.
 
     @profiling.function_call_count(14396, versions={'2.4': 13214,
-                                   '2.6+cextension': 409, '2.7+cextension':409})
+                                   '2.6+cextension': 409, 
+                                   '2.7+cextension':409})
     def test_unicode(self):
         [tuple(row) for row in t2.select().execute().fetchall()]
 
@@ -51,7 +52,9 @@ class ExecutionTest(TestBase):
         # ensure initial connect activities complete
         c.execute("select 1")
         
-        @profiling.function_call_count(36, variance=.01)
+        @profiling.function_call_count(36, versions={'2.6':35, '2.5':35, 
+                                                    '2.4':21}, 
+                                            variance=.01)
         def go():
             c.execute("select 1")
         go()
@@ -62,7 +65,9 @@ class ExecutionTest(TestBase):
         # ensure initial connect activities complete
         e.execute("select 1")
 
-        @profiling.function_call_count(59, variance=.01)
+        @profiling.function_call_count(59, versions={'2.4':41, '2.5':58, 
+                                                    '2.6':58}, 
+                                            variance=.01)
         def go():
             e.execute("select 1")
         go()