From: Robert Bradshaw Date: Wed, 24 Feb 2010 06:10:00 +0000 (-0800) Subject: Remove benchmark from tests. X-Git-Tag: 0.13.beta0~319^2~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fc14af14e62a0398fb7e263b646ba89421343ee0;p=cython.git Remove benchmark from tests. --- diff --git a/tests/run/dict_getitem.pyx b/tests/run/dict_getitem.pyx index 1e063da3..b465a5b8 100644 --- a/tests/run/dict_getitem.pyx +++ b/tests/run/dict_getitem.pyx @@ -29,24 +29,6 @@ def test(dict d, index): """ return d[index] -def time_dict(dict d, ix, long N): - """ - >>> time_dict({"abc": 1}, "abc", 1e6) - """ - 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 +cdef class Subscriptable: + def __getitem__(self, key): + return key \ No newline at end of file