-
-
Save detomastah/3958841 to your computer and use it in GitHub Desktop.
rake 0.400000 0.030000 0.430000 ( 0.422317) | |
gem-patching 0.010000 0.000000 0.010000 ( 0.009515) | |
simple_form 0.020000 0.000000 0.020000 ( 0.030241) | |
kronn-has_many_polymo 0.010000 0.010000 0.020000 ( 0.014797) | |
i18n-missing_translat 0.030000 0.000000 0.030000 ( 0.021213) | |
test-unit 0.000000 0.000000 0.000000 ( 0.000027) | |
devise 0.400000 0.030000 0.430000 ( 0.444638) | |
delocalize 0.060000 0.010000 0.070000 ( 0.060652) | |
activeadmin 2.860000 0.290000 3.150000 ( 3.165178) | |
meta_search 0.000000 0.000000 0.000000 ( 0.001347) | |
nested_set 0.020000 0.000000 0.020000 ( 0.021240) | |
friendly_id 0.030000 0.000000 0.030000 ( 0.032291) | |
jquery-rails 0.000000 0.000000 0.000000 ( 0.002338) | |
sass-rails 0.240000 0.000000 0.240000 ( 0.245612) | |
compass-rails 0.800000 0.040000 0.840000 ( 0.852094) | |
compass 0.000000 0.000000 0.000000 ( 0.001400) | |
uglifier 0.350000 0.020000 0.370000 ( 0.356969) | |
coffee-rails 0.020000 0.020000 0.040000 ( 0.048463) | |
therubyracer 0.000000 0.010000 0.010000 ( 0.009095) | |
derporter 0.020000 0.010000 0.030000 ( 0.027101) | |
localized_country_sel 0.000000 0.000000 0.000000 ( 0.004272) | |
rails 0.000000 0.000000 0.000000 ( 0.001067) | |
pg 0.040000 0.010000 0.050000 ( 0.045850) | |
silent-postgres 0.020000 0.010000 0.030000 ( 0.029614) | |
silence_log_tailer 0.010000 0.000000 0.010000 ( 0.014476) | |
newrelic_rpm 1.310000 0.060000 1.370000 ( 1.370790) | |
daemons 0.130000 0.000000 0.130000 ( 0.143824) | |
delayed_job 1.380000 0.080000 1.460000 ( 1.460242) | |
delayed_job_active_re 0.040000 0.000000 0.040000 ( 0.039044) | |
whenever 0.000000 0.000000 0.000000 ( 0.000039) | |
acts_as_list 0.020000 0.000000 0.020000 ( 0.021236) | |
fastercsv 0.040000 0.000000 0.040000 ( 0.038973) | |
globalize3 0.060000 0.020000 0.080000 ( 0.077120) | |
typhoeus 0.160000 0.000000 0.160000 ( 0.159466) | |
texticle 0.010000 0.000000 0.010000 ( 0.020824) | |
carrierwave 0.150000 0.010000 0.160000 ( 0.150604) | |
mini_magick 0.020000 0.000000 0.020000 ( 0.020030) | |
kaminari 0.000000 0.000000 0.000000 ( 0.001407) | |
factory_girl_rails 0.290000 0.020000 0.310000 ( 0.309863) | |
database_cleaner 0.020000 0.010000 0.030000 ( 0.024414) | |
haml 0.000000 0.000000 0.000000 ( 0.001321) | |
formatize 0.010000 0.000000 0.010000 ( 0.010667) | |
RedCloth 0.320000 0.020000 0.340000 ( 0.336060) | |
roadie 0.930000 0.080000 1.010000 ( 1.022215) | |
nokogiri 0.000000 0.000000 0.000000 ( 0.001862) | |
bartt-ssl_requirement 0.030000 0.000000 0.030000 ( 0.024538) | |
csv_builder 0.100000 0.000000 0.100000 ( 0.105222) | |
exception_notificatio 0.360000 0.030000 0.390000 ( 0.388819) | |
backup 0.290000 0.030000 0.320000 ( 0.323163) | |
net-ssh 1.290000 0.080000 1.370000 ( 1.378848) | |
net-scp 0.220000 0.000000 0.220000 ( 0.218532) | |
dalli 0.120000 0.020000 0.140000 ( 0.139428) | |
simple_table 0.010000 0.000000 0.010000 ( 0.017142) | |
capybara 0.030000 0.000000 0.030000 ( 0.032769) | |
selenium-webdriver 0.740000 0.050000 0.790000 ( 0.786196) | |
chromedriver-helper 0.040000 0.010000 0.050000 ( 0.047428) | |
xpath 0.000000 0.000000 0.000000 ( 0.001921) | |
cucumber-rails 0.000000 0.000000 0.000000 ( 0.000017) | |
cucumber-timed_format 0.090000 0.000000 0.090000 ( 0.089834) | |
rspec-rails 0.000000 0.000000 0.000000 ( 0.003361) | |
launchy 0.000000 0.000000 0.000000 ( 0.000024) | |
mocha 0.000000 0.000000 0.000000 ( 0.000015) | |
kopflos 0.020000 0.000000 0.020000 ( 0.021754) | |
email_spec 0.840000 0.060000 0.900000 ( 0.902129) | |
timecop 0.030000 0.000000 0.030000 ( 0.027647) | |
chronic 0.280000 0.020000 0.300000 ( 0.299989) | |
pickle 0.520000 0.020000 0.540000 ( 0.541341) | |
pry 0.850000 0.090000 0.940000 ( 0.961132) | |
pry-doc 0.620000 0.030000 0.650000 ( 0.652088) | |
gist 0.040000 0.000000 0.040000 ( 0.044984) | |
spork 0.010000 0.000000 0.010000 ( 0.015247) | |
guard 0.400000 0.020000 0.420000 ( 0.418203) | |
guard-rspec 0.040000 0.000000 0.040000 ( 0.046391) | |
guard-cucumber 1.050000 0.060000 1.110000 ( 1.105980) | |
guard-spork 0.020000 0.000000 0.020000 ( 0.023374) | |
guard-bundler 0.020000 0.000000 0.020000 ( 0.031065) | |
libnotify 0.360000 0.020000 0.380000 ( 0.383171) | |
ci_reporter 0.010000 0.000000 0.010000 ( 0.008304) | |
syntax 0.020000 0.010000 0.030000 ( 0.025968) | |
fakefs 0.100000 0.010000 0.110000 ( 0.110528) | |
term-ansicolor 0.030000 0.000000 0.030000 ( 0.034936) | |
pry 0.010000 0.000000 0.010000 ( 0.002167) | |
pry-doc 0.000000 0.000000 0.000000 ( 0.001869) | |
gist 0.000000 0.000000 0.000000 ( 0.001826) | |
flog 0.470000 0.010000 0.480000 ( 0.484738) | |
brakeman 0.000000 0.000000 0.000000 ( 0.000053) | |
capistrano 0.790000 0.050000 0.840000 ( 0.843037) | |
capistrano-ext 0.010000 0.000000 0.010000 ( 0.015435) | |
capistrano_colors 0.030000 0.000000 0.030000 ( 0.033061) | |
rvm-capistrano 0.010000 0.000000 0.010000 ( 0.013998) | |
capistrano-info 0.010000 0.000000 0.010000 ( 0.004620) | |
flog 0.000000 0.000000 0.000000 ( 0.002161) |
!/usr/bin/env ruby
require 'benchmark'
REGEXPS = [
/^no such file to load -- (.+)$/i,
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i,
/^Missing API definition file in (.+)$/i,
/^cannot load such file -- (.+)$/i,
]
def pull(dep)
required_file = nil
begin
Array(dep.autorequire || dep.name).each do |file|
required_file = file
Kernel.require file
end
rescue LoadError => e
if dep.autorequire.nil? && dep.name.include?('-')
begin
namespaced_file = dep.name.gsub('-', '/')
Kernel.require namespaced_file
rescue LoadError
REGEXPS.find { |r| r =~ e.message }
raise if dep.autorequire || $1.gsub('-', '/') != namespaced_file
end
else
REGEXPS.find { |r| r =~ e.message }
raise if dep.autorequire || $1 != required_file
end
end
end
require 'rails/all'
If you would prefer gems to incur the cost of autoloading
Rails frameworks, then comment out this next line.
ActiveSupport::Autoload.eager_autoload!
$VERBOSE = nil
Benchmark.bm do |x|
Bundler.setup.dependencies.each do |dependency|
x.report(dependency.name[0..20].ljust(21)) do
pull(dependency)
end
end
end
code
results on my machine:
user system total real
rake 0.160000 0.010000 0.170000 ( 0.234966)
gem-patching 0.000000 0.000000 0.000000 ( 0.034538)
simple_form 0.010000 0.000000 0.010000 ( 0.033051)
kronn-has_many_polymo 0.020000 0.000000 0.020000 ( 0.022233)
i18n-missing_translat 0.000000 0.010000 0.010000 ( 0.009420)
test-unit 0.000000 0.000000 0.000000 ( 0.000009)
devise 0.230000 0.010000 0.240000 ( 0.382352)
delocalize 0.020000 0.010000 0.030000 ( 0.056948)
formtastic 0.010000 0.000000 0.010000 ( 0.030288)
activeadmin 1.870000 0.100000 1.970000 ( 3.317288)
meta_search 0.000000 0.000000 0.000000 ( 0.000299)
nested_set 0.030000 0.000000 0.030000 ( 0.086765)
friendly_id 0.010000 0.000000 0.010000 ( 0.401607)
jquery-rails 0.000000 0.000000 0.000000 ( 0.000482)
sass-rails 0.000000 0.000000 0.000000 ( 0.000314)
compass-rails 0.450000 0.060000 0.510000 ( 1.272052)
compass 0.000000 0.000000 0.000000 ( 0.000325)
uglifier 0.280000 0.010000 0.290000 ( 0.541171)
coffee-rails 0.030000 0.000000 0.030000 ( 0.049213)
libv8 0.030000 0.010000 0.040000 ( 0.108119)
therubyracer 0.000000 0.000000 0.000000 ( 0.002025)
derporter 0.010000 0.000000 0.010000 ( 0.034960)
localized_country_sel 0.030000 0.000000 0.030000 ( 0.045101)
rails 0.000000 0.000000 0.000000 ( 0.000308)
pg 0.020000 0.000000 0.020000 ( 0.337644)
silent-postgres 0.030000 0.000000 0.030000 ( 0.072109)
silence_log_tailer 0.000000 0.000000 0.000000 ( 0.065575)
newrelic_rpm 0.850000 0.030000 0.880000 ( 1.210848)
daemons 0.100000 0.010000 0.110000 ( 0.192778)
delayed_job 0.700000 0.040000 0.740000 ( 1.179112)
delayed_job_active_re 0.050000 0.000000 0.050000 ( 0.075445)
whenever 0.000000 0.000000 0.000000 ( 0.000013)
acts_as_list 0.000000 0.000000 0.000000 ( 0.027852)
fastercsv 0.030000 0.000000 0.030000 ( 0.040612)
globalize3 0.060000 0.010000 0.070000 ( 0.108568)
typhoeus 0.130000 0.000000 0.130000 ( 0.210149)
texticle 0.010000 0.000000 0.010000 ( 0.041970)
carrierwave 0.030000 0.000000 0.030000 ( 0.046108)
mini_magick 0.010000 0.000000 0.010000 ( 0.029889)
kaminari 0.000000 0.000000 0.000000 ( 0.000489)
factory_girl_rails 0.240000 0.010000 0.250000 ( 0.385643)
database_cleaner 0.010000 0.000000 0.010000 ( 0.049557)
haml 0.000000 0.000000 0.000000 ( 0.000408)
formatize 0.030000 0.000000 0.030000 ( 0.047439)
RedCloth 0.140000 0.010000 0.150000 ( 0.248612)
roadie 0.600000 0.040000 0.640000 ( 0.907110)
nokogiri 0.000000 0.000000 0.000000 ( 0.001393)
bartt-ssl_requirement 0.010000 0.000000 0.010000 ( 0.028605)
csv_builder 0.100000 0.010000 0.110000 ( 0.123238)
exception_notificatio 0.230000 0.010000 0.240000 ( 0.347296)
backup 0.230000 0.020000 0.250000 ( 0.390656)
net-ssh 0.780000 0.050000 0.830000 ( 1.031108)
net-scp 0.040000 0.000000 0.040000 ( 0.079858)
dalli 0.100000 0.000000 0.100000 ( 0.125088)
simple_table 0.040000 0.000000 0.040000 ( 0.045295)
capybara 0.000000 0.000000 0.000000 ( 0.040903)
selenium-webdriver 0.570000 0.030000 0.600000 ( 0.822900)
chromedriver-helper 0.040000 0.010000 0.050000 ( 0.073946)
xpath 0.000000 0.000000 0.000000 ( 0.000669)
cucumber-rails 0.000000 0.000000 0.000000 ( 0.000005)
cucumber-timed_format 0.060000 0.000000 0.060000 ( 0.125302)
rspec-rails 0.000000 0.000000 0.000000 ( 0.008581)
launchy 0.000000 0.000000 0.000000 ( 0.000010)
mocha 0.000000 0.000000 0.000000 ( 0.000003)
kopflos 0.010000 0.000000 0.010000 ( 0.022989)
email_spec 0.650000 0.020000 0.670000 ( 1.010500)
timecop 0.010000 0.000000 0.010000 ( 0.051430)
chronic 0.250000 0.010000 0.260000 ( 0.310609)
pickle 0.350000 0.020000 0.370000 ( 0.474699)
pry 0.560000 0.020000 0.580000 ( 0.879391)
pry-doc 0.630000 0.030000 0.660000 ( 0.947687)
gist 0.040000 0.000000 0.040000 ( 0.066846)
spork 0.010000 0.000000 0.010000 ( 0.018130)
guard 0.400000 0.010000 0.410000 ( 0.547259)
guard-rspec 0.050000 0.000000 0.050000 ( 0.065540)
guard-cucumber 0.710000 0.030000 0.740000 ( 0.976615)
guard-spork 0.050000 0.010000 0.060000 ( 0.070166)
guard-bundler 0.010000 0.000000 0.010000 ( 0.007109)
libnotify 0.180000 0.010000 0.190000 ( 0.277005)
ci_reporter 0.000000 0.000000 0.000000 ( 0.002603)
syntax 0.040000 0.000000 0.040000 ( 0.094201)
fakefs 0.070000 0.000000 0.070000 ( 0.104516)
term-ansicolor 0.040000 0.000000 0.040000 ( 0.062685)
pry 0.000000 0.000000 0.000000 ( 0.000661)
pry-doc 0.000000 0.000000 0.000000 ( 0.000351)
gist 0.000000 0.000000 0.000000 ( 0.000310)
flog 0.170000 0.000000 0.170000 ( 0.236004)
brakeman 0.000000 0.000000 0.000000 ( 0.000010)
capistrano 0.610000 0.030000 0.640000 ( 0.936806)
capistrano-ext 0.040000 0.000000 0.040000 ( 0.046218)
capistrano_colors 0.010000 0.000000 0.010000 ( 0.028566)
rvm-capistrano 0.000000 0.000000 0.000000 ( 0.027259)
capistrano-info 0.050000 0.000000 0.050000 ( 0.049594)
flog 0.000000 0.000000 0.000000 ( 0.000810)
flog? it doesn't even work with 1.9...
need codez for getting these results!