DEV Community

loading...

Discussion on: Loops in Python – comparison, and performance

Collapse
f1rumors profile image
F1Rumors

Not really measuring loop performance. The while and for loops are measuring 'append' performance, and the numpy loop fails to include the overhead of constructing the numpy arrays, and getting the results out again.

That said, interesting article, certainly illustrates the idea.