{% block body %}DEFAULT BODY CONTENT{% endblock %}
# require "rubygems" # require "ruby-prof" ENV["RAILS_ENV"] ||= 'test' require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # require File.dirname(__FILE__) + "/../config/application.rb" # Mongoid.configure do |config| # config.master = Mongo::Connection.new.db("locomotive_perf_test") # end OPTIMIZATION = false %w{sites pages layouts}.each do |collection| Mongoid.master.collection(collection).drop end puts "Starting benchmark..." site = Site.create :name => 'Benchmark Website', :subdomain => 'benchmark' layout_with_sidebar = site.layouts.create :name => 'with_sidebar', :value => %{