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