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 RĂ©ponses
+ 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