[BACK]Return to speed.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/speed.c between version 1.29 and 1.30

version 1.29, 2022/11/11 17:07:39 version 1.30, 2023/02/23 14:55:54
Line 1515 
Line 1515 
                         }                          }
                         d = Time_F(STOP);                          d = Time_F(STOP);
                         BIO_printf(bio_err, mr ? "+R1:%ld:%d:%.2f\n"                          BIO_printf(bio_err, mr ? "+R1:%ld:%d:%.2f\n"
                             : "%ld %d bit private RSA's in %.2fs\n",                              : "%ld %d bit private RSA in %.2fs\n",
                             count, rsa_bits[j], d);                              count, rsa_bits[j], d);
                         rsa_results[j][0] = d / (double) count;                          rsa_results[j][0] = d / (double) count;
                         rsa_count = count;                          rsa_count = count;
Line 1544 
Line 1544 
                         }                          }
                         d = Time_F(STOP);                          d = Time_F(STOP);
                         BIO_printf(bio_err, mr ? "+R2:%ld:%d:%.2f\n"                          BIO_printf(bio_err, mr ? "+R2:%ld:%d:%.2f\n"
                             : "%ld %d bit public RSA's in %.2fs\n",                              : "%ld %d bit public RSA in %.2fs\n",
                             count, rsa_bits[j], d);                              count, rsa_bits[j], d);
                         rsa_results[j][1] = d / (double) count;                          rsa_results[j][1] = d / (double) count;
                 }                  }
Line 1970 
Line 1970 
     int bits, int tm)      int bits, int tm)
 {  {
         BIO_printf(bio_err, mr ? "+DTP:%d:%s:%s:%d\n"          BIO_printf(bio_err, mr ? "+DTP:%d:%s:%s:%d\n"
             : "Doing %d bit %s %s's for %ds: ", bits, str, str2, tm);              : "Doing %d bit %s %s for %ds: ", bits, str, str2, tm);
         (void) BIO_flush(bio_err);          (void) BIO_flush(bio_err);
         alarm(tm);          alarm(tm);
 }  }
Line 1979 
Line 1979 
 print_result(int alg, int run_no, int count, double time_used)  print_result(int alg, int run_no, int count, double time_used)
 {  {
         BIO_printf(bio_err, mr ? "+R:%d:%s:%f\n"          BIO_printf(bio_err, mr ? "+R:%d:%s:%f\n"
             : "%d %s's in %.2fs\n", count, names[alg], time_used);              : "%d %s in %.2fs\n", count, names[alg], time_used);
         results[alg][run_no] = ((double) count) / time_used * lengths[run_no];          results[alg][run_no] = ((double) count) / time_used * lengths[run_no];
 }  }
   

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30