Skip to content

Commit

Permalink
[김진아] 13주차 미션 제출 (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaniz authored Jul 6, 2024
1 parent 9b166d2 commit d1cea97
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions 8th_members/김진아/13주차.md
Original file line number Diff line number Diff line change
@@ -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}%")

```

<img width="949" alt="스크린샷 2024-06-30 오후 3 02 32" src="https://github.com/mikaniz/CPython-Guide/assets/92143119/98669d4b-c3f5-446a-9007-91dca96e791e">


## 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}%")
```

<img width="765" alt="스크린샷 2024-06-30 오후 3 05 17" src="https://github.com/mikaniz/CPython-Guide/assets/92143119/9443b947-b7a6-4ca7-ad78-2d74af9f62c9">

<img width="1557" alt="스크린샷 2024-06-30 오후 3 06 17" src="https://github.com/mikaniz/CPython-Guide/assets/92143119/1a84f527-efbd-4cba-8f6f-6b5cba9ed7ba">

0 comments on commit d1cea97

Please sign in to comment.