Did you do this profiling in NetBeans? I've never profiled with it before but I'd really like to take a look at this. Are there any wiki pages for how to profile a ruby script via JRuby? Joe
On Dec 3, 2007 10:14 AM, Vladimir Sizikov (JIRA) <[EMAIL PROTECTED]> wrote: > (Performance) JRuby is 10x slower than MRI on Time objects creation > ------------------------------------------------------------------- > > Key: JRUBY-1660 > URL: http://jira.codehaus.org/browse/JRUBY-1660 > Project: JRuby > Issue Type: Bug > Components: Core Classes/Modules > Environment: JRuby 1.1b1, latest trunk > Reporter: Vladimir Sizikov > Attachments: bench_time_create.rb, ruby_time_creation_times.png > > The attached benchmark (bench_time_create.rb) shows that JRuby is much > slower than MRI: > > JRuby: > > #>jruby -J-server bench_time_create.rb > Loaded suite bench_time_create > Started > Time.at_1000000 > 6.572000 0.000000 6.572000 ( 6.572000) > 5.687000 0.000000 5.687000 ( 5.687000) > 5.254000 0.000000 5.254000 ( 5.254000) > 5.496000 0.000000 5.496000 ( 5.496000) > 4.741000 0.000000 4.741000 ( 4.741000) > > .Time.at_10000000 > 50.130000 0.000000 50.130000 ( 50.130000) > 50.666000 0.000000 50.666000 ( 50.666000) > 49.087000 0.000000 49.087000 ( 49.086000) > 52.064000 0.000000 52.064000 ( 52.064000) > 50.016000 0.000000 50.016000 ( 50.016000) > . > Finished in 279.735 seconds. > > MRI: > #>ruby bench_time_create.rb > Loaded suite bench_time_create > Started > Time.at_1000000 > 0.600000 0.110000 0.710000 ( 0.708770) > 0.560000 0.090000 0.650000 ( 0.654781) > 0.590000 0.080000 0.670000 ( 0.663018) > 0.560000 0.100000 0.660000 ( 0.663717) > 0.640000 0.090000 0.730000 ( 0.726604) > > .Time.at_10000000 > 6.190000 0.900000 7.090000 ( 7.108947) > 5.770000 0.820000 6.590000 ( 6.627773) > 5.800000 0.730000 6.530000 ( 6.558091) > 5.780000 0.820000 6.600000 ( 6.624010) > 6.190000 0.910000 7.100000 ( 7.124799) > . > Finished in 37.466152 seconds. > > Take a look at the attached image for profile info. Most of the time JRuby > spends in getLocalTimeZone() method. > > > -- > 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 > >
