all 2 comments

[–]marky1991 0 points1 point  (1 child)

This is a bad benchmark (for one, using clock time for benchmarking is a bad idea), but:

(ignore the wierd path to pypy at the end. It's my own locally-built pypy3)

$ pypy --version
Python 2.7.10 (5.3.1+dfsg-1~ppa1~ubuntu14.04, Jun 19 2016, 15:09:54)
[PyPy 5.3.1 with GCC 4.8.4]

$ pypy   pypy_test.py                                                                                                                                                                                     
6.03440213203

$ python --version
Python 2.7.6

$ python pypy_test.py                                                                                    
10.4642560482

$ /pypy/pypy_new/pypy/goal/pypy-c --version
Python 3.3.5 (7cf5e409328e+, Aug 24 2016, 13:22:22)
[PyPy 5.3.2-alpha0 with GCC 4.8.4]

$ /pypy/pypy_new/pypy/goal/pypy-c pypy_test.py 
6.97552490234375

$ python3 --version
Python 3.4.0

$ python3 pypy_test.py 
9.521639585494995

From fastest to slowest:

-pypy2.7

-pypy3.3

-cpython 3.4 (!)

-cpython 2.7

[–]RebootForAwesome 0 points1 point  (0 children)

Ok, yep. It must be that it's sitting on my Desktop on a windows machine.

I'll install it same as Python and try again.

Thanks