项目欧拉和其他编码竞赛通常有最长的运行时间或人们吹嘘他们的特定解决方案运行的速度.使用python,有时候这些方法有点像kludgey - 即添加时间码__main__.
__main__
分析python程序运行多长时间的好方法是什么?
python performance profiling time-complexity
performance ×1
profiling ×1
python ×1
time-complexity ×1