You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to test the performance of my website with real data, I wont spend the time creating millions of fixture records to do this, so is there a way to test my application with a copy of my production data without having it replaced by fixtures? I've tried creating a new benchmark environment for my rails app with numerous tutorials and none have worked. Is there a way to do this?
The text was updated successfully, but these errors were encountered:
I modified the author's rake task to look like this:
# lib/tasks/test_benchmark.rake
# Use this rake task to run performance tests against the "benchmark"
# environment. See test/benchmark_helper.rb for more details.
namespace :test do
Rake::TestTask.new(:real_world_benchmark => ['test:perftest:benchmark_mode', 'test:real_world_profile']) do |t|
end
Rake::TestTask.new(:real_world_profile) do |t|
t.libs << 'test'
t.pattern = 'test/performance/**/*_test.rb'
end
end
Otherwise, most of the other setup worked as is, and I can now run bundle exec rake test:real_world_benchmark against my development database.
One other gotcha I ran into was that I had to add :benchmark to the [:development, :test] group in myGemfileand make sure that rails-perfest and ruby-prof were included.
I need to test the performance of my website with real data, I wont spend the time creating millions of fixture records to do this, so is there a way to test my application with a copy of my production data without having it replaced by fixtures? I've tried creating a new benchmark environment for my rails app with numerous tutorials and none have worked. Is there a way to do this?
The text was updated successfully, but these errors were encountered: