diff --git a/profile_results.txt b/profile_results.txt new file mode 100644 index 0000000..daaa4b6 --- /dev/null +++ b/profile_results.txt @@ -0,0 +1,35 @@ + 3008 function calls in 0.015 seconds + + Ordered by: cumulative time + + ncalls tottime percall cumtime percall filename:lineno(function) + 1 0.000 0.000 0.015 0.015 D:\python\作业\输出.py:40(main) + 33 0.000 0.000 0.014 0.000 D:\python\作业\输出.py:31(save_to_file) + 34 0.011 0.000 0.011 0.000 {built-in method io.open} + 34 0.003 0.000 0.003 0.000 {method '__exit__' of '_io._IOBase' objects} + 33 0.000 0.000 0.001 0.000 D:\python\作业\输出.py:18(find_top_sentences_by_keyword) + 1650 0.001 0.000 0.001 0.000 {method 'lower' of 'str' objects} + 1 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:6(read_file) + 825 0.000 0.000 0.000 0.000 {method 'count' of 'str' objects} + 105 0.000 0.000 0.000 0.000 {method 'write' of '_io.TextIOWrapper' objects} + 1 0.000 0.000 0.000 0.000 {method 'read' of '_io.TextIOWrapper' objects} + 1 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:12(split_into_sentences) + 33 0.000 0.000 0.000 0.000 {method 'sort' of 'list' objects} + 33 0.000 0.000 0.000 0.000 :186(__init__) + 1 0.000 0.000 0.000 0.000 D:\python\Lib\re\__init__.py:198(split) + 1 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:15() + 1 0.000 0.000 0.000 0.000 {method 'split' of 're.Pattern' objects} + 33 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:27() + 1 0.000 0.000 0.000 0.000 :319(decode) + 1 0.000 0.000 0.000 0.000 {built-in method _codecs.utf_8_decode} + 47 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:26() + 54 0.000 0.000 0.000 0.000 {method 'strip' of 'str' objects} + 33 0.000 0.000 0.000 0.000 :214(setstate) + 47 0.000 0.000 0.000 0.000 {method 'append' of 'list' objects} + 1 0.000 0.000 0.000 0.000 D:\python\Lib\re\__init__.py:272(_compile) + 1 0.000 0.000 0.000 0.000 :309(__init__) + 1 0.000 0.000 0.000 0.000 {built-in method builtins.isinstance} + 1 0.000 0.000 0.000 0.000 :260(__init__) + 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} + +