From d1cea973f02b6c99ac69212977c46f0f0e792dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A7=84=EC=95=84?= <92143119+mikaniz@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:17:25 +0900 Subject: [PATCH] =?UTF-8?q?[=EA=B9=80=EC=A7=84=EC=95=84]=2013=EC=A3=BC?= =?UTF-8?q?=EC=B0=A8=20=EB=AF=B8=EC=85=98=20=EC=A0=9C=EC=B6=9C=20(#121)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../13\354\243\274\354\260\250.md" | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 "8th_members/\352\271\200\354\247\204\354\225\204/13\354\243\274\354\260\250.md" diff --git "a/8th_members/\352\271\200\354\247\204\354\225\204/13\354\243\274\354\260\250.md" "b/8th_members/\352\271\200\354\247\204\354\225\204/13\354\243\274\354\260\250.md" new file mode 100644 index 0000000..220c5b8 --- /dev/null +++ "b/8th_members/\352\271\200\354\247\204\354\225\204/13\354\243\274\354\260\250.md" @@ -0,0 +1,43 @@ +# 13주차 + +## pbd 실행해보기 + +```python +def calculate_performance_improvement_rate(before, after): + return (before - after) / after * 100 + + +if __name__ == "__main__": + breakpoint() + + before_performance = 150 + after_performance = 57 + + performance_improvement_rate = calculate_performance_improvement_rate(before_performance, after_performance) + + print(f"{performance_improvement_rate:.2f}%") + +``` + +스크린샷 2024-06-30 오후 3 02 32 + + +## CProfile 예제 파일 직접 생성해서 실행해보기 + +```python +def calculate_performance_improvement_rate(before, after): + return (before - after) / after * 100 + + +if __name__ == "__main__": + before_performance = 150 + after_performance = 57 + + performance_improvement_rate = calculate_performance_improvement_rate(before_performance, after_performance) + + print(f"{performance_improvement_rate:.2f}%") +``` + +스크린샷 2024-06-30 오후 3 05 17 + +스크린샷 2024-06-30 오후 3 06 17