mikeizbicki / cmc-csci046

CMC's Data Structures and Algorithms Course Materials
55 stars 155 forks source link

Lab-TimeIt Number of Loops #463

Closed redietgh closed 1 year ago

redietgh commented 1 year ago

Hello! When I run python3 -m timeit -s 'import palindrome; from collections import deque; xs=deque([1]*65536)' 'palindrome.check_palindrome_1(xs)' the result is 10 loops, while others in lab returned 100 loops and much smaller runtime per loop. How do I ensure 100 loops when measuring the runtimes of the functions?

Thank you in advance!