docker-alpine
docker-alpine copied to clipboard
python3.5 on docker alpine is slower than docker ubuntu
ubuntu 14.04 trusty image benchmark:
# python3 -c 'from test import pystone; pystone.main()'
Pystone(1.2) time for 50000 passes = 0.569234
This machine benchmarks at 87837.3 pystones/second
alpine 3.5 image benchmark:
# python3 -c 'from test import pystone; pystone.main()'
Pystone(1.2) time for 50000 passes = 0.715449
This machine benchmarks at 69886.2 pystones/second
Seems likely due to musl versus glibc:
https://superuser.com/questions/1219609/why-is-the-alpine-docker-image-over-50-slower-than-the-ubuntu-image