From: Felix Laurie von Massenbach Date: Mon, 26 May 2014 23:33:42 +0000 (+0100) Subject: Run the prime speed tests for 10 seconds. X-Git-Tag: master-post-reformat~758^2~14 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=b359642ffd0ae9dff8e1eb7d871356c99b093f57;ds=sidebyside Run the prime speed tests for 10 seconds. --- diff --git a/apps/speed.c b/apps/speed.c index 5af95dfc0c..885784ee1d 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -74,9 +74,10 @@ #ifndef OPENSSL_NO_SPEED #undef SECONDS -#define SECONDS 3 -#define RSA_SECONDS 10 -#define DSA_SECONDS 10 +#define SECONDS 3 +#define PRIME_SECONDS 10 +#define RSA_SECONDS 10 +#define DSA_SECONDS 10 #define ECDSA_SECONDS 10 #define ECDH_SECONDS 10 @@ -220,6 +221,7 @@ static void prime_print_message(const char *s, long num); static void pkey_print_message(const char *str, const char *str2, long num, int bits, int sec); static void print_result(int alg,int run_no,int count,double time_used); +static void prime_print_result(int alg, int count, double time_used); #ifndef NO_FORK static int do_multi(int multi); #endif @@ -2016,32 +2018,28 @@ int MAIN(int argc, char **argv) print_result(D_EVP,j,count,d); } } - - for (j=0; j