MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / run_with_time

Function run_with_time

test/perf/orm2010.py:170–184  ·  view source on GitHub ↗
(factor)

Source from the content-addressed store, hash-verified

168
169
170def run_with_time(factor):
171 import time
172
173 now = time.time()
174
175 def status(msg):
176 print("%d - %s" % (time.time() - now, msg))
177
178 runit_persist(status, factor)
179
180 print("Total time: %d" % (time.time() - now))
181
182 runit_query_runs(status, factor)
183
184 print("Total time: %d" % (time.time() - now))
185
186
187if __name__ == "__main__":

Callers 1

orm2010.pyFile · 0.85

Calls 3

runit_persistFunction · 0.85
runit_query_runsFunction · 0.85
timeMethod · 0.45

Tested by

no test coverage detected