Kapil Sachdeva | 5 Aug 17:04

Performance of Jython vs other languages/runtimes/vms

Dear Jython developers,

I came across this thread http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/

LanguageVersionLines of CodeTime per iteration (microseconds)
Java Sun JDK 1.6.0.03 10186 1.6
C++ 4.1.3 20070929 (prerelease)
(Ubuntu 4.1.2-16ubuntu2)
Compiled with optimisation -O3
86 3
Ruby ruby 1.9.0 (2008-04-14 revision 16006) [i686-linux] 63 114 89
ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux] 372 380
jruby : ruby 1.8.6 (2008-05-28 rev 6586) [i386-jruby1.1.2] 84 80
Python 2.5.1 41 225 192
Jython 2.2.1 on JRE 1.6.0.03 884 632
Groovy Groovy Version: 1.5.6 JVM: 1.6.0_03-b05 uncompiled 81 363
Compiled to bytecode and run using java 360
UpdateGroovy Version: 1.6-beta-1 JVM: 1.6.0_03 104
PHP PHP 5.2.3-1ubuntu6.3 (cli) 85 593


I understand that numbers given above pertain to a type of test/code and may not be true for certain areas but still I was wondering if the new release (Jython2.5a+) has improved in the area of performance in general.

Regards & thanks
Kapil
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
mgreenberg | 5 Aug 17:42

Re: Performance of Jython vs other languages/runtimes/vms

Kapil Sachdeva wrote:
> Dear Jython developers,
>
> I came across this thread 
>
http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/ 
>
>
<snip>
>
> I understand that numbers given above pertain to a type of test/code 
> and may not be true for certain areas but still I was wondering if the 
> new release (Jython2.5a+) has improved in the area of performance in 
> general.
This "benchmark" is pretty pointless.  He claims that its important to 
"compare apples to apples" but writing loops in python like
> for i in range(size)
is simply not a good way to write things in python.  In APL you could 
calculate the determinant of a matrix with a single operator.  So should 
you benchmark it with  "for i=0 to N, for j= 0 to M: lots of code to 
calculate determinant." or use the idiom the language supports?

All that said, performance comparisons between jython 2.2 and 2.5 and 
cpython are interesting to know, and I'm sure there'll be various 
comparisons at various more well thought out blogs as time goes on.

Marvin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Paolo | 5 Aug 19:26

Re: Performance of Jython vs other languages/runtimes/vms

Hello,
there is a comparison (response time) between Jython and execution of 
python script with Runtime.exec() ???

Paolo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane