class Gladys::Actions::Benchmark

def run(time:, threads:)

def run(time:, threads:)
  @time = time
  @threads = threads
  optimize_database
  @context.preload_inputs
  @started_at = Time.now + WARM_UP_TIME
  @metrics = invoke(:benchmark, threads: @threads, should_stop: lambda do
    Time.now >= (@started_at + @time) + COOL_DOWN_TIME
  end)
end