Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issues with php:7*-alpine containers using php-gnupg extension #592

Closed
dlen opened this issue Feb 26, 2018 · 1 comment
Closed

Comments

@dlen
Copy link

dlen commented Feb 26, 2018

Hi!

We are trying to investigate some performance issues with the php:7-fpm-alpine compared with php:7-fpm image when using php-gnupg extension

Scenarios:

  • Docker version 18.02.0-ce, build fc4de447b5

php:7-fpm-alpine container:

  • gpg 2.1.20
  • gpgme 1.9.0-r0
  • php-gnupg: 1.4.0 (Installed through pecl install gnupg and enabled using docker-php-ext-enable gnupg)

php:7-fpm container based on debian:

  • gpg 2.1.18
  • gpgme 1.8.0-3+b2
  • php-gnupg: 1.4.0 (Installed through pecl install gnupg and enabled using docker-php-ext-enable gnupg)

In both scenarios a dummy gpg key with no passphrase was created using gpg --gen-key

The snippet of code used for test is the following:

<?
$body = "THIS IS A TEST";
$gpg = new \gnupg();
$gpg->addsignkey('<GPG_FINGERPRINT>','');
$gpg->setsignmode(\gnupg::SIG_MODE_DETACH);
$signed = $gpg->sign($body);

echo $signed;
?>

The results:

  • php:7-fpm-alpine:
time php test.php
real    0m 2.72s
user    0m 0.01s
sys     0m 0.01s
  • php:7-fpm:
time php test.php
real    0m0.246s
user    0m0.031s
sys     0m0.042s

Any hint would be appreciated!

@dlen
Copy link
Author

dlen commented Feb 27, 2018

Seems like other users are complaining also about alpine performances: gliderlabs/docker-alpine#300

I will close this seems more adecuate to open this issue on the alpine repo.

@dlen dlen closed this as completed Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant