diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-26 23:24:13 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-26 23:24:13 -0500 |
| commit | 30a50cc46aa836e24ebcbb889cbee583c511af82 (patch) | |
| tree | 053c2af8e82434c1e7a616e1a1c55b819aad244b /test/perf | |
| parent | 6029496bd3fb78caeab349ef8df5b58f058db16e (diff) | |
| download | sqlalchemy-30a50cc46aa836e24ebcbb889cbee583c511af82.tar.gz | |
- the wrapped memoized_property here was not working, as the attribute name
didn't match. use straight memoized_props here for now, add a perf test to check it
Diffstat (limited to 'test/perf')
| -rw-r--r-- | test/perf/orm2010.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/perf/orm2010.py b/test/perf/orm2010.py index 088563e94..0213458b6 100644 --- a/test/perf/orm2010.py +++ b/test/perf/orm2010.py @@ -103,9 +103,8 @@ def runit(status, factor=1): sess.commit() status("Associated grunts w/ bosses and committed") - # do some heavier reading - for i in range(5): + for i in range(int(round(factor / 2.0))): status("Heavy query run #%d" % (i + 1)) report = [] @@ -147,7 +146,7 @@ def run_with_profile(): #stats.sort_stats('time', 'calls') #stats.print_stats() - #os.system("runsnake %s" % filename) +# os.system("runsnake %s" % filename) # SQLA Version: 0.7b1 # Total calls 4956750 @@ -174,4 +173,5 @@ def run_with_time(): runit(status, 10) print("Total time: %d" % (time.time() - now)) -run_with_time() +run_with_profile() +#run_with_time() |
