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
Before (therubracer)
21.35s user 6.19s system 96% cpu 28.639 total
After (mini_racer)
4.67s user 1.82s system 84% cpu 7.663 total