From: Timo-Pekka <py...@ik...> - 2001-06-21 18:58:47
|
Ype Kingma wrote: > >I'm researching Forte For Java 3.0 compatibility with JDK 1.4 (currently beta). > >I was wondering if you have any information about the compatibility of Jython > >2.0 with JDK 1.4? Any known issue or limitation? > > A few weeks ago there was a post from someone who had Jython > running under java 1.4 _faster_ than CPython on the same machine. > You could have a look in the list archives. I did the test and to be fair, pystone which I used, ran under _server_ vm and it took around 15 minutes to complete. With much fewer iterations CPython won with about 1000 pystones per second. Hotspot server vm is very good, but it does not suit for short running applications and need time to optimize the code to the fullest. JDK 1.4 isn't very stable with Jython :-( Although pystone ran perfectly, I couldn't get pybench running more than about half of the tests without segfaults and if I remember correctly, there were even more problems with the client vm than server vm. Pybench is quite interesting benchmark, because it shows clearly that Jython and CPython has their own strengths and weaknesses, and differences can be quite big for both directions. For example Jython's exception handling seems to be something like 30 (IIRC) times faster than CPython's, but on other areas CPython wins with large margins. But, there is some work to be done before the JDK 1.4/Jython 2.x combination is really usable, but it looks very promising. -- Pege |