def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument(
"--benchmark", help="the benchmark to run",
type=benchmark_arg, default="latency",
)
parser.add_argument(
"--count", help="the number of messages to benchmark with",
type=int, default=10000,
)
parser.add_argument(
"--use-green-threads", help="run workers with green threads rather than system threads",
action="store_true", default=False,
)
parser.add_argument(
"--use-celery", help="run the benchmark under Celery",
action="store_true", default=False,
)
return parser.parse_args()
评论列表
文章目录