Exemplo n.º 1
0
def run_single_benchmark(benchmark, **kwargs):
    command = 'python {}'.format(AVAILABLE_BENCHMARKS[benchmark])
    log.info('Executing command {}'.format(command))

    sprocess = subprocess.Popen(command, shell=True)
    pid = sprocess.pid

    monitor(pid, **kwargs)

    if sprocess is not None:
        sprocess.kill()
Exemplo n.º 2
0
def run_single_benchmark(benchmark, **kwargs):
    command = 'python {}'.format(AVAILABLE_BENCHMARKS[benchmark])
    log.info('Executing command {}'.format(command))

    sprocess = subprocess.Popen(command, shell=True)
    pid = sprocess.pid

    monitor(pid, **kwargs)

    if sprocess is not None:
        sprocess.kill()