--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cython-users/451b9103-79f0-57ba-5814-772de8eceb6f%40behnel.de.
import time
cdef void func0(int x):
1 == x
cdef func1(x):
1 == x
ctypedef void (*f_type)(int)
cdef int ITERS = 100000000
cdef void do_timing(f_type f):
cdef int i
for 0 <= i < ITERS:
f(1)
cdef void test0():
now = time.time()
do_timing(func0)
print(time.time() - now)
def test1():
cdef int i
now = time.time()
for 0 <= i < ITERS:
func1(1)
print(time.time() - now)
test0()
test1()
--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cython-users/98108bb0-7856-129d-8b90-95697818be9f%40behnel.de.
To view this discussion on the web visit https://groups.google.com/d/msgid/cython-users/f179764c-9ba3-443c-9395-933e24437513n%40googlegroups.com.