Slow script performance using jruby in ant
------------------------------------------
Key: JRUBY-4207
URL: http://jira.codehaus.org/browse/JRUBY-4207
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.4
Environment: Win XP 32bit, jdk 1.6.0_14, Ant 1.7.1
AIX 5 32bit, J2RE 1.6.0 IBM J9 2.4 AIX, Ant 1.7.1
Reporter: Gilbert Rebhan
when using jruby in ant via <script> task the performance is significant slower
compared to other languages running with BSF, f.e. beanshell or rhino
Using jruby.jar or jruby-complete.jar is equal and also older versions of jruby
(1.2.0, 1.3.0, 1.4.0RC1 ..) show similar behaviour.
Problem seems to be the loading/initialization, as problem occurs already with
empty <script> targets
Example build.xml with empty <script> tasks =
<project name="JrubyInAntBenchmark">
<typedef resource="net/sf/antcontrib/antlib.xml" />
<stopwatch name="bsh" action="start"/>
<script language="beanshell"></script>
<stopwatch name="bsh" action="total"/>
<stopwatch name="rhino" action="start"/>
<script language="javascript"></script>
<stopwatch name="rhino" action="total"/>
<stopwatch name="jruby" action="start"/>
<script language="ruby"></script>
<stopwatch name="jruby" action="total"/>
</project>
on WinXP with jruby-complete-1.4.0.jar =
[stopwatch] [bsh: 0.062 sec]
[stopwatch] [rhino: 0.094 sec]
[stopwatch] [jruby: 1.656 sec]
on WinXP with jruby.jar =
[stopwatch] [bsh: 0.047 sec]
[stopwatch] [rhino: 0.109 sec]
[stopwatch] [jruby: 1.531 sec]
on AIX with jruby-complete-1.4.0.jar=
[stopwatch] [bsh: 0.104 sec]
[stopwatch] [rhino: 0.141 sec]
[stopwatch] [jruby: 2.394 sec]
Regards, Gilbert
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email