Skip to content

Commit

Permalink
Performance investigation upgrade Python to 3.9 (#87)
Browse files Browse the repository at this point in the history
Co-authored-by: Mebin Abraham <[email protected]>
  • Loading branch information
JamesGardiner and MebinAbraham authored Apr 16, 2021
1 parent db20add commit f3c5a0a
Show file tree
Hide file tree
Showing 9 changed files with 2,709 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Count,Message,Traceback,Nodes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Method,Name,Error,Occurrences

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Count,Message,Traceback,Nodes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Method,Name,Error,Occurrences

Large diffs are not rendered by default.

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions doc/performance-investigations/0017-upgrade-python-3.9/summary.md
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.

0 comments on commit f3c5a0a

Please sign in to comment.