Also, this might be due to the fact that an external greedy process in running during your test. To circumvent this possibility, you can use %timeit instead of %time: your test will be run several times and will select the fastest one.