+ 14
How can i compare two python files' execution time?????
6 ответов
+ 5
This is what I normally do:-
import time
start = time.perf_counter_ns()
# put you code anywhere
# between "start" and "end"
# and do the same for the
# other file and compare.
end = time.perf_counter_ns()
print(end-start)
+ 5
Thank u
+ 4
https://docs.python.org/3.8/library/timeit.html
+ 1
use multithreading in python
+ 1
use concept of multithreading in python
0