How to benchmark a single function call in Python?
How to benchmark a single function call in Python? Question: How to interactively (micro)benchmark a code expression in Python (i.e. the equivalent of @btime/@benchmark in Julia) ? I would like to benchmark interactively an expression (a function call), where the number of times this expression should be evaluated depends on its computational cost / variance…. …