MiniRacer https://github.com/discourse/mini_racer is ready for testing.
Can you help out measuring how it improves performance for rake assets:precompile in your app?
- Run:
rm -fr public/assets
RAILS_ENV=production time bundle exec rake assets:precompile
- Edit
Gemfile. Removetherubyracer, add:
gem 'execjs', github: 'rails/execjs'
gem 'mini_racer'
-
bundle install -
Run:
rm -fr public/assets
RAILS_ENV=production time bundle exec rake assets:precompile
Are you guys deleting the sprockets cache (tmp/assets) between runs? I got several times speed up at first too but then after doing that the speed up was reduced to 25% (still good, but not as unbelievable as I first thought).