changeset 118:8908ab8060a4

created
author 127.0.0.1
date Fri, 06 Dec 2013 23:59:18 +0100
parents f1b2cc6a2426
children e543ed9c2908
files speed.py
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/speed.py	Fri Dec 06 23:58:39 2013 +0100
+++ b/speed.py	Fri Dec 06 23:59:18 2013 +0100
@@ -9,6 +9,15 @@
     return 1
 """
 
-print timeit.repeat(command, setup=setup, number=10000000000)
+print timeit.repeat(command, setup=setup)
     
+command = """
+try:
+    return CACHE['b']
+except KeyError:
+    return 1
+"""
+
+print timeit.repeat(command, setup=setup)
+
     
\ No newline at end of file