changeset 113:15ab8952357e

created
author 127.0.0.1
date Fri, 06 Dec 2013 23:56:07 +0100
parents 492ebfed4f99
children 4b1eb44dacbd
files speed.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/speed.py	Fri Dec 06 23:54:57 2013 +0100
+++ b/speed.py	Fri Dec 06 23:56:07 2013 +0100
@@ -1,5 +1,6 @@
 import timeit
-CACHE = {'a': 1}
+
+setup = "CACHE = {'a': 1}"
 
 command = """
 try:
@@ -8,6 +9,6 @@
     return 1
 """
 
-timeit.timeit(command)
+timeit.timeit(command, setup=setup)
     
     
\ No newline at end of file