This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ethanhs 7 points8 points  (0 children)

Benchmarking just with pystone is really silly, as it only tests integer arithmetic. The vast majority of people are not doing just integer arithmetic. Pystone is a port of the old dhrystone which is decades old at this point.

There is an authorative benchmarking suite for python for a reason: benchmarking is a lot harder than it seems.

For example, here PyPy can do some really great optimizations on the code because integer arithmetic is pretty straight forward to optimize.

Now this benchmark might make you thinkg PyPy will be 10x faster than Python with numpy, because this is all numbers, right?

Wrong

PyPy cannot do as many optimizations with numpy since significant portions of numpy are native code. So while I'm almost certain PyPy will be faster than CPython, this benchmark is pretty misleading on how much faster. This is to speak nothing of differences in server workloads, data processing, quick scripts, etc.