Why is python shipped with the `python` docker image slower than that of my local machine?
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- docker, python
- 領域
- devops, performance
研究方向
先在 python:3 映像中重現回報的基準測試,並將其與 ppa:deadsnakes/ppa 的安裝進行比較。檢查 /usr/bin/python3.10 和 docker-python/local/bin/python3.10,然後判斷回報的 debug_info 差異是否解釋了約 11% 的額外開銷。
由索引模型根據 Issue 內容生成。
描述
I've observed a roughly 11% performance overhead when using the python distribution shipped with the python:3 image, compared to the python distribution installable through ppa:deadsnakes/ppa: https://stackoverflow.com/a/76133102/2808520
| local | dockerbinary | |
|---|---|---|
| avg | 0.79917586 | 0.89829016 |
| std | 0.02433539 | 0.03554546 |
| min | 0.78087375 | 0.86344007 |
| q1 | 0.78211388 | 0.86950620 |
| q2 | 0.79006154 | 0.88853465 |
| q3 | 0.80732969 | 0.91612282 |
| max | 0.89824817 | 0.99477790 |
$ file `which python3.10`
/usr/bin/python3.10: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=fb3f4369481251e6ba441382fd6d9ab47af0db29, for GNU/Linux 3.2.0, stripped
$ file docker-python/local/bin/python3.10
docker-python/local/bin/python3.10: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=618b23f947f202224f4ea8e16375ac7bcad13c4f, for GNU/Linux 3.2.0, with debug_info, not stripped
My guess is that the with debug_info compilation introduces this ~11% performance overhead.
I'd appreciate if someone could tell me if my guess is correct.
- 主要語言
- Dockerfile
- 星號
- 2.8k
- 分支
- 1.1k
- 平均合併
- 3 天 1 小時
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
docker-library/python 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
docker-library/python#1080 · 8 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
docker-library/python#1121 · 2 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
docker-library/python#1082 · 10 則留言 · 36 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 55/100
docker-library/python#1076 · 6 則留言 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 52/100
docker-library/python#1071 · 7 則留言 ·
查看 docker-library/python 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
area/cli kind/bug
難度 2/5 1-3 小時 新手友好度 90/100
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
alunduil/zfs-replicate#730 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 72/100
-
infrastructure
難度 1/5 1-3 小時 新手友好度 65/100
alunduil/siren-json.hs#232 ·
維護者通常 1 天內回覆