Skip to content

Instantly share code, notes, and snippets.

@jgaskins
Created July 26, 2013 16:46
Show Gist options
  • Save jgaskins/6090383 to your computer and use it in GitHub Desktop.
Save jgaskins/6090383 to your computer and use it in GitHub Desktop.
Comparing runtime of `rake assets:precompile` on Rails 3.2.14 vs Rails 4.0.0 Both use Twitter Bootstrap CSS and JS, both have empty tmp directories.
➜ rails_three time RAILS_ENV=production rake assets:precompile
/Users/jamie/.rvm/rubies/ruby-2.0.0-p247/bin/ruby /Users/jamie/.rvm/gems/ruby-2.0.0-p247@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
RAILS_ENV=production rake assets:precompile 20.75s user 1.82s system 93% cpu 24.089 total
➜ rails_four time RAILS_ENV=production rake assets:precompile
I, [2013-07-26T12:43:44.761832 #39208] INFO -- : Writing /Users/jamie/Code/rails_four/public/assets/application-f2998995e87873f82e18c818b2d3fb69.js
I, [2013-07-26T12:43:48.981980 #39208] INFO -- : Writing /Users/jamie/Code/rails_four/public/assets/application-4201461dc7eb38d997e902660f8d46ff.css
I, [2013-07-26T12:43:48.990896 #39208] INFO -- : Writing /Users/jamie/Code/rails_four/public/assets/glyphicons-halflings-white-2fa53df59ca25ee50f59f971c0c9175d.png
I, [2013-07-26T12:43:48.993618 #39208] INFO -- : Writing /Users/jamie/Code/rails_four/public/assets/glyphicons-halflings-4e5b89324f1ac987ddf6835ef51f5fe9.png
RAILS_ENV=production rake assets:precompile 9.83s user 0.86s system 93% cpu 11.436 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment