summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-08-02 18:29:25 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-08-02 18:29:25 -0400
commitb79a5c25bc131bfdeaeadbf41ed1253e93161bee (patch)
treec9dae7346c2193e9e231c8d0d3d0b411d0849043
parent268d4cfcb13d29534746484e76464f1853aa7525 (diff)
downloadsqlalchemy-b79a5c25bc131bfdeaeadbf41ed1253e93161bee.tar.gz
tweaks
-rw-r--r--test/perf/orm2010.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/perf/orm2010.py b/test/perf/orm2010.py
index 4f36551c0..088563e94 100644
--- a/test/perf/orm2010.py
+++ b/test/perf/orm2010.py
@@ -62,9 +62,7 @@ Base.metadata.create_all(engine)
sess = Session(engine)
-factor = 10
-
-def runit(status):
+def runit(status, factor=1):
num_bosses = 100 * factor
num_grunts = num_bosses * 100
@@ -126,7 +124,6 @@ def runit(status):
def run_with_profile():
import cProfile
- import os
import pstats
filename = "orm2010.profile"
@@ -150,7 +147,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,7 +171,7 @@ def run_with_time():
def status(msg):
print("%d - %s" % (time.time() - now, msg))
- runit(status)
+ runit(status, 10)
print("Total time: %d" % (time.time() - now))
run_with_time()