

def Run(benchmark_spec):
    'Run UnixBench on the target vm.\n\n  Args:\n    benchmark_spec: The benchmark specification. Contains all data that is\n        required to run the benchmark.\n\n  Returns:\n    A list of sample.Sample objects.\n  '
    vms = benchmark_spec.vms
    vm = vms[0]
    logging.info('UnixBench running on %s', vm)
    unixbench_command = 'cd {0} && UB_TMPDIR={1} ./Run'.format(unixbench.UNIXBENCH_DIR, vm.GetScratchDir())
    logging.info('Unixbench Results:')
    (stdout, _) = vm.RemoteCommand(unixbench_command, should_log=True)
    return ParseResults(stdout)

dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/unixbench_benchmark.py Run/original