From 8377c96c2f277672411566a3e5bd03a8834dc95e Mon Sep 17 00:00:00 2001 From: pg7s85mrc <3224571700@qq.com> Date: Wed, 18 Sep 2024 17:29:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=88=86=E6=9E=90=E7=BB=93?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- profile_results.txt | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 profile_results.txt 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} + +