Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Running rake tasks really slow #874

Closed
catsby opened this Issue May 13, 2011 · 3 comments

Comments

Projects
None yet
3 participants

catsby commented May 13, 2011

@evanphx We exchanged tweets a few days back about Rubinius running tests really slow for me. Below is a summary of what I was doing and the results I get

    git clone git://github.com/mojombo/jekyll.git
    cd jekyll

    $ rvm use 1.9.2-head
    Using /Users/clint/Developer/.rvm/gems/ruby-1.9.2-head
    $ bundle install
    ...
    $ rake test
    Started
    .......................................................................................................................
    Finished in 17.960213 seconds.

    119 tests, 209 assertions, 0 failures, 0 errors, 0 skips

    /******/

    $ rvm use rbx-head
    Using /Users/clint/Developer/.rvm/gems/rbx-head
    $ bundle install
    ...
    $ rake test
    Started
    .......................................................................................................................
    Finished in 42.139349 seconds.

    119 tests, 209 assertions, 0 failures, 0 errors

    /******/

    $ rvm use rbx-head-nhydra
    Using /Users/clint/Developer/.rvm/gems/rbx-head-nhydra
    $ bundle install
    ...
    $ rake test
    Started
    ..........................................................................................................F............
    Finished in 46.16122 seconds.

When using Rubinius you'll probably get a failed test after you've ran it once, one of Jekyll's test is ensuring only certain files are generated and it sees the ".rbc" file(s) and fails

Member

steveklabnik commented Oct 12, 2011

I just ran this now. RBX:

$ rake test
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
/Users/steveklabnik/.rvm/rubies/rbx-head/bin/rbx -I"lib:lib:test" -I"/Users/steveklabnik/.rvm/gems/rbx-head/gems/rake-0.9.2/lib" "/Users/steveklabnik/.rvm/gems/rbx-head/gems/rake-0.9.2/lib/rake/rake_test_loader.rb" "test/**/test_*.rb" 
Loaded suite /Users/steveklabnik/.rvm/gems/rbx-head/gems/rake-0.9.2/lib/rake/rake_test_loader
Started
................................................................................................................................
Finished in 55.929548 seconds.

128 tests, 219 assertions, 0 failures, 0 errors

1.9.2:

$ rake test
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
/Users/steveklabnik/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -I"lib:lib:test" -I"/Users/steveklabnik/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2/lib" "/Users/steveklabnik/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb" "test/**/test_*.rb" 
Loaded suite /Users/steveklabnik/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2/lib/rake/rake_test_loader
Started
................................................................................................................................
Finished in 17.666927 seconds.

128 tests, 219 assertions, 0 failures, 0 errors, 0 skips

Test run options: --seed 8892

So, yeah. Still significantly slow.

Owner

dbussink commented Feb 22, 2012

I just ran this again and for me it ran pretty close, 14 seconds on Rubinius and 10 seconds on 1.9.3.

One of the reasons could be that Rubinius performance related fixes where incorporated into RedCloth which could have quite dramatic effects.

Therefore closing this one now, since the big difference is not there anymore.

@dbussink dbussink closed this Feb 22, 2012

catsby commented Feb 23, 2012

I'm down to 24 seconds in Rubinius and 16 in 1.9.3, so yes, much improvement. Somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment