diff --git a/benchmarks/erubi-rails/benchmark.rb b/benchmarks/erubi-rails/benchmark.rb index 17207ec..38c2263 100644 --- a/benchmarks/erubi-rails/benchmark.rb +++ b/benchmarks/erubi-rails/benchmark.rb @@ -20,4 +20,4 @@ # This benchmark will keep writing the production log on every request. It adds up. # Let's not fill the disk. -File.unlink(File.join(__dir__, "log/production.log")) rescue nil +File.unlink(File.join(__dir__, "log/#{ENV['RAILS_ENV']}.log")) rescue nil diff --git a/benchmarks/lobsters/benchmark.rb b/benchmarks/lobsters/benchmark.rb index 688e056..240c50c 100644 --- a/benchmarks/lobsters/benchmark.rb +++ b/benchmarks/lobsters/benchmark.rb @@ -49,3 +49,7 @@ end end end + +# This benchmark will keep writing the production log on every request. It adds up. +# Let's not fill the disk. +File.unlink(File.join(__dir__, "log/#{ENV['RAILS_ENV']}.log")) rescue nil diff --git a/benchmarks/railsbench/benchmark.rb b/benchmarks/railsbench/benchmark.rb index a80aeac..20a8302 100644 --- a/benchmarks/railsbench/benchmark.rb +++ b/benchmarks/railsbench/benchmark.rb @@ -31,3 +31,7 @@ end end end + +# This benchmark will keep writing the production log on every request. It adds up. +# Let's not fill the disk. +File.unlink(File.join(__dir__, "log/#{ENV['RAILS_ENV']}.log")) rescue nil