JRuby slower (25-100%) than Ruby 1.9 running prawns png_type_6.rb benchmark
---------------------------------------------------------------------------
Key: JRUBY-3355
URL: http://jira.codehaus.org/browse/JRUBY-3355
Project: JRuby
Issue Type: Bug
Components: Performance
Environment: Mac OS X 10.5.6, JRuby r8964
Reporter: Stephen Bannasch
Fix For: JRuby 1.2
Setup the prawn environment:
{code}
jruby -S gem install test-spec pdf-reader mocha
git clone git://github.com/sandal/prawn.git
cd prawn
git submodule init
git submodule update
cd bench
{code}
Now run the png_type_6.rb benchmark in ruby19, and jruby (Java 1.5, 1.6, and
1.7 listed below):
Ruby 1.9 trunk:
{code}
[bench (master)]$ /Users/stephen/dev/ruby/builds/mri/ruby_1_9_trunk/bin/ruby
png_type_6.rb
Rehearsal ----------------------------------------------
PNG Type 6 6.880000 0.080000 6.960000 ( 6.977255)
------------------------------------- total: 6.960000sec
user system total real
PNG Type 6 5.230000 0.060000 5.290000 ( 5.317997)
{code}
JRuby r8964, Java 1.5
{code}
[bench (master)]$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
[bench (master)]$ jruby png_type_6.rb
Rehearsal ----------------------------------------------
PNG Type 6 13.148000 0.000000 13.148000 ( 13.147882)
------------------------------------ total: 13.148000sec
user system total real
PNG Type 6 11.528000 0.000000 11.528000 ( 11.528404)
{code}
JRuby r8964, Java 1.6
{code}
[bench (master)]$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
[bench (master)]$ jruby png_type_6.rb
Rehearsal ----------------------------------------------
PNG Type 6 9.540000 0.000000 9.540000 ( 9.539834)
------------------------------------- total: 9.540000sec
user system total real
PNG Type 6 7.692000 0.000000 7.692000 ( 7.692255)
{code}
JRuby r8964, Java 1.7
{code}
[bench (master)]$ java -version
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-stephen_2009_01_25_23_54-b00)
OpenJDK Server VM (build 14.0-b10, mixed mode)
[bench (master)]$ jruby png_type_6.rb
Rehearsal ----------------------------------------------
PNG Type 6 13.892000 0.000000 13.892000 ( 13.891723)
------------------------------------ total: 13.892000sec
user system total real
PNG Type 6 12.571000 0.000000 12.571000 ( 12.570177)
{code}
--
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