Skip to content

Instantly share code, notes, and snippets.

@chancancode
Created November 21, 2013 06:30
Show Gist options
  • Save chancancode/7576923 to your computer and use it in GitHub Desktop.
Save chancancode/7576923 to your computer and use it in GitHub Desktop.
bundle install
rm -rf public/assets
rm -rf tmp/*
export RAILS_ENV=production
export RAILS_GROUP=assets
/usr/bin/time rake assets:precompile
/usr/bin/time rake assets:precompile
/usr/bin/time rake assets:precompile
4-0-1:
13.13 real 11.80 user 1.29 sys
12.88 real 11.55 user 1.30 sys
13.34 real 11.96 user 1.34 sys
Master:
13.70 real 12.33 user 1.34 sys
13.83 real 12.34 user 1.47 sys
13.70 real 12.22 user 1.44 sys
My patch:
13.12 real 11.74 user 1.30 sys
13.73 real 12.28 user 1.37 sys
13.56 real 12.09 user 1.38 sys
git co .
git clean -f
git co master
rm -rf public/assets/*
rm -rf tmp/*
export RAILS_ENV=
export RAILS_GROUP=
printf "\ngem 'facter'" >> Gemfile
ruby /Users/godfrey/Projects/oss/discourse/script/bench.rb
4-0-1:
Your Results: (note for timings- percentile is first, duration is second in millisecs)
---
home_page:
50: 984
75: 996
90: 1005
99: 1091
topic_page:
50: 1353
75: 1368
90: 1385
99: 1524
home_page_admin:
50: 1229
75: 1239
90: 1254
99: 1411
topic_page_admin:
50: 1920
75: 1934
90: 1971
99: 2069
timings:
load_rails: 4548
ruby-version: 2.0.0-p195
rails4?: false
architecture: x86_64
operatingsystem: Darwin
kernelversion: 12.5.0
memorysize: 16.00 GB
virtual: physical
Master:
Your Results: (note for timings- percentile is first, duration is second in millisecs)
---
home_page:
50: 992
75: 999
90: 1009
99: 1080
topic_page:
50: 992
75: 999
90: 1009
99: 1080
home_page_admin:
50: 1255
75: 1267
90: 1278
99: 1339
topic_page_admin:
50: 1255
75: 1267
90: 1278
99: 1339
timings:
load_rails: 5185
ruby-version: 2.0.0-p195
rails4?: false
architecture: x86_64
operatingsystem: Darwin
kernelversion: 12.5.0
memorysize: 16.00 GB
virtual: physical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment