re: Loops in Python – comparison, and performance VIEW POST

FULL DISCUSSION
 

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.

code of conduct - report abuse