def run_bench(name, use_gevent=False):
    sys.stdout.write('%-32s' % name)
    sys.stdout.flush()
    Popen([sys.executable, '-mtimeit', '-s',
           'from bench_%s import run' % name,
           'from logbook.concurrency import enable_gevent',
           'enable_gevent()' if use_gevent else '',
           'run()']).wait()
dataset/ETHPy150Open getlogbook/logbook/benchmark/run.py/run_bench/original