Why is python shipped with the `python` docker image slower than that of my local machine?
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- docker, python
- Domaine
- devops, performance
Piste de recherche
Commencez par reproduire le benchmark signalé dans l’image python:3 et comparez-le à l’installation de ppa:deadsnakes/ppa. Inspectez /usr/bin/python3.10 et docker-python/local/bin/python3.10, puis déterminez si la différence signalée au niveau de debug_info explique la surcharge d’environ 11 %.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Dockerfile
- Étoiles
- 2.8k
- Forks
- 1.1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de docker-library/python
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
docker-library/python#1151 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
docker-library/python#1150 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 54/100
docker-library/python#1147 ·
-
Provide 3.13t & 3.14t imagesOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
docker-library/python#1082 · 10 commentaires · 40 réactions ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
docker-library/python#1076 · 5 commentaires · 1 réaction ·
Toutes les issues de docker-library/python
Issues similaires
-
Add govulncheck workflowOuverteenhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
losisin/helm-values-schema-json#437 ·
Les mainteneurs répondent en général sous 2 jours
-
CI: tests/*.mjs and install.sh are never checkedPeut-être pris @shuhuNB515 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Leonxlnx/taste-skill#229 ·
Les mainteneurs répondent en général sous 3 jours
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
linuxserver/docker-healthchecks#137 · 1 commentaire ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
BenjaminPoilve/minichord#203 ·
-
area:infra help wanted type:ci
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
JoeyHammoth/semiconductor-bandgap-belvedere#62 ·
Les mainteneurs répondent en général sous 1 jour