2 ms·
That is interesting. Trying your timeit code I've come to see that maybe something was wrong about how I was estimating the different performance. I was just
by ALittleLight 6y ago
That is interesting. Trying your timeit code I've come to see that maybe something was wrong about how I was estimating the different performance. I was just using cProfile and profiling the two functions with big inputs and then comparing the cumulative time results that way. When I use your timeit examples my results (Intel Core i7-6700K CPU @ 4.00GHz) are different and closer to yours (pythonic ~1% slower). Thanks for sharing.