from runners.output_parser import OutputParser

def setup(oBenchmarkRunner, cores, phys_cores, scenario, memory):
  if cores < phys_cores:
    threads = cores
  else:
    threads = phys_cores

  oBenchmarkRunner.configure("pony", "pony/", memory, 
    ["--parseable", "--ponymaxthreads", str(threads)] + scenario)

def gnuplot(cores, files, results):
  OutputParser(files).parse(cores, results)

from runners.output_parser import OutputParser

def setup(oBenchmarkRunner, cores, phys_cores, scenario, memory):
  if cores < phys_cores:
    threads = cores
  else:
    threads = phys_cores

  oBenchmarkRunner.configure("pony", "pony/", memory, 
    ["--parseable", "--ponymaxthreads", str(threads)] + scenario)

def gnuplot(cores, files, results):
  OutputParser(files).parse(cores, results)
