Posts Tagged ‘algorithm’

Test the speed of your code interactively in IPython

Sunday, April 13th, 2008

So you’ve come up with a couple of ways to solve a problem in code. But how do you decide which way is the best? One criterion to decide on is to use the one that makes the most sense to you. Another criterion is to use the version that is fastest. Here’s how to quickly determine which way is fastest using the interactive interpreter IPython. (more…)