-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance investigation upgrade Python to 3.9 (#87)
Co-authored-by: Mebin Abraham <[email protected]>
- Loading branch information
1 parent
db20add
commit f3c5a0a
Showing
9 changed files
with
2,709 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...ions/0017-upgrade-python-3.9/outputs/baseline/2021-04-15T08:00:00/baseline_exceptions.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Count,Message,Traceback,Nodes |
1 change: 1 addition & 0 deletions
1
...ations/0017-upgrade-python-3.9/outputs/baseline/2021-04-15T08:00:00/baseline_failures.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Method,Name,Error,Occurrences |
154 changes: 154 additions & 0 deletions
154
...tigations/0017-upgrade-python-3.9/outputs/baseline/2021-04-15T08:00:00/baseline_stats.csv
Large diffs are not rendered by default.
Oops, something went wrong.
1,182 changes: 1,182 additions & 0 deletions
1,182
...s/0017-upgrade-python-3.9/outputs/baseline/2021-04-15T08:00:00/baseline_stats_history.csv
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...017-upgrade-python-3.9/outputs/investigation/2021-04-15T09:00:00/python3.9_exceptions.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Count,Message,Traceback,Nodes |
1 change: 1 addition & 0 deletions
1
.../0017-upgrade-python-3.9/outputs/investigation/2021-04-15T09:00:00/python3.9_failures.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Method,Name,Error,Occurrences |
154 changes: 154 additions & 0 deletions
154
...ons/0017-upgrade-python-3.9/outputs/investigation/2021-04-15T09:00:00/python3.9_stats.csv
Large diffs are not rendered by default.
Oops, something went wrong.
1,182 changes: 1,182 additions & 0 deletions
1,182
...-upgrade-python-3.9/outputs/investigation/2021-04-15T09:00:00/python3.9_stats_history.csv
Large diffs are not rendered by default.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
doc/performance-investigations/0017-upgrade-python-3.9/summary.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Upgrade Python from 3.8 to 3.9 | ||
|
||
Python's latest minor release version is 3.9. EQ Census is currently running on version 3.8, whereas the post-census branch has been upgraded to 3.9. This looks at possible performance improvements due to the upgrade. | ||
|
||
## Benchmark profile | ||
|
||
| Option | Value | | ||
| ---------------------- | ---------------------------- | | ||
| Requests file | census_household_gb_eng.json | | ||
| Run time | 60m | | ||
| User wait time minimum | 1 | | ||
| User wait time maximum | 2 | | ||
| Clients | 100 | | ||
| Hatch rate | 100 | | ||
| Number of workers | 7 | | ||
| Number of threads | 7 | | ||
|
||
## Results | ||
|
||
Results based on 99th percentile timings. | ||
|
||
| Metric | Baseline | Investigation | | ||
| ------------------- | -------- | ------------- | | ||
| Questionnaire GETs | 198ms | 154ms | | ||
| Questionnaire POSTs | 299ms | 250ms | | ||
| All requests | 247ms | 202ms | | ||
| Total Requests | 16,683 | 18,146 | | ||
| Total Failures | 0 | 0 | | ||
| Error Percentage | 0 | 0.0% | | ||
|
||
## Decision | ||
|
||
The upgrade has already merged, but this result shows a performance improvement when using Python 3.9 over Python 3.8. |