mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Do away with stats about rails and bundler initialization
We have the code to kick them in in one run (through the console for instance) or write a spec that keeps them under some threshold, so there is no reason why everyone must see the numbers every day.
This commit is contained in:
@@ -46,9 +46,7 @@ module SimpleBenchmark
|
||||
end
|
||||
end
|
||||
|
||||
SimpleBenchmark.bench "require 'rails/all'" do
|
||||
require 'rails/all'
|
||||
end
|
||||
require 'rails/all'
|
||||
|
||||
if defined?(Bundler)
|
||||
# lib directory has to be added to the load path so that
|
||||
@@ -65,9 +63,7 @@ if defined?(Bundler)
|
||||
|
||||
# Require the gems listed in Gemfile, including any gems
|
||||
# you've limited to :test, :development, or :production.
|
||||
SimpleBenchmark.bench 'Bundler.require' do
|
||||
Bundler.require(*Rails.groups(:opf_plugins))
|
||||
end
|
||||
Bundler.require(*Rails.groups(:opf_plugins))
|
||||
end
|
||||
|
||||
require File.dirname(__FILE__) + '/../lib/open_project/configuration'
|
||||
|
||||
@@ -30,7 +30,5 @@
|
||||
# Load the Rails application.
|
||||
require File.expand_path('../application', __FILE__)
|
||||
|
||||
SimpleBenchmark.bench 'Application.initialize!' do
|
||||
# Initialize the Rails application.
|
||||
OpenProject::Application.initialize!
|
||||
end
|
||||
# Initialize the Rails application.
|
||||
OpenProject::Application.initialize!
|
||||
|
||||
Reference in New Issue
Block a user