diff --git a/benchmarks/railsbench/run_once.rb b/benchmarks/railsbench/run_once.rb index 9e0cc6db..3326e587 100644 --- a/benchmarks/railsbench/run_once.rb +++ b/benchmarks/railsbench/run_once.rb @@ -12,6 +12,9 @@ puts("***RUNNING BENCHMARK***") +# Don't want stats for loading the benchmark. +UJIT.reset_stats! if defined?(UJIT.reset_stats!) + visiting_routes.each do |path| # The app mutates `env`, so we need to create one every time. env = Rack::MockRequest::env_for("http://localhost#{path}")