Forum: IronRuby Installing gems extremely slow?

Posted by Per Lundberg (Guest)
on 2012-04-30 22:11
(Received via mailing list)
Hi!

Is it just me, or is installing gems with IronRuby extremely slow? (at
least compared to other Ruby platforms, like JRuby)

It seems to pretty much halt here:

C:\Work\git\rayak\examples\sinatra>igem install --verbose sinatra
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/specs.4.8.gz
200 OK

After quite some time, it proceeded and went on with the install as
expected.

With JRuby 1.6.7 it looks like this. Very similar as with the above, but 
a
*lot* faster. Is there a significant performance bottleneck with the
current IronRuby, or is it caused by some form of timeout or similar?

C:\Work\git\rayak\examples\sinatra>gem install --verbose sinatra
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/specs.4.8.gz
200 OK
Installing gem sinatra-1.3.2
Downloading gem sinatra-1.3.2.gem
GET http://rubygems.org/gems/sinatra-1.3.2.gem
302 Moved Temporarily
GET http://production.cf.rubygems.org/gems/sinatra-1.3.2.gem
Fetching: sinatra-1.3.2.gem (100%)
200 OK
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/.yardopts
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/AUTHORS
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/CHANGES
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/Gemfile
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/LICENSE
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.de.rdoc
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.es.rdoc
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.fr.rdoc
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.hu.rdoc
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.jp.rdoc
[ snip ]

Best regards,
Per
Posted by James Schementi (jschementi)
on 2012-04-30 22:15
(Received via mailing list)
Try running with the --no-ri and --no-rdoc flags, I suspect generating
documentation is what is taking the time.

~Jimmy


On Apr 30, 2012, at 4:10 PM, Per Lundberg <perlun@gmail.com> wrote:

Hi!

Is it just me, or is installing gems with IronRuby extremely slow? (at
least compared to other Ruby platforms, like JRuby)

It seems to pretty much halt here:

C:\Work\git\rayak\examples\sinatra>igem install --verbose sinatra
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/specs.4.8.gz
200 OK

After quite some time, it proceeded and went on with the install as
expected.

With JRuby 1.6.7 it looks like this. Very similar as with the above, but 
a
*lot* faster. Is there a significant performance bottleneck with the
current IronRuby, or is it caused by some form of timeout or similar?

C:\Work\git\rayak\examples\sinatra>gem install --verbose sinatra
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/specs.4.8.gz
200 OK
Installing gem sinatra-1.3.2
Downloading gem sinatra-1.3.2.gem
GET http://rubygems.org/gems/sinatra-1.3.2.gem
302 Moved Temporarily
GET http://production.cf.rubygems.org/gems/sinatra-1.3.2.gem
Fetching: sinatra-1.3.2.gem (100%)
200 OK
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/.yardopts
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/AUTHORS
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/CHANGES
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/Gemfile
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/LICENSE
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.de.rdoc
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.es.rdoc
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.fr.rdoc
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.hu.rdoc
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.jp.rdoc
[ snip ]

Best regards,
Per
Posted by Per Lundberg (Guest)
on 2012-04-30 22:19
(Received via mailing list)
Hehe, that was a prompt reply. :-)

Generating the rdoc is taking some time yes, but this was actually 
before
it even managed to start downloading the .gem file. It's sitting and
generating up the rdocs right now as we're speaking...

What is your general perception of IronRuby, performance-wise? 
Comparable
to other platforms or lagging slightly behind?

Best regards,
Per
Posted by Eduardo Blumenfeld (eblumenfeld)
on 2012-05-01 23:35
Per,

I find it quite fast, and the .net integration fascinating.

Eduardo

Per Lundberg wrote in post #1059008:
> Hehe, that was a prompt reply. :-)
>
> Generating the rdoc is taking some time yes, but this was actually
> before
> it even managed to start downloading the .gem file. It's sitting and
> generating up the rdocs right now as we're speaking...
>
> What is your general perception of IronRuby, performance-wise?
> Comparable
> to other platforms or lagging slightly behind?
>
> Best regards,
> Per
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.