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
Results after running
rm -rf public/assets tmp/cache/assets
before runs:therubyracer:
67.42s user 3.39s system 95% cpu 1:14.36 total
mini_racer:
55.45s user 3.28s system 97% cpu 59.960 total