Advent of Code 2016: Day 1 "No Time for a Taxicab"
Before starting to make timing comparisons, it's important to check that the optimized code is correct. It's no good being a hundred times faster if you get the wrong answer! So let's look at the results of the two functions on a simple test case:

&gt;&gt;&gt; instructions = 'L1, L1, L1, L1, R1, R1, R1, R1'
&gt;&gt;&gt; solve_set(instructions)
0.0
&gt;&gt;&gt; solve_bisect(instructions)
1.0


Oops.