Análise de Melhoria de Performance de Build (26 de Abril de 2018) - ejplatform/ej-meta GitHub Wiki
Análise (no LAPPIS)
Modelo Antigo
# Python
## Pull
time sudo docker pull python:3.6
real 0m49.405s
user 0m0.112s
sys 0m0.040s
# Local
## Build with Python already pulled
time sudo docker build -f compose/local/django/Dockerfile .
real 2m36.194s
user 0m0.084s
sys 0m0.028s
# Production
## Build with Python already pulled
time sudo docker build -f compose/production/Dockerfile .
real 2m25.822s
user 0m0.132s
sys 0m0.020s
Context |
Python (s) |
Context (s) |
Total (s) |
Local |
~50 |
~155 |
~205 |
Production |
~50 |
~145 |
~195 |
Novo Modelo
# Python
## Pull
time sudo docker pull python:3.6
real 0m49.405s
user 0m0.112s
sys 0m0.040s
# Base
## Pull with Python already pulled
time sudo docker pull ejplatform/ej-server:base
real 1m1.903s
user 0m0.080s
sys 0m0.024s
## Build with Python already pulled
time sdc -f docker/base/build.yml build
real 1m45.164s
user 0m0.524s
sys 0m0.080s
# Local
## Build with Base already pulled
time sdc -f docker/local/build.yml build
real 0m42.780s
user 0m0.544s
sys 0m0.052s
# Production
## Build with Base already pulled
time sdc -f docker/production/staging.build.yml build
real 0m51.065s
user 0m0.688s
sys 0m0.064s
Context |
Python (s) |
Base (s) |
Context (s) |
Total (s) |
Local |
~50 |
~60 |
~45 |
~155 |
Production |
~50 |
~60 |
~50 |
~160 |