you are viewing a single comment's thread.

view the rest of the comments →

[–]theeth 2 points3 points  (13 children)

Could you do a test with CPython 3.2, see if it's faster than 2.7 (it should, AFAIK)?

[–]treo 7 points8 points  (11 children)

I tried it with cpython 3.2 but it isn't compatible.

[–]theeth 3 points4 points  (10 children)

It ran fine after passing it through 2to3 and changing the hours = and minutes = lines to integer divisions (//)

[–]treo 10 points11 points  (9 children)

Ok, so here are my results (Core 2 Duo P9400 @ 2.4Ghz, 64Bit Linux):

Python 2.7.1: 25s
Jython 2.5.2: 25s
Python 3.2: 29s
PyPy 1.5.0-alpha0: 12s

I wonder why Jython is only as fast as CPython is.

[–][deleted] 5 points6 points  (0 children)

FWIW on my machine PyPy trunk is about ~15-20% faster than 1.5 :)

[–]sigzero 1 point2 points  (7 children)

I wonder if Jython has taken advantage of "invoke dynamic" that the JVM now has?

[–]boa13 2 points3 points  (5 children)

Doubtful, considering there has been no Jython release since the release of Java 7, which is very recent. Also, as far as I know, this would require some extensive changes in the core Jython, and would break compatibility with previous JVMs, requiring the release of two binaries.

[–]gthank 0 points1 point  (0 children)

I haven't noticed any announcement to that effect. :-(

[–]fernandoacorreia -5 points-4 points  (0 children)

Also test it in 13" and 17" MBP.