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
Rails 4.1.15
using nodejs 4.0.0
76.85s user 19.09s system 86% cpu 1:51.19 totalusing mini_racer
14.65s user 6.44s system 68% cpu 30.843 total🎉