How can i find the speed of the execution of my script?? Lang is Python & İDE is Pycharm | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i find the speed of the execution of my script?? Lang is Python & İDE is Pycharm

Python İDE PyCharm

30th May 2020, 8:18 PM
AbdErrazak Kenniche
AbdErrazak Kenniche - avatar
2 Answers
+ 3
import time start = time.perf_counter() # or time.perf_counter_ns() put you code/script in here blah blah blah blah blah blah end = time.perf_counter() # or time.perf_counter_ns() print(end - start)
30th May 2020, 8:36 PM
rodwynnejones
rodwynnejones - avatar
+ 1
Using timeit module. Please refer below link. https://www.guru99.com/timeit-JUMP_LINK__&&__python__&&__JUMP_LINK-examples.html#:~:text=timeit()%20method%20is%20available,the%20performance%20of%20the%20code.
31st May 2020, 4:59 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar