def benchmark_getpid():
timer = timeit.Timer(getpid)
result = timer.repeat(repeat=REPEAT, number=NUMBER)
print("## getpid wrapper benchmark: {} loops ##".format(NUMBER))
print("- getpid execution time: {:8.6f}".format(min(result)))
评论列表
文章目录