def get_benchproc_results(clargs, **kwargs):
    p = subprocess.Popen(
        clargs, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
    stdout, stderr = p.communicate()
    if p.returncode != 0:
        sys.stderr.write(' '.join(clargs) % 'Failed to benchmark: %s\n')
        sys.stderr.write(stderr)
        return []
    results = stdout_to_results(stdout)
    for br in results:
        print(justify_benchresult(br))
    return results
dataset/ETHPy150Open rgalanakis/goless/write_benchresults.py/get_benchproc_results/swapped operands of `%`