使用 %prun 对执行时间短的函数进行分析

Profiling of function with small execution time using %prun

如何分析 python 中执行时间很短的函数?我在大多数功能中得到 0。

在它周围循环 运行 很多次,比如 10^6,所以至少需要几秒钟。

那么我用来查看时间消耗的方法是this