I do not uderstand the meaning of the item in the last column in the second row. Whereas, I want to know that is the total time in the third row (0.399) includes all the times below it?? If so, why when I decreased the time taken for running len() the time in the second row decreased by amount greater than the amount the len() decreased by??
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.473 0.473 <string>:1(<module>)
1 0.399 0.399 0.473 0.473 linear + binary.py:1(linear_search)
1 0.000 0.000 0.473 0.473 {built-in method exec}
1000003 0.074 0.000 0.074 0.000 {built-in method len}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
Aucun commentaire:
Enregistrer un commentaire