[Touch-packages] [Bug 1620345] Re: Slow startup due to FIPS selftest if openssl loaded

2016-09-05 Thread Nikita Popov
>From a quick isolated test, running #include int main() { SSL_library_init(); return 0; } in time for i in `seq 1 1000`; do ./a.out; done takes 15 seconds for me due to the FIPS_selftest() call. This is just 15ms per process start, but it adds up if you have a

[Touch-packages] [Bug 1620345] [NEW] Slow startup due to FIPS selftest if openssl loaded

2016-09-05 Thread Nikita Popov
Public bug reported: I recently noticed that the PHP testsuite runs significantly slower if openssl is enabled. E.g. running "make test TESTS=tests" takes 7 seconds without openssl and 37 seconds with. This is a factor of five difference. After a quick check using callgrind, it turns out that the