Commit fc14af14 authored by Robert Bradshaw's avatar Robert Bradshaw

Remove benchmark from tests.

parent 74bb35e3
...@@ -29,24 +29,6 @@ def test(dict d, index): ...@@ -29,24 +29,6 @@ def test(dict d, index):
""" """
return d[index] return d[index]
def time_dict(dict d, ix, long N): cdef class Subscriptable:
""" def __getitem__(self, key):
>>> time_dict({"abc": 1}, "abc", 1e6) return key
""" \ No newline at end of file
from time import time
t = time()
cdef int i
for i in range(N):
d[ix]
return time() - t
def time_nondict(object d, ix, long N):
"""
>>> time_nondict({"abc": 1}, "abc", 1e6)
"""
from time import time
t = time()
cdef int i
for i in range(N):
d[ix]
return time() - t
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment