We commonly use the %ππΆπΊπ²πΆπ (or %%ππΆπΊπ²πΆπ) magic command to measure the execution time of our code. Here, ππΆπΊπ²πΆπ limits the number of runs depending on how long the script takes to execute. This is why you get to see a different number of loops (and runs) across different pieces of code.
Specify Loops and Runs In %%timeit
Specify Loops and Runs In %%timeit
Specify Loops and Runs In %%timeit
We commonly use the %ππΆπΊπ²πΆπ (or %%ππΆπΊπ²πΆπ) magic command to measure the execution time of our code. Here, ππΆπΊπ²πΆπ limits the number of runs depending on how long the script takes to execute. This is why you get to see a different number of loops (and runs) across different pieces of code.