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

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.


sort by: page size:

Pypy is slower than v8?

Well now we have to wait for a v8 equivalent for python. I guess pypy doesn't really make python that much faster, can it be faster?

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.

PyPy is much faster than CPython.

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

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

PyPy is often faster than v8, so a more complete benchmark should include it.

Also PyPy, which is generally about as fast as v8 on benchmarks.

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

There are python implementations that are much faster, and compare well to v8 speed (most notably, pypy)

I suspect Node is still quite a lot faster than Pypy because the former benefits from v8 which is a well-funded project which doesn’t have to worry about compatibility with the sprawling C-extension interface that CPython exposes.

PyPy in general has much better performance than CPython.

I doubt they'll ever get even as fast as CPython for CPython API usage. What allows PyPy to run Python code fast is the same thing that makes the CPython API slow: The two implementations look nothing alike on the inside. The API is too leaky an abstraction to implement efficiently on anything but CPython.

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

I am pretty sure that is 2x slower than PyPy not CPython. So it would basically end up being over 2x faster than CPython.

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

That would indeed be fantastic. V8 has had so much optimization whereas CPython has had very little of it, though Pypy deserves a mention here. They've been doing fantastic work, but I guess there's always the curse of the reference implementation being the popular one.

I didn't hear about PyPy before, but I think you're doing great work.

I would be interested in seeing benchmarks where PyPy is compared with more recent versions of CPython. https://www.pypy.org/ currently shows a comparison with CPython 3.7, but recent releases of CPython (3.11+) put a lot of effort into performance which is important to take into account.


I think using Pypy instead of CPython will give you several times the performance boost as any of this.
next

Legal | privacy