[pypy-issue] [issue1344] Pypy slower in recursion than Python2.7, Python3.2 and Julia

Diego Javier Zea tracker at bugs.pypy.org
Sun Dec 2 17:59:08 CET 2012


New submission from Diego Javier Zea <diego_zea at yahoo.com.ar>:

I run in Pypy the pure python functions of the Julia test [
https://github.com/JuliaLang/julia/blob/master/test/perf/perf.py ]

For this function using recursion:

## fibonacci ##
def fib(n):
    if n<2:
        return n
    return fib(n-1)+fib(n-2)

Pypy 1.9 was more slow than Python 2.7 and 3.2 (and than Julia):

	Julia	Pypy	Python2.7	Python3.2
fib	0.072	3.857	1.601	        1.889

[ For see more timings:
http://stackoverflow.com/questions/10775510/julias-python-performance-example-in-pypy
]

Why recursion is so slow in Pypy 1.9 ?

Best wishes

----------
messages: 5050
nosy: diego_zea, pypy-issue
priority: performance bug
release: 1.9
status: unread
title: Pypy slower in recursion than Python2.7, Python3.2 and Julia

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1344>
________________________________________


More information about the pypy-issue mailing list