Skip to content

Instantly share code, notes, and snippets.

@jmcnevin
Created July 26, 2012 20:35
Show Gist options
  • Save jmcnevin/3184344 to your computer and use it in GitHub Desktop.
Save jmcnevin/3184344 to your computer and use it in GitHub Desktop.
Benchmarking rails asset precompilation - Rails 3.2.6, Jruby 1.6.7.2
No compression (config.assets.compress = false):
225.51s user 17.87s system 159% cpu 2:32.16 total
With compression (config.assets.compress = true):
time EXECJS_RUNTIME=RubyRhino bundle exec rake assets:precompile
real 8m49.087s
user 12m18.868s
sys 0m22.925s
time EXECJS_RUNTIME=Node bundle exec rake assets:precompile
real 3m7.950s
user 4m10.255s
sys 0m20.141s
time EXECJS_RUNTIME=JavaScriptCore bundle exec rake assets:precompile
real 2m58.287s
user 4m8.929s
sys 0m21.708s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment