Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

PyPy is much faster than CPython.


sort by: page size:

FWIW PyPy is signfificantly faster than CPython in a lot of tasks.

Interestingly, cPython is twice as fast as PyPy for me.

PyPy in general has much better performance than CPython.

Caveat: pypy is not _consistently_ faster than CPython. There are cases where it is slower, sometimes even by a large margin.

I'm not sure why you think pypy is slower than cpython "at pretty much everything" after looking at this site. Out of the 21 benchmarks given, 10 are 2x or more faster than cpython, 10 are between 2x faster and 2x slower and only 1 is more than 2x slower.

[citation needed] You're mostly talking nonsense. PyPy is usually 20-100x faster on the numeric workloads I measured than CPython, while the difference is significantly smaller on non-numeric workloads. The difference between C++ and CPython is also smaller.

PyPy is actually very fast, ~10x faster than standard python.

Pypy is considerably faster than CPython, so I don't think Python is doomed to be slower?

vanilla CPython to be precise. PyPy is drastically faster on stuff like that.

pypy has quicker start up than CPython and also has a JIT. They're working on interesting memory optimisations too.

PyPy is a much-faster drop-in replacement for CPython. I wish more people would use it.

Is it still true that PyPy is both faster and slower than CPython - faster when restricted to pure Python but slower than CPython using C extensions?

For algorithmic code PyPy can provide substantial speedups over CPython. I've used PyPy in code fingerprinting large bioinformatics files and seen big speedups. I've also tried porting a webapp processing JSON from CPython and seen no perceptible speedup.

PyPy is only twice as slow as v8 and is about an order of magnitude faster than CPython. It is quite an achievement. I would be very happy if CPython could get this performance but I doubt.

Pypy JIT is way faster than CPython

It's about 2x faster in regular CPython 2.7 on my machine. In pypy it is actually way slower than your original one.

In many cases, pypy cannot be used, because it's not compatible with all the libraries.


Except even that's not true, if you consider that, canonically, "python" means CPython -- and PyPy is faster!

PyPy was never able to get fast enough to replace CPython in spite of its lack of compatible C API. CPython is trying to move fast without breaking C API, and 2--9% improvement is in fact very encouraging for that and other reasons (see my other comment).

CPython is of course slow. PyPy is fast-ish (and higher memory).

CPython is trivially easy to integrate with fast C though.

next

Legal | privacy