r/ProgrammerAnimemes • • Aug 10 '19

Make your code Elegant

Post image
1.2k Upvotes

41 comments sorted by

View all comments

Show parent comment

2

u/SpaceshipOperations Aug 14 '19 edited Aug 21 '19

Update: Benchmark results!

>>> from time import time
>>> t1 = time(); x = square(10000); t2 = time(); t2-t1;
106.44967293739319

Time to buy a new CPU.