ndbroadbent / turbo-sprockets-rails3

Speeds up your Rails 3 assets:precompile by only recompiling changed files, and only compiling once to generate all assets
MIT License
976 stars 78 forks source link

Performance improves only with RAILS_ENV=production #93

Open AhmedAttyah opened 10 years ago

AhmedAttyah commented 10 years ago

When i tried rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile for the first time it took 0.59s user 0.03s system 0% cpu 1:37.94 total

and on the second time it took 0.58s user 0.04s system 1% cpu 48.568 total which is a great improvment.

But when i changed RAILS_ENV rake RAILS_ENV=testing RAILS_GROUPS=assets assets:precompile It took 0.57s user 0.06s system 0% cpu 1:39.35 total on the first run and 0.58s user 0.04s system 0% cpu 1:39.84 total on the second run, so no improvement happens here, Any idea why that happens? Thanks.