class BenchmarkDriver::Runner::RubyStdout

def run_job(job, exec:)

Run a job and return what BenchmarkDriver::Repeater.with_repeat takes.
def run_job(job, exec:)
  stdout = with_chdir(job.working_directory) do
    with_ruby_prefix(exec) { execute(*exec.command, *job.command) }
  end
  script = StdoutToMetrics.new(
    stdout: stdout,
    value_from_stdout: job.value_from_stdout,
    environment_from_stdout: job.environment_from_stdout,
  )
  [script.value, script.environment]
rescue CommandFailure => e
  $stderr.puts("\n```\n#{e.message}```\n")
  [BenchmarkDriver::Result::ERROR, {}]
end