From: Mike Bayer Date: Tue, 1 Apr 2008 18:08:42 +0000 (+0000) Subject: seems like the recent itertools add to select()._get_display_froms() adds overhead... X-Git-Tag: rel_0_4_5~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b041ff1e623e9713a429f94f2e7a59779d0561a0;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git seems like the recent itertools add to select()._get_display_froms() adds overhead in 2.4? not sure why --- diff --git a/test/profiling/zoomark.py b/test/profiling/zoomark.py index f0208acb4a..80551ae9aa 100644 --- a/test/profiling/zoomark.py +++ b/test/profiling/zoomark.py @@ -27,7 +27,7 @@ class ZooMarkTest(testing.TestBase, AssertsExecutionResults): __skip_if__ = ((lambda: sys.version_info < (2, 4)), ) @profiling.conditional_call_count( - _running_in, {'isolation': (1806,), + _running_in, {'isolation': (2038,), 'suite': (1569, {'2.4': 1579}, 0.20)}) def test_1_create_tables(self): global metadata @@ -133,7 +133,7 @@ class ZooMarkTest(testing.TestBase, AssertsExecutionResults): for x in xrange(ITERATIONS): tick = i.execute(Species=u'Tick', Name=u'Tick %d' % x, Legs=8) - @profiling.function_call_count(2740) + @profiling.function_call_count(2740, {'2.4':2996}) def test_3_properties(self): Zoo = metadata.tables['Zoo'] Animal = metadata.tables['Animal'] @@ -155,7 +155,7 @@ class ZooMarkTest(testing.TestBase, AssertsExecutionResults): millipede = fullobject(Animal.select(Animal.c.Legs==1000000)) ticks = fullobject(Animal.select(Animal.c.Species==u'Tick')) - @profiling.function_call_count(10384, {'2.4': 11001}) + @profiling.function_call_count(10384, {'2.4': 11958}) def test_4_expressions(self): Zoo = metadata.tables['Zoo'] Animal = metadata.tables['Animal'] @@ -249,7 +249,7 @@ class ZooMarkTest(testing.TestBase, AssertsExecutionResults): select([Animal.c.Legs], distinct=True).execute().fetchall()] legs.sort() - @profiling.function_call_count(1116) + @profiling.function_call_count(1116, {'2.4':1192}) def test_6_editing(self): Zoo = metadata.tables['Zoo']